Subversion Repositories SmartDukaan

Rev

Rev 7574 | Rev 7672 | 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
 
7453 amar.kumar 256
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
7410 amar.kumar 257
 
7453 amar.kumar 258
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
259
 
260
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException;
261
 
7574 amar.kumar 262
    public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
263
 
7613 amar.kumar 264
    public List<InTransitInventory> getInTransitInventory(long originWarehouseId) throws org.apache.thrift.TException;
265
 
2820 chandransh 266
  }
267
 
3430 rajveer 268
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
269
 
4496 mandeep.dh 270
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 271
 
5530 mandeep.dh 272
    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 273
 
7410 amar.kumar 274
    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 275
 
5110 mandeep.dh 276
    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 277
 
5361 mandeep.dh 278
    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 279
 
280
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
281
 
4622 amit.gupta 282
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
283
 
5110 mandeep.dh 284
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
285
 
5185 mandeep.dh 286
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
287
 
288
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
289
 
5372 mandeep.dh 290
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
291
 
7210 amar.kumar 292
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException;
293
 
5496 mandeep.dh 294
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
295
 
5620 mandeep.dh 296
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
297
 
5711 mandeep.dh 298
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
299
 
6322 amar.kumar 300
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
301
 
7410 amar.kumar 302
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
6322 amar.kumar 303
 
6467 amar.kumar 304
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
305
 
6548 amar.kumar 306
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
307
 
308
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
309
 
6630 amar.kumar 310
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
311
 
6762 amar.kumar 312
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
313
 
314
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
315
 
316
    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;
317
 
318
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException;
319
 
6880 amar.kumar 320
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
321
 
322
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
323
 
7216 amar.kumar 324
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
325
 
326
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
327
 
7190 amar.kumar 328
    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;
329
 
7199 amar.kumar 330
    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;
331
 
7410 amar.kumar 332
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException;
333
 
334
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransferLot_call> resultHandler) throws org.apache.thrift.TException;
335
 
336
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLot_call> resultHandler) throws org.apache.thrift.TException;
337
 
338
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException;
339
 
340
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException;
341
 
342
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException;
343
 
344
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException;
345
 
346
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException;
347
 
348
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException;
349
 
7453 amar.kumar 350
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransferOut_call> resultHandler) throws org.apache.thrift.TException;
7410 amar.kumar 351
 
7453 amar.kumar 352
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException;
353
 
354
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException;
355
 
7574 amar.kumar 356
    public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException;
357
 
7613 amar.kumar 358
    public void getInTransitInventory(long originWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInTransitInventory_call> resultHandler) throws org.apache.thrift.TException;
359
 
3430 rajveer 360
  }
361
 
3374 rajveer 362
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 363
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
364
      public Factory() {}
365
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
366
        return new Client(prot);
367
      }
368
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
369
        return new Client(iprot, oprot);
370
      }
371
    }
372
 
373
    public Client(org.apache.thrift.protocol.TProtocol prot)
2820 chandransh 374
    {
3430 rajveer 375
      super(prot, prot);
2820 chandransh 376
    }
377
 
3430 rajveer 378
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 379
      super(iprot, oprot);
2820 chandransh 380
    }
381
 
4541 mandeep.dh 382
    public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
2832 chandransh 383
    {
4496 mandeep.dh 384
      send_getInventoryItem(serialNumber);
385
      return recv_getInventoryItem();
2832 chandransh 386
    }
387
 
4496 mandeep.dh 388
    public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
2832 chandransh 389
    {
4496 mandeep.dh 390
      getInventoryItem_args args = new getInventoryItem_args();
391
      args.setSerialNumber(serialNumber);
392
      sendBase("getInventoryItem", args);
2832 chandransh 393
    }
394
 
4541 mandeep.dh 395
    public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
2832 chandransh 396
    {
4496 mandeep.dh 397
      getInventoryItem_result result = new getInventoryItem_result();
398
      receiveBase(result, "getInventoryItem");
2832 chandransh 399
      if (result.isSetSuccess()) {
400
        return result.success;
401
      }
4541 mandeep.dh 402
      if (result.wex != null) {
403
        throw result.wex;
404
      }
4496 mandeep.dh 405
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
406
    }
407
 
5530 mandeep.dh 408
    public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 409
    {
5530 mandeep.dh 410
      send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
5361 mandeep.dh 411
      return recv_getNonSeralizedInventoryItem();
4496 mandeep.dh 412
    }
413
 
5530 mandeep.dh 414
    public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
4496 mandeep.dh 415
    {
5361 mandeep.dh 416
      getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
5530 mandeep.dh 417
      args.setItemNumber(itemNumber);
4496 mandeep.dh 418
      args.setItemId(itemId);
5530 mandeep.dh 419
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 420
      sendBase("getNonSeralizedInventoryItem", args);
4496 mandeep.dh 421
    }
422
 
5361 mandeep.dh 423
    public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 424
    {
5361 mandeep.dh 425
      getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
426
      receiveBase(result, "getNonSeralizedInventoryItem");
4496 mandeep.dh 427
      if (result.isSetSuccess()) {
428
        return result.success;
2832 chandransh 429
      }
5361 mandeep.dh 430
      if (result.wex != null) {
431
        throw result.wex;
2820 chandransh 432
      }
5361 mandeep.dh 433
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
4496 mandeep.dh 434
    }
435
 
7410 amar.kumar 436
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
2820 chandransh 437
    {
7410 amar.kumar 438
      send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId);
4496 mandeep.dh 439
      recv_scan();
3383 chandransh 440
    }
441
 
7410 amar.kumar 442
    public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws org.apache.thrift.TException
3383 chandransh 443
    {
4496 mandeep.dh 444
      scan_args args = new scan_args();
5361 mandeep.dh 445
      args.setInventoryItem(inventoryItem);
4496 mandeep.dh 446
      args.setType(type);
447
      args.setQuantity(quantity);
5361 mandeep.dh 448
      args.setBillingWarehouseId(billingWarehouseId);
7410 amar.kumar 449
      args.setTransferLotId(transferLotId);
4496 mandeep.dh 450
      sendBase("scan", args);
3383 chandransh 451
    }
452
 
4496 mandeep.dh 453
    public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
3383 chandransh 454
    {
4496 mandeep.dh 455
      scan_result result = new scan_result();
456
      receiveBase(result, "scan");
457
      if (result.wex != null) {
458
        throw result.wex;
459
      }
460
      return;
461
    }
462
 
5110 mandeep.dh 463
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 464
    {
5110 mandeep.dh 465
      send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
4496 mandeep.dh 466
      return recv_scanSerializedItemForOrder();
467
    }
468
 
5110 mandeep.dh 469
    public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
4496 mandeep.dh 470
    {
471
      scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
4555 mandeep.dh 472
      args.setSerialNumber(serialNumber);
4496 mandeep.dh 473
      args.setType(type);
474
      args.setOrderId(orderId);
5110 mandeep.dh 475
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
476
      args.setQuantity(quantity);
477
      args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 478
      sendBase("scanSerializedItemForOrder", args);
479
    }
480
 
4555 mandeep.dh 481
    public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 482
    {
483
      scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
484
      receiveBase(result, "scanSerializedItemForOrder");
3383 chandransh 485
      if (result.isSetSuccess()) {
486
        return result.success;
487
      }
488
      if (result.wex != null) {
489
        throw result.wex;
490
      }
4496 mandeep.dh 491
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
3383 chandransh 492
    }
493
 
5361 mandeep.dh 494
    public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
3383 chandransh 495
    {
5361 mandeep.dh 496
      send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
497
      return recv_scanForOrder();
2820 chandransh 498
    }
499
 
5361 mandeep.dh 500
    public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
2820 chandransh 501
    {
4496 mandeep.dh 502
      scanForOrder_args args = new scanForOrder_args();
5361 mandeep.dh 503
      args.setInventoryItem(inventoryItem);
3430 rajveer 504
      args.setType(type);
4496 mandeep.dh 505
      args.setQuantity(quantity);
506
      args.setOrderId(orderId);
5110 mandeep.dh 507
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 508
      args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 509
      sendBase("scanForOrder", args);
2820 chandransh 510
    }
511
 
5361 mandeep.dh 512
    public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
2820 chandransh 513
    {
4496 mandeep.dh 514
      scanForOrder_result result = new scanForOrder_result();
515
      receiveBase(result, "scanForOrder");
5361 mandeep.dh 516
      if (result.isSetSuccess()) {
517
        return result.success;
518
      }
2820 chandransh 519
      if (result.wex != null) {
520
        throw result.wex;
521
      }
5361 mandeep.dh 522
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2820 chandransh 523
    }
524
 
4496 mandeep.dh 525
    public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
2820 chandransh 526
    {
4496 mandeep.dh 527
      send_createItemNumberMapping(itemNumber, itemId);
528
      recv_createItemNumberMapping();
2820 chandransh 529
    }
530
 
4496 mandeep.dh 531
    public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
2820 chandransh 532
    {
4496 mandeep.dh 533
      createItemNumberMapping_args args = new createItemNumberMapping_args();
3430 rajveer 534
      args.setItemNumber(itemNumber);
4496 mandeep.dh 535
      args.setItemId(itemId);
536
      sendBase("createItemNumberMapping", args);
2820 chandransh 537
    }
538
 
4496 mandeep.dh 539
    public void recv_createItemNumberMapping() throws org.apache.thrift.TException
2820 chandransh 540
    {
4496 mandeep.dh 541
      createItemNumberMapping_result result = new createItemNumberMapping_result();
542
      receiveBase(result, "createItemNumberMapping");
2820 chandransh 543
      return;
544
    }
545
 
4622 amit.gupta 546
    public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
547
    {
548
      send_getItemNumbers(itemId);
549
      return recv_getItemNumbers();
550
    }
551
 
552
    public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
553
    {
554
      getItemNumbers_args args = new getItemNumbers_args();
555
      args.setItemId(itemId);
556
      sendBase("getItemNumbers", args);
557
    }
558
 
559
    public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
560
    {
561
      getItemNumbers_result result = new getItemNumbers_result();
562
      receiveBase(result, "getItemNumbers");
563
      if (result.isSetSuccess()) {
564
        return result.success;
565
      }
566
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
567
    }
568
 
5110 mandeep.dh 569
    public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
570
    {
571
      send_getItemIds(itemNumber);
572
      return recv_getItemIds();
573
    }
574
 
575
    public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
576
    {
577
      getItemIds_args args = new getItemIds_args();
578
      args.setItemNumber(itemNumber);
579
      sendBase("getItemIds", args);
580
    }
581
 
582
    public List<Long> recv_getItemIds() throws org.apache.thrift.TException
583
    {
584
      getItemIds_result result = new getItemIds_result();
585
      receiveBase(result, "getItemIds");
586
      if (result.isSetSuccess()) {
587
        return result.success;
588
      }
589
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
590
    }
591
 
5185 mandeep.dh 592
    public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
593
    {
594
      send_getInventoryItemsFromLastScanType(lastScanType);
595
      return recv_getInventoryItemsFromLastScanType();
596
    }
597
 
598
    public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
599
    {
600
      getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
601
      args.setLastScanType(lastScanType);
602
      sendBase("getInventoryItemsFromLastScanType", args);
603
    }
604
 
605
    public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
606
    {
607
      getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
608
      receiveBase(result, "getInventoryItemsFromLastScanType");
609
      if (result.isSetSuccess()) {
610
        return result.success;
611
      }
612
      if (result.wex != null) {
613
        throw result.wex;
614
      }
615
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
616
    }
617
 
618
    public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
619
    {
620
      send_getInventoryItemFromId(inventoryItemId);
621
      return recv_getInventoryItemFromId();
622
    }
623
 
624
    public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
625
    {
626
      getInventoryItemFromId_args args = new getInventoryItemFromId_args();
627
      args.setInventoryItemId(inventoryItemId);
628
      sendBase("getInventoryItemFromId", args);
629
    }
630
 
631
    public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
632
    {
633
      getInventoryItemFromId_result result = new getInventoryItemFromId_result();
634
      receiveBase(result, "getInventoryItemFromId");
635
      if (result.isSetSuccess()) {
636
        return result.success;
637
      }
638
      if (result.wex != null) {
639
        throw result.wex;
640
      }
641
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
642
    }
643
 
5372 mandeep.dh 644
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
645
    {
646
      send_getPurchaseScans(startDate, endDate);
647
      return recv_getPurchaseScans();
648
    }
649
 
650
    public void send_getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
651
    {
652
      getPurchaseScans_args args = new getPurchaseScans_args();
653
      args.setStartDate(startDate);
654
      args.setEndDate(endDate);
655
      sendBase("getPurchaseScans", args);
656
    }
657
 
658
    public List<DetailedPurchaseScan> recv_getPurchaseScans() throws org.apache.thrift.TException
659
    {
660
      getPurchaseScans_result result = new getPurchaseScans_result();
661
      receiveBase(result, "getPurchaseScans");
662
      if (result.isSetSuccess()) {
663
        return result.success;
664
      }
665
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
666
    }
667
 
7210 amar.kumar 668
    public List<DetailedPurchaseScan> getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
669
    {
670
      send_getPurchaseScansByGrnDate(startDate, endDate);
671
      return recv_getPurchaseScansByGrnDate();
672
    }
673
 
674
    public void send_getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
675
    {
676
      getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
677
      args.setStartDate(startDate);
678
      args.setEndDate(endDate);
679
      sendBase("getPurchaseScansByGrnDate", args);
680
    }
681
 
682
    public List<DetailedPurchaseScan> recv_getPurchaseScansByGrnDate() throws org.apache.thrift.TException
683
    {
684
      getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
685
      receiveBase(result, "getPurchaseScansByGrnDate");
686
      if (result.isSetSuccess()) {
687
        return result.success;
688
      }
689
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
690
    }
691
 
5496 mandeep.dh 692
    public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
693
    {
694
      send_fetchScansPerInvoiceNumber(date);
695
      return recv_fetchScansPerInvoiceNumber();
696
    }
697
 
698
    public void send_fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
699
    {
700
      fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
701
      args.setDate(date);
702
      sendBase("fetchScansPerInvoiceNumber", args);
703
    }
704
 
705
    public List<InvoiceScan> recv_fetchScansPerInvoiceNumber() throws org.apache.thrift.TException
706
    {
707
      fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
708
      receiveBase(result, "fetchScansPerInvoiceNumber");
709
      if (result.isSetSuccess()) {
710
        return result.success;
711
      }
712
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
713
    }
714
 
5620 mandeep.dh 715
    public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException
716
    {
717
      send_getInventoryItemFromOrder(orderId);
718
      return recv_getInventoryItemFromOrder();
719
    }
720
 
721
    public void send_getInventoryItemFromOrder(long orderId) throws org.apache.thrift.TException
722
    {
723
      getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
724
      args.setOrderId(orderId);
725
      sendBase("getInventoryItemFromOrder", args);
726
    }
727
 
728
    public InventoryItem recv_getInventoryItemFromOrder() throws WarehouseServiceException, org.apache.thrift.TException
729
    {
730
      getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
731
      receiveBase(result, "getInventoryItemFromOrder");
732
      if (result.isSetSuccess()) {
733
        return result.success;
734
      }
735
      if (result.we != null) {
736
        throw result.we;
737
      }
738
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
739
    }
740
 
5711 mandeep.dh 741
    public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException
742
    {
743
      send_getInventoryAge();
744
      return recv_getInventoryAge();
745
    }
746
 
747
    public void send_getInventoryAge() throws org.apache.thrift.TException
748
    {
749
      getInventoryAge_args args = new getInventoryAge_args();
750
      sendBase("getInventoryAge", args);
751
    }
752
 
753
    public List<InventoryAge> recv_getInventoryAge() throws org.apache.thrift.TException
754
    {
755
      getInventoryAge_result result = new getInventoryAge_result();
756
      receiveBase(result, "getInventoryAge");
757
      if (result.isSetSuccess()) {
758
        return result.success;
759
      }
760
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
761
    }
762
 
6322 amar.kumar 763
    public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
764
    {
765
      send_getInventoryScansForItem(itemId, fromDate, toDate);
766
      return recv_getInventoryScansForItem();
767
    }
768
 
769
    public void send_getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
770
    {
771
      getInventoryScansForItem_args args = new getInventoryScansForItem_args();
772
      args.setItemId(itemId);
773
      args.setFromDate(fromDate);
774
      args.setToDate(toDate);
775
      sendBase("getInventoryScansForItem", args);
776
    }
777
 
778
    public List<Scan> recv_getInventoryScansForItem() throws org.apache.thrift.TException
779
    {
780
      getInventoryScansForItem_result result = new getInventoryScansForItem_result();
781
      receiveBase(result, "getInventoryScansForItem");
782
      if (result.isSetSuccess()) {
783
        return result.success;
784
      }
785
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
786
    }
787
 
7410 amar.kumar 788
    public List<Scan> getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
6322 amar.kumar 789
    {
790
      send_getScanRecordsForSerialNumber(serialNumber);
791
      return recv_getScanRecordsForSerialNumber();
792
    }
793
 
7410 amar.kumar 794
    public void send_getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
6322 amar.kumar 795
    {
796
      getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
797
      args.setSerialNumber(serialNumber);
798
      sendBase("getScanRecordsForSerialNumber", args);
799
    }
800
 
801
    public List<Scan> recv_getScanRecordsForSerialNumber() throws org.apache.thrift.TException
802
    {
803
      getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
804
      receiveBase(result, "getScanRecordsForSerialNumber");
805
      if (result.isSetSuccess()) {
806
        return result.success;
807
      }
808
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
809
    }
810
 
6467 amar.kumar 811
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
812
    {
813
      send_scanForPurchaseReturn(saleReturnItems, vendorId);
814
      recv_scanForPurchaseReturn();
815
    }
816
 
817
    public void send_scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws org.apache.thrift.TException
818
    {
819
      scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
820
      args.setSaleReturnItems(saleReturnItems);
821
      args.setVendorId(vendorId);
822
      sendBase("scanForPurchaseReturn", args);
823
    }
824
 
825
    public void recv_scanForPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
826
    {
827
      scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
828
      receiveBase(result, "scanForPurchaseReturn");
829
      if (result.ex != null) {
830
        throw result.ex;
831
      }
832
      return;
833
    }
834
 
6548 amar.kumar 835
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
836
    {
837
      send_scanForLostItem(lostItems, vendorId);
838
      recv_scanForLostItem();
839
    }
840
 
841
    public void send_scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws org.apache.thrift.TException
842
    {
843
      scanForLostItem_args args = new scanForLostItem_args();
844
      args.setLostItems(lostItems);
845
      args.setVendorId(vendorId);
846
      sendBase("scanForLostItem", args);
847
    }
848
 
849
    public void recv_scanForLostItem() throws WarehouseServiceException, org.apache.thrift.TException
850
    {
851
      scanForLostItem_result result = new scanForLostItem_result();
852
      receiveBase(result, "scanForLostItem");
853
      if (result.ex != null) {
854
        throw result.ex;
855
      }
856
      return;
857
    }
858
 
859
    public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
860
    {
861
      send_getCurrentSerializedInventoryByScans();
862
      return recv_getCurrentSerializedInventoryByScans();
863
    }
864
 
865
    public void send_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
866
    {
867
      getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
868
      sendBase("getCurrentSerializedInventoryByScans", args);
869
    }
870
 
871
    public List<InventoryAvailability> recv_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
872
    {
873
      getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
874
      receiveBase(result, "getCurrentSerializedInventoryByScans");
875
      if (result.isSetSuccess()) {
876
        return result.success;
877
      }
878
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
879
    }
880
 
6630 amar.kumar 881
    public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
882
    {
883
      send_getCurrentNonSerializedInventoryByScans();
884
      return recv_getCurrentNonSerializedInventoryByScans();
885
    }
886
 
887
    public void send_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
888
    {
889
      getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
890
      sendBase("getCurrentNonSerializedInventoryByScans", args);
891
    }
892
 
893
    public List<InventoryAvailability> recv_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
894
    {
895
      getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
896
      receiveBase(result, "getCurrentNonSerializedInventoryByScans");
897
      if (result.isSetSuccess()) {
898
        return result.success;
899
      }
900
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
901
    }
902
 
6762 amar.kumar 903
    public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
904
    {
905
      send_getHistoricSerializedInventoryByScans(date);
906
      return recv_getHistoricSerializedInventoryByScans();
907
    }
908
 
909
    public void send_getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
910
    {
911
      getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
912
      args.setDate(date);
913
      sendBase("getHistoricSerializedInventoryByScans", args);
914
    }
915
 
916
    public List<InventoryAvailability> recv_getHistoricSerializedInventoryByScans() throws org.apache.thrift.TException
917
    {
918
      getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
919
      receiveBase(result, "getHistoricSerializedInventoryByScans");
920
      if (result.isSetSuccess()) {
921
        return result.success;
922
      }
923
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
924
    }
925
 
926
    public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
927
    {
928
      send_getHistoricNonSerializedInventoryByScans(date);
929
      return recv_getHistoricNonSerializedInventoryByScans();
930
    }
931
 
932
    public void send_getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
933
    {
934
      getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
935
      args.setDate(date);
936
      sendBase("getHistoricNonSerializedInventoryByScans", args);
937
    }
938
 
939
    public List<InventoryAvailability> recv_getHistoricNonSerializedInventoryByScans() throws org.apache.thrift.TException
940
    {
941
      getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
942
      receiveBase(result, "getHistoricNonSerializedInventoryByScans");
943
      if (result.isSetSuccess()) {
944
        return result.success;
945
      }
946
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
947
    }
948
 
949
    public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException
950
    {
951
      send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId);
952
      return recv_scanForOursExternalSale();
953
    }
954
 
955
    public void send_scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws org.apache.thrift.TException
956
    {
957
      scanForOursExternalSale_args args = new scanForOursExternalSale_args();
958
      args.setItemId(itemId);
959
      args.setSerialNumber(serialNumber);
960
      args.setItemNumber(itemNumber);
961
      args.setInvoiceNumber(invoiceNumber);
962
      args.setWarehouseId(warehouseId);
963
      args.setUnitPrice(unitPrice);
964
      args.setOrderId(orderId);
965
      sendBase("scanForOursExternalSale", args);
966
    }
967
 
968
    public InventoryItem recv_scanForOursExternalSale() throws WarehouseServiceException, org.apache.thrift.TException
969
    {
970
      scanForOursExternalSale_result result = new scanForOursExternalSale_result();
971
      receiveBase(result, "scanForOursExternalSale");
972
      if (result.isSetSuccess()) {
973
        return result.success;
974
      }
975
      if (result.ex != null) {
976
        throw result.ex;
977
      }
978
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
979
    }
980
 
7410 amar.kumar 981
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws WarehouseServiceException, org.apache.thrift.TException
6762 amar.kumar 982
    {
983
      send_scanForOursExternalSaleReturn(orderId, unitPrice);
984
      recv_scanForOursExternalSaleReturn();
985
    }
986
 
987
    public void send_scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
988
    {
989
      scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
990
      args.setOrderId(orderId);
991
      args.setUnitPrice(unitPrice);
992
      sendBase("scanForOursExternalSaleReturn", args);
993
    }
994
 
7410 amar.kumar 995
    public void recv_scanForOursExternalSaleReturn() throws WarehouseServiceException, org.apache.thrift.TException
6762 amar.kumar 996
    {
997
      scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
998
      receiveBase(result, "scanForOursExternalSaleReturn");
7410 amar.kumar 999
      if (result.ex != null) {
1000
        throw result.ex;
1001
      }
6762 amar.kumar 1002
      return;
1003
    }
1004
 
6880 amar.kumar 1005
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1006
    {
1007
      send_getMovementNonSerializedInventoryByScans(startDate, endDate);
1008
      return recv_getMovementNonSerializedInventoryByScans();
1009
    }
1010
 
1011
    public void send_getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1012
    {
1013
      getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
1014
      args.setStartDate(startDate);
1015
      args.setEndDate(endDate);
1016
      sendBase("getMovementNonSerializedInventoryByScans", args);
1017
    }
1018
 
1019
    public List<InventoryMovement> recv_getMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
1020
    {
1021
      getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
1022
      receiveBase(result, "getMovementNonSerializedInventoryByScans");
1023
      if (result.isSetSuccess()) {
1024
        return result.success;
1025
      }
1026
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1027
    }
1028
 
1029
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1030
    {
1031
      send_getMovementSerializedInventoryByScans(startDate, endDate);
1032
      return recv_getMovementSerializedInventoryByScans();
1033
    }
1034
 
1035
    public void send_getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1036
    {
1037
      getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
1038
      args.setStartDate(startDate);
1039
      args.setEndDate(endDate);
1040
      sendBase("getMovementSerializedInventoryByScans", args);
1041
    }
1042
 
1043
    public List<InventoryMovement> recv_getMovementSerializedInventoryByScans() throws org.apache.thrift.TException
1044
    {
1045
      getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
1046
      receiveBase(result, "getMovementSerializedInventoryByScans");
1047
      if (result.isSetSuccess()) {
1048
        return result.success;
1049
      }
1050
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1051
    }
1052
 
7216 amar.kumar 1053
    public List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1054
    {
1055
      send_getCompleteMovementSerializedInventoryByScans(startDate, endDate);
1056
      return recv_getCompleteMovementSerializedInventoryByScans();
1057
    }
1058
 
1059
    public void send_getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1060
    {
1061
      getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
1062
      args.setStartDate(startDate);
1063
      args.setEndDate(endDate);
1064
      sendBase("getCompleteMovementSerializedInventoryByScans", args);
1065
    }
1066
 
1067
    public List<InventoryMovement> recv_getCompleteMovementSerializedInventoryByScans() throws org.apache.thrift.TException
1068
    {
1069
      getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
1070
      receiveBase(result, "getCompleteMovementSerializedInventoryByScans");
1071
      if (result.isSetSuccess()) {
1072
        return result.success;
1073
      }
1074
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1075
    }
1076
 
1077
    public List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1078
    {
1079
      send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate);
1080
      return recv_getCompleteMovementNonSerializedInventoryByScans();
1081
    }
1082
 
1083
    public void send_getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1084
    {
1085
      getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
1086
      args.setStartDate(startDate);
1087
      args.setEndDate(endDate);
1088
      sendBase("getCompleteMovementNonSerializedInventoryByScans", args);
1089
    }
1090
 
1091
    public List<InventoryMovement> recv_getCompleteMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
1092
    {
1093
      getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
1094
      receiveBase(result, "getCompleteMovementNonSerializedInventoryByScans");
1095
      if (result.isSetSuccess()) {
1096
        return result.success;
1097
      }
1098
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1099
    }
1100
 
7190 amar.kumar 1101
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
1102
    {
1103
      send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType);
1104
      return recv_scanfreebie();
1105
    }
1106
 
1107
    public void send_scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws org.apache.thrift.TException
1108
    {
1109
      scanfreebie_args args = new scanfreebie_args();
1110
      args.setOrderId(orderId);
1111
      args.setFreebieItemId(freebieItemId);
1112
      args.setFreebieWarehouseId(freebieWarehouseId);
1113
      args.setScanType(scanType);
1114
      sendBase("scanfreebie", args);
1115
    }
1116
 
1117
    public InventoryItem recv_scanfreebie() throws WarehouseServiceException, org.apache.thrift.TException
1118
    {
1119
      scanfreebie_result result = new scanfreebie_result();
1120
      receiveBase(result, "scanfreebie");
1121
      if (result.isSetSuccess()) {
1122
        return result.success;
1123
      }
1124
      if (result.wex != null) {
1125
        throw result.wex;
1126
      }
1127
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1128
    }
1129
 
7199 amar.kumar 1130
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
1131
    {
1132
      send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType);
1133
      recv_reshipfreebie();
1134
    }
1135
 
1136
    public void send_reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws org.apache.thrift.TException
1137
    {
1138
      reshipfreebie_args args = new reshipfreebie_args();
1139
      args.setOldOrderId(oldOrderId);
1140
      args.setNewOrderId(newOrderId);
1141
      args.setFreebieItemId(freebieItemId);
1142
      args.setScanType(scanType);
1143
      sendBase("reshipfreebie", args);
1144
    }
1145
 
1146
    public void recv_reshipfreebie() throws WarehouseServiceException, org.apache.thrift.TException
1147
    {
1148
      reshipfreebie_result result = new reshipfreebie_result();
1149
      receiveBase(result, "reshipfreebie");
1150
      if (result.wex != null) {
1151
        throw result.wex;
1152
      }
1153
      return;
1154
    }
1155
 
7410 amar.kumar 1156
    public boolean isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
1157
    {
1158
      send_isItemTransferAllowed(warehouseId, transferWarehouseId);
1159
      return recv_isItemTransferAllowed();
1160
    }
1161
 
1162
    public void send_isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
1163
    {
1164
      isItemTransferAllowed_args args = new isItemTransferAllowed_args();
1165
      args.setWarehouseId(warehouseId);
1166
      args.setTransferWarehouseId(transferWarehouseId);
1167
      sendBase("isItemTransferAllowed", args);
1168
    }
1169
 
1170
    public boolean recv_isItemTransferAllowed() throws org.apache.thrift.TException
1171
    {
1172
      isItemTransferAllowed_result result = new isItemTransferAllowed_result();
1173
      receiveBase(result, "isItemTransferAllowed");
1174
      if (result.isSetSuccess()) {
1175
        return result.success;
1176
      }
1177
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1178
    }
1179
 
1180
    public long createTransferLot(long originWarehouseId, long destWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
1181
    {
1182
      send_createTransferLot(originWarehouseId, destWarehouseId);
1183
      return recv_createTransferLot();
1184
    }
1185
 
1186
    public void send_createTransferLot(long originWarehouseId, long destWarehouseId) throws org.apache.thrift.TException
1187
    {
1188
      createTransferLot_args args = new createTransferLot_args();
1189
      args.setOriginWarehouseId(originWarehouseId);
1190
      args.setDestWarehouseId(destWarehouseId);
1191
      sendBase("createTransferLot", args);
1192
    }
1193
 
1194
    public long recv_createTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1195
    {
1196
      createTransferLot_result result = new createTransferLot_result();
1197
      receiveBase(result, "createTransferLot");
1198
      if (result.isSetSuccess()) {
1199
        return result.success;
1200
      }
1201
      if (result.wex != null) {
1202
        throw result.wex;
1203
      }
1204
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1205
    }
1206
 
1207
    public TransferLot getTransferLot(long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1208
    {
1209
      send_getTransferLot(transferLotId);
1210
      return recv_getTransferLot();
1211
    }
1212
 
1213
    public void send_getTransferLot(long transferLotId) throws org.apache.thrift.TException
1214
    {
1215
      getTransferLot_args args = new getTransferLot_args();
1216
      args.setTransferLotId(transferLotId);
1217
      sendBase("getTransferLot", args);
1218
    }
1219
 
1220
    public TransferLot recv_getTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1221
    {
1222
      getTransferLot_result result = new getTransferLot_result();
1223
      receiveBase(result, "getTransferLot");
1224
      if (result.isSetSuccess()) {
1225
        return result.success;
1226
      }
1227
      if (result.wex != null) {
1228
        throw result.wex;
1229
      }
1230
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1231
    }
1232
 
1233
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException
1234
    {
1235
      send_markTransferLotAsReceived(id, remoteTransferRefNumber);
1236
      recv_markTransferLotAsReceived();
1237
    }
1238
 
1239
    public void send_markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws org.apache.thrift.TException
1240
    {
1241
      markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
1242
      args.setId(id);
1243
      args.setRemoteTransferRefNumber(remoteTransferRefNumber);
1244
      sendBase("markTransferLotAsReceived", args);
1245
    }
1246
 
1247
    public void recv_markTransferLotAsReceived() throws WarehouseServiceException, org.apache.thrift.TException
1248
    {
1249
      markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
1250
      receiveBase(result, "markTransferLotAsReceived");
1251
      if (result.wex != null) {
1252
        throw result.wex;
1253
      }
1254
      return;
1255
    }
1256
 
1257
    public List<TransferLot> getTransferLotsByDate(long fromDate, long toDate) throws WarehouseServiceException, org.apache.thrift.TException
1258
    {
1259
      send_getTransferLotsByDate(fromDate, toDate);
1260
      return recv_getTransferLotsByDate();
1261
    }
1262
 
1263
    public void send_getTransferLotsByDate(long fromDate, long toDate) throws org.apache.thrift.TException
1264
    {
1265
      getTransferLotsByDate_args args = new getTransferLotsByDate_args();
1266
      args.setFromDate(fromDate);
1267
      args.setToDate(toDate);
1268
      sendBase("getTransferLotsByDate", args);
1269
    }
1270
 
1271
    public List<TransferLot> recv_getTransferLotsByDate() throws WarehouseServiceException, org.apache.thrift.TException
1272
    {
1273
      getTransferLotsByDate_result result = new getTransferLotsByDate_result();
1274
      receiveBase(result, "getTransferLotsByDate");
1275
      if (result.isSetSuccess()) {
1276
        return result.success;
1277
      }
1278
      if (result.wex != null) {
1279
        throw result.wex;
1280
      }
1281
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
1282
    }
1283
 
1284
    public List<Long> getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
1285
    {
1286
      send_getAllowedDestinationWarehousesForTransfer(warehouseId);
1287
      return recv_getAllowedDestinationWarehousesForTransfer();
1288
    }
1289
 
1290
    public void send_getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
1291
    {
1292
      getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
1293
      args.setWarehouseId(warehouseId);
1294
      sendBase("getAllowedDestinationWarehousesForTransfer", args);
1295
    }
1296
 
1297
    public List<Long> recv_getAllowedDestinationWarehousesForTransfer() throws org.apache.thrift.TException
1298
    {
1299
      getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
1300
      receiveBase(result, "getAllowedDestinationWarehousesForTransfer");
1301
      if (result.isSetSuccess()) {
1302
        return result.success;
1303
      }
1304
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
1305
    }
1306
 
1307
    public Map<Long,Long> getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
1308
    {
1309
      send_getItemsInTransferLot(transferLotId);
1310
      return recv_getItemsInTransferLot();
1311
    }
1312
 
1313
    public void send_getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
1314
    {
1315
      getItemsInTransferLot_args args = new getItemsInTransferLot_args();
1316
      args.setTransferLotId(transferLotId);
1317
      sendBase("getItemsInTransferLot", args);
1318
    }
1319
 
1320
    public Map<Long,Long> recv_getItemsInTransferLot() throws org.apache.thrift.TException
1321
    {
1322
      getItemsInTransferLot_result result = new getItemsInTransferLot_result();
1323
      receiveBase(result, "getItemsInTransferLot");
1324
      if (result.isSetSuccess()) {
1325
        return result.success;
1326
      }
1327
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
1328
    }
1329
 
1330
    public void markItemsAsReceivedForTransferLot(long id) throws WarehouseServiceException, org.apache.thrift.TException
1331
    {
1332
      send_markItemsAsReceivedForTransferLot(id);
1333
      recv_markItemsAsReceivedForTransferLot();
1334
    }
1335
 
1336
    public void send_markItemsAsReceivedForTransferLot(long id) throws org.apache.thrift.TException
1337
    {
1338
      markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
1339
      args.setId(id);
1340
      sendBase("markItemsAsReceivedForTransferLot", args);
1341
    }
1342
 
1343
    public void recv_markItemsAsReceivedForTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1344
    {
1345
      markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
1346
      receiveBase(result, "markItemsAsReceivedForTransferLot");
1347
      if (result.wex != null) {
1348
        throw result.wex;
1349
      }
1350
      return;
1351
    }
1352
 
1353
    public TransferLotStatus updateTransferLotAfterItemReceive(long id) throws WarehouseServiceException, org.apache.thrift.TException
1354
    {
1355
      send_updateTransferLotAfterItemReceive(id);
1356
      return recv_updateTransferLotAfterItemReceive();
1357
    }
1358
 
1359
    public void send_updateTransferLotAfterItemReceive(long id) throws org.apache.thrift.TException
1360
    {
1361
      updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
1362
      args.setId(id);
1363
      sendBase("updateTransferLotAfterItemReceive", args);
1364
    }
1365
 
1366
    public TransferLotStatus recv_updateTransferLotAfterItemReceive() throws WarehouseServiceException, org.apache.thrift.TException
1367
    {
1368
      updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
1369
      receiveBase(result, "updateTransferLotAfterItemReceive");
1370
      if (result.isSetSuccess()) {
1371
        return result.success;
1372
      }
1373
      if (result.wex != null) {
1374
        throw result.wex;
1375
      }
1376
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
1377
    }
1378
 
7453 amar.kumar 1379
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
7410 amar.kumar 1380
    {
7453 amar.kumar 1381
      send_scanForTransferOut(inventoryItems, type, transferLotId);
1382
      recv_scanForTransferOut();
7410 amar.kumar 1383
    }
1384
 
7453 amar.kumar 1385
    public void send_scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
7410 amar.kumar 1386
    {
7453 amar.kumar 1387
      scanForTransferOut_args args = new scanForTransferOut_args();
7410 amar.kumar 1388
      args.setInventoryItems(inventoryItems);
1389
      args.setType(type);
1390
      args.setTransferLotId(transferLotId);
7453 amar.kumar 1391
      sendBase("scanForTransferOut", args);
7410 amar.kumar 1392
    }
1393
 
7453 amar.kumar 1394
    public void recv_scanForTransferOut() throws WarehouseServiceException, org.apache.thrift.TException
7410 amar.kumar 1395
    {
7453 amar.kumar 1396
      scanForTransferOut_result result = new scanForTransferOut_result();
1397
      receiveBase(result, "scanForTransferOut");
7410 amar.kumar 1398
      if (result.wex != null) {
1399
        throw result.wex;
1400
      }
1401
      return;
1402
    }
1403
 
7453 amar.kumar 1404
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1405
    {
1406
      send_scanForTransferIn(inventoryItems, type, transferLotId);
1407
      recv_scanForTransferIn();
1408
    }
1409
 
1410
    public void send_scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
1411
    {
1412
      scanForTransferIn_args args = new scanForTransferIn_args();
1413
      args.setInventoryItems(inventoryItems);
1414
      args.setType(type);
1415
      args.setTransferLotId(transferLotId);
1416
      sendBase("scanForTransferIn", args);
1417
    }
1418
 
1419
    public void recv_scanForTransferIn() throws WarehouseServiceException, org.apache.thrift.TException
1420
    {
1421
      scanForTransferIn_result result = new scanForTransferIn_result();
1422
      receiveBase(result, "scanForTransferIn");
1423
      if (result.wex != null) {
1424
        throw result.wex;
1425
      }
1426
      return;
1427
    }
1428
 
1429
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException
1430
    {
1431
      send_scanForOursThirdPartyReceive(inventoryItems, id);
1432
      recv_scanForOursThirdPartyReceive();
1433
    }
1434
 
1435
    public void send_scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws org.apache.thrift.TException
1436
    {
1437
      scanForOursThirdPartyReceive_args args = new scanForOursThirdPartyReceive_args();
1438
      args.setInventoryItems(inventoryItems);
1439
      args.setId(id);
1440
      sendBase("scanForOursThirdPartyReceive", args);
1441
    }
1442
 
1443
    public void recv_scanForOursThirdPartyReceive() throws WarehouseServiceException, org.apache.thrift.TException
1444
    {
1445
      scanForOursThirdPartyReceive_result result = new scanForOursThirdPartyReceive_result();
1446
      receiveBase(result, "scanForOursThirdPartyReceive");
1447
      if (result.wex != null) {
1448
        throw result.wex;
1449
      }
1450
      return;
1451
    }
1452
 
7574 amar.kumar 1453
    public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
1454
    {
1455
      send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId);
1456
      return recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse();
1457
    }
1458
 
1459
    public void send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws org.apache.thrift.TException
1460
    {
1461
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args args = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args();
1462
      args.setItemId(itemId);
1463
      args.setPhysicalWarehouseId(physicalWarehouseId);
1464
      sendBase("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", args);
1465
    }
1466
 
1467
    public long recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse() throws WarehouseServiceException, org.apache.thrift.TException
1468
    {
1469
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result result = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result();
1470
      receiveBase(result, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse");
1471
      if (result.isSetSuccess()) {
1472
        return result.success;
1473
      }
1474
      if (result.wex != null) {
1475
        throw result.wex;
1476
      }
1477
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
1478
    }
1479
 
7613 amar.kumar 1480
    public List<InTransitInventory> getInTransitInventory(long originWarehouseId) throws org.apache.thrift.TException
1481
    {
1482
      send_getInTransitInventory(originWarehouseId);
1483
      return recv_getInTransitInventory();
1484
    }
1485
 
1486
    public void send_getInTransitInventory(long originWarehouseId) throws org.apache.thrift.TException
1487
    {
1488
      getInTransitInventory_args args = new getInTransitInventory_args();
1489
      args.setOriginWarehouseId(originWarehouseId);
1490
      sendBase("getInTransitInventory", args);
1491
    }
1492
 
1493
    public List<InTransitInventory> recv_getInTransitInventory() throws org.apache.thrift.TException
1494
    {
1495
      getInTransitInventory_result result = new getInTransitInventory_result();
1496
      receiveBase(result, "getInTransitInventory");
1497
      if (result.isSetSuccess()) {
1498
        return result.success;
1499
      }
1500
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
1501
    }
1502
 
2820 chandransh 1503
  }
3430 rajveer 1504
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1505
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1506
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1507
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1508
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1509
        this.clientManager = clientManager;
1510
        this.protocolFactory = protocolFactory;
1511
      }
1512
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1513
        return new AsyncClient(protocolFactory, clientManager, transport);
1514
      }
2820 chandransh 1515
    }
1516
 
3430 rajveer 1517
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1518
      super(protocolFactory, clientManager, transport);
1519
    }
2820 chandransh 1520
 
4496 mandeep.dh 1521
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1522
      checkReady();
4496 mandeep.dh 1523
      getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1524
      this.___currentMethod = method_call;
1525
      ___manager.call(method_call);
1526
    }
1527
 
4496 mandeep.dh 1528
    public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
1529
      private String serialNumber;
1530
      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 1531
        super(client, protocolFactory, transport, resultHandler, false);
4496 mandeep.dh 1532
        this.serialNumber = serialNumber;
3430 rajveer 1533
      }
1534
 
1535
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4496 mandeep.dh 1536
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
1537
        getInventoryItem_args args = new getInventoryItem_args();
1538
        args.setSerialNumber(serialNumber);
3430 rajveer 1539
        args.write(prot);
1540
        prot.writeMessageEnd();
1541
      }
1542
 
4541 mandeep.dh 1543
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3430 rajveer 1544
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1545
          throw new IllegalStateException("Method call not finished!");
1546
        }
1547
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1548
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4496 mandeep.dh 1549
        return (new Client(prot)).recv_getInventoryItem();
3430 rajveer 1550
      }
1551
    }
1552
 
5530 mandeep.dh 1553
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1554
      checkReady();
5530 mandeep.dh 1555
      getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1556
      this.___currentMethod = method_call;
1557
      ___manager.call(method_call);
1558
    }
1559
 
5361 mandeep.dh 1560
    public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
5530 mandeep.dh 1561
      private String itemNumber;
4496 mandeep.dh 1562
      private long itemId;
5530 mandeep.dh 1563
      private long fulfilmentWarehouseId;
1564
      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 1565
        super(client, protocolFactory, transport, resultHandler, false);
5530 mandeep.dh 1566
        this.itemNumber = itemNumber;
4496 mandeep.dh 1567
        this.itemId = itemId;
5530 mandeep.dh 1568
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
3430 rajveer 1569
      }
1570
 
1571
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5361 mandeep.dh 1572
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
1573
        getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
5530 mandeep.dh 1574
        args.setItemNumber(itemNumber);
4496 mandeep.dh 1575
        args.setItemId(itemId);
5530 mandeep.dh 1576
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
3430 rajveer 1577
        args.write(prot);
1578
        prot.writeMessageEnd();
1579
      }
1580
 
5361 mandeep.dh 1581
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3430 rajveer 1582
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1583
          throw new IllegalStateException("Method call not finished!");
1584
        }
1585
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1586
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5361 mandeep.dh 1587
        return (new Client(prot)).recv_getNonSeralizedInventoryItem();
3430 rajveer 1588
      }
1589
    }
1590
 
7410 amar.kumar 1591
    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 1592
      checkReady();
7410 amar.kumar 1593
      scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1594
      this.___currentMethod = method_call;
1595
      ___manager.call(method_call);
1596
    }
1597
 
4496 mandeep.dh 1598
    public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
5361 mandeep.dh 1599
      private InventoryItem inventoryItem;
3430 rajveer 1600
      private ScanType type;
4496 mandeep.dh 1601
      private long quantity;
5361 mandeep.dh 1602
      private long billingWarehouseId;
7410 amar.kumar 1603
      private long transferLotId;
1604
      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 1605
        super(client, protocolFactory, transport, resultHandler, false);
5361 mandeep.dh 1606
        this.inventoryItem = inventoryItem;
3430 rajveer 1607
        this.type = type;
4496 mandeep.dh 1608
        this.quantity = quantity;
5361 mandeep.dh 1609
        this.billingWarehouseId = billingWarehouseId;
7410 amar.kumar 1610
        this.transferLotId = transferLotId;
3430 rajveer 1611
      }
1612
 
1613
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4496 mandeep.dh 1614
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
1615
        scan_args args = new scan_args();
5361 mandeep.dh 1616
        args.setInventoryItem(inventoryItem);
3430 rajveer 1617
        args.setType(type);
4496 mandeep.dh 1618
        args.setQuantity(quantity);
5361 mandeep.dh 1619
        args.setBillingWarehouseId(billingWarehouseId);
7410 amar.kumar 1620
        args.setTransferLotId(transferLotId);
3430 rajveer 1621
        args.write(prot);
1622
        prot.writeMessageEnd();
1623
      }
1624
 
1625
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1626
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1627
          throw new IllegalStateException("Method call not finished!");
1628
        }
1629
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1630
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4496 mandeep.dh 1631
        (new Client(prot)).recv_scan();
3430 rajveer 1632
      }
1633
    }
1634
 
5110 mandeep.dh 1635
    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 1636
      checkReady();
5110 mandeep.dh 1637
      scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
4496 mandeep.dh 1638
      this.___currentMethod = method_call;
1639
      ___manager.call(method_call);
1640
    }
1641
 
1642
    public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
4555 mandeep.dh 1643
      private String serialNumber;
4496 mandeep.dh 1644
      private ScanType type;
1645
      private long orderId;
5110 mandeep.dh 1646
      private long fulfilmentWarehouseId;
1647
      private double quantity;
1648
      private long billingWarehouseId;
1649
      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 1650
        super(client, protocolFactory, transport, resultHandler, false);
4555 mandeep.dh 1651
        this.serialNumber = serialNumber;
4496 mandeep.dh 1652
        this.type = type;
1653
        this.orderId = orderId;
5110 mandeep.dh 1654
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
1655
        this.quantity = quantity;
1656
        this.billingWarehouseId = billingWarehouseId;
4496 mandeep.dh 1657
      }
1658
 
1659
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1660
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1661
        scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
4555 mandeep.dh 1662
        args.setSerialNumber(serialNumber);
4496 mandeep.dh 1663
        args.setType(type);
1664
        args.setOrderId(orderId);
5110 mandeep.dh 1665
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
1666
        args.setQuantity(quantity);
1667
        args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 1668
        args.write(prot);
1669
        prot.writeMessageEnd();
1670
      }
1671
 
4555 mandeep.dh 1672
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
4496 mandeep.dh 1673
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1674
          throw new IllegalStateException("Method call not finished!");
1675
        }
1676
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1677
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1678
        return (new Client(prot)).recv_scanSerializedItemForOrder();
1679
      }
1680
    }
1681
 
5361 mandeep.dh 1682
    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 1683
      checkReady();
5361 mandeep.dh 1684
      scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
4496 mandeep.dh 1685
      this.___currentMethod = method_call;
1686
      ___manager.call(method_call);
1687
    }
1688
 
1689
    public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
5361 mandeep.dh 1690
      private InventoryItem inventoryItem;
4496 mandeep.dh 1691
      private ScanType type;
1692
      private long quantity;
1693
      private long orderId;
5110 mandeep.dh 1694
      private long fulfilmentWarehouseId;
5361 mandeep.dh 1695
      private long billingWarehouseId;
1696
      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 1697
        super(client, protocolFactory, transport, resultHandler, false);
5361 mandeep.dh 1698
        this.inventoryItem = inventoryItem;
4496 mandeep.dh 1699
        this.type = type;
1700
        this.quantity = quantity;
1701
        this.orderId = orderId;
5110 mandeep.dh 1702
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
5361 mandeep.dh 1703
        this.billingWarehouseId = billingWarehouseId;
4496 mandeep.dh 1704
      }
1705
 
1706
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1707
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1708
        scanForOrder_args args = new scanForOrder_args();
5361 mandeep.dh 1709
        args.setInventoryItem(inventoryItem);
4496 mandeep.dh 1710
        args.setType(type);
1711
        args.setQuantity(quantity);
1712
        args.setOrderId(orderId);
5110 mandeep.dh 1713
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 1714
        args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 1715
        args.write(prot);
1716
        prot.writeMessageEnd();
1717
      }
1718
 
5361 mandeep.dh 1719
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
4496 mandeep.dh 1720
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1721
          throw new IllegalStateException("Method call not finished!");
1722
        }
1723
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1724
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5361 mandeep.dh 1725
        return (new Client(prot)).recv_scanForOrder();
4496 mandeep.dh 1726
      }
1727
    }
1728
 
1729
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
1730
      checkReady();
1731
      createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
1732
      this.___currentMethod = method_call;
1733
      ___manager.call(method_call);
1734
    }
1735
 
1736
    public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
1737
      private String itemNumber;
1738
      private long itemId;
1739
      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 {
1740
        super(client, protocolFactory, transport, resultHandler, false);
1741
        this.itemNumber = itemNumber;
1742
        this.itemId = itemId;
1743
      }
1744
 
1745
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1746
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
1747
        createItemNumberMapping_args args = new createItemNumberMapping_args();
1748
        args.setItemNumber(itemNumber);
1749
        args.setItemId(itemId);
1750
        args.write(prot);
1751
        prot.writeMessageEnd();
1752
      }
1753
 
1754
      public void getResult() throws org.apache.thrift.TException {
1755
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1756
          throw new IllegalStateException("Method call not finished!");
1757
        }
1758
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1759
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1760
        (new Client(prot)).recv_createItemNumberMapping();
1761
      }
1762
    }
1763
 
4622 amit.gupta 1764
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
1765
      checkReady();
1766
      getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
1767
      this.___currentMethod = method_call;
1768
      ___manager.call(method_call);
1769
    }
1770
 
1771
    public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
1772
      private long itemId;
1773
      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 {
1774
        super(client, protocolFactory, transport, resultHandler, false);
1775
        this.itemId = itemId;
1776
      }
1777
 
1778
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1779
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
1780
        getItemNumbers_args args = new getItemNumbers_args();
1781
        args.setItemId(itemId);
1782
        args.write(prot);
1783
        prot.writeMessageEnd();
1784
      }
1785
 
1786
      public List<String> getResult() throws org.apache.thrift.TException {
1787
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1788
          throw new IllegalStateException("Method call not finished!");
1789
        }
1790
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1791
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1792
        return (new Client(prot)).recv_getItemNumbers();
1793
      }
1794
    }
1795
 
5110 mandeep.dh 1796
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
1797
      checkReady();
1798
      getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
1799
      this.___currentMethod = method_call;
1800
      ___manager.call(method_call);
1801
    }
1802
 
1803
    public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
1804
      private String itemNumber;
1805
      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 {
1806
        super(client, protocolFactory, transport, resultHandler, false);
1807
        this.itemNumber = itemNumber;
1808
      }
1809
 
1810
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1811
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
1812
        getItemIds_args args = new getItemIds_args();
1813
        args.setItemNumber(itemNumber);
1814
        args.write(prot);
1815
        prot.writeMessageEnd();
1816
      }
1817
 
1818
      public List<Long> getResult() throws org.apache.thrift.TException {
1819
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1820
          throw new IllegalStateException("Method call not finished!");
1821
        }
1822
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1823
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1824
        return (new Client(prot)).recv_getItemIds();
1825
      }
1826
    }
1827
 
5185 mandeep.dh 1828
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
1829
      checkReady();
1830
      getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
1831
      this.___currentMethod = method_call;
1832
      ___manager.call(method_call);
1833
    }
1834
 
1835
    public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
1836
      private ScanType lastScanType;
1837
      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 {
1838
        super(client, protocolFactory, transport, resultHandler, false);
1839
        this.lastScanType = lastScanType;
1840
      }
1841
 
1842
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1843
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1844
        getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
1845
        args.setLastScanType(lastScanType);
1846
        args.write(prot);
1847
        prot.writeMessageEnd();
1848
      }
1849
 
1850
      public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1851
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1852
          throw new IllegalStateException("Method call not finished!");
1853
        }
1854
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1855
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1856
        return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
1857
      }
1858
    }
1859
 
1860
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
1861
      checkReady();
1862
      getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
1863
      this.___currentMethod = method_call;
1864
      ___manager.call(method_call);
1865
    }
1866
 
1867
    public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
1868
      private long inventoryItemId;
1869
      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 {
1870
        super(client, protocolFactory, transport, resultHandler, false);
1871
        this.inventoryItemId = inventoryItemId;
1872
      }
1873
 
1874
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1875
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1876
        getInventoryItemFromId_args args = new getInventoryItemFromId_args();
1877
        args.setInventoryItemId(inventoryItemId);
1878
        args.write(prot);
1879
        prot.writeMessageEnd();
1880
      }
1881
 
1882
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1883
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1884
          throw new IllegalStateException("Method call not finished!");
1885
        }
1886
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1887
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1888
        return (new Client(prot)).recv_getInventoryItemFromId();
1889
      }
1890
    }
1891
 
5372 mandeep.dh 1892
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException {
1893
      checkReady();
1894
      getPurchaseScans_call method_call = new getPurchaseScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
1895
      this.___currentMethod = method_call;
1896
      ___manager.call(method_call);
1897
    }
1898
 
1899
    public static class getPurchaseScans_call extends org.apache.thrift.async.TAsyncMethodCall {
1900
      private long startDate;
1901
      private long endDate;
1902
      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 {
1903
        super(client, protocolFactory, transport, resultHandler, false);
1904
        this.startDate = startDate;
1905
        this.endDate = endDate;
1906
      }
1907
 
1908
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1909
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
1910
        getPurchaseScans_args args = new getPurchaseScans_args();
1911
        args.setStartDate(startDate);
1912
        args.setEndDate(endDate);
1913
        args.write(prot);
1914
        prot.writeMessageEnd();
1915
      }
1916
 
1917
      public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
1918
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1919
          throw new IllegalStateException("Method call not finished!");
1920
        }
1921
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1922
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1923
        return (new Client(prot)).recv_getPurchaseScans();
1924
      }
1925
    }
1926
 
7210 amar.kumar 1927
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException {
1928
      checkReady();
1929
      getPurchaseScansByGrnDate_call method_call = new getPurchaseScansByGrnDate_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
1930
      this.___currentMethod = method_call;
1931
      ___manager.call(method_call);
1932
    }
1933
 
1934
    public static class getPurchaseScansByGrnDate_call extends org.apache.thrift.async.TAsyncMethodCall {
1935
      private long startDate;
1936
      private long endDate;
1937
      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 {
1938
        super(client, protocolFactory, transport, resultHandler, false);
1939
        this.startDate = startDate;
1940
        this.endDate = endDate;
1941
      }
1942
 
1943
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1944
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScansByGrnDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1945
        getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
1946
        args.setStartDate(startDate);
1947
        args.setEndDate(endDate);
1948
        args.write(prot);
1949
        prot.writeMessageEnd();
1950
      }
1951
 
1952
      public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
1953
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1954
          throw new IllegalStateException("Method call not finished!");
1955
        }
1956
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1957
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1958
        return (new Client(prot)).recv_getPurchaseScansByGrnDate();
1959
      }
1960
    }
1961
 
5496 mandeep.dh 1962
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
1963
      checkReady();
1964
      fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
1965
      this.___currentMethod = method_call;
1966
      ___manager.call(method_call);
1967
    }
1968
 
1969
    public static class fetchScansPerInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
1970
      private long date;
1971
      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 {
1972
        super(client, protocolFactory, transport, resultHandler, false);
1973
        this.date = date;
1974
      }
1975
 
1976
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1977
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchScansPerInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
1978
        fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
1979
        args.setDate(date);
1980
        args.write(prot);
1981
        prot.writeMessageEnd();
1982
      }
1983
 
1984
      public List<InvoiceScan> getResult() throws org.apache.thrift.TException {
1985
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1986
          throw new IllegalStateException("Method call not finished!");
1987
        }
1988
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1989
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1990
        return (new Client(prot)).recv_fetchScansPerInvoiceNumber();
1991
      }
1992
    }
1993
 
5620 mandeep.dh 1994
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException {
1995
      checkReady();
1996
      getInventoryItemFromOrder_call method_call = new getInventoryItemFromOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
1997
      this.___currentMethod = method_call;
1998
      ___manager.call(method_call);
1999
    }
2000
 
2001
    public static class getInventoryItemFromOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2002
      private long orderId;
2003
      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 {
2004
        super(client, protocolFactory, transport, resultHandler, false);
2005
        this.orderId = orderId;
2006
      }
2007
 
2008
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2009
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2010
        getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
2011
        args.setOrderId(orderId);
2012
        args.write(prot);
2013
        prot.writeMessageEnd();
2014
      }
2015
 
2016
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2017
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2018
          throw new IllegalStateException("Method call not finished!");
2019
        }
2020
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2021
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2022
        return (new Client(prot)).recv_getInventoryItemFromOrder();
2023
      }
2024
    }
2025
 
5711 mandeep.dh 2026
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_call> resultHandler) throws org.apache.thrift.TException {
2027
      checkReady();
2028
      getInventoryAge_call method_call = new getInventoryAge_call(resultHandler, this, ___protocolFactory, ___transport);
2029
      this.___currentMethod = method_call;
2030
      ___manager.call(method_call);
2031
    }
2032
 
2033
    public static class getInventoryAge_call extends org.apache.thrift.async.TAsyncMethodCall {
2034
      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 {
2035
        super(client, protocolFactory, transport, resultHandler, false);
2036
      }
2037
 
2038
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2039
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryAge", org.apache.thrift.protocol.TMessageType.CALL, 0));
2040
        getInventoryAge_args args = new getInventoryAge_args();
2041
        args.write(prot);
2042
        prot.writeMessageEnd();
2043
      }
2044
 
2045
      public List<InventoryAge> getResult() throws org.apache.thrift.TException {
2046
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2047
          throw new IllegalStateException("Method call not finished!");
2048
        }
2049
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2050
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2051
        return (new Client(prot)).recv_getInventoryAge();
2052
      }
2053
    }
2054
 
6322 amar.kumar 2055
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException {
2056
      checkReady();
2057
      getInventoryScansForItem_call method_call = new getInventoryScansForItem_call(itemId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
2058
      this.___currentMethod = method_call;
2059
      ___manager.call(method_call);
2060
    }
2061
 
2062
    public static class getInventoryScansForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2063
      private long itemId;
2064
      private long fromDate;
2065
      private long toDate;
2066
      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 {
2067
        super(client, protocolFactory, transport, resultHandler, false);
2068
        this.itemId = itemId;
2069
        this.fromDate = fromDate;
2070
        this.toDate = toDate;
2071
      }
2072
 
2073
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2074
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryScansForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2075
        getInventoryScansForItem_args args = new getInventoryScansForItem_args();
2076
        args.setItemId(itemId);
2077
        args.setFromDate(fromDate);
2078
        args.setToDate(toDate);
2079
        args.write(prot);
2080
        prot.writeMessageEnd();
2081
      }
2082
 
2083
      public List<Scan> getResult() throws org.apache.thrift.TException {
2084
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2085
          throw new IllegalStateException("Method call not finished!");
2086
        }
2087
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2088
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2089
        return (new Client(prot)).recv_getInventoryScansForItem();
2090
      }
2091
    }
2092
 
7410 amar.kumar 2093
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
6322 amar.kumar 2094
      checkReady();
2095
      getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
2096
      this.___currentMethod = method_call;
2097
      ___manager.call(method_call);
2098
    }
2099
 
2100
    public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
7410 amar.kumar 2101
      private String serialNumber;
2102
      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 2103
        super(client, protocolFactory, transport, resultHandler, false);
2104
        this.serialNumber = serialNumber;
2105
      }
2106
 
2107
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2108
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanRecordsForSerialNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
2109
        getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
2110
        args.setSerialNumber(serialNumber);
2111
        args.write(prot);
2112
        prot.writeMessageEnd();
2113
      }
2114
 
2115
      public List<Scan> getResult() throws org.apache.thrift.TException {
2116
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2117
          throw new IllegalStateException("Method call not finished!");
2118
        }
2119
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2120
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2121
        return (new Client(prot)).recv_getScanRecordsForSerialNumber();
2122
      }
2123
    }
2124
 
6467 amar.kumar 2125
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
2126
      checkReady();
2127
      scanForPurchaseReturn_call method_call = new scanForPurchaseReturn_call(saleReturnItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2128
      this.___currentMethod = method_call;
2129
      ___manager.call(method_call);
2130
    }
2131
 
2132
    public static class scanForPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
2133
      private List<InventoryItem> saleReturnItems;
2134
      private long vendorId;
2135
      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 {
2136
        super(client, protocolFactory, transport, resultHandler, false);
2137
        this.saleReturnItems = saleReturnItems;
2138
        this.vendorId = vendorId;
2139
      }
2140
 
2141
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2142
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2143
        scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
2144
        args.setSaleReturnItems(saleReturnItems);
2145
        args.setVendorId(vendorId);
2146
        args.write(prot);
2147
        prot.writeMessageEnd();
2148
      }
2149
 
2150
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2151
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2152
          throw new IllegalStateException("Method call not finished!");
2153
        }
2154
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2155
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2156
        (new Client(prot)).recv_scanForPurchaseReturn();
2157
      }
2158
    }
2159
 
6548 amar.kumar 2160
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
2161
      checkReady();
2162
      scanForLostItem_call method_call = new scanForLostItem_call(lostItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2163
      this.___currentMethod = method_call;
2164
      ___manager.call(method_call);
2165
    }
2166
 
2167
    public static class scanForLostItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2168
      private List<InventoryItem> lostItems;
2169
      private long vendorId;
2170
      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 {
2171
        super(client, protocolFactory, transport, resultHandler, false);
2172
        this.lostItems = lostItems;
2173
        this.vendorId = vendorId;
2174
      }
2175
 
2176
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2177
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForLostItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2178
        scanForLostItem_args args = new scanForLostItem_args();
2179
        args.setLostItems(lostItems);
2180
        args.setVendorId(vendorId);
2181
        args.write(prot);
2182
        prot.writeMessageEnd();
2183
      }
2184
 
2185
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2186
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2187
          throw new IllegalStateException("Method call not finished!");
2188
        }
2189
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2190
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2191
        (new Client(prot)).recv_scanForLostItem();
2192
      }
2193
    }
2194
 
2195
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2196
      checkReady();
2197
      getCurrentSerializedInventoryByScans_call method_call = new getCurrentSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
2198
      this.___currentMethod = method_call;
2199
      ___manager.call(method_call);
2200
    }
2201
 
2202
    public static class getCurrentSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2203
      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 {
2204
        super(client, protocolFactory, transport, resultHandler, false);
2205
      }
2206
 
2207
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2208
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2209
        getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
2210
        args.write(prot);
2211
        prot.writeMessageEnd();
2212
      }
2213
 
2214
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2215
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2216
          throw new IllegalStateException("Method call not finished!");
2217
        }
2218
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2219
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2220
        return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
2221
      }
2222
    }
2223
 
6630 amar.kumar 2224
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2225
      checkReady();
2226
      getCurrentNonSerializedInventoryByScans_call method_call = new getCurrentNonSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
2227
      this.___currentMethod = method_call;
2228
      ___manager.call(method_call);
2229
    }
2230
 
2231
    public static class getCurrentNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2232
      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 {
2233
        super(client, protocolFactory, transport, resultHandler, false);
2234
      }
2235
 
2236
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2237
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2238
        getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
2239
        args.write(prot);
2240
        prot.writeMessageEnd();
2241
      }
2242
 
2243
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2244
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2245
          throw new IllegalStateException("Method call not finished!");
2246
        }
2247
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2249
        return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
2250
      }
2251
    }
2252
 
6762 amar.kumar 2253
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2254
      checkReady();
2255
      getHistoricSerializedInventoryByScans_call method_call = new getHistoricSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
2256
      this.___currentMethod = method_call;
2257
      ___manager.call(method_call);
2258
    }
2259
 
2260
    public static class getHistoricSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2261
      private long date;
2262
      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 {
2263
        super(client, protocolFactory, transport, resultHandler, false);
2264
        this.date = date;
2265
      }
2266
 
2267
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2268
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2269
        getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
2270
        args.setDate(date);
2271
        args.write(prot);
2272
        prot.writeMessageEnd();
2273
      }
2274
 
2275
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2276
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2277
          throw new IllegalStateException("Method call not finished!");
2278
        }
2279
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2280
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2281
        return (new Client(prot)).recv_getHistoricSerializedInventoryByScans();
2282
      }
2283
    }
2284
 
2285
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2286
      checkReady();
2287
      getHistoricNonSerializedInventoryByScans_call method_call = new getHistoricNonSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
2288
      this.___currentMethod = method_call;
2289
      ___manager.call(method_call);
2290
    }
2291
 
2292
    public static class getHistoricNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2293
      private long date;
2294
      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 {
2295
        super(client, protocolFactory, transport, resultHandler, false);
2296
        this.date = date;
2297
      }
2298
 
2299
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2300
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2301
        getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
2302
        args.setDate(date);
2303
        args.write(prot);
2304
        prot.writeMessageEnd();
2305
      }
2306
 
2307
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2308
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2309
          throw new IllegalStateException("Method call not finished!");
2310
        }
2311
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2312
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2313
        return (new Client(prot)).recv_getHistoricNonSerializedInventoryByScans();
2314
      }
2315
    }
2316
 
2317
    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 {
2318
      checkReady();
2319
      scanForOursExternalSale_call method_call = new scanForOursExternalSale_call(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId, resultHandler, this, ___protocolFactory, ___transport);
2320
      this.___currentMethod = method_call;
2321
      ___manager.call(method_call);
2322
    }
2323
 
2324
    public static class scanForOursExternalSale_call extends org.apache.thrift.async.TAsyncMethodCall {
2325
      private long itemId;
2326
      private String serialNumber;
2327
      private String itemNumber;
2328
      private String invoiceNumber;
2329
      private long warehouseId;
2330
      private double unitPrice;
2331
      private long orderId;
2332
      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 {
2333
        super(client, protocolFactory, transport, resultHandler, false);
2334
        this.itemId = itemId;
2335
        this.serialNumber = serialNumber;
2336
        this.itemNumber = itemNumber;
2337
        this.invoiceNumber = invoiceNumber;
2338
        this.warehouseId = warehouseId;
2339
        this.unitPrice = unitPrice;
2340
        this.orderId = orderId;
2341
      }
2342
 
2343
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2344
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
2345
        scanForOursExternalSale_args args = new scanForOursExternalSale_args();
2346
        args.setItemId(itemId);
2347
        args.setSerialNumber(serialNumber);
2348
        args.setItemNumber(itemNumber);
2349
        args.setInvoiceNumber(invoiceNumber);
2350
        args.setWarehouseId(warehouseId);
2351
        args.setUnitPrice(unitPrice);
2352
        args.setOrderId(orderId);
2353
        args.write(prot);
2354
        prot.writeMessageEnd();
2355
      }
2356
 
2357
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2358
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2359
          throw new IllegalStateException("Method call not finished!");
2360
        }
2361
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2362
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2363
        return (new Client(prot)).recv_scanForOursExternalSale();
2364
      }
2365
    }
2366
 
2367
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException {
2368
      checkReady();
2369
      scanForOursExternalSaleReturn_call method_call = new scanForOursExternalSaleReturn_call(orderId, unitPrice, resultHandler, this, ___protocolFactory, ___transport);
2370
      this.___currentMethod = method_call;
2371
      ___manager.call(method_call);
2372
    }
2373
 
2374
    public static class scanForOursExternalSaleReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
2375
      private long orderId;
2376
      private double unitPrice;
2377
      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 {
2378
        super(client, protocolFactory, transport, resultHandler, false);
2379
        this.orderId = orderId;
2380
        this.unitPrice = unitPrice;
2381
      }
2382
 
2383
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2384
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSaleReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2385
        scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
2386
        args.setOrderId(orderId);
2387
        args.setUnitPrice(unitPrice);
2388
        args.write(prot);
2389
        prot.writeMessageEnd();
2390
      }
2391
 
7410 amar.kumar 2392
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
6762 amar.kumar 2393
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2394
          throw new IllegalStateException("Method call not finished!");
2395
        }
2396
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2397
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2398
        (new Client(prot)).recv_scanForOursExternalSaleReturn();
2399
      }
2400
    }
2401
 
6880 amar.kumar 2402
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2403
      checkReady();
2404
      getMovementNonSerializedInventoryByScans_call method_call = new getMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2405
      this.___currentMethod = method_call;
2406
      ___manager.call(method_call);
2407
    }
2408
 
2409
    public static class getMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2410
      private long startDate;
2411
      private long endDate;
2412
      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 {
2413
        super(client, protocolFactory, transport, resultHandler, false);
2414
        this.startDate = startDate;
2415
        this.endDate = endDate;
2416
      }
2417
 
2418
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2419
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2420
        getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
2421
        args.setStartDate(startDate);
2422
        args.setEndDate(endDate);
2423
        args.write(prot);
2424
        prot.writeMessageEnd();
2425
      }
2426
 
2427
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2428
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2429
          throw new IllegalStateException("Method call not finished!");
2430
        }
2431
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2432
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2433
        return (new Client(prot)).recv_getMovementNonSerializedInventoryByScans();
2434
      }
2435
    }
2436
 
2437
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2438
      checkReady();
2439
      getMovementSerializedInventoryByScans_call method_call = new getMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2440
      this.___currentMethod = method_call;
2441
      ___manager.call(method_call);
2442
    }
2443
 
2444
    public static class getMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2445
      private long startDate;
2446
      private long endDate;
2447
      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 {
2448
        super(client, protocolFactory, transport, resultHandler, false);
2449
        this.startDate = startDate;
2450
        this.endDate = endDate;
2451
      }
2452
 
2453
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2454
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2455
        getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
2456
        args.setStartDate(startDate);
2457
        args.setEndDate(endDate);
2458
        args.write(prot);
2459
        prot.writeMessageEnd();
2460
      }
2461
 
2462
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2463
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2464
          throw new IllegalStateException("Method call not finished!");
2465
        }
2466
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2467
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2468
        return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
2469
      }
2470
    }
2471
 
7216 amar.kumar 2472
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2473
      checkReady();
2474
      getCompleteMovementSerializedInventoryByScans_call method_call = new getCompleteMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2475
      this.___currentMethod = method_call;
2476
      ___manager.call(method_call);
2477
    }
2478
 
2479
    public static class getCompleteMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2480
      private long startDate;
2481
      private long endDate;
2482
      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 {
2483
        super(client, protocolFactory, transport, resultHandler, false);
2484
        this.startDate = startDate;
2485
        this.endDate = endDate;
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("getCompleteMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2490
        getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
2491
        args.setStartDate(startDate);
2492
        args.setEndDate(endDate);
2493
        args.write(prot);
2494
        prot.writeMessageEnd();
2495
      }
2496
 
2497
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2498
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2499
          throw new IllegalStateException("Method call not finished!");
2500
        }
2501
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2502
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2503
        return (new Client(prot)).recv_getCompleteMovementSerializedInventoryByScans();
2504
      }
2505
    }
2506
 
2507
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2508
      checkReady();
2509
      getCompleteMovementNonSerializedInventoryByScans_call method_call = new getCompleteMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2510
      this.___currentMethod = method_call;
2511
      ___manager.call(method_call);
2512
    }
2513
 
2514
    public static class getCompleteMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2515
      private long startDate;
2516
      private long endDate;
2517
      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 {
2518
        super(client, protocolFactory, transport, resultHandler, false);
2519
        this.startDate = startDate;
2520
        this.endDate = endDate;
2521
      }
2522
 
2523
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2524
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2525
        getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
2526
        args.setStartDate(startDate);
2527
        args.setEndDate(endDate);
2528
        args.write(prot);
2529
        prot.writeMessageEnd();
2530
      }
2531
 
2532
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2533
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2534
          throw new IllegalStateException("Method call not finished!");
2535
        }
2536
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2537
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2538
        return (new Client(prot)).recv_getCompleteMovementNonSerializedInventoryByScans();
2539
      }
2540
    }
2541
 
7190 amar.kumar 2542
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<scanfreebie_call> resultHandler) throws org.apache.thrift.TException {
2543
      checkReady();
2544
      scanfreebie_call method_call = new scanfreebie_call(orderId, freebieItemId, freebieWarehouseId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2545
      this.___currentMethod = method_call;
2546
      ___manager.call(method_call);
2547
    }
2548
 
2549
    public static class scanfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
2550
      private long orderId;
2551
      private long freebieItemId;
2552
      private long freebieWarehouseId;
2553
      private ScanType scanType;
2554
      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 {
2555
        super(client, protocolFactory, transport, resultHandler, false);
2556
        this.orderId = orderId;
2557
        this.freebieItemId = freebieItemId;
2558
        this.freebieWarehouseId = freebieWarehouseId;
2559
        this.scanType = scanType;
2560
      }
2561
 
2562
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2563
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
2564
        scanfreebie_args args = new scanfreebie_args();
2565
        args.setOrderId(orderId);
2566
        args.setFreebieItemId(freebieItemId);
2567
        args.setFreebieWarehouseId(freebieWarehouseId);
2568
        args.setScanType(scanType);
2569
        args.write(prot);
2570
        prot.writeMessageEnd();
2571
      }
2572
 
2573
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2574
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2575
          throw new IllegalStateException("Method call not finished!");
2576
        }
2577
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2578
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2579
        return (new Client(prot)).recv_scanfreebie();
2580
      }
2581
    }
2582
 
7199 amar.kumar 2583
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<reshipfreebie_call> resultHandler) throws org.apache.thrift.TException {
2584
      checkReady();
2585
      reshipfreebie_call method_call = new reshipfreebie_call(oldOrderId, newOrderId, freebieItemId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2586
      this.___currentMethod = method_call;
2587
      ___manager.call(method_call);
2588
    }
2589
 
2590
    public static class reshipfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
2591
      private long oldOrderId;
2592
      private long newOrderId;
2593
      private long freebieItemId;
2594
      private ScanType scanType;
2595
      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 {
2596
        super(client, protocolFactory, transport, resultHandler, false);
2597
        this.oldOrderId = oldOrderId;
2598
        this.newOrderId = newOrderId;
2599
        this.freebieItemId = freebieItemId;
2600
        this.scanType = scanType;
2601
      }
2602
 
2603
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2604
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
2605
        reshipfreebie_args args = new reshipfreebie_args();
2606
        args.setOldOrderId(oldOrderId);
2607
        args.setNewOrderId(newOrderId);
2608
        args.setFreebieItemId(freebieItemId);
2609
        args.setScanType(scanType);
2610
        args.write(prot);
2611
        prot.writeMessageEnd();
2612
      }
2613
 
2614
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2615
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2616
          throw new IllegalStateException("Method call not finished!");
2617
        }
2618
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2619
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2620
        (new Client(prot)).recv_reshipfreebie();
2621
      }
2622
    }
2623
 
7410 amar.kumar 2624
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException {
2625
      checkReady();
2626
      isItemTransferAllowed_call method_call = new isItemTransferAllowed_call(warehouseId, transferWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2627
      this.___currentMethod = method_call;
2628
      ___manager.call(method_call);
2629
    }
2630
 
2631
    public static class isItemTransferAllowed_call extends org.apache.thrift.async.TAsyncMethodCall {
2632
      private long warehouseId;
2633
      private long transferWarehouseId;
2634
      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 {
2635
        super(client, protocolFactory, transport, resultHandler, false);
2636
        this.warehouseId = warehouseId;
2637
        this.transferWarehouseId = transferWarehouseId;
2638
      }
2639
 
2640
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2641
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isItemTransferAllowed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2642
        isItemTransferAllowed_args args = new isItemTransferAllowed_args();
2643
        args.setWarehouseId(warehouseId);
2644
        args.setTransferWarehouseId(transferWarehouseId);
2645
        args.write(prot);
2646
        prot.writeMessageEnd();
2647
      }
2648
 
2649
      public boolean getResult() throws org.apache.thrift.TException {
2650
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2651
          throw new IllegalStateException("Method call not finished!");
2652
        }
2653
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2654
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2655
        return (new Client(prot)).recv_isItemTransferAllowed();
2656
      }
2657
    }
2658
 
2659
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<createTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2660
      checkReady();
2661
      createTransferLot_call method_call = new createTransferLot_call(originWarehouseId, destWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2662
      this.___currentMethod = method_call;
2663
      ___manager.call(method_call);
2664
    }
2665
 
2666
    public static class createTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2667
      private long originWarehouseId;
2668
      private long destWarehouseId;
2669
      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 {
2670
        super(client, protocolFactory, transport, resultHandler, false);
2671
        this.originWarehouseId = originWarehouseId;
2672
        this.destWarehouseId = destWarehouseId;
2673
      }
2674
 
2675
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2676
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2677
        createTransferLot_args args = new createTransferLot_args();
2678
        args.setOriginWarehouseId(originWarehouseId);
2679
        args.setDestWarehouseId(destWarehouseId);
2680
        args.write(prot);
2681
        prot.writeMessageEnd();
2682
      }
2683
 
2684
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2685
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2686
          throw new IllegalStateException("Method call not finished!");
2687
        }
2688
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2689
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2690
        return (new Client(prot)).recv_createTransferLot();
2691
      }
2692
    }
2693
 
2694
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2695
      checkReady();
2696
      getTransferLot_call method_call = new getTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2697
      this.___currentMethod = method_call;
2698
      ___manager.call(method_call);
2699
    }
2700
 
2701
    public static class getTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2702
      private long transferLotId;
2703
      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 {
2704
        super(client, protocolFactory, transport, resultHandler, false);
2705
        this.transferLotId = transferLotId;
2706
      }
2707
 
2708
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2709
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2710
        getTransferLot_args args = new getTransferLot_args();
2711
        args.setTransferLotId(transferLotId);
2712
        args.write(prot);
2713
        prot.writeMessageEnd();
2714
      }
2715
 
2716
      public TransferLot getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2717
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2718
          throw new IllegalStateException("Method call not finished!");
2719
        }
2720
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2721
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2722
        return (new Client(prot)).recv_getTransferLot();
2723
      }
2724
    }
2725
 
2726
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException {
2727
      checkReady();
2728
      markTransferLotAsReceived_call method_call = new markTransferLotAsReceived_call(id, remoteTransferRefNumber, resultHandler, this, ___protocolFactory, ___transport);
2729
      this.___currentMethod = method_call;
2730
      ___manager.call(method_call);
2731
    }
2732
 
2733
    public static class markTransferLotAsReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
2734
      private long id;
2735
      private String remoteTransferRefNumber;
2736
      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 {
2737
        super(client, protocolFactory, transport, resultHandler, false);
2738
        this.id = id;
2739
        this.remoteTransferRefNumber = remoteTransferRefNumber;
2740
      }
2741
 
2742
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2743
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransferLotAsReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
2744
        markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
2745
        args.setId(id);
2746
        args.setRemoteTransferRefNumber(remoteTransferRefNumber);
2747
        args.write(prot);
2748
        prot.writeMessageEnd();
2749
      }
2750
 
2751
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2752
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2753
          throw new IllegalStateException("Method call not finished!");
2754
        }
2755
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2756
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2757
        (new Client(prot)).recv_markTransferLotAsReceived();
2758
      }
2759
    }
2760
 
2761
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException {
2762
      checkReady();
2763
      getTransferLotsByDate_call method_call = new getTransferLotsByDate_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
2764
      this.___currentMethod = method_call;
2765
      ___manager.call(method_call);
2766
    }
2767
 
2768
    public static class getTransferLotsByDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2769
      private long fromDate;
2770
      private long toDate;
2771
      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 {
2772
        super(client, protocolFactory, transport, resultHandler, false);
2773
        this.fromDate = fromDate;
2774
        this.toDate = toDate;
2775
      }
2776
 
2777
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2778
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLotsByDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2779
        getTransferLotsByDate_args args = new getTransferLotsByDate_args();
2780
        args.setFromDate(fromDate);
2781
        args.setToDate(toDate);
2782
        args.write(prot);
2783
        prot.writeMessageEnd();
2784
      }
2785
 
2786
      public List<TransferLot> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2787
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2788
          throw new IllegalStateException("Method call not finished!");
2789
        }
2790
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2791
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2792
        return (new Client(prot)).recv_getTransferLotsByDate();
2793
      }
2794
    }
2795
 
2796
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException {
2797
      checkReady();
2798
      getAllowedDestinationWarehousesForTransfer_call method_call = new getAllowedDestinationWarehousesForTransfer_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2799
      this.___currentMethod = method_call;
2800
      ___manager.call(method_call);
2801
    }
2802
 
2803
    public static class getAllowedDestinationWarehousesForTransfer_call extends org.apache.thrift.async.TAsyncMethodCall {
2804
      private long warehouseId;
2805
      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 {
2806
        super(client, protocolFactory, transport, resultHandler, false);
2807
        this.warehouseId = warehouseId;
2808
      }
2809
 
2810
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2811
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllowedDestinationWarehousesForTransfer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2812
        getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
2813
        args.setWarehouseId(warehouseId);
2814
        args.write(prot);
2815
        prot.writeMessageEnd();
2816
      }
2817
 
2818
      public List<Long> getResult() throws org.apache.thrift.TException {
2819
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2820
          throw new IllegalStateException("Method call not finished!");
2821
        }
2822
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2823
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2824
        return (new Client(prot)).recv_getAllowedDestinationWarehousesForTransfer();
2825
      }
2826
    }
2827
 
2828
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2829
      checkReady();
2830
      getItemsInTransferLot_call method_call = new getItemsInTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2831
      this.___currentMethod = method_call;
2832
      ___manager.call(method_call);
2833
    }
2834
 
2835
    public static class getItemsInTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2836
      private long transferLotId;
2837
      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 {
2838
        super(client, protocolFactory, transport, resultHandler, false);
2839
        this.transferLotId = transferLotId;
2840
      }
2841
 
2842
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2843
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsInTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2844
        getItemsInTransferLot_args args = new getItemsInTransferLot_args();
2845
        args.setTransferLotId(transferLotId);
2846
        args.write(prot);
2847
        prot.writeMessageEnd();
2848
      }
2849
 
2850
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
2851
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2852
          throw new IllegalStateException("Method call not finished!");
2853
        }
2854
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2855
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2856
        return (new Client(prot)).recv_getItemsInTransferLot();
2857
      }
2858
    }
2859
 
2860
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2861
      checkReady();
2862
      markItemsAsReceivedForTransferLot_call method_call = new markItemsAsReceivedForTransferLot_call(id, resultHandler, this, ___protocolFactory, ___transport);
2863
      this.___currentMethod = method_call;
2864
      ___manager.call(method_call);
2865
    }
2866
 
2867
    public static class markItemsAsReceivedForTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2868
      private long id;
2869
      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 {
2870
        super(client, protocolFactory, transport, resultHandler, false);
2871
        this.id = id;
2872
      }
2873
 
2874
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2875
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markItemsAsReceivedForTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2876
        markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
2877
        args.setId(id);
2878
        args.write(prot);
2879
        prot.writeMessageEnd();
2880
      }
2881
 
2882
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2883
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2884
          throw new IllegalStateException("Method call not finished!");
2885
        }
2886
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2887
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2888
        (new Client(prot)).recv_markItemsAsReceivedForTransferLot();
2889
      }
2890
    }
2891
 
2892
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException {
2893
      checkReady();
2894
      updateTransferLotAfterItemReceive_call method_call = new updateTransferLotAfterItemReceive_call(id, resultHandler, this, ___protocolFactory, ___transport);
2895
      this.___currentMethod = method_call;
2896
      ___manager.call(method_call);
2897
    }
2898
 
2899
    public static class updateTransferLotAfterItemReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
2900
      private long id;
2901
      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 {
2902
        super(client, protocolFactory, transport, resultHandler, false);
2903
        this.id = id;
2904
      }
2905
 
2906
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2907
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTransferLotAfterItemReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
2908
        updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
2909
        args.setId(id);
2910
        args.write(prot);
2911
        prot.writeMessageEnd();
2912
      }
2913
 
2914
      public TransferLotStatus getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2915
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2916
          throw new IllegalStateException("Method call not finished!");
2917
        }
2918
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2919
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2920
        return (new Client(prot)).recv_updateTransferLotAfterItemReceive();
2921
      }
2922
    }
2923
 
7453 amar.kumar 2924
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferOut_call> resultHandler) throws org.apache.thrift.TException {
7410 amar.kumar 2925
      checkReady();
7453 amar.kumar 2926
      scanForTransferOut_call method_call = new scanForTransferOut_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
7410 amar.kumar 2927
      this.___currentMethod = method_call;
2928
      ___manager.call(method_call);
2929
    }
2930
 
7453 amar.kumar 2931
    public static class scanForTransferOut_call extends org.apache.thrift.async.TAsyncMethodCall {
7410 amar.kumar 2932
      private List<InventoryItem> inventoryItems;
2933
      private ScanType type;
2934
      private long transferLotId;
7453 amar.kumar 2935
      public scanForTransferOut_call(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferOut_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 {
7410 amar.kumar 2936
        super(client, protocolFactory, transport, resultHandler, false);
2937
        this.inventoryItems = inventoryItems;
2938
        this.type = type;
2939
        this.transferLotId = transferLotId;
2940
      }
2941
 
2942
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7453 amar.kumar 2943
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransferOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
2944
        scanForTransferOut_args args = new scanForTransferOut_args();
7410 amar.kumar 2945
        args.setInventoryItems(inventoryItems);
2946
        args.setType(type);
2947
        args.setTransferLotId(transferLotId);
2948
        args.write(prot);
2949
        prot.writeMessageEnd();
2950
      }
2951
 
2952
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2953
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2954
          throw new IllegalStateException("Method call not finished!");
2955
        }
2956
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2957
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7453 amar.kumar 2958
        (new Client(prot)).recv_scanForTransferOut();
7410 amar.kumar 2959
      }
2960
    }
2961
 
7453 amar.kumar 2962
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException {
2963
      checkReady();
2964
      scanForTransferIn_call method_call = new scanForTransferIn_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2965
      this.___currentMethod = method_call;
2966
      ___manager.call(method_call);
2967
    }
2968
 
2969
    public static class scanForTransferIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2970
      private List<InventoryItem> inventoryItems;
2971
      private ScanType type;
2972
      private long transferLotId;
2973
      public scanForTransferIn_call(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferIn_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 {
2974
        super(client, protocolFactory, transport, resultHandler, false);
2975
        this.inventoryItems = inventoryItems;
2976
        this.type = type;
2977
        this.transferLotId = transferLotId;
2978
      }
2979
 
2980
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2981
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransferIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2982
        scanForTransferIn_args args = new scanForTransferIn_args();
2983
        args.setInventoryItems(inventoryItems);
2984
        args.setType(type);
2985
        args.setTransferLotId(transferLotId);
2986
        args.write(prot);
2987
        prot.writeMessageEnd();
2988
      }
2989
 
2990
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2991
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2992
          throw new IllegalStateException("Method call not finished!");
2993
        }
2994
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2995
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2996
        (new Client(prot)).recv_scanForTransferIn();
2997
      }
2998
    }
2999
 
3000
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException {
3001
      checkReady();
3002
      scanForOursThirdPartyReceive_call method_call = new scanForOursThirdPartyReceive_call(inventoryItems, id, resultHandler, this, ___protocolFactory, ___transport);
3003
      this.___currentMethod = method_call;
3004
      ___manager.call(method_call);
3005
    }
3006
 
3007
    public static class scanForOursThirdPartyReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
3008
      private List<InventoryItem> inventoryItems;
3009
      private long id;
3010
      public scanForOursThirdPartyReceive_call(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<scanForOursThirdPartyReceive_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 {
3011
        super(client, protocolFactory, transport, resultHandler, false);
3012
        this.inventoryItems = inventoryItems;
3013
        this.id = id;
3014
      }
3015
 
3016
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3017
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursThirdPartyReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
3018
        scanForOursThirdPartyReceive_args args = new scanForOursThirdPartyReceive_args();
3019
        args.setInventoryItems(inventoryItems);
3020
        args.setId(id);
3021
        args.write(prot);
3022
        prot.writeMessageEnd();
3023
      }
3024
 
3025
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3026
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3027
          throw new IllegalStateException("Method call not finished!");
3028
        }
3029
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3030
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3031
        (new Client(prot)).recv_scanForOursThirdPartyReceive();
3032
      }
3033
    }
3034
 
7574 amar.kumar 3035
    public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException {
3036
      checkReady();
3037
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call method_call = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call(itemId, physicalWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3038
      this.___currentMethod = method_call;
3039
      ___manager.call(method_call);
3040
    }
3041
 
3042
    public static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
3043
      private long itemId;
3044
      private long physicalWarehouseId;
3045
      public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_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 {
3046
        super(client, protocolFactory, transport, resultHandler, false);
3047
        this.itemId = itemId;
3048
        this.physicalWarehouseId = physicalWarehouseId;
3049
      }
3050
 
3051
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3052
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
3053
        getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args args = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args();
3054
        args.setItemId(itemId);
3055
        args.setPhysicalWarehouseId(physicalWarehouseId);
3056
        args.write(prot);
3057
        prot.writeMessageEnd();
3058
      }
3059
 
3060
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3061
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3062
          throw new IllegalStateException("Method call not finished!");
3063
        }
3064
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3065
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3066
        return (new Client(prot)).recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse();
3067
      }
3068
    }
3069
 
7613 amar.kumar 3070
    public void getInTransitInventory(long originWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getInTransitInventory_call> resultHandler) throws org.apache.thrift.TException {
3071
      checkReady();
3072
      getInTransitInventory_call method_call = new getInTransitInventory_call(originWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3073
      this.___currentMethod = method_call;
3074
      ___manager.call(method_call);
3075
    }
3076
 
3077
    public static class getInTransitInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3078
      private long originWarehouseId;
3079
      public getInTransitInventory_call(long originWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getInTransitInventory_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 {
3080
        super(client, protocolFactory, transport, resultHandler, false);
3081
        this.originWarehouseId = originWarehouseId;
3082
      }
3083
 
3084
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3085
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInTransitInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3086
        getInTransitInventory_args args = new getInTransitInventory_args();
3087
        args.setOriginWarehouseId(originWarehouseId);
3088
        args.write(prot);
3089
        prot.writeMessageEnd();
3090
      }
3091
 
3092
      public List<InTransitInventory> getResult() throws org.apache.thrift.TException {
3093
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3094
          throw new IllegalStateException("Method call not finished!");
3095
        }
3096
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3097
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3098
        return (new Client(prot)).recv_getInTransitInventory();
3099
      }
3100
    }
3101
 
3430 rajveer 3102
  }
3103
 
3104
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3105
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3106
    public Processor(I iface) {
3107
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
3108
    }
3109
 
3110
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3111
      super(iface, getProcessMap(processMap));
3112
    }
3113
 
3114
    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 3115
      processMap.put("getInventoryItem", new getInventoryItem());
5361 mandeep.dh 3116
      processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
4496 mandeep.dh 3117
      processMap.put("scan", new scan());
3118
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
3119
      processMap.put("scanForOrder", new scanForOrder());
3120
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
4622 amit.gupta 3121
      processMap.put("getItemNumbers", new getItemNumbers());
5110 mandeep.dh 3122
      processMap.put("getItemIds", new getItemIds());
5185 mandeep.dh 3123
      processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
3124
      processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
5372 mandeep.dh 3125
      processMap.put("getPurchaseScans", new getPurchaseScans());
7210 amar.kumar 3126
      processMap.put("getPurchaseScansByGrnDate", new getPurchaseScansByGrnDate());
5496 mandeep.dh 3127
      processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
5620 mandeep.dh 3128
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
5711 mandeep.dh 3129
      processMap.put("getInventoryAge", new getInventoryAge());
6322 amar.kumar 3130
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
3131
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
6467 amar.kumar 3132
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
6548 amar.kumar 3133
      processMap.put("scanForLostItem", new scanForLostItem());
3134
      processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
6630 amar.kumar 3135
      processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
6762 amar.kumar 3136
      processMap.put("getHistoricSerializedInventoryByScans", new getHistoricSerializedInventoryByScans());
3137
      processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
3138
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
3139
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
6880 amar.kumar 3140
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
3141
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
7216 amar.kumar 3142
      processMap.put("getCompleteMovementSerializedInventoryByScans", new getCompleteMovementSerializedInventoryByScans());
3143
      processMap.put("getCompleteMovementNonSerializedInventoryByScans", new getCompleteMovementNonSerializedInventoryByScans());
7190 amar.kumar 3144
      processMap.put("scanfreebie", new scanfreebie());
7199 amar.kumar 3145
      processMap.put("reshipfreebie", new reshipfreebie());
7410 amar.kumar 3146
      processMap.put("isItemTransferAllowed", new isItemTransferAllowed());
3147
      processMap.put("createTransferLot", new createTransferLot());
3148
      processMap.put("getTransferLot", new getTransferLot());
3149
      processMap.put("markTransferLotAsReceived", new markTransferLotAsReceived());
3150
      processMap.put("getTransferLotsByDate", new getTransferLotsByDate());
3151
      processMap.put("getAllowedDestinationWarehousesForTransfer", new getAllowedDestinationWarehousesForTransfer());
3152
      processMap.put("getItemsInTransferLot", new getItemsInTransferLot());
3153
      processMap.put("markItemsAsReceivedForTransferLot", new markItemsAsReceivedForTransferLot());
3154
      processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
7453 amar.kumar 3155
      processMap.put("scanForTransferOut", new scanForTransferOut());
3156
      processMap.put("scanForTransferIn", new scanForTransferIn());
3157
      processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
7574 amar.kumar 3158
      processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
7613 amar.kumar 3159
      processMap.put("getInTransitInventory", new getInTransitInventory());
3430 rajveer 3160
      return processMap;
3161
    }
3162
 
4496 mandeep.dh 3163
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3164
      public getInventoryItem() {
3165
        super("getInventoryItem");
3430 rajveer 3166
      }
3167
 
4496 mandeep.dh 3168
      protected getInventoryItem_args getEmptyArgsInstance() {
3169
        return new getInventoryItem_args();
3430 rajveer 3170
      }
3171
 
4496 mandeep.dh 3172
      protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
3173
        getInventoryItem_result result = new getInventoryItem_result();
4541 mandeep.dh 3174
        try {
3175
          result.success = iface.getInventoryItem(args.serialNumber);
3176
        } catch (WarehouseServiceException wex) {
3177
          result.wex = wex;
3178
        }
3430 rajveer 3179
        return result;
2832 chandransh 3180
      }
3181
    }
3182
 
5361 mandeep.dh 3183
    private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
3184
      public getNonSeralizedInventoryItem() {
3185
        super("getNonSeralizedInventoryItem");
3430 rajveer 3186
      }
3187
 
5361 mandeep.dh 3188
      protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
3189
        return new getNonSeralizedInventoryItem_args();
3430 rajveer 3190
      }
3191
 
5361 mandeep.dh 3192
      protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
3193
        getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
3194
        try {
5530 mandeep.dh 3195
          result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
5361 mandeep.dh 3196
        } catch (WarehouseServiceException wex) {
3197
          result.wex = wex;
3198
        }
3430 rajveer 3199
        return result;
2820 chandransh 3200
      }
3201
    }
3202
 
4496 mandeep.dh 3203
    private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
3204
      public scan() {
3205
        super("scan");
3430 rajveer 3206
      }
3207
 
4496 mandeep.dh 3208
      protected scan_args getEmptyArgsInstance() {
3209
        return new scan_args();
3430 rajveer 3210
      }
3211
 
4496 mandeep.dh 3212
      protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
3213
        scan_result result = new scan_result();
3383 chandransh 3214
        try {
7410 amar.kumar 3215
          iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId);
3383 chandransh 3216
        } catch (WarehouseServiceException wex) {
3217
          result.wex = wex;
3218
        }
3430 rajveer 3219
        return result;
3383 chandransh 3220
      }
3221
    }
3222
 
4496 mandeep.dh 3223
    private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
3224
      public scanSerializedItemForOrder() {
3225
        super("scanSerializedItemForOrder");
3430 rajveer 3226
      }
3227
 
4496 mandeep.dh 3228
      protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
3229
        return new scanSerializedItemForOrder_args();
3430 rajveer 3230
      }
3231
 
4496 mandeep.dh 3232
      protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
3233
        scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
2820 chandransh 3234
        try {
5110 mandeep.dh 3235
          result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
2820 chandransh 3236
        } catch (WarehouseServiceException wex) {
3237
          result.wex = wex;
3238
        }
3430 rajveer 3239
        return result;
2820 chandransh 3240
      }
3241
    }
3242
 
4496 mandeep.dh 3243
    private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
3244
      public scanForOrder() {
3245
        super("scanForOrder");
3430 rajveer 3246
      }
3247
 
4496 mandeep.dh 3248
      protected scanForOrder_args getEmptyArgsInstance() {
3249
        return new scanForOrder_args();
3430 rajveer 3250
      }
3251
 
4496 mandeep.dh 3252
      protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
3253
        scanForOrder_result result = new scanForOrder_result();
2820 chandransh 3254
        try {
5361 mandeep.dh 3255
          result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
2820 chandransh 3256
        } catch (WarehouseServiceException wex) {
3257
          result.wex = wex;
3258
        }
3430 rajveer 3259
        return result;
2820 chandransh 3260
      }
3261
    }
3262
 
4496 mandeep.dh 3263
    private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
3264
      public createItemNumberMapping() {
3265
        super("createItemNumberMapping");
3266
      }
3267
 
3268
      protected createItemNumberMapping_args getEmptyArgsInstance() {
3269
        return new createItemNumberMapping_args();
3270
      }
3271
 
3272
      protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
3273
        createItemNumberMapping_result result = new createItemNumberMapping_result();
3274
        iface.createItemNumberMapping(args.itemNumber, args.itemId);
3275
        return result;
3276
      }
3277
    }
3278
 
4622 amit.gupta 3279
    private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
3280
      public getItemNumbers() {
3281
        super("getItemNumbers");
3282
      }
3283
 
3284
      protected getItemNumbers_args getEmptyArgsInstance() {
3285
        return new getItemNumbers_args();
3286
      }
3287
 
3288
      protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
3289
        getItemNumbers_result result = new getItemNumbers_result();
3290
        result.success = iface.getItemNumbers(args.itemId);
3291
        return result;
3292
      }
3293
    }
3294
 
5110 mandeep.dh 3295
    private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
3296
      public getItemIds() {
3297
        super("getItemIds");
3298
      }
3299
 
3300
      protected getItemIds_args getEmptyArgsInstance() {
3301
        return new getItemIds_args();
3302
      }
3303
 
3304
      protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
3305
        getItemIds_result result = new getItemIds_result();
3306
        result.success = iface.getItemIds(args.itemNumber);
3307
        return result;
3308
      }
3309
    }
3310
 
5185 mandeep.dh 3311
    private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
3312
      public getInventoryItemsFromLastScanType() {
3313
        super("getInventoryItemsFromLastScanType");
3314
      }
3315
 
3316
      protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
3317
        return new getInventoryItemsFromLastScanType_args();
3318
      }
3319
 
3320
      protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
3321
        getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
3322
        try {
3323
          result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
3324
        } catch (WarehouseServiceException wex) {
3325
          result.wex = wex;
3326
        }
3327
        return result;
3328
      }
3329
    }
3330
 
3331
    private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
3332
      public getInventoryItemFromId() {
3333
        super("getInventoryItemFromId");
3334
      }
3335
 
3336
      protected getInventoryItemFromId_args getEmptyArgsInstance() {
3337
        return new getInventoryItemFromId_args();
3338
      }
3339
 
3340
      protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
3341
        getInventoryItemFromId_result result = new getInventoryItemFromId_result();
3342
        try {
3343
          result.success = iface.getInventoryItemFromId(args.inventoryItemId);
3344
        } catch (WarehouseServiceException wex) {
3345
          result.wex = wex;
3346
        }
3347
        return result;
3348
      }
3349
    }
3350
 
5372 mandeep.dh 3351
    private static class getPurchaseScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScans_args> {
3352
      public getPurchaseScans() {
3353
        super("getPurchaseScans");
3354
      }
3355
 
3356
      protected getPurchaseScans_args getEmptyArgsInstance() {
3357
        return new getPurchaseScans_args();
3358
      }
3359
 
3360
      protected getPurchaseScans_result getResult(I iface, getPurchaseScans_args args) throws org.apache.thrift.TException {
3361
        getPurchaseScans_result result = new getPurchaseScans_result();
3362
        result.success = iface.getPurchaseScans(args.startDate, args.endDate);
3363
        return result;
3364
      }
3365
    }
3366
 
7210 amar.kumar 3367
    private static class getPurchaseScansByGrnDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScansByGrnDate_args> {
3368
      public getPurchaseScansByGrnDate() {
3369
        super("getPurchaseScansByGrnDate");
3370
      }
3371
 
3372
      protected getPurchaseScansByGrnDate_args getEmptyArgsInstance() {
3373
        return new getPurchaseScansByGrnDate_args();
3374
      }
3375
 
3376
      protected getPurchaseScansByGrnDate_result getResult(I iface, getPurchaseScansByGrnDate_args args) throws org.apache.thrift.TException {
3377
        getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
3378
        result.success = iface.getPurchaseScansByGrnDate(args.startDate, args.endDate);
3379
        return result;
3380
      }
3381
    }
3382
 
5496 mandeep.dh 3383
    private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
3384
      public fetchScansPerInvoiceNumber() {
3385
        super("fetchScansPerInvoiceNumber");
3386
      }
3387
 
3388
      protected fetchScansPerInvoiceNumber_args getEmptyArgsInstance() {
3389
        return new fetchScansPerInvoiceNumber_args();
3390
      }
3391
 
3392
      protected fetchScansPerInvoiceNumber_result getResult(I iface, fetchScansPerInvoiceNumber_args args) throws org.apache.thrift.TException {
3393
        fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
3394
        result.success = iface.fetchScansPerInvoiceNumber(args.date);
3395
        return result;
3396
      }
3397
    }
3398
 
5620 mandeep.dh 3399
    private static class getInventoryItemFromOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromOrder_args> {
3400
      public getInventoryItemFromOrder() {
3401
        super("getInventoryItemFromOrder");
3402
      }
3403
 
3404
      protected getInventoryItemFromOrder_args getEmptyArgsInstance() {
3405
        return new getInventoryItemFromOrder_args();
3406
      }
3407
 
3408
      protected getInventoryItemFromOrder_result getResult(I iface, getInventoryItemFromOrder_args args) throws org.apache.thrift.TException {
3409
        getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
3410
        try {
3411
          result.success = iface.getInventoryItemFromOrder(args.orderId);
3412
        } catch (WarehouseServiceException we) {
3413
          result.we = we;
3414
        }
3415
        return result;
3416
      }
3417
    }
3418
 
5711 mandeep.dh 3419
    private static class getInventoryAge<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryAge_args> {
3420
      public getInventoryAge() {
3421
        super("getInventoryAge");
3422
      }
3423
 
3424
      protected getInventoryAge_args getEmptyArgsInstance() {
3425
        return new getInventoryAge_args();
3426
      }
3427
 
3428
      protected getInventoryAge_result getResult(I iface, getInventoryAge_args args) throws org.apache.thrift.TException {
3429
        getInventoryAge_result result = new getInventoryAge_result();
3430
        result.success = iface.getInventoryAge();
3431
        return result;
3432
      }
3433
    }
3434
 
6322 amar.kumar 3435
    private static class getInventoryScansForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryScansForItem_args> {
3436
      public getInventoryScansForItem() {
3437
        super("getInventoryScansForItem");
3438
      }
3439
 
3440
      protected getInventoryScansForItem_args getEmptyArgsInstance() {
3441
        return new getInventoryScansForItem_args();
3442
      }
3443
 
3444
      protected getInventoryScansForItem_result getResult(I iface, getInventoryScansForItem_args args) throws org.apache.thrift.TException {
3445
        getInventoryScansForItem_result result = new getInventoryScansForItem_result();
3446
        result.success = iface.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate);
3447
        return result;
3448
      }
3449
    }
3450
 
3451
    private static class getScanRecordsForSerialNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanRecordsForSerialNumber_args> {
3452
      public getScanRecordsForSerialNumber() {
3453
        super("getScanRecordsForSerialNumber");
3454
      }
3455
 
3456
      protected getScanRecordsForSerialNumber_args getEmptyArgsInstance() {
3457
        return new getScanRecordsForSerialNumber_args();
3458
      }
3459
 
3460
      protected getScanRecordsForSerialNumber_result getResult(I iface, getScanRecordsForSerialNumber_args args) throws org.apache.thrift.TException {
3461
        getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
3462
        result.success = iface.getScanRecordsForSerialNumber(args.serialNumber);
3463
        return result;
3464
      }
3465
    }
3466
 
6467 amar.kumar 3467
    private static class scanForPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForPurchaseReturn_args> {
3468
      public scanForPurchaseReturn() {
3469
        super("scanForPurchaseReturn");
3470
      }
3471
 
3472
      protected scanForPurchaseReturn_args getEmptyArgsInstance() {
3473
        return new scanForPurchaseReturn_args();
3474
      }
3475
 
3476
      protected scanForPurchaseReturn_result getResult(I iface, scanForPurchaseReturn_args args) throws org.apache.thrift.TException {
3477
        scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
3478
        try {
3479
          iface.scanForPurchaseReturn(args.saleReturnItems, args.vendorId);
3480
        } catch (WarehouseServiceException ex) {
3481
          result.ex = ex;
3482
        }
3483
        return result;
3484
      }
3485
    }
3486
 
6548 amar.kumar 3487
    private static class scanForLostItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForLostItem_args> {
3488
      public scanForLostItem() {
3489
        super("scanForLostItem");
3490
      }
3491
 
3492
      protected scanForLostItem_args getEmptyArgsInstance() {
3493
        return new scanForLostItem_args();
3494
      }
3495
 
3496
      protected scanForLostItem_result getResult(I iface, scanForLostItem_args args) throws org.apache.thrift.TException {
3497
        scanForLostItem_result result = new scanForLostItem_result();
3498
        try {
3499
          iface.scanForLostItem(args.lostItems, args.vendorId);
3500
        } catch (WarehouseServiceException ex) {
3501
          result.ex = ex;
3502
        }
3503
        return result;
3504
      }
3505
    }
3506
 
3507
    private static class getCurrentSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentSerializedInventoryByScans_args> {
3508
      public getCurrentSerializedInventoryByScans() {
3509
        super("getCurrentSerializedInventoryByScans");
3510
      }
3511
 
3512
      protected getCurrentSerializedInventoryByScans_args getEmptyArgsInstance() {
3513
        return new getCurrentSerializedInventoryByScans_args();
3514
      }
3515
 
3516
      protected getCurrentSerializedInventoryByScans_result getResult(I iface, getCurrentSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3517
        getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
3518
        result.success = iface.getCurrentSerializedInventoryByScans();
3519
        return result;
3520
      }
3521
    }
3522
 
6630 amar.kumar 3523
    private static class getCurrentNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentNonSerializedInventoryByScans_args> {
3524
      public getCurrentNonSerializedInventoryByScans() {
3525
        super("getCurrentNonSerializedInventoryByScans");
3526
      }
3527
 
3528
      protected getCurrentNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3529
        return new getCurrentNonSerializedInventoryByScans_args();
3530
      }
3531
 
3532
      protected getCurrentNonSerializedInventoryByScans_result getResult(I iface, getCurrentNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3533
        getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
3534
        result.success = iface.getCurrentNonSerializedInventoryByScans();
3535
        return result;
3536
      }
3537
    }
3538
 
6762 amar.kumar 3539
    private static class getHistoricSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricSerializedInventoryByScans_args> {
3540
      public getHistoricSerializedInventoryByScans() {
3541
        super("getHistoricSerializedInventoryByScans");
3542
      }
3543
 
3544
      protected getHistoricSerializedInventoryByScans_args getEmptyArgsInstance() {
3545
        return new getHistoricSerializedInventoryByScans_args();
3546
      }
3547
 
3548
      protected getHistoricSerializedInventoryByScans_result getResult(I iface, getHistoricSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3549
        getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
3550
        result.success = iface.getHistoricSerializedInventoryByScans(args.date);
3551
        return result;
3552
      }
3553
    }
3554
 
3555
    private static class getHistoricNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricNonSerializedInventoryByScans_args> {
3556
      public getHistoricNonSerializedInventoryByScans() {
3557
        super("getHistoricNonSerializedInventoryByScans");
3558
      }
3559
 
3560
      protected getHistoricNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3561
        return new getHistoricNonSerializedInventoryByScans_args();
3562
      }
3563
 
3564
      protected getHistoricNonSerializedInventoryByScans_result getResult(I iface, getHistoricNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3565
        getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
3566
        result.success = iface.getHistoricNonSerializedInventoryByScans(args.date);
3567
        return result;
3568
      }
3569
    }
3570
 
3571
    private static class scanForOursExternalSale<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSale_args> {
3572
      public scanForOursExternalSale() {
3573
        super("scanForOursExternalSale");
3574
      }
3575
 
3576
      protected scanForOursExternalSale_args getEmptyArgsInstance() {
3577
        return new scanForOursExternalSale_args();
3578
      }
3579
 
3580
      protected scanForOursExternalSale_result getResult(I iface, scanForOursExternalSale_args args) throws org.apache.thrift.TException {
3581
        scanForOursExternalSale_result result = new scanForOursExternalSale_result();
3582
        try {
3583
          result.success = iface.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.orderId);
3584
        } catch (WarehouseServiceException ex) {
3585
          result.ex = ex;
3586
        }
3587
        return result;
3588
      }
3589
    }
3590
 
3591
    private static class scanForOursExternalSaleReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSaleReturn_args> {
3592
      public scanForOursExternalSaleReturn() {
3593
        super("scanForOursExternalSaleReturn");
3594
      }
3595
 
3596
      protected scanForOursExternalSaleReturn_args getEmptyArgsInstance() {
3597
        return new scanForOursExternalSaleReturn_args();
3598
      }
3599
 
3600
      protected scanForOursExternalSaleReturn_result getResult(I iface, scanForOursExternalSaleReturn_args args) throws org.apache.thrift.TException {
3601
        scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
7410 amar.kumar 3602
        try {
3603
          iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
3604
        } catch (WarehouseServiceException ex) {
3605
          result.ex = ex;
3606
        }
6762 amar.kumar 3607
        return result;
3608
      }
3609
    }
3610
 
6880 amar.kumar 3611
    private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
3612
      public getMovementNonSerializedInventoryByScans() {
3613
        super("getMovementNonSerializedInventoryByScans");
3614
      }
3615
 
3616
      protected getMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3617
        return new getMovementNonSerializedInventoryByScans_args();
3618
      }
3619
 
3620
      protected getMovementNonSerializedInventoryByScans_result getResult(I iface, getMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3621
        getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
3622
        result.success = iface.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
3623
        return result;
3624
      }
3625
    }
3626
 
3627
    private static class getMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementSerializedInventoryByScans_args> {
3628
      public getMovementSerializedInventoryByScans() {
3629
        super("getMovementSerializedInventoryByScans");
3630
      }
3631
 
3632
      protected getMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
3633
        return new getMovementSerializedInventoryByScans_args();
3634
      }
3635
 
3636
      protected getMovementSerializedInventoryByScans_result getResult(I iface, getMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3637
        getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
3638
        result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
3639
        return result;
3640
      }
3641
    }
3642
 
7216 amar.kumar 3643
    private static class getCompleteMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementSerializedInventoryByScans_args> {
3644
      public getCompleteMovementSerializedInventoryByScans() {
3645
        super("getCompleteMovementSerializedInventoryByScans");
3646
      }
3647
 
3648
      protected getCompleteMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
3649
        return new getCompleteMovementSerializedInventoryByScans_args();
3650
      }
3651
 
3652
      protected getCompleteMovementSerializedInventoryByScans_result getResult(I iface, getCompleteMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3653
        getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
3654
        result.success = iface.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate);
3655
        return result;
3656
      }
3657
    }
3658
 
3659
    private static class getCompleteMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementNonSerializedInventoryByScans_args> {
3660
      public getCompleteMovementNonSerializedInventoryByScans() {
3661
        super("getCompleteMovementNonSerializedInventoryByScans");
3662
      }
3663
 
3664
      protected getCompleteMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3665
        return new getCompleteMovementNonSerializedInventoryByScans_args();
3666
      }
3667
 
3668
      protected getCompleteMovementNonSerializedInventoryByScans_result getResult(I iface, getCompleteMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3669
        getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
3670
        result.success = iface.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
3671
        return result;
3672
      }
3673
    }
3674
 
7190 amar.kumar 3675
    private static class scanfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanfreebie_args> {
3676
      public scanfreebie() {
3677
        super("scanfreebie");
3678
      }
3679
 
3680
      protected scanfreebie_args getEmptyArgsInstance() {
3681
        return new scanfreebie_args();
3682
      }
3683
 
3684
      protected scanfreebie_result getResult(I iface, scanfreebie_args args) throws org.apache.thrift.TException {
3685
        scanfreebie_result result = new scanfreebie_result();
3686
        try {
3687
          result.success = iface.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType);
3688
        } catch (WarehouseServiceException wex) {
3689
          result.wex = wex;
3690
        }
3691
        return result;
3692
      }
3693
    }
3694
 
7199 amar.kumar 3695
    private static class reshipfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipfreebie_args> {
3696
      public reshipfreebie() {
3697
        super("reshipfreebie");
3698
      }
3699
 
3700
      protected reshipfreebie_args getEmptyArgsInstance() {
3701
        return new reshipfreebie_args();
3702
      }
3703
 
3704
      protected reshipfreebie_result getResult(I iface, reshipfreebie_args args) throws org.apache.thrift.TException {
3705
        reshipfreebie_result result = new reshipfreebie_result();
3706
        try {
3707
          iface.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType);
3708
        } catch (WarehouseServiceException wex) {
3709
          result.wex = wex;
3710
        }
3711
        return result;
3712
      }
3713
    }
3714
 
7410 amar.kumar 3715
    private static class isItemTransferAllowed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isItemTransferAllowed_args> {
3716
      public isItemTransferAllowed() {
3717
        super("isItemTransferAllowed");
3718
      }
3719
 
3720
      protected isItemTransferAllowed_args getEmptyArgsInstance() {
3721
        return new isItemTransferAllowed_args();
3722
      }
3723
 
3724
      protected isItemTransferAllowed_result getResult(I iface, isItemTransferAllowed_args args) throws org.apache.thrift.TException {
3725
        isItemTransferAllowed_result result = new isItemTransferAllowed_result();
3726
        result.success = iface.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId);
3727
        result.setSuccessIsSet(true);
3728
        return result;
3729
      }
3730
    }
3731
 
3732
    private static class createTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransferLot_args> {
3733
      public createTransferLot() {
3734
        super("createTransferLot");
3735
      }
3736
 
3737
      protected createTransferLot_args getEmptyArgsInstance() {
3738
        return new createTransferLot_args();
3739
      }
3740
 
3741
      protected createTransferLot_result getResult(I iface, createTransferLot_args args) throws org.apache.thrift.TException {
3742
        createTransferLot_result result = new createTransferLot_result();
3743
        try {
3744
          result.success = iface.createTransferLot(args.originWarehouseId, args.destWarehouseId);
3745
          result.setSuccessIsSet(true);
3746
        } catch (WarehouseServiceException wex) {
3747
          result.wex = wex;
3748
        }
3749
        return result;
3750
      }
3751
    }
3752
 
3753
    private static class getTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLot_args> {
3754
      public getTransferLot() {
3755
        super("getTransferLot");
3756
      }
3757
 
3758
      protected getTransferLot_args getEmptyArgsInstance() {
3759
        return new getTransferLot_args();
3760
      }
3761
 
3762
      protected getTransferLot_result getResult(I iface, getTransferLot_args args) throws org.apache.thrift.TException {
3763
        getTransferLot_result result = new getTransferLot_result();
3764
        try {
3765
          result.success = iface.getTransferLot(args.transferLotId);
3766
        } catch (WarehouseServiceException wex) {
3767
          result.wex = wex;
3768
        }
3769
        return result;
3770
      }
3771
    }
3772
 
3773
    private static class markTransferLotAsReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransferLotAsReceived_args> {
3774
      public markTransferLotAsReceived() {
3775
        super("markTransferLotAsReceived");
3776
      }
3777
 
3778
      protected markTransferLotAsReceived_args getEmptyArgsInstance() {
3779
        return new markTransferLotAsReceived_args();
3780
      }
3781
 
3782
      protected markTransferLotAsReceived_result getResult(I iface, markTransferLotAsReceived_args args) throws org.apache.thrift.TException {
3783
        markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
3784
        try {
3785
          iface.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber);
3786
        } catch (WarehouseServiceException wex) {
3787
          result.wex = wex;
3788
        }
3789
        return result;
3790
      }
3791
    }
3792
 
3793
    private static class getTransferLotsByDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLotsByDate_args> {
3794
      public getTransferLotsByDate() {
3795
        super("getTransferLotsByDate");
3796
      }
3797
 
3798
      protected getTransferLotsByDate_args getEmptyArgsInstance() {
3799
        return new getTransferLotsByDate_args();
3800
      }
3801
 
3802
      protected getTransferLotsByDate_result getResult(I iface, getTransferLotsByDate_args args) throws org.apache.thrift.TException {
3803
        getTransferLotsByDate_result result = new getTransferLotsByDate_result();
3804
        try {
3805
          result.success = iface.getTransferLotsByDate(args.fromDate, args.toDate);
3806
        } catch (WarehouseServiceException wex) {
3807
          result.wex = wex;
3808
        }
3809
        return result;
3810
      }
3811
    }
3812
 
3813
    private static class getAllowedDestinationWarehousesForTransfer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllowedDestinationWarehousesForTransfer_args> {
3814
      public getAllowedDestinationWarehousesForTransfer() {
3815
        super("getAllowedDestinationWarehousesForTransfer");
3816
      }
3817
 
3818
      protected getAllowedDestinationWarehousesForTransfer_args getEmptyArgsInstance() {
3819
        return new getAllowedDestinationWarehousesForTransfer_args();
3820
      }
3821
 
3822
      protected getAllowedDestinationWarehousesForTransfer_result getResult(I iface, getAllowedDestinationWarehousesForTransfer_args args) throws org.apache.thrift.TException {
3823
        getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
3824
        result.success = iface.getAllowedDestinationWarehousesForTransfer(args.warehouseId);
3825
        return result;
3826
      }
3827
    }
3828
 
3829
    private static class getItemsInTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsInTransferLot_args> {
3830
      public getItemsInTransferLot() {
3831
        super("getItemsInTransferLot");
3832
      }
3833
 
3834
      protected getItemsInTransferLot_args getEmptyArgsInstance() {
3835
        return new getItemsInTransferLot_args();
3836
      }
3837
 
3838
      protected getItemsInTransferLot_result getResult(I iface, getItemsInTransferLot_args args) throws org.apache.thrift.TException {
3839
        getItemsInTransferLot_result result = new getItemsInTransferLot_result();
3840
        result.success = iface.getItemsInTransferLot(args.transferLotId);
3841
        return result;
3842
      }
3843
    }
3844
 
3845
    private static class markItemsAsReceivedForTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markItemsAsReceivedForTransferLot_args> {
3846
      public markItemsAsReceivedForTransferLot() {
3847
        super("markItemsAsReceivedForTransferLot");
3848
      }
3849
 
3850
      protected markItemsAsReceivedForTransferLot_args getEmptyArgsInstance() {
3851
        return new markItemsAsReceivedForTransferLot_args();
3852
      }
3853
 
3854
      protected markItemsAsReceivedForTransferLot_result getResult(I iface, markItemsAsReceivedForTransferLot_args args) throws org.apache.thrift.TException {
3855
        markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
3856
        try {
3857
          iface.markItemsAsReceivedForTransferLot(args.id);
3858
        } catch (WarehouseServiceException wex) {
3859
          result.wex = wex;
3860
        }
3861
        return result;
3862
      }
3863
    }
3864
 
3865
    private static class updateTransferLotAfterItemReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTransferLotAfterItemReceive_args> {
3866
      public updateTransferLotAfterItemReceive() {
3867
        super("updateTransferLotAfterItemReceive");
3868
      }
3869
 
3870
      protected updateTransferLotAfterItemReceive_args getEmptyArgsInstance() {
3871
        return new updateTransferLotAfterItemReceive_args();
3872
      }
3873
 
3874
      protected updateTransferLotAfterItemReceive_result getResult(I iface, updateTransferLotAfterItemReceive_args args) throws org.apache.thrift.TException {
3875
        updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
3876
        try {
3877
          result.success = iface.updateTransferLotAfterItemReceive(args.id);
3878
        } catch (WarehouseServiceException wex) {
3879
          result.wex = wex;
3880
        }
3881
        return result;
3882
      }
3883
    }
3884
 
7453 amar.kumar 3885
    private static class scanForTransferOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransferOut_args> {
3886
      public scanForTransferOut() {
3887
        super("scanForTransferOut");
7410 amar.kumar 3888
      }
3889
 
7453 amar.kumar 3890
      protected scanForTransferOut_args getEmptyArgsInstance() {
3891
        return new scanForTransferOut_args();
7410 amar.kumar 3892
      }
3893
 
7453 amar.kumar 3894
      protected scanForTransferOut_result getResult(I iface, scanForTransferOut_args args) throws org.apache.thrift.TException {
3895
        scanForTransferOut_result result = new scanForTransferOut_result();
7410 amar.kumar 3896
        try {
7453 amar.kumar 3897
          iface.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId);
7410 amar.kumar 3898
        } catch (WarehouseServiceException wex) {
3899
          result.wex = wex;
3900
        }
3901
        return result;
3902
      }
3903
    }
3904
 
7453 amar.kumar 3905
    private static class scanForTransferIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransferIn_args> {
3906
      public scanForTransferIn() {
3907
        super("scanForTransferIn");
3908
      }
3909
 
3910
      protected scanForTransferIn_args getEmptyArgsInstance() {
3911
        return new scanForTransferIn_args();
3912
      }
3913
 
3914
      protected scanForTransferIn_result getResult(I iface, scanForTransferIn_args args) throws org.apache.thrift.TException {
3915
        scanForTransferIn_result result = new scanForTransferIn_result();
3916
        try {
3917
          iface.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId);
3918
        } catch (WarehouseServiceException wex) {
3919
          result.wex = wex;
3920
        }
3921
        return result;
3922
      }
3923
    }
3924
 
3925
    private static class scanForOursThirdPartyReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursThirdPartyReceive_args> {
3926
      public scanForOursThirdPartyReceive() {
3927
        super("scanForOursThirdPartyReceive");
3928
      }
3929
 
3930
      protected scanForOursThirdPartyReceive_args getEmptyArgsInstance() {
3931
        return new scanForOursThirdPartyReceive_args();
3932
      }
3933
 
3934
      protected scanForOursThirdPartyReceive_result getResult(I iface, scanForOursThirdPartyReceive_args args) throws org.apache.thrift.TException {
3935
        scanForOursThirdPartyReceive_result result = new scanForOursThirdPartyReceive_result();
3936
        try {
3937
          iface.scanForOursThirdPartyReceive(args.inventoryItems, args.id);
3938
        } catch (WarehouseServiceException wex) {
3939
          result.wex = wex;
3940
        }
3941
        return result;
3942
      }
3943
    }
3944
 
7574 amar.kumar 3945
    private static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args> {
3946
      public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse() {
3947
        super("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse");
3948
      }
3949
 
3950
      protected getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args getEmptyArgsInstance() {
3951
        return new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args();
3952
      }
3953
 
3954
      protected getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result getResult(I iface, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args args) throws org.apache.thrift.TException {
3955
        getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result result = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result();
3956
        try {
3957
          result.success = iface.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId);
3958
          result.setSuccessIsSet(true);
3959
        } catch (WarehouseServiceException wex) {
3960
          result.wex = wex;
3961
        }
3962
        return result;
3963
      }
3964
    }
3965
 
7613 amar.kumar 3966
    private static class getInTransitInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInTransitInventory_args> {
3967
      public getInTransitInventory() {
3968
        super("getInTransitInventory");
3969
      }
3970
 
3971
      protected getInTransitInventory_args getEmptyArgsInstance() {
3972
        return new getInTransitInventory_args();
3973
      }
3974
 
3975
      protected getInTransitInventory_result getResult(I iface, getInTransitInventory_args args) throws org.apache.thrift.TException {
3976
        getInTransitInventory_result result = new getInTransitInventory_result();
3977
        result.success = iface.getInTransitInventory(args.originWarehouseId);
3978
        return result;
3979
      }
3980
    }
3981
 
2820 chandransh 3982
  }
3983
 
4496 mandeep.dh 3984
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
3985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2832 chandransh 3986
 
4496 mandeep.dh 3987
    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 3988
 
4496 mandeep.dh 3989
    private String serialNumber; // required
2832 chandransh 3990
 
3991
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3992
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4496 mandeep.dh 3993
      SERIAL_NUMBER((short)1, "serialNumber");
2832 chandransh 3994
 
3995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3996
 
3997
      static {
3998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3999
          byName.put(field.getFieldName(), field);
4000
        }
4001
      }
4002
 
4003
      /**
4004
       * Find the _Fields constant that matches fieldId, or null if its not found.
4005
       */
4006
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4007
        switch(fieldId) {
4496 mandeep.dh 4008
          case 1: // SERIAL_NUMBER
4009
            return SERIAL_NUMBER;
3430 rajveer 4010
          default:
4011
            return null;
4012
        }
2832 chandransh 4013
      }
4014
 
4015
      /**
4016
       * Find the _Fields constant that matches fieldId, throwing an exception
4017
       * if it is not found.
4018
       */
4019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4020
        _Fields fields = findByThriftId(fieldId);
4021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4022
        return fields;
4023
      }
4024
 
4025
      /**
4026
       * Find the _Fields constant that matches name, or null if its not found.
4027
       */
4028
      public static _Fields findByName(String name) {
4029
        return byName.get(name);
4030
      }
4031
 
4032
      private final short _thriftId;
4033
      private final String _fieldName;
4034
 
4035
      _Fields(short thriftId, String fieldName) {
4036
        _thriftId = thriftId;
4037
        _fieldName = fieldName;
4038
      }
4039
 
4040
      public short getThriftFieldId() {
4041
        return _thriftId;
4042
      }
4043
 
4044
      public String getFieldName() {
4045
        return _fieldName;
4046
      }
4047
    }
4048
 
4049
    // isset id assignments
4050
 
3430 rajveer 4051
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2832 chandransh 4052
    static {
3430 rajveer 4053
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4496 mandeep.dh 4054
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4055
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 4056
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 4057
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
2832 chandransh 4058
    }
4059
 
4496 mandeep.dh 4060
    public getInventoryItem_args() {
2832 chandransh 4061
    }
4062
 
4496 mandeep.dh 4063
    public getInventoryItem_args(
4064
      String serialNumber)
2832 chandransh 4065
    {
4066
      this();
4496 mandeep.dh 4067
      this.serialNumber = serialNumber;
2832 chandransh 4068
    }
4069
 
4070
    /**
4071
     * Performs a deep copy on <i>other</i>.
4072
     */
4496 mandeep.dh 4073
    public getInventoryItem_args(getInventoryItem_args other) {
4074
      if (other.isSetSerialNumber()) {
4075
        this.serialNumber = other.serialNumber;
4076
      }
2832 chandransh 4077
    }
4078
 
4496 mandeep.dh 4079
    public getInventoryItem_args deepCopy() {
4080
      return new getInventoryItem_args(this);
2832 chandransh 4081
    }
4082
 
3430 rajveer 4083
    @Override
4084
    public void clear() {
4496 mandeep.dh 4085
      this.serialNumber = null;
2832 chandransh 4086
    }
4087
 
4496 mandeep.dh 4088
    public String getSerialNumber() {
4089
      return this.serialNumber;
2832 chandransh 4090
    }
4091
 
4496 mandeep.dh 4092
    public void setSerialNumber(String serialNumber) {
4093
      this.serialNumber = serialNumber;
2832 chandransh 4094
    }
4095
 
4496 mandeep.dh 4096
    public void unsetSerialNumber() {
4097
      this.serialNumber = null;
2832 chandransh 4098
    }
4099
 
4496 mandeep.dh 4100
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
4101
    public boolean isSetSerialNumber() {
4102
      return this.serialNumber != null;
2832 chandransh 4103
    }
4104
 
4496 mandeep.dh 4105
    public void setSerialNumberIsSet(boolean value) {
4106
      if (!value) {
4107
        this.serialNumber = null;
4108
      }
2832 chandransh 4109
    }
4110
 
4111
    public void setFieldValue(_Fields field, Object value) {
4112
      switch (field) {
4496 mandeep.dh 4113
      case SERIAL_NUMBER:
2832 chandransh 4114
        if (value == null) {
4496 mandeep.dh 4115
          unsetSerialNumber();
2832 chandransh 4116
        } else {
4496 mandeep.dh 4117
          setSerialNumber((String)value);
2832 chandransh 4118
        }
4119
        break;
4120
 
4121
      }
4122
    }
4123
 
4124
    public Object getFieldValue(_Fields field) {
4125
      switch (field) {
4496 mandeep.dh 4126
      case SERIAL_NUMBER:
4127
        return getSerialNumber();
2832 chandransh 4128
 
4129
      }
4130
      throw new IllegalStateException();
4131
    }
4132
 
3430 rajveer 4133
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4134
    public boolean isSet(_Fields field) {
4135
      if (field == null) {
4136
        throw new IllegalArgumentException();
4137
      }
2832 chandransh 4138
 
4139
      switch (field) {
4496 mandeep.dh 4140
      case SERIAL_NUMBER:
4141
        return isSetSerialNumber();
2832 chandransh 4142
      }
4143
      throw new IllegalStateException();
4144
    }
4145
 
4146
    @Override
4147
    public boolean equals(Object that) {
4148
      if (that == null)
4149
        return false;
4496 mandeep.dh 4150
      if (that instanceof getInventoryItem_args)
4151
        return this.equals((getInventoryItem_args)that);
2832 chandransh 4152
      return false;
4153
    }
4154
 
4496 mandeep.dh 4155
    public boolean equals(getInventoryItem_args that) {
2832 chandransh 4156
      if (that == null)
4157
        return false;
4158
 
4496 mandeep.dh 4159
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
4160
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
4161
      if (this_present_serialNumber || that_present_serialNumber) {
4162
        if (!(this_present_serialNumber && that_present_serialNumber))
2832 chandransh 4163
          return false;
4496 mandeep.dh 4164
        if (!this.serialNumber.equals(that.serialNumber))
2832 chandransh 4165
          return false;
4166
      }
4167
 
4168
      return true;
4169
    }
4170
 
4171
    @Override
4172
    public int hashCode() {
4173
      return 0;
4174
    }
4175
 
4496 mandeep.dh 4176
    public int compareTo(getInventoryItem_args other) {
2832 chandransh 4177
      if (!getClass().equals(other.getClass())) {
4178
        return getClass().getName().compareTo(other.getClass().getName());
4179
      }
4180
 
4181
      int lastComparison = 0;
4496 mandeep.dh 4182
      getInventoryItem_args typedOther = (getInventoryItem_args)other;
2832 chandransh 4183
 
4496 mandeep.dh 4184
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
2832 chandransh 4185
      if (lastComparison != 0) {
4186
        return lastComparison;
4187
      }
4496 mandeep.dh 4188
      if (isSetSerialNumber()) {
4189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
3430 rajveer 4190
        if (lastComparison != 0) {
4191
          return lastComparison;
4192
        }
2832 chandransh 4193
      }
4194
      return 0;
4195
    }
4196
 
3430 rajveer 4197
    public _Fields fieldForId(int fieldId) {
4198
      return _Fields.findByThriftId(fieldId);
4199
    }
4200
 
4201
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4202
      org.apache.thrift.protocol.TField field;
2832 chandransh 4203
      iprot.readStructBegin();
4204
      while (true)
4205
      {
4206
        field = iprot.readFieldBegin();
3430 rajveer 4207
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2832 chandransh 4208
          break;
4209
        }
3430 rajveer 4210
        switch (field.id) {
4496 mandeep.dh 4211
          case 1: // SERIAL_NUMBER
4212
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4213
              this.serialNumber = iprot.readString();
3430 rajveer 4214
            } else { 
4215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4216
            }
4217
            break;
4218
          default:
4219
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2832 chandransh 4220
        }
3430 rajveer 4221
        iprot.readFieldEnd();
2832 chandransh 4222
      }
4223
      iprot.readStructEnd();
4224
      validate();
4225
    }
4226
 
3430 rajveer 4227
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2832 chandransh 4228
      validate();
4229
 
4230
      oprot.writeStructBegin(STRUCT_DESC);
4496 mandeep.dh 4231
      if (this.serialNumber != null) {
4232
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
4233
        oprot.writeString(this.serialNumber);
4234
        oprot.writeFieldEnd();
4235
      }
2832 chandransh 4236
      oprot.writeFieldStop();
4237
      oprot.writeStructEnd();
4238
    }
4239
 
4240
    @Override
4241
    public String toString() {
4496 mandeep.dh 4242
      StringBuilder sb = new StringBuilder("getInventoryItem_args(");
2832 chandransh 4243
      boolean first = true;
4244
 
4496 mandeep.dh 4245
      sb.append("serialNumber:");
4246
      if (this.serialNumber == null) {
4247
        sb.append("null");
4248
      } else {
4249
        sb.append(this.serialNumber);
4250
      }
2832 chandransh 4251
      first = false;
4252
      sb.append(")");
4253
      return sb.toString();
4254
    }
4255
 
3430 rajveer 4256
    public void validate() throws org.apache.thrift.TException {
2832 chandransh 4257
      // check for required fields
4258
    }
4259
 
3430 rajveer 4260
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4261
      try {
4262
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4263
      } catch (org.apache.thrift.TException te) {
4264
        throw new java.io.IOException(te);
4265
      }
4266
    }
4267
 
4268
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4269
      try {
4270
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4271
      } catch (org.apache.thrift.TException te) {
4272
        throw new java.io.IOException(te);
4273
      }
4274
    }
4275
 
2832 chandransh 4276
  }
4277
 
4496 mandeep.dh 4278
  public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
4279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
2832 chandransh 4280
 
3430 rajveer 4281
    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 4282
    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 4283
 
4496 mandeep.dh 4284
    private InventoryItem success; // required
4541 mandeep.dh 4285
    private WarehouseServiceException wex; // required
2832 chandransh 4286
 
4287
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4288
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4541 mandeep.dh 4289
      SUCCESS((short)0, "success"),
4290
      WEX((short)1, "wex");
2832 chandransh 4291
 
4292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4293
 
4294
      static {
4295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4296
          byName.put(field.getFieldName(), field);
4297
        }
4298
      }
4299
 
4300
      /**
4301
       * Find the _Fields constant that matches fieldId, or null if its not found.
4302
       */
4303
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4304
        switch(fieldId) {
4305
          case 0: // SUCCESS
4306
            return SUCCESS;
4541 mandeep.dh 4307
          case 1: // WEX
4308
            return WEX;
3430 rajveer 4309
          default:
4310
            return null;
4311
        }
2832 chandransh 4312
      }
4313
 
4314
      /**
4315
       * Find the _Fields constant that matches fieldId, throwing an exception
4316
       * if it is not found.
4317
       */
4318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4319
        _Fields fields = findByThriftId(fieldId);
4320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4321
        return fields;
4322
      }
4323
 
4324
      /**
4325
       * Find the _Fields constant that matches name, or null if its not found.
4326
       */
4327
      public static _Fields findByName(String name) {
4328
        return byName.get(name);
4329
      }
4330
 
4331
      private final short _thriftId;
4332
      private final String _fieldName;
4333
 
4334
      _Fields(short thriftId, String fieldName) {
4335
        _thriftId = thriftId;
4336
        _fieldName = fieldName;
4337
      }
4338
 
4339
      public short getThriftFieldId() {
4340
        return _thriftId;
4341
      }
4342
 
4343
      public String getFieldName() {
4344
        return _fieldName;
4345
      }
4346
    }
4347
 
4348
    // isset id assignments
4349
 
3430 rajveer 4350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2832 chandransh 4351
    static {
3430 rajveer 4352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4353
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 4354
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
4541 mandeep.dh 4355
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3430 rajveer 4357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 4358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
2832 chandransh 4359
    }
4360
 
4496 mandeep.dh 4361
    public getInventoryItem_result() {
2832 chandransh 4362
    }
4363
 
4496 mandeep.dh 4364
    public getInventoryItem_result(
4541 mandeep.dh 4365
      InventoryItem success,
4366
      WarehouseServiceException wex)
2832 chandransh 4367
    {
4368
      this();
4369
      this.success = success;
4541 mandeep.dh 4370
      this.wex = wex;
2832 chandransh 4371
    }
4372
 
4373
    /**
4374
     * Performs a deep copy on <i>other</i>.
4375
     */
4496 mandeep.dh 4376
    public getInventoryItem_result(getInventoryItem_result other) {
2832 chandransh 4377
      if (other.isSetSuccess()) {
4496 mandeep.dh 4378
        this.success = new InventoryItem(other.success);
2832 chandransh 4379
      }
4541 mandeep.dh 4380
      if (other.isSetWex()) {
4381
        this.wex = new WarehouseServiceException(other.wex);
4382
      }
2832 chandransh 4383
    }
4384
 
4496 mandeep.dh 4385
    public getInventoryItem_result deepCopy() {
4386
      return new getInventoryItem_result(this);
2832 chandransh 4387
    }
4388
 
3430 rajveer 4389
    @Override
4390
    public void clear() {
4391
      this.success = null;
4541 mandeep.dh 4392
      this.wex = null;
2832 chandransh 4393
    }
4394
 
4496 mandeep.dh 4395
    public InventoryItem getSuccess() {
2832 chandransh 4396
      return this.success;
4397
    }
4398
 
4496 mandeep.dh 4399
    public void setSuccess(InventoryItem success) {
2832 chandransh 4400
      this.success = success;
4401
    }
4402
 
4403
    public void unsetSuccess() {
4404
      this.success = null;
4405
    }
4406
 
3430 rajveer 4407
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2832 chandransh 4408
    public boolean isSetSuccess() {
4409
      return this.success != null;
4410
    }
4411
 
4412
    public void setSuccessIsSet(boolean value) {
4413
      if (!value) {
4414
        this.success = null;
4415
      }
4416
    }
4417
 
4541 mandeep.dh 4418
    public WarehouseServiceException getWex() {
4419
      return this.wex;
4420
    }
4421
 
4422
    public void setWex(WarehouseServiceException wex) {
4423
      this.wex = wex;
4424
    }
4425
 
4426
    public void unsetWex() {
4427
      this.wex = null;
4428
    }
4429
 
4430
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
4431
    public boolean isSetWex() {
4432
      return this.wex != null;
4433
    }
4434
 
4435
    public void setWexIsSet(boolean value) {
4436
      if (!value) {
4437
        this.wex = null;
4438
      }
4439
    }
4440
 
2832 chandransh 4441
    public void setFieldValue(_Fields field, Object value) {
4442
      switch (field) {
4443
      case SUCCESS:
4444
        if (value == null) {
4445
          unsetSuccess();
4446
        } else {
4496 mandeep.dh 4447
          setSuccess((InventoryItem)value);
2832 chandransh 4448
        }
4449
        break;
4450
 
4541 mandeep.dh 4451
      case WEX:
4452
        if (value == null) {
4453
          unsetWex();
4454
        } else {
4455
          setWex((WarehouseServiceException)value);
4456
        }
4457
        break;
4458
 
2832 chandransh 4459
      }
4460
    }
4461
 
4462
    public Object getFieldValue(_Fields field) {
4463
      switch (field) {
4464
      case SUCCESS:
4465
        return getSuccess();
4466
 
4541 mandeep.dh 4467
      case WEX:
4468
        return getWex();
4469
 
2832 chandransh 4470
      }
4471
      throw new IllegalStateException();
4472
    }
4473
 
3430 rajveer 4474
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4475
    public boolean isSet(_Fields field) {
4476
      if (field == null) {
4477
        throw new IllegalArgumentException();
4478
      }
2832 chandransh 4479
 
4480
      switch (field) {
4481
      case SUCCESS:
4482
        return isSetSuccess();
4541 mandeep.dh 4483
      case WEX:
4484
        return isSetWex();
2832 chandransh 4485
      }
4486
      throw new IllegalStateException();
4487
    }
4488
 
4489
    @Override
4490
    public boolean equals(Object that) {
4491
      if (that == null)
4492
        return false;
4496 mandeep.dh 4493
      if (that instanceof getInventoryItem_result)
4494
        return this.equals((getInventoryItem_result)that);
2832 chandransh 4495
      return false;
4496
    }
4497
 
4496 mandeep.dh 4498
    public boolean equals(getInventoryItem_result that) {
2832 chandransh 4499
      if (that == null)
4500
        return false;
4501
 
4502
      boolean this_present_success = true && this.isSetSuccess();
4503
      boolean that_present_success = true && that.isSetSuccess();
4504
      if (this_present_success || that_present_success) {
4505
        if (!(this_present_success && that_present_success))
4506
          return false;
4507
        if (!this.success.equals(that.success))
4508
          return false;
4509
      }
4510
 
4541 mandeep.dh 4511
      boolean this_present_wex = true && this.isSetWex();
4512
      boolean that_present_wex = true && that.isSetWex();
4513
      if (this_present_wex || that_present_wex) {
4514
        if (!(this_present_wex && that_present_wex))
4515
          return false;
4516
        if (!this.wex.equals(that.wex))
4517
          return false;
4518
      }
4519
 
2832 chandransh 4520
      return true;
4521
    }
4522
 
4523
    @Override
4524
    public int hashCode() {
4525
      return 0;
4526
    }
4527
 
4496 mandeep.dh 4528
    public int compareTo(getInventoryItem_result other) {
2832 chandransh 4529
      if (!getClass().equals(other.getClass())) {
4530
        return getClass().getName().compareTo(other.getClass().getName());
4531
      }
4532
 
4533
      int lastComparison = 0;
4496 mandeep.dh 4534
      getInventoryItem_result typedOther = (getInventoryItem_result)other;
2832 chandransh 4535
 
3430 rajveer 4536
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2832 chandransh 4537
      if (lastComparison != 0) {
4538
        return lastComparison;
4539
      }
3430 rajveer 4540
      if (isSetSuccess()) {
4541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4542
        if (lastComparison != 0) {
4543
          return lastComparison;
4544
        }
2832 chandransh 4545
      }
4541 mandeep.dh 4546
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
4547
      if (lastComparison != 0) {
4548
        return lastComparison;
4549
      }
4550
      if (isSetWex()) {
4551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
4552
        if (lastComparison != 0) {
4553
          return lastComparison;
4554
        }
4555
      }
2832 chandransh 4556
      return 0;
4557
    }
4558
 
3430 rajveer 4559
    public _Fields fieldForId(int fieldId) {
4560
      return _Fields.findByThriftId(fieldId);
4561
    }
4562
 
4563
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4564
      org.apache.thrift.protocol.TField field;
2832 chandransh 4565
      iprot.readStructBegin();
4566
      while (true)
4567
      {
4568
        field = iprot.readFieldBegin();
3430 rajveer 4569
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2832 chandransh 4570
          break;
4571
        }
3430 rajveer 4572
        switch (field.id) {
4573
          case 0: // SUCCESS
4574
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4496 mandeep.dh 4575
              this.success = new InventoryItem();
3430 rajveer 4576
              this.success.read(iprot);
4577
            } else { 
4578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4579
            }
4580
            break;
4541 mandeep.dh 4581
          case 1: // WEX
4582
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4583
              this.wex = new WarehouseServiceException();
4584
              this.wex.read(iprot);
4585
            } else { 
4586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4587
            }
4588
            break;
3430 rajveer 4589
          default:
4590
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2832 chandransh 4591
        }
3430 rajveer 4592
        iprot.readFieldEnd();
2832 chandransh 4593
      }
4594
      iprot.readStructEnd();
4595
      validate();
4596
    }
4597
 
3430 rajveer 4598
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2832 chandransh 4599
      oprot.writeStructBegin(STRUCT_DESC);
4600
 
4601
      if (this.isSetSuccess()) {
4602
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4603
        this.success.write(oprot);
4604
        oprot.writeFieldEnd();
4541 mandeep.dh 4605
      } else if (this.isSetWex()) {
4606
        oprot.writeFieldBegin(WEX_FIELD_DESC);
4607
        this.wex.write(oprot);
4608
        oprot.writeFieldEnd();
2832 chandransh 4609
      }
4610
      oprot.writeFieldStop();
4611
      oprot.writeStructEnd();
4612
    }
4613
 
4614
    @Override
4615
    public String toString() {
4496 mandeep.dh 4616
      StringBuilder sb = new StringBuilder("getInventoryItem_result(");
2832 chandransh 4617
      boolean first = true;
4618
 
4619
      sb.append("success:");
4620
      if (this.success == null) {
4621
        sb.append("null");
4622
      } else {
4623
        sb.append(this.success);
4624
      }
4625
      first = false;
4541 mandeep.dh 4626
      if (!first) sb.append(", ");
4627
      sb.append("wex:");
4628
      if (this.wex == null) {
4629
        sb.append("null");
4630
      } else {
4631
        sb.append(this.wex);
4632
      }
4633
      first = false;
2832 chandransh 4634
      sb.append(")");
4635
      return sb.toString();
4636
    }
4637
 
3430 rajveer 4638
    public void validate() throws org.apache.thrift.TException {
2832 chandransh 4639
      // check for required fields
4640
    }
4641
 
3430 rajveer 4642
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4643
      try {
4644
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4645
      } catch (org.apache.thrift.TException te) {
4646
        throw new java.io.IOException(te);
4647
      }
4648
    }
4649
 
4650
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4651
      try {
4652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4653
      } catch (org.apache.thrift.TException te) {
4654
        throw new java.io.IOException(te);
4655
      }
4656
    }
4657
 
2832 chandransh 4658
  }
4659
 
5361 mandeep.dh 4660
  public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
2820 chandransh 4662
 
5530 mandeep.dh 4663
    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);
4664
    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);
4665
    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 4666
 
5530 mandeep.dh 4667
    private String itemNumber; // required
4496 mandeep.dh 4668
    private long itemId; // required
5530 mandeep.dh 4669
    private long fulfilmentWarehouseId; // required
2820 chandransh 4670
 
4671
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4672
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5530 mandeep.dh 4673
      ITEM_NUMBER((short)1, "itemNumber"),
4674
      ITEM_ID((short)2, "itemId"),
4675
      FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
2820 chandransh 4676
 
4677
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4678
 
4679
      static {
4680
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4681
          byName.put(field.getFieldName(), field);
4682
        }
4683
      }
4684
 
4685
      /**
4686
       * Find the _Fields constant that matches fieldId, or null if its not found.
4687
       */
4688
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4689
        switch(fieldId) {
5530 mandeep.dh 4690
          case 1: // ITEM_NUMBER
4691
            return ITEM_NUMBER;
4692
          case 2: // ITEM_ID
4496 mandeep.dh 4693
            return ITEM_ID;
5530 mandeep.dh 4694
          case 3: // FULFILMENT_WAREHOUSE_ID
4695
            return FULFILMENT_WAREHOUSE_ID;
3430 rajveer 4696
          default:
4697
            return null;
4698
        }
2820 chandransh 4699
      }
4700
 
4701
      /**
4702
       * Find the _Fields constant that matches fieldId, throwing an exception
4703
       * if it is not found.
4704
       */
4705
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4706
        _Fields fields = findByThriftId(fieldId);
4707
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4708
        return fields;
4709
      }
4710
 
4711
      /**
4712
       * Find the _Fields constant that matches name, or null if its not found.
4713
       */
4714
      public static _Fields findByName(String name) {
4715
        return byName.get(name);
4716
      }
4717
 
4718
      private final short _thriftId;
4719
      private final String _fieldName;
4720
 
4721
      _Fields(short thriftId, String fieldName) {
4722
        _thriftId = thriftId;
4723
        _fieldName = fieldName;
4724
      }
4725
 
4726
      public short getThriftFieldId() {
4727
        return _thriftId;
4728
      }
4729
 
4730
      public String getFieldName() {
4731
        return _fieldName;
4732
      }
4733
    }
4734
 
4735
    // isset id assignments
4496 mandeep.dh 4736
    private static final int __ITEMID_ISSET_ID = 0;
5530 mandeep.dh 4737
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
5361 mandeep.dh 4738
    private BitSet __isset_bit_vector = new BitSet(2);
2820 chandransh 4739
 
3430 rajveer 4740
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 4741
    static {
3430 rajveer 4742
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5530 mandeep.dh 4743
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4744
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4496 mandeep.dh 4745
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 4746
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5530 mandeep.dh 4747
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 4748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 4749
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5361 mandeep.dh 4750
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
2820 chandransh 4751
    }
4752
 
5361 mandeep.dh 4753
    public getNonSeralizedInventoryItem_args() {
2820 chandransh 4754
    }
4755
 
5361 mandeep.dh 4756
    public getNonSeralizedInventoryItem_args(
5530 mandeep.dh 4757
      String itemNumber,
4496 mandeep.dh 4758
      long itemId,
5530 mandeep.dh 4759
      long fulfilmentWarehouseId)
2820 chandransh 4760
    {
4761
      this();
5530 mandeep.dh 4762
      this.itemNumber = itemNumber;
4496 mandeep.dh 4763
      this.itemId = itemId;
4764
      setItemIdIsSet(true);
5530 mandeep.dh 4765
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
4766
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 4767
    }
4768
 
4769
    /**
4770
     * Performs a deep copy on <i>other</i>.
4771
     */
5361 mandeep.dh 4772
    public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
2820 chandransh 4773
      __isset_bit_vector.clear();
4774
      __isset_bit_vector.or(other.__isset_bit_vector);
5530 mandeep.dh 4775
      if (other.isSetItemNumber()) {
4776
        this.itemNumber = other.itemNumber;
4777
      }
4496 mandeep.dh 4778
      this.itemId = other.itemId;
5530 mandeep.dh 4779
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
2820 chandransh 4780
    }
4781
 
5361 mandeep.dh 4782
    public getNonSeralizedInventoryItem_args deepCopy() {
4783
      return new getNonSeralizedInventoryItem_args(this);
2820 chandransh 4784
    }
4785
 
3430 rajveer 4786
    @Override
4787
    public void clear() {
5530 mandeep.dh 4788
      this.itemNumber = null;
4496 mandeep.dh 4789
      setItemIdIsSet(false);
4790
      this.itemId = 0;
5530 mandeep.dh 4791
      setFulfilmentWarehouseIdIsSet(false);
4792
      this.fulfilmentWarehouseId = 0;
2820 chandransh 4793
    }
4794
 
5530 mandeep.dh 4795
    public String getItemNumber() {
4796
      return this.itemNumber;
4797
    }
4798
 
4799
    public void setItemNumber(String itemNumber) {
4800
      this.itemNumber = itemNumber;
4801
    }
4802
 
4803
    public void unsetItemNumber() {
4804
      this.itemNumber = null;
4805
    }
4806
 
4807
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
4808
    public boolean isSetItemNumber() {
4809
      return this.itemNumber != null;
4810
    }
4811
 
4812
    public void setItemNumberIsSet(boolean value) {
4813
      if (!value) {
4814
        this.itemNumber = null;
4815
      }
4816
    }
4817
 
4496 mandeep.dh 4818
    public long getItemId() {
4819
      return this.itemId;
2820 chandransh 4820
    }
4821
 
4496 mandeep.dh 4822
    public void setItemId(long itemId) {
4823
      this.itemId = itemId;
4824
      setItemIdIsSet(true);
2820 chandransh 4825
    }
4826
 
4496 mandeep.dh 4827
    public void unsetItemId() {
4828
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2820 chandransh 4829
    }
4830
 
4496 mandeep.dh 4831
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4832
    public boolean isSetItemId() {
4833
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2820 chandransh 4834
    }
4835
 
4496 mandeep.dh 4836
    public void setItemIdIsSet(boolean value) {
4837
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2820 chandransh 4838
    }
4839
 
5530 mandeep.dh 4840
    public long getFulfilmentWarehouseId() {
4841
      return this.fulfilmentWarehouseId;
2820 chandransh 4842
    }
4843
 
5530 mandeep.dh 4844
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
4845
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
4846
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 4847
    }
4848
 
5530 mandeep.dh 4849
    public void unsetFulfilmentWarehouseId() {
4850
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 4851
    }
4852
 
5530 mandeep.dh 4853
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
4854
    public boolean isSetFulfilmentWarehouseId() {
4855
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 4856
    }
4857
 
5530 mandeep.dh 4858
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
4859
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
2820 chandransh 4860
    }
4861
 
4862
    public void setFieldValue(_Fields field, Object value) {
4863
      switch (field) {
5530 mandeep.dh 4864
      case ITEM_NUMBER:
4865
        if (value == null) {
4866
          unsetItemNumber();
4867
        } else {
4868
          setItemNumber((String)value);
4869
        }
4870
        break;
4871
 
4496 mandeep.dh 4872
      case ITEM_ID:
2820 chandransh 4873
        if (value == null) {
4496 mandeep.dh 4874
          unsetItemId();
2820 chandransh 4875
        } else {
4496 mandeep.dh 4876
          setItemId((Long)value);
2820 chandransh 4877
        }
4878
        break;
4879
 
5530 mandeep.dh 4880
      case FULFILMENT_WAREHOUSE_ID:
2820 chandransh 4881
        if (value == null) {
5530 mandeep.dh 4882
          unsetFulfilmentWarehouseId();
2820 chandransh 4883
        } else {
5530 mandeep.dh 4884
          setFulfilmentWarehouseId((Long)value);
2820 chandransh 4885
        }
4886
        break;
4887
 
4888
      }
4889
    }
4890
 
4891
    public Object getFieldValue(_Fields field) {
4892
      switch (field) {
5530 mandeep.dh 4893
      case ITEM_NUMBER:
4894
        return getItemNumber();
4895
 
4496 mandeep.dh 4896
      case ITEM_ID:
4897
        return Long.valueOf(getItemId());
2820 chandransh 4898
 
5530 mandeep.dh 4899
      case FULFILMENT_WAREHOUSE_ID:
4900
        return Long.valueOf(getFulfilmentWarehouseId());
2820 chandransh 4901
 
4902
      }
4903
      throw new IllegalStateException();
4904
    }
4905
 
3430 rajveer 4906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4907
    public boolean isSet(_Fields field) {
4908
      if (field == null) {
4909
        throw new IllegalArgumentException();
4910
      }
2820 chandransh 4911
 
4912
      switch (field) {
5530 mandeep.dh 4913
      case ITEM_NUMBER:
4914
        return isSetItemNumber();
4496 mandeep.dh 4915
      case ITEM_ID:
4916
        return isSetItemId();
5530 mandeep.dh 4917
      case FULFILMENT_WAREHOUSE_ID:
4918
        return isSetFulfilmentWarehouseId();
2820 chandransh 4919
      }
4920
      throw new IllegalStateException();
4921
    }
4922
 
4923
    @Override
4924
    public boolean equals(Object that) {
4925
      if (that == null)
4926
        return false;
5361 mandeep.dh 4927
      if (that instanceof getNonSeralizedInventoryItem_args)
4928
        return this.equals((getNonSeralizedInventoryItem_args)that);
2820 chandransh 4929
      return false;
4930
    }
4931
 
5361 mandeep.dh 4932
    public boolean equals(getNonSeralizedInventoryItem_args that) {
2820 chandransh 4933
      if (that == null)
4934
        return false;
4935
 
5530 mandeep.dh 4936
      boolean this_present_itemNumber = true && this.isSetItemNumber();
4937
      boolean that_present_itemNumber = true && that.isSetItemNumber();
4938
      if (this_present_itemNumber || that_present_itemNumber) {
4939
        if (!(this_present_itemNumber && that_present_itemNumber))
4940
          return false;
4941
        if (!this.itemNumber.equals(that.itemNumber))
4942
          return false;
4943
      }
4944
 
4496 mandeep.dh 4945
      boolean this_present_itemId = true;
4946
      boolean that_present_itemId = true;
4947
      if (this_present_itemId || that_present_itemId) {
4948
        if (!(this_present_itemId && that_present_itemId))
2820 chandransh 4949
          return false;
4496 mandeep.dh 4950
        if (this.itemId != that.itemId)
2820 chandransh 4951
          return false;
4952
      }
4953
 
5530 mandeep.dh 4954
      boolean this_present_fulfilmentWarehouseId = true;
4955
      boolean that_present_fulfilmentWarehouseId = true;
4956
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
4957
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
2820 chandransh 4958
          return false;
5530 mandeep.dh 4959
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
2820 chandransh 4960
          return false;
4961
      }
4962
 
4963
      return true;
4964
    }
4965
 
4966
    @Override
4967
    public int hashCode() {
4968
      return 0;
4969
    }
4970
 
5361 mandeep.dh 4971
    public int compareTo(getNonSeralizedInventoryItem_args other) {
2820 chandransh 4972
      if (!getClass().equals(other.getClass())) {
4973
        return getClass().getName().compareTo(other.getClass().getName());
4974
      }
4975
 
4976
      int lastComparison = 0;
5361 mandeep.dh 4977
      getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
2820 chandransh 4978
 
5530 mandeep.dh 4979
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
4980
      if (lastComparison != 0) {
4981
        return lastComparison;
4982
      }
4983
      if (isSetItemNumber()) {
4984
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
4985
        if (lastComparison != 0) {
4986
          return lastComparison;
4987
        }
4988
      }
4496 mandeep.dh 4989
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2820 chandransh 4990
      if (lastComparison != 0) {
4991
        return lastComparison;
4992
      }
4496 mandeep.dh 4993
      if (isSetItemId()) {
4994
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3430 rajveer 4995
        if (lastComparison != 0) {
4996
          return lastComparison;
4997
        }
2820 chandransh 4998
      }
5530 mandeep.dh 4999
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
2820 chandransh 5000
      if (lastComparison != 0) {
5001
        return lastComparison;
5002
      }
5530 mandeep.dh 5003
      if (isSetFulfilmentWarehouseId()) {
5004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
3430 rajveer 5005
        if (lastComparison != 0) {
5006
          return lastComparison;
5007
        }
2820 chandransh 5008
      }
5009
      return 0;
5010
    }
5011
 
3430 rajveer 5012
    public _Fields fieldForId(int fieldId) {
5013
      return _Fields.findByThriftId(fieldId);
5014
    }
5015
 
5016
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5017
      org.apache.thrift.protocol.TField field;
2820 chandransh 5018
      iprot.readStructBegin();
5019
      while (true)
5020
      {
5021
        field = iprot.readFieldBegin();
3430 rajveer 5022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 5023
          break;
5024
        }
3430 rajveer 5025
        switch (field.id) {
5530 mandeep.dh 5026
          case 1: // ITEM_NUMBER
5027
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5028
              this.itemNumber = iprot.readString();
5029
            } else { 
5030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5031
            }
5032
            break;
5033
          case 2: // ITEM_ID
3430 rajveer 5034
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4496 mandeep.dh 5035
              this.itemId = iprot.readI64();
5036
              setItemIdIsSet(true);
3430 rajveer 5037
            } else { 
5038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5039
            }
5040
            break;
5530 mandeep.dh 5041
          case 3: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 5042
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5530 mandeep.dh 5043
              this.fulfilmentWarehouseId = iprot.readI64();
5044
              setFulfilmentWarehouseIdIsSet(true);
3430 rajveer 5045
            } else { 
5046
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5047
            }
5048
            break;
5049
          default:
5050
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 5051
        }
3430 rajveer 5052
        iprot.readFieldEnd();
2820 chandransh 5053
      }
5054
      iprot.readStructEnd();
5055
      validate();
5056
    }
5057
 
3430 rajveer 5058
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 5059
      validate();
5060
 
5061
      oprot.writeStructBegin(STRUCT_DESC);
5530 mandeep.dh 5062
      if (this.itemNumber != null) {
5063
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
5064
        oprot.writeString(this.itemNumber);
5065
        oprot.writeFieldEnd();
5066
      }
4496 mandeep.dh 5067
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5068
      oprot.writeI64(this.itemId);
2820 chandransh 5069
      oprot.writeFieldEnd();
5530 mandeep.dh 5070
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
5071
      oprot.writeI64(this.fulfilmentWarehouseId);
2820 chandransh 5072
      oprot.writeFieldEnd();
5073
      oprot.writeFieldStop();
5074
      oprot.writeStructEnd();
5075
    }
5076
 
5077
    @Override
5078
    public String toString() {
5361 mandeep.dh 5079
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
2820 chandransh 5080
      boolean first = true;
5081
 
5530 mandeep.dh 5082
      sb.append("itemNumber:");
5083
      if (this.itemNumber == null) {
5084
        sb.append("null");
5085
      } else {
5086
        sb.append(this.itemNumber);
5087
      }
5088
      first = false;
5089
      if (!first) sb.append(", ");
4496 mandeep.dh 5090
      sb.append("itemId:");
5091
      sb.append(this.itemId);
2820 chandransh 5092
      first = false;
5093
      if (!first) sb.append(", ");
5530 mandeep.dh 5094
      sb.append("fulfilmentWarehouseId:");
5095
      sb.append(this.fulfilmentWarehouseId);
2820 chandransh 5096
      first = false;
5097
      sb.append(")");
5098
      return sb.toString();
5099
    }
5100
 
3430 rajveer 5101
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 5102
      // check for required fields
5103
    }
5104
 
3430 rajveer 5105
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5106
      try {
5107
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5108
      } catch (org.apache.thrift.TException te) {
5109
        throw new java.io.IOException(te);
5110
      }
5111
    }
5112
 
5113
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5114
      try {
7613 amar.kumar 5115
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5116
        __isset_bit_vector = new BitSet(1);
3430 rajveer 5117
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5118
      } catch (org.apache.thrift.TException te) {
5119
        throw new java.io.IOException(te);
5120
      }
5121
    }
5122
 
2820 chandransh 5123
  }
5124
 
5361 mandeep.dh 5125
  public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
5126
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
2820 chandransh 5127
 
5361 mandeep.dh 5128
    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);
5129
    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 5130
 
5361 mandeep.dh 5131
    private InventoryItem success; // required
5132
    private WarehouseServiceException wex; // required
2820 chandransh 5133
 
5134
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5135
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 5136
      SUCCESS((short)0, "success"),
5137
      WEX((short)1, "wex");
2820 chandransh 5138
 
5139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5140
 
5141
      static {
5142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5143
          byName.put(field.getFieldName(), field);
5144
        }
5145
      }
5146
 
5147
      /**
5148
       * Find the _Fields constant that matches fieldId, or null if its not found.
5149
       */
5150
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5151
        switch(fieldId) {
5152
          case 0: // SUCCESS
5153
            return SUCCESS;
5361 mandeep.dh 5154
          case 1: // WEX
5155
            return WEX;
3430 rajveer 5156
          default:
5157
            return null;
5158
        }
2820 chandransh 5159
      }
5160
 
5161
      /**
5162
       * Find the _Fields constant that matches fieldId, throwing an exception
5163
       * if it is not found.
5164
       */
5165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5166
        _Fields fields = findByThriftId(fieldId);
5167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5168
        return fields;
5169
      }
5170
 
5171
      /**
5172
       * Find the _Fields constant that matches name, or null if its not found.
5173
       */
5174
      public static _Fields findByName(String name) {
5175
        return byName.get(name);
5176
      }
5177
 
5178
      private final short _thriftId;
5179
      private final String _fieldName;
5180
 
5181
      _Fields(short thriftId, String fieldName) {
5182
        _thriftId = thriftId;
5183
        _fieldName = fieldName;
5184
      }
5185
 
5186
      public short getThriftFieldId() {
5187
        return _thriftId;
5188
      }
5189
 
5190
      public String getFieldName() {
5191
        return _fieldName;
5192
      }
5193
    }
5194
 
5195
    // isset id assignments
5196
 
3430 rajveer 5197
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 5198
    static {
3430 rajveer 5199
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5200
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5361 mandeep.dh 5201
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
5202
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5203
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3430 rajveer 5204
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5361 mandeep.dh 5205
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
2820 chandransh 5206
    }
5207
 
5361 mandeep.dh 5208
    public getNonSeralizedInventoryItem_result() {
2820 chandransh 5209
    }
5210
 
5361 mandeep.dh 5211
    public getNonSeralizedInventoryItem_result(
5212
      InventoryItem success,
5213
      WarehouseServiceException wex)
2820 chandransh 5214
    {
5215
      this();
5216
      this.success = success;
5361 mandeep.dh 5217
      this.wex = wex;
2820 chandransh 5218
    }
5219
 
5220
    /**
5221
     * Performs a deep copy on <i>other</i>.
5222
     */
5361 mandeep.dh 5223
    public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
4496 mandeep.dh 5224
      if (other.isSetSuccess()) {
5361 mandeep.dh 5225
        this.success = new InventoryItem(other.success);
2820 chandransh 5226
      }
5361 mandeep.dh 5227
      if (other.isSetWex()) {
5228
        this.wex = new WarehouseServiceException(other.wex);
5229
      }
2820 chandransh 5230
    }
5231
 
5361 mandeep.dh 5232
    public getNonSeralizedInventoryItem_result deepCopy() {
5233
      return new getNonSeralizedInventoryItem_result(this);
2820 chandransh 5234
    }
5235
 
3430 rajveer 5236
    @Override
5237
    public void clear() {
4496 mandeep.dh 5238
      this.success = null;
5361 mandeep.dh 5239
      this.wex = null;
2820 chandransh 5240
    }
5241
 
5361 mandeep.dh 5242
    public InventoryItem getSuccess() {
2820 chandransh 5243
      return this.success;
5244
    }
5245
 
5361 mandeep.dh 5246
    public void setSuccess(InventoryItem success) {
2820 chandransh 5247
      this.success = success;
5248
    }
5249
 
5250
    public void unsetSuccess() {
4496 mandeep.dh 5251
      this.success = null;
2820 chandransh 5252
    }
5253
 
3430 rajveer 5254
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2820 chandransh 5255
    public boolean isSetSuccess() {
4496 mandeep.dh 5256
      return this.success != null;
2820 chandransh 5257
    }
5258
 
5259
    public void setSuccessIsSet(boolean value) {
4496 mandeep.dh 5260
      if (!value) {
5261
        this.success = null;
5262
      }
2820 chandransh 5263
    }
5264
 
5361 mandeep.dh 5265
    public WarehouseServiceException getWex() {
5266
      return this.wex;
2820 chandransh 5267
    }
5268
 
5361 mandeep.dh 5269
    public void setWex(WarehouseServiceException wex) {
5270
      this.wex = wex;
2820 chandransh 5271
    }
5272
 
5361 mandeep.dh 5273
    public void unsetWex() {
5274
      this.wex = null;
2820 chandransh 5275
    }
5276
 
5361 mandeep.dh 5277
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
5278
    public boolean isSetWex() {
5279
      return this.wex != null;
2820 chandransh 5280
    }
5281
 
5361 mandeep.dh 5282
    public void setWexIsSet(boolean value) {
5283
      if (!value) {
5284
        this.wex = null;
2820 chandransh 5285
      }
5286
    }
5287
 
5288
    public void setFieldValue(_Fields field, Object value) {
5289
      switch (field) {
5361 mandeep.dh 5290
      case SUCCESS:
2820 chandransh 5291
        if (value == null) {
5361 mandeep.dh 5292
          unsetSuccess();
2820 chandransh 5293
        } else {
5361 mandeep.dh 5294
          setSuccess((InventoryItem)value);
2820 chandransh 5295
        }
5296
        break;
5297
 
5361 mandeep.dh 5298
      case WEX:
2820 chandransh 5299
        if (value == null) {
5361 mandeep.dh 5300
          unsetWex();
2820 chandransh 5301
        } else {
5361 mandeep.dh 5302
          setWex((WarehouseServiceException)value);
2820 chandransh 5303
        }
5304
        break;
5305
 
5306
      }
5307
    }
5308
 
5309
    public Object getFieldValue(_Fields field) {
5310
      switch (field) {
5311
      case SUCCESS:
4496 mandeep.dh 5312
        return getSuccess();
2820 chandransh 5313
 
5361 mandeep.dh 5314
      case WEX:
5315
        return getWex();
5316
 
2820 chandransh 5317
      }
5318
      throw new IllegalStateException();
5319
    }
5320
 
3430 rajveer 5321
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5322
    public boolean isSet(_Fields field) {
5323
      if (field == null) {
5324
        throw new IllegalArgumentException();
5325
      }
2820 chandransh 5326
 
5327
      switch (field) {
5328
      case SUCCESS:
5329
        return isSetSuccess();
5361 mandeep.dh 5330
      case WEX:
5331
        return isSetWex();
2820 chandransh 5332
      }
5333
      throw new IllegalStateException();
5334
    }
5335
 
5336
    @Override
5337
    public boolean equals(Object that) {
5338
      if (that == null)
5339
        return false;
5361 mandeep.dh 5340
      if (that instanceof getNonSeralizedInventoryItem_result)
5341
        return this.equals((getNonSeralizedInventoryItem_result)that);
2820 chandransh 5342
      return false;
5343
    }
5344
 
5361 mandeep.dh 5345
    public boolean equals(getNonSeralizedInventoryItem_result that) {
2820 chandransh 5346
      if (that == null)
5347
        return false;
5348
 
4496 mandeep.dh 5349
      boolean this_present_success = true && this.isSetSuccess();
5350
      boolean that_present_success = true && that.isSetSuccess();
2820 chandransh 5351
      if (this_present_success || that_present_success) {
5352
        if (!(this_present_success && that_present_success))
5353
          return false;
4496 mandeep.dh 5354
        if (!this.success.equals(that.success))
2820 chandransh 5355
          return false;
5356
      }
5357
 
5361 mandeep.dh 5358
      boolean this_present_wex = true && this.isSetWex();
5359
      boolean that_present_wex = true && that.isSetWex();
5360
      if (this_present_wex || that_present_wex) {
5361
        if (!(this_present_wex && that_present_wex))
4496 mandeep.dh 5362
          return false;
5361 mandeep.dh 5363
        if (!this.wex.equals(that.wex))
4496 mandeep.dh 5364
          return false;
5365
      }
5366
 
5367
      return true;
5368
    }
5369
 
5370
    @Override
5371
    public int hashCode() {
5372
      return 0;
5373
    }
5374
 
5361 mandeep.dh 5375
    public int compareTo(getNonSeralizedInventoryItem_result other) {
4496 mandeep.dh 5376
      if (!getClass().equals(other.getClass())) {
5377
        return getClass().getName().compareTo(other.getClass().getName());
5378
      }
5379
 
5380
      int lastComparison = 0;
5361 mandeep.dh 5381
      getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
4496 mandeep.dh 5382
 
5383
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5384
      if (lastComparison != 0) {
5385
        return lastComparison;
5386
      }
5387
      if (isSetSuccess()) {
5388
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5389
        if (lastComparison != 0) {
5390
          return lastComparison;
5391
        }
5392
      }
5361 mandeep.dh 5393
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 5394
      if (lastComparison != 0) {
5395
        return lastComparison;
5396
      }
5361 mandeep.dh 5397
      if (isSetWex()) {
5398
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
3430 rajveer 5399
        if (lastComparison != 0) {
5400
          return lastComparison;
5401
        }
2820 chandransh 5402
      }
5403
      return 0;
5404
    }
5405
 
3430 rajveer 5406
    public _Fields fieldForId(int fieldId) {
5407
      return _Fields.findByThriftId(fieldId);
5408
    }
5409
 
5410
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5411
      org.apache.thrift.protocol.TField field;
2820 chandransh 5412
      iprot.readStructBegin();
5413
      while (true)
5414
      {
5415
        field = iprot.readFieldBegin();
3430 rajveer 5416
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 5417
          break;
5418
        }
3430 rajveer 5419
        switch (field.id) {
5361 mandeep.dh 5420
          case 0: // SUCCESS
5421
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5422
              this.success = new InventoryItem();
5423
              this.success.read(iprot);
3430 rajveer 5424
            } else { 
5425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5426
            }
5427
            break;
5361 mandeep.dh 5428
          case 1: // WEX
5429
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5430
              this.wex = new WarehouseServiceException();
5431
              this.wex.read(iprot);
4496 mandeep.dh 5432
            } else { 
5433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5434
            }
5435
            break;
5436
          default:
5437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5438
        }
5439
        iprot.readFieldEnd();
5440
      }
5441
      iprot.readStructEnd();
5442
      validate();
5443
    }
5444
 
5445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5446
      oprot.writeStructBegin(STRUCT_DESC);
5447
 
5448
      if (this.isSetSuccess()) {
5449
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5361 mandeep.dh 5450
        this.success.write(oprot);
4496 mandeep.dh 5451
        oprot.writeFieldEnd();
5361 mandeep.dh 5452
      } else if (this.isSetWex()) {
5453
        oprot.writeFieldBegin(WEX_FIELD_DESC);
5454
        this.wex.write(oprot);
5455
        oprot.writeFieldEnd();
4496 mandeep.dh 5456
      }
5457
      oprot.writeFieldStop();
5458
      oprot.writeStructEnd();
5459
    }
5460
 
5461
    @Override
5462
    public String toString() {
5361 mandeep.dh 5463
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
4496 mandeep.dh 5464
      boolean first = true;
5465
 
5466
      sb.append("success:");
5467
      if (this.success == null) {
5468
        sb.append("null");
5469
      } else {
5470
        sb.append(this.success);
5471
      }
5472
      first = false;
5361 mandeep.dh 5473
      if (!first) sb.append(", ");
5474
      sb.append("wex:");
5475
      if (this.wex == null) {
5476
        sb.append("null");
5477
      } else {
5478
        sb.append(this.wex);
5479
      }
5480
      first = false;
4496 mandeep.dh 5481
      sb.append(")");
5482
      return sb.toString();
5483
    }
5484
 
5485
    public void validate() throws org.apache.thrift.TException {
5486
      // check for required fields
5487
    }
5488
 
5489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5490
      try {
5491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5492
      } catch (org.apache.thrift.TException te) {
5493
        throw new java.io.IOException(te);
5494
      }
5495
    }
5496
 
5497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5498
      try {
5499
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5500
      } catch (org.apache.thrift.TException te) {
5501
        throw new java.io.IOException(te);
5502
      }
5503
    }
5504
 
5505
  }
5506
 
5507
  public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable   {
5508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
3383 chandransh 5509
 
5361 mandeep.dh 5510
    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 5511
    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);
5512
    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 5513
    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 5514
    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 5515
 
5361 mandeep.dh 5516
    private InventoryItem inventoryItem; // required
4496 mandeep.dh 5517
    private ScanType type; // required
5518
    private long quantity; // required
5361 mandeep.dh 5519
    private long billingWarehouseId; // required
7410 amar.kumar 5520
    private long transferLotId; // required
3383 chandransh 5521
 
5522
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5523
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 5524
      INVENTORY_ITEM((short)1, "inventoryItem"),
4496 mandeep.dh 5525
      /**
5526
       * 
5527
       * @see ScanType
5528
       */
5529
      TYPE((short)2, "type"),
5530
      QUANTITY((short)3, "quantity"),
7410 amar.kumar 5531
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
5532
      TRANSFER_LOT_ID((short)5, "transferLotId");
3383 chandransh 5533
 
5534
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5535
 
5536
      static {
5537
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5538
          byName.put(field.getFieldName(), field);
5539
        }
5540
      }
5541
 
5542
      /**
5543
       * Find the _Fields constant that matches fieldId, or null if its not found.
5544
       */
5545
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5546
        switch(fieldId) {
5361 mandeep.dh 5547
          case 1: // INVENTORY_ITEM
5548
            return INVENTORY_ITEM;
4496 mandeep.dh 5549
          case 2: // TYPE
5550
            return TYPE;
5551
          case 3: // QUANTITY
5552
            return QUANTITY;
5361 mandeep.dh 5553
          case 4: // BILLING_WAREHOUSE_ID
5554
            return BILLING_WAREHOUSE_ID;
7410 amar.kumar 5555
          case 5: // TRANSFER_LOT_ID
5556
            return TRANSFER_LOT_ID;
3430 rajveer 5557
          default:
5558
            return null;
5559
        }
3383 chandransh 5560
      }
5561
 
5562
      /**
5563
       * Find the _Fields constant that matches fieldId, throwing an exception
5564
       * if it is not found.
5565
       */
5566
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5567
        _Fields fields = findByThriftId(fieldId);
5568
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5569
        return fields;
5570
      }
5571
 
5572
      /**
5573
       * Find the _Fields constant that matches name, or null if its not found.
5574
       */
5575
      public static _Fields findByName(String name) {
5576
        return byName.get(name);
5577
      }
5578
 
5579
      private final short _thriftId;
5580
      private final String _fieldName;
5581
 
5582
      _Fields(short thriftId, String fieldName) {
5583
        _thriftId = thriftId;
5584
        _fieldName = fieldName;
5585
      }
5586
 
5587
      public short getThriftFieldId() {
5588
        return _thriftId;
5589
      }
5590
 
5591
      public String getFieldName() {
5592
        return _fieldName;
5593
      }
5594
    }
5595
 
5596
    // isset id assignments
5361 mandeep.dh 5597
    private static final int __QUANTITY_ISSET_ID = 0;
5598
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
7410 amar.kumar 5599
    private static final int __TRANSFERLOTID_ISSET_ID = 2;
5600
    private BitSet __isset_bit_vector = new BitSet(3);
3383 chandransh 5601
 
3430 rajveer 5602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3383 chandransh 5603
    static {
3430 rajveer 5604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 5605
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5606
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
4496 mandeep.dh 5607
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5608
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
5609
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5610
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5361 mandeep.dh 5611
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 5612
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7410 amar.kumar 5613
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5614
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 5615
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 5616
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
3383 chandransh 5617
    }
5618
 
4496 mandeep.dh 5619
    public scan_args() {
3383 chandransh 5620
    }
5621
 
4496 mandeep.dh 5622
    public scan_args(
5361 mandeep.dh 5623
      InventoryItem inventoryItem,
4496 mandeep.dh 5624
      ScanType type,
5625
      long quantity,
7410 amar.kumar 5626
      long billingWarehouseId,
5627
      long transferLotId)
3383 chandransh 5628
    {
5629
      this();
5361 mandeep.dh 5630
      this.inventoryItem = inventoryItem;
4496 mandeep.dh 5631
      this.type = type;
5632
      this.quantity = quantity;
5633
      setQuantityIsSet(true);
5361 mandeep.dh 5634
      this.billingWarehouseId = billingWarehouseId;
5635
      setBillingWarehouseIdIsSet(true);
7410 amar.kumar 5636
      this.transferLotId = transferLotId;
5637
      setTransferLotIdIsSet(true);
3383 chandransh 5638
    }
5639
 
5640
    /**
5641
     * Performs a deep copy on <i>other</i>.
5642
     */
4496 mandeep.dh 5643
    public scan_args(scan_args other) {
3383 chandransh 5644
      __isset_bit_vector.clear();
5645
      __isset_bit_vector.or(other.__isset_bit_vector);
5361 mandeep.dh 5646
      if (other.isSetInventoryItem()) {
5647
        this.inventoryItem = new InventoryItem(other.inventoryItem);
5648
      }
4496 mandeep.dh 5649
      if (other.isSetType()) {
5650
        this.type = other.type;
5651
      }
5652
      this.quantity = other.quantity;
5361 mandeep.dh 5653
      this.billingWarehouseId = other.billingWarehouseId;
7410 amar.kumar 5654
      this.transferLotId = other.transferLotId;
3383 chandransh 5655
    }
5656
 
4496 mandeep.dh 5657
    public scan_args deepCopy() {
5658
      return new scan_args(this);
3383 chandransh 5659
    }
5660
 
3430 rajveer 5661
    @Override
5662
    public void clear() {
5361 mandeep.dh 5663
      this.inventoryItem = null;
4496 mandeep.dh 5664
      this.type = null;
5665
      setQuantityIsSet(false);
5666
      this.quantity = 0;
5361 mandeep.dh 5667
      setBillingWarehouseIdIsSet(false);
5668
      this.billingWarehouseId = 0;
7410 amar.kumar 5669
      setTransferLotIdIsSet(false);
5670
      this.transferLotId = 0;
3383 chandransh 5671
    }
5672
 
5361 mandeep.dh 5673
    public InventoryItem getInventoryItem() {
5674
      return this.inventoryItem;
3383 chandransh 5675
    }
5676
 
5361 mandeep.dh 5677
    public void setInventoryItem(InventoryItem inventoryItem) {
5678
      this.inventoryItem = inventoryItem;
3383 chandransh 5679
    }
5680
 
5361 mandeep.dh 5681
    public void unsetInventoryItem() {
5682
      this.inventoryItem = null;
3383 chandransh 5683
    }
5684
 
5361 mandeep.dh 5685
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
5686
    public boolean isSetInventoryItem() {
5687
      return this.inventoryItem != null;
3383 chandransh 5688
    }
5689
 
5361 mandeep.dh 5690
    public void setInventoryItemIsSet(boolean value) {
5691
      if (!value) {
5692
        this.inventoryItem = null;
5693
      }
3383 chandransh 5694
    }
5695
 
4496 mandeep.dh 5696
    /**
5697
     * 
5698
     * @see ScanType
5699
     */
5700
    public ScanType getType() {
5701
      return this.type;
3383 chandransh 5702
    }
5703
 
4496 mandeep.dh 5704
    /**
5705
     * 
5706
     * @see ScanType
5707
     */
5708
    public void setType(ScanType type) {
5709
      this.type = type;
3383 chandransh 5710
    }
5711
 
4496 mandeep.dh 5712
    public void unsetType() {
5713
      this.type = null;
3383 chandransh 5714
    }
5715
 
4496 mandeep.dh 5716
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
5717
    public boolean isSetType() {
5718
      return this.type != null;
3383 chandransh 5719
    }
5720
 
4496 mandeep.dh 5721
    public void setTypeIsSet(boolean value) {
5722
      if (!value) {
5723
        this.type = null;
5724
      }
3383 chandransh 5725
    }
5726
 
4496 mandeep.dh 5727
    public long getQuantity() {
5728
      return this.quantity;
5729
    }
5730
 
5731
    public void setQuantity(long quantity) {
5732
      this.quantity = quantity;
5733
      setQuantityIsSet(true);
5734
    }
5735
 
5736
    public void unsetQuantity() {
5737
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
5738
    }
5739
 
5740
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
5741
    public boolean isSetQuantity() {
5742
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
5743
    }
5744
 
5745
    public void setQuantityIsSet(boolean value) {
5746
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
5747
    }
5748
 
5361 mandeep.dh 5749
    public long getBillingWarehouseId() {
5750
      return this.billingWarehouseId;
4496 mandeep.dh 5751
    }
5752
 
5361 mandeep.dh 5753
    public void setBillingWarehouseId(long billingWarehouseId) {
5754
      this.billingWarehouseId = billingWarehouseId;
5755
      setBillingWarehouseIdIsSet(true);
4496 mandeep.dh 5756
    }
5757
 
5361 mandeep.dh 5758
    public void unsetBillingWarehouseId() {
5759
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 5760
    }
5761
 
5361 mandeep.dh 5762
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
5763
    public boolean isSetBillingWarehouseId() {
5764
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 5765
    }
5766
 
5361 mandeep.dh 5767
    public void setBillingWarehouseIdIsSet(boolean value) {
5768
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
4496 mandeep.dh 5769
    }
5770
 
7410 amar.kumar 5771
    public long getTransferLotId() {
5772
      return this.transferLotId;
5773
    }
5774
 
5775
    public void setTransferLotId(long transferLotId) {
5776
      this.transferLotId = transferLotId;
5777
      setTransferLotIdIsSet(true);
5778
    }
5779
 
5780
    public void unsetTransferLotId() {
5781
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
5782
    }
5783
 
5784
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
5785
    public boolean isSetTransferLotId() {
5786
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
5787
    }
5788
 
5789
    public void setTransferLotIdIsSet(boolean value) {
5790
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
5791
    }
5792
 
3383 chandransh 5793
    public void setFieldValue(_Fields field, Object value) {
5794
      switch (field) {
5361 mandeep.dh 5795
      case INVENTORY_ITEM:
3383 chandransh 5796
        if (value == null) {
5361 mandeep.dh 5797
          unsetInventoryItem();
3383 chandransh 5798
        } else {
5361 mandeep.dh 5799
          setInventoryItem((InventoryItem)value);
3383 chandransh 5800
        }
5801
        break;
5802
 
4496 mandeep.dh 5803
      case TYPE:
3383 chandransh 5804
        if (value == null) {
4496 mandeep.dh 5805
          unsetType();
3383 chandransh 5806
        } else {
4496 mandeep.dh 5807
          setType((ScanType)value);
3383 chandransh 5808
        }
5809
        break;
5810
 
4496 mandeep.dh 5811
      case QUANTITY:
5812
        if (value == null) {
5813
          unsetQuantity();
5814
        } else {
5815
          setQuantity((Long)value);
5816
        }
5817
        break;
5818
 
5361 mandeep.dh 5819
      case BILLING_WAREHOUSE_ID:
4496 mandeep.dh 5820
        if (value == null) {
5361 mandeep.dh 5821
          unsetBillingWarehouseId();
4496 mandeep.dh 5822
        } else {
5361 mandeep.dh 5823
          setBillingWarehouseId((Long)value);
4496 mandeep.dh 5824
        }
5825
        break;
5826
 
7410 amar.kumar 5827
      case TRANSFER_LOT_ID:
5828
        if (value == null) {
5829
          unsetTransferLotId();
5830
        } else {
5831
          setTransferLotId((Long)value);
5832
        }
5833
        break;
5834
 
3383 chandransh 5835
      }
5836
    }
5837
 
5838
    public Object getFieldValue(_Fields field) {
5839
      switch (field) {
5361 mandeep.dh 5840
      case INVENTORY_ITEM:
5841
        return getInventoryItem();
3383 chandransh 5842
 
4496 mandeep.dh 5843
      case TYPE:
5844
        return getType();
3383 chandransh 5845
 
4496 mandeep.dh 5846
      case QUANTITY:
5847
        return Long.valueOf(getQuantity());
5848
 
5361 mandeep.dh 5849
      case BILLING_WAREHOUSE_ID:
5850
        return Long.valueOf(getBillingWarehouseId());
4496 mandeep.dh 5851
 
7410 amar.kumar 5852
      case TRANSFER_LOT_ID:
5853
        return Long.valueOf(getTransferLotId());
5854
 
3383 chandransh 5855
      }
5856
      throw new IllegalStateException();
5857
    }
5858
 
3430 rajveer 5859
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5860
    public boolean isSet(_Fields field) {
5861
      if (field == null) {
5862
        throw new IllegalArgumentException();
5863
      }
3383 chandransh 5864
 
5865
      switch (field) {
5361 mandeep.dh 5866
      case INVENTORY_ITEM:
5867
        return isSetInventoryItem();
4496 mandeep.dh 5868
      case TYPE:
5869
        return isSetType();
5870
      case QUANTITY:
5871
        return isSetQuantity();
5361 mandeep.dh 5872
      case BILLING_WAREHOUSE_ID:
5873
        return isSetBillingWarehouseId();
7410 amar.kumar 5874
      case TRANSFER_LOT_ID:
5875
        return isSetTransferLotId();
3383 chandransh 5876
      }
5877
      throw new IllegalStateException();
5878
    }
5879
 
5880
    @Override
5881
    public boolean equals(Object that) {
5882
      if (that == null)
5883
        return false;
4496 mandeep.dh 5884
      if (that instanceof scan_args)
5885
        return this.equals((scan_args)that);
3383 chandransh 5886
      return false;
5887
    }
5888
 
4496 mandeep.dh 5889
    public boolean equals(scan_args that) {
3383 chandransh 5890
      if (that == null)
5891
        return false;
5892
 
5361 mandeep.dh 5893
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
5894
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
5895
      if (this_present_inventoryItem || that_present_inventoryItem) {
5896
        if (!(this_present_inventoryItem && that_present_inventoryItem))
3383 chandransh 5897
          return false;
5361 mandeep.dh 5898
        if (!this.inventoryItem.equals(that.inventoryItem))
3383 chandransh 5899
          return false;
5900
      }
5901
 
4496 mandeep.dh 5902
      boolean this_present_type = true && this.isSetType();
5903
      boolean that_present_type = true && that.isSetType();
5904
      if (this_present_type || that_present_type) {
5905
        if (!(this_present_type && that_present_type))
3383 chandransh 5906
          return false;
4496 mandeep.dh 5907
        if (!this.type.equals(that.type))
3383 chandransh 5908
          return false;
5909
      }
5910
 
4496 mandeep.dh 5911
      boolean this_present_quantity = true;
5912
      boolean that_present_quantity = true;
5913
      if (this_present_quantity || that_present_quantity) {
5914
        if (!(this_present_quantity && that_present_quantity))
5915
          return false;
5916
        if (this.quantity != that.quantity)
5917
          return false;
5918
      }
5919
 
5361 mandeep.dh 5920
      boolean this_present_billingWarehouseId = true;
5921
      boolean that_present_billingWarehouseId = true;
5922
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
5923
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
4496 mandeep.dh 5924
          return false;
5361 mandeep.dh 5925
        if (this.billingWarehouseId != that.billingWarehouseId)
4496 mandeep.dh 5926
          return false;
5927
      }
5928
 
7410 amar.kumar 5929
      boolean this_present_transferLotId = true;
5930
      boolean that_present_transferLotId = true;
5931
      if (this_present_transferLotId || that_present_transferLotId) {
5932
        if (!(this_present_transferLotId && that_present_transferLotId))
5933
          return false;
5934
        if (this.transferLotId != that.transferLotId)
5935
          return false;
5936
      }
5937
 
3383 chandransh 5938
      return true;
5939
    }
5940
 
5941
    @Override
5942
    public int hashCode() {
5943
      return 0;
5944
    }
5945
 
4496 mandeep.dh 5946
    public int compareTo(scan_args other) {
3383 chandransh 5947
      if (!getClass().equals(other.getClass())) {
5948
        return getClass().getName().compareTo(other.getClass().getName());
5949
      }
5950
 
5951
      int lastComparison = 0;
4496 mandeep.dh 5952
      scan_args typedOther = (scan_args)other;
3383 chandransh 5953
 
5361 mandeep.dh 5954
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
3383 chandransh 5955
      if (lastComparison != 0) {
5956
        return lastComparison;
5957
      }
5361 mandeep.dh 5958
      if (isSetInventoryItem()) {
5959
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
3430 rajveer 5960
        if (lastComparison != 0) {
5961
          return lastComparison;
5962
        }
3383 chandransh 5963
      }
4496 mandeep.dh 5964
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3383 chandransh 5965
      if (lastComparison != 0) {
5966
        return lastComparison;
5967
      }
4496 mandeep.dh 5968
      if (isSetType()) {
5969
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 5970
        if (lastComparison != 0) {
5971
          return lastComparison;
5972
        }
3383 chandransh 5973
      }
4496 mandeep.dh 5974
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
5975
      if (lastComparison != 0) {
5976
        return lastComparison;
5977
      }
5978
      if (isSetQuantity()) {
5979
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
5980
        if (lastComparison != 0) {
5981
          return lastComparison;
5982
        }
5983
      }
5361 mandeep.dh 5984
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
4496 mandeep.dh 5985
      if (lastComparison != 0) {
5986
        return lastComparison;
5987
      }
5361 mandeep.dh 5988
      if (isSetBillingWarehouseId()) {
5989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
4496 mandeep.dh 5990
        if (lastComparison != 0) {
5991
          return lastComparison;
5992
        }
5993
      }
7410 amar.kumar 5994
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
5995
      if (lastComparison != 0) {
5996
        return lastComparison;
5997
      }
5998
      if (isSetTransferLotId()) {
5999
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
6000
        if (lastComparison != 0) {
6001
          return lastComparison;
6002
        }
6003
      }
3383 chandransh 6004
      return 0;
6005
    }
6006
 
3430 rajveer 6007
    public _Fields fieldForId(int fieldId) {
6008
      return _Fields.findByThriftId(fieldId);
6009
    }
6010
 
6011
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6012
      org.apache.thrift.protocol.TField field;
3383 chandransh 6013
      iprot.readStructBegin();
6014
      while (true)
6015
      {
6016
        field = iprot.readFieldBegin();
3430 rajveer 6017
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3383 chandransh 6018
          break;
6019
        }
3430 rajveer 6020
        switch (field.id) {
5361 mandeep.dh 6021
          case 1: // INVENTORY_ITEM
6022
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6023
              this.inventoryItem = new InventoryItem();
6024
              this.inventoryItem.read(iprot);
3430 rajveer 6025
            } else { 
6026
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6027
            }
6028
            break;
4496 mandeep.dh 6029
          case 2: // TYPE
6030
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6031
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 6032
            } else { 
6033
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6034
            }
6035
            break;
4496 mandeep.dh 6036
          case 3: // QUANTITY
6037
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6038
              this.quantity = iprot.readI64();
6039
              setQuantityIsSet(true);
6040
            } else { 
6041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6042
            }
6043
            break;
5361 mandeep.dh 6044
          case 4: // BILLING_WAREHOUSE_ID
4496 mandeep.dh 6045
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5361 mandeep.dh 6046
              this.billingWarehouseId = iprot.readI64();
6047
              setBillingWarehouseIdIsSet(true);
4496 mandeep.dh 6048
            } else { 
6049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6050
            }
6051
            break;
7410 amar.kumar 6052
          case 5: // TRANSFER_LOT_ID
6053
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6054
              this.transferLotId = iprot.readI64();
6055
              setTransferLotIdIsSet(true);
6056
            } else { 
6057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6058
            }
6059
            break;
3430 rajveer 6060
          default:
6061
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3383 chandransh 6062
        }
3430 rajveer 6063
        iprot.readFieldEnd();
3383 chandransh 6064
      }
6065
      iprot.readStructEnd();
6066
      validate();
6067
    }
6068
 
3430 rajveer 6069
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3383 chandransh 6070
      validate();
6071
 
6072
      oprot.writeStructBegin(STRUCT_DESC);
5361 mandeep.dh 6073
      if (this.inventoryItem != null) {
6074
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
6075
        this.inventoryItem.write(oprot);
6076
        oprot.writeFieldEnd();
6077
      }
4496 mandeep.dh 6078
      if (this.type != null) {
6079
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6080
        oprot.writeI32(this.type.getValue());
6081
        oprot.writeFieldEnd();
6082
      }
6083
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
6084
      oprot.writeI64(this.quantity);
3383 chandransh 6085
      oprot.writeFieldEnd();
5361 mandeep.dh 6086
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
6087
      oprot.writeI64(this.billingWarehouseId);
4496 mandeep.dh 6088
      oprot.writeFieldEnd();
7410 amar.kumar 6089
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
6090
      oprot.writeI64(this.transferLotId);
6091
      oprot.writeFieldEnd();
3383 chandransh 6092
      oprot.writeFieldStop();
6093
      oprot.writeStructEnd();
6094
    }
6095
 
6096
    @Override
6097
    public String toString() {
4496 mandeep.dh 6098
      StringBuilder sb = new StringBuilder("scan_args(");
3383 chandransh 6099
      boolean first = true;
6100
 
5361 mandeep.dh 6101
      sb.append("inventoryItem:");
6102
      if (this.inventoryItem == null) {
6103
        sb.append("null");
6104
      } else {
6105
        sb.append(this.inventoryItem);
6106
      }
3383 chandransh 6107
      first = false;
6108
      if (!first) sb.append(", ");
4496 mandeep.dh 6109
      sb.append("type:");
6110
      if (this.type == null) {
6111
        sb.append("null");
6112
      } else {
6113
        sb.append(this.type);
6114
      }
3383 chandransh 6115
      first = false;
4496 mandeep.dh 6116
      if (!first) sb.append(", ");
6117
      sb.append("quantity:");
6118
      sb.append(this.quantity);
6119
      first = false;
6120
      if (!first) sb.append(", ");
5361 mandeep.dh 6121
      sb.append("billingWarehouseId:");
6122
      sb.append(this.billingWarehouseId);
4496 mandeep.dh 6123
      first = false;
7410 amar.kumar 6124
      if (!first) sb.append(", ");
6125
      sb.append("transferLotId:");
6126
      sb.append(this.transferLotId);
6127
      first = false;
3383 chandransh 6128
      sb.append(")");
6129
      return sb.toString();
6130
    }
6131
 
3430 rajveer 6132
    public void validate() throws org.apache.thrift.TException {
3383 chandransh 6133
      // check for required fields
6134
    }
6135
 
3430 rajveer 6136
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6137
      try {
6138
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6139
      } catch (org.apache.thrift.TException te) {
6140
        throw new java.io.IOException(te);
6141
      }
6142
    }
6143
 
6144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6145
      try {
4496 mandeep.dh 6146
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6147
        __isset_bit_vector = new BitSet(1);
3430 rajveer 6148
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6149
      } catch (org.apache.thrift.TException te) {
6150
        throw new java.io.IOException(te);
6151
      }
6152
    }
6153
 
3383 chandransh 6154
  }
6155
 
4496 mandeep.dh 6156
  public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable   {
6157
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
3383 chandransh 6158
 
3430 rajveer 6159
    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 6160
 
3430 rajveer 6161
    private WarehouseServiceException wex; // required
3383 chandransh 6162
 
6163
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6164
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3383 chandransh 6165
      WEX((short)1, "wex");
6166
 
6167
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6168
 
6169
      static {
6170
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6171
          byName.put(field.getFieldName(), field);
6172
        }
6173
      }
6174
 
6175
      /**
6176
       * Find the _Fields constant that matches fieldId, or null if its not found.
6177
       */
6178
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6179
        switch(fieldId) {
6180
          case 1: // WEX
6181
            return WEX;
6182
          default:
6183
            return null;
6184
        }
3383 chandransh 6185
      }
6186
 
6187
      /**
6188
       * Find the _Fields constant that matches fieldId, throwing an exception
6189
       * if it is not found.
6190
       */
6191
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6192
        _Fields fields = findByThriftId(fieldId);
6193
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6194
        return fields;
6195
      }
6196
 
6197
      /**
6198
       * Find the _Fields constant that matches name, or null if its not found.
6199
       */
6200
      public static _Fields findByName(String name) {
6201
        return byName.get(name);
6202
      }
6203
 
6204
      private final short _thriftId;
6205
      private final String _fieldName;
6206
 
6207
      _Fields(short thriftId, String fieldName) {
6208
        _thriftId = thriftId;
6209
        _fieldName = fieldName;
6210
      }
6211
 
6212
      public short getThriftFieldId() {
6213
        return _thriftId;
6214
      }
6215
 
6216
      public String getFieldName() {
6217
        return _fieldName;
6218
      }
6219
    }
6220
 
6221
    // isset id assignments
6222
 
3430 rajveer 6223
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3383 chandransh 6224
    static {
3430 rajveer 6225
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6226
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6227
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6228
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 6229
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
3383 chandransh 6230
    }
6231
 
4496 mandeep.dh 6232
    public scan_result() {
3383 chandransh 6233
    }
6234
 
4496 mandeep.dh 6235
    public scan_result(
3383 chandransh 6236
      WarehouseServiceException wex)
6237
    {
6238
      this();
6239
      this.wex = wex;
6240
    }
6241
 
6242
    /**
6243
     * Performs a deep copy on <i>other</i>.
6244
     */
4496 mandeep.dh 6245
    public scan_result(scan_result other) {
3383 chandransh 6246
      if (other.isSetWex()) {
6247
        this.wex = new WarehouseServiceException(other.wex);
6248
      }
6249
    }
6250
 
4496 mandeep.dh 6251
    public scan_result deepCopy() {
6252
      return new scan_result(this);
3383 chandransh 6253
    }
6254
 
3430 rajveer 6255
    @Override
6256
    public void clear() {
6257
      this.wex = null;
3383 chandransh 6258
    }
6259
 
6260
    public WarehouseServiceException getWex() {
6261
      return this.wex;
6262
    }
6263
 
3430 rajveer 6264
    public void setWex(WarehouseServiceException wex) {
3383 chandransh 6265
      this.wex = wex;
6266
    }
6267
 
6268
    public void unsetWex() {
6269
      this.wex = null;
6270
    }
6271
 
3430 rajveer 6272
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
3383 chandransh 6273
    public boolean isSetWex() {
6274
      return this.wex != null;
6275
    }
6276
 
6277
    public void setWexIsSet(boolean value) {
6278
      if (!value) {
6279
        this.wex = null;
6280
      }
6281
    }
6282
 
6283
    public void setFieldValue(_Fields field, Object value) {
6284
      switch (field) {
6285
      case WEX:
6286
        if (value == null) {
6287
          unsetWex();
6288
        } else {
6289
          setWex((WarehouseServiceException)value);
6290
        }
6291
        break;
6292
 
6293
      }
6294
    }
6295
 
6296
    public Object getFieldValue(_Fields field) {
6297
      switch (field) {
6298
      case WEX:
6299
        return getWex();
6300
 
6301
      }
6302
      throw new IllegalStateException();
6303
    }
6304
 
3430 rajveer 6305
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6306
    public boolean isSet(_Fields field) {
6307
      if (field == null) {
6308
        throw new IllegalArgumentException();
6309
      }
3383 chandransh 6310
 
6311
      switch (field) {
6312
      case WEX:
6313
        return isSetWex();
6314
      }
6315
      throw new IllegalStateException();
6316
    }
6317
 
6318
    @Override
6319
    public boolean equals(Object that) {
6320
      if (that == null)
6321
        return false;
4496 mandeep.dh 6322
      if (that instanceof scan_result)
6323
        return this.equals((scan_result)that);
3383 chandransh 6324
      return false;
6325
    }
6326
 
4496 mandeep.dh 6327
    public boolean equals(scan_result that) {
3383 chandransh 6328
      if (that == null)
6329
        return false;
6330
 
6331
      boolean this_present_wex = true && this.isSetWex();
6332
      boolean that_present_wex = true && that.isSetWex();
6333
      if (this_present_wex || that_present_wex) {
6334
        if (!(this_present_wex && that_present_wex))
6335
          return false;
6336
        if (!this.wex.equals(that.wex))
6337
          return false;
6338
      }
6339
 
6340
      return true;
6341
    }
6342
 
6343
    @Override
6344
    public int hashCode() {
6345
      return 0;
6346
    }
6347
 
4496 mandeep.dh 6348
    public int compareTo(scan_result other) {
3383 chandransh 6349
      if (!getClass().equals(other.getClass())) {
6350
        return getClass().getName().compareTo(other.getClass().getName());
6351
      }
6352
 
6353
      int lastComparison = 0;
4496 mandeep.dh 6354
      scan_result typedOther = (scan_result)other;
3383 chandransh 6355
 
3430 rajveer 6356
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
3383 chandransh 6357
      if (lastComparison != 0) {
6358
        return lastComparison;
6359
      }
3430 rajveer 6360
      if (isSetWex()) {
6361
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
6362
        if (lastComparison != 0) {
6363
          return lastComparison;
6364
        }
3383 chandransh 6365
      }
6366
      return 0;
6367
    }
6368
 
3430 rajveer 6369
    public _Fields fieldForId(int fieldId) {
6370
      return _Fields.findByThriftId(fieldId);
6371
    }
6372
 
6373
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6374
      org.apache.thrift.protocol.TField field;
3383 chandransh 6375
      iprot.readStructBegin();
6376
      while (true)
6377
      {
6378
        field = iprot.readFieldBegin();
3430 rajveer 6379
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3383 chandransh 6380
          break;
6381
        }
3430 rajveer 6382
        switch (field.id) {
6383
          case 1: // WEX
6384
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6385
              this.wex = new WarehouseServiceException();
6386
              this.wex.read(iprot);
6387
            } else { 
6388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6389
            }
6390
            break;
6391
          default:
6392
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3383 chandransh 6393
        }
3430 rajveer 6394
        iprot.readFieldEnd();
3383 chandransh 6395
      }
6396
      iprot.readStructEnd();
6397
      validate();
6398
    }
6399
 
3430 rajveer 6400
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3383 chandransh 6401
      oprot.writeStructBegin(STRUCT_DESC);
6402
 
4496 mandeep.dh 6403
      if (this.isSetWex()) {
3383 chandransh 6404
        oprot.writeFieldBegin(WEX_FIELD_DESC);
6405
        this.wex.write(oprot);
6406
        oprot.writeFieldEnd();
6407
      }
6408
      oprot.writeFieldStop();
6409
      oprot.writeStructEnd();
6410
    }
6411
 
6412
    @Override
6413
    public String toString() {
4496 mandeep.dh 6414
      StringBuilder sb = new StringBuilder("scan_result(");
3383 chandransh 6415
      boolean first = true;
6416
 
6417
      sb.append("wex:");
6418
      if (this.wex == null) {
6419
        sb.append("null");
6420
      } else {
6421
        sb.append(this.wex);
6422
      }
6423
      first = false;
6424
      sb.append(")");
6425
      return sb.toString();
6426
    }
6427
 
3430 rajveer 6428
    public void validate() throws org.apache.thrift.TException {
3383 chandransh 6429
      // check for required fields
6430
    }
6431
 
3430 rajveer 6432
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6433
      try {
6434
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6435
      } catch (org.apache.thrift.TException te) {
6436
        throw new java.io.IOException(te);
6437
      }
6438
    }
6439
 
6440
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6441
      try {
6442
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6443
      } catch (org.apache.thrift.TException te) {
6444
        throw new java.io.IOException(te);
6445
      }
6446
    }
6447
 
3383 chandransh 6448
  }
6449
 
4496 mandeep.dh 6450
  public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable   {
6451
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
2820 chandransh 6452
 
4555 mandeep.dh 6453
    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 6454
    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);
6455
    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 6456
    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);
6457
    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);
6458
    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 6459
 
4555 mandeep.dh 6460
    private String serialNumber; // required
3430 rajveer 6461
    private ScanType type; // required
4496 mandeep.dh 6462
    private long orderId; // required
5110 mandeep.dh 6463
    private long fulfilmentWarehouseId; // required
6464
    private double quantity; // required
6465
    private long billingWarehouseId; // required
2820 chandransh 6466
 
6467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4555 mandeep.dh 6469
      SERIAL_NUMBER((short)1, "serialNumber"),
2820 chandransh 6470
      /**
6471
       * 
6472
       * @see ScanType
6473
       */
4496 mandeep.dh 6474
      TYPE((short)2, "type"),
6475
      ORDER_ID((short)3, "orderId"),
5110 mandeep.dh 6476
      FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
6477
      QUANTITY((short)5, "quantity"),
6478
      BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
2820 chandransh 6479
 
6480
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6481
 
6482
      static {
6483
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6484
          byName.put(field.getFieldName(), field);
6485
        }
6486
      }
6487
 
6488
      /**
6489
       * Find the _Fields constant that matches fieldId, or null if its not found.
6490
       */
6491
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6492
        switch(fieldId) {
4555 mandeep.dh 6493
          case 1: // SERIAL_NUMBER
6494
            return SERIAL_NUMBER;
4496 mandeep.dh 6495
          case 2: // TYPE
3430 rajveer 6496
            return TYPE;
4496 mandeep.dh 6497
          case 3: // ORDER_ID
6498
            return ORDER_ID;
5110 mandeep.dh 6499
          case 4: // FULFILMENT_WAREHOUSE_ID
6500
            return FULFILMENT_WAREHOUSE_ID;
6501
          case 5: // QUANTITY
6502
            return QUANTITY;
6503
          case 6: // BILLING_WAREHOUSE_ID
6504
            return BILLING_WAREHOUSE_ID;
3430 rajveer 6505
          default:
6506
            return null;
6507
        }
2820 chandransh 6508
      }
6509
 
6510
      /**
6511
       * Find the _Fields constant that matches fieldId, throwing an exception
6512
       * if it is not found.
6513
       */
6514
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6515
        _Fields fields = findByThriftId(fieldId);
6516
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6517
        return fields;
6518
      }
6519
 
6520
      /**
6521
       * Find the _Fields constant that matches name, or null if its not found.
6522
       */
6523
      public static _Fields findByName(String name) {
6524
        return byName.get(name);
6525
      }
6526
 
6527
      private final short _thriftId;
6528
      private final String _fieldName;
6529
 
6530
      _Fields(short thriftId, String fieldName) {
6531
        _thriftId = thriftId;
6532
        _fieldName = fieldName;
6533
      }
6534
 
6535
      public short getThriftFieldId() {
6536
        return _thriftId;
6537
      }
6538
 
6539
      public String getFieldName() {
6540
        return _fieldName;
6541
      }
6542
    }
6543
 
6544
    // isset id assignments
4555 mandeep.dh 6545
    private static final int __ORDERID_ISSET_ID = 0;
5110 mandeep.dh 6546
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
6547
    private static final int __QUANTITY_ISSET_ID = 2;
6548
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
6549
    private BitSet __isset_bit_vector = new BitSet(4);
2820 chandransh 6550
 
3430 rajveer 6551
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 6552
    static {
3430 rajveer 6553
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4555 mandeep.dh 6554
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6555
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 6556
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6557
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
4496 mandeep.dh 6558
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6559
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 6560
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 6561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 6562
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6563
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
6564
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6565
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 6566
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 6567
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
2820 chandransh 6568
    }
6569
 
4496 mandeep.dh 6570
    public scanSerializedItemForOrder_args() {
2820 chandransh 6571
    }
6572
 
4496 mandeep.dh 6573
    public scanSerializedItemForOrder_args(
4555 mandeep.dh 6574
      String serialNumber,
4496 mandeep.dh 6575
      ScanType type,
6576
      long orderId,
5110 mandeep.dh 6577
      long fulfilmentWarehouseId,
6578
      double quantity,
6579
      long billingWarehouseId)
2820 chandransh 6580
    {
6581
      this();
4555 mandeep.dh 6582
      this.serialNumber = serialNumber;
2820 chandransh 6583
      this.type = type;
4496 mandeep.dh 6584
      this.orderId = orderId;
6585
      setOrderIdIsSet(true);
5110 mandeep.dh 6586
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6587
      setFulfilmentWarehouseIdIsSet(true);
6588
      this.quantity = quantity;
6589
      setQuantityIsSet(true);
6590
      this.billingWarehouseId = billingWarehouseId;
6591
      setBillingWarehouseIdIsSet(true);
2820 chandransh 6592
    }
6593
 
6594
    /**
6595
     * Performs a deep copy on <i>other</i>.
6596
     */
4496 mandeep.dh 6597
    public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
2820 chandransh 6598
      __isset_bit_vector.clear();
6599
      __isset_bit_vector.or(other.__isset_bit_vector);
4555 mandeep.dh 6600
      if (other.isSetSerialNumber()) {
6601
        this.serialNumber = other.serialNumber;
6602
      }
2820 chandransh 6603
      if (other.isSetType()) {
6604
        this.type = other.type;
6605
      }
4496 mandeep.dh 6606
      this.orderId = other.orderId;
5110 mandeep.dh 6607
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
6608
      this.quantity = other.quantity;
6609
      this.billingWarehouseId = other.billingWarehouseId;
2820 chandransh 6610
    }
6611
 
4496 mandeep.dh 6612
    public scanSerializedItemForOrder_args deepCopy() {
6613
      return new scanSerializedItemForOrder_args(this);
2820 chandransh 6614
    }
6615
 
3430 rajveer 6616
    @Override
6617
    public void clear() {
4555 mandeep.dh 6618
      this.serialNumber = null;
3430 rajveer 6619
      this.type = null;
4496 mandeep.dh 6620
      setOrderIdIsSet(false);
6621
      this.orderId = 0;
5110 mandeep.dh 6622
      setFulfilmentWarehouseIdIsSet(false);
6623
      this.fulfilmentWarehouseId = 0;
6624
      setQuantityIsSet(false);
6625
      this.quantity = 0.0;
6626
      setBillingWarehouseIdIsSet(false);
6627
      this.billingWarehouseId = 0;
2820 chandransh 6628
    }
6629
 
4555 mandeep.dh 6630
    public String getSerialNumber() {
6631
      return this.serialNumber;
2820 chandransh 6632
    }
6633
 
4555 mandeep.dh 6634
    public void setSerialNumber(String serialNumber) {
6635
      this.serialNumber = serialNumber;
2820 chandransh 6636
    }
6637
 
4555 mandeep.dh 6638
    public void unsetSerialNumber() {
6639
      this.serialNumber = null;
2820 chandransh 6640
    }
6641
 
4555 mandeep.dh 6642
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
6643
    public boolean isSetSerialNumber() {
6644
      return this.serialNumber != null;
2820 chandransh 6645
    }
6646
 
4555 mandeep.dh 6647
    public void setSerialNumberIsSet(boolean value) {
6648
      if (!value) {
6649
        this.serialNumber = null;
6650
      }
2820 chandransh 6651
    }
6652
 
4496 mandeep.dh 6653
    /**
6654
     * 
6655
     * @see ScanType
6656
     */
6657
    public ScanType getType() {
6658
      return this.type;
2820 chandransh 6659
    }
6660
 
4496 mandeep.dh 6661
    /**
6662
     * 
6663
     * @see ScanType
6664
     */
6665
    public void setType(ScanType type) {
6666
      this.type = type;
2820 chandransh 6667
    }
6668
 
4496 mandeep.dh 6669
    public void unsetType() {
6670
      this.type = null;
2820 chandransh 6671
    }
6672
 
4496 mandeep.dh 6673
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6674
    public boolean isSetType() {
6675
      return this.type != null;
2820 chandransh 6676
    }
6677
 
4496 mandeep.dh 6678
    public void setTypeIsSet(boolean value) {
2820 chandransh 6679
      if (!value) {
4496 mandeep.dh 6680
        this.type = null;
2820 chandransh 6681
      }
6682
    }
6683
 
4496 mandeep.dh 6684
    public long getOrderId() {
6685
      return this.orderId;
2820 chandransh 6686
    }
6687
 
4496 mandeep.dh 6688
    public void setOrderId(long orderId) {
6689
      this.orderId = orderId;
6690
      setOrderIdIsSet(true);
2820 chandransh 6691
    }
6692
 
4496 mandeep.dh 6693
    public void unsetOrderId() {
6694
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2820 chandransh 6695
    }
6696
 
4496 mandeep.dh 6697
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
6698
    public boolean isSetOrderId() {
6699
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2820 chandransh 6700
    }
6701
 
4496 mandeep.dh 6702
    public void setOrderIdIsSet(boolean value) {
6703
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2820 chandransh 6704
    }
6705
 
5110 mandeep.dh 6706
    public long getFulfilmentWarehouseId() {
6707
      return this.fulfilmentWarehouseId;
2820 chandransh 6708
    }
6709
 
5110 mandeep.dh 6710
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
6711
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6712
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 6713
    }
6714
 
5110 mandeep.dh 6715
    public void unsetFulfilmentWarehouseId() {
6716
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 6717
    }
6718
 
5110 mandeep.dh 6719
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
6720
    public boolean isSetFulfilmentWarehouseId() {
6721
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 6722
    }
6723
 
5110 mandeep.dh 6724
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
6725
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
2820 chandransh 6726
    }
6727
 
5110 mandeep.dh 6728
    public double getQuantity() {
6729
      return this.quantity;
6730
    }
6731
 
6732
    public void setQuantity(double quantity) {
6733
      this.quantity = quantity;
6734
      setQuantityIsSet(true);
6735
    }
6736
 
6737
    public void unsetQuantity() {
6738
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
6739
    }
6740
 
6741
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
6742
    public boolean isSetQuantity() {
6743
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
6744
    }
6745
 
6746
    public void setQuantityIsSet(boolean value) {
6747
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
6748
    }
6749
 
6750
    public long getBillingWarehouseId() {
6751
      return this.billingWarehouseId;
6752
    }
6753
 
6754
    public void setBillingWarehouseId(long billingWarehouseId) {
6755
      this.billingWarehouseId = billingWarehouseId;
6756
      setBillingWarehouseIdIsSet(true);
6757
    }
6758
 
6759
    public void unsetBillingWarehouseId() {
6760
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
6761
    }
6762
 
6763
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
6764
    public boolean isSetBillingWarehouseId() {
6765
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
6766
    }
6767
 
6768
    public void setBillingWarehouseIdIsSet(boolean value) {
6769
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
6770
    }
6771
 
2820 chandransh 6772
    public void setFieldValue(_Fields field, Object value) {
6773
      switch (field) {
4555 mandeep.dh 6774
      case SERIAL_NUMBER:
2820 chandransh 6775
        if (value == null) {
4555 mandeep.dh 6776
          unsetSerialNumber();
2820 chandransh 6777
        } else {
4555 mandeep.dh 6778
          setSerialNumber((String)value);
2820 chandransh 6779
        }
6780
        break;
6781
 
4496 mandeep.dh 6782
      case TYPE:
2820 chandransh 6783
        if (value == null) {
4496 mandeep.dh 6784
          unsetType();
2820 chandransh 6785
        } else {
4496 mandeep.dh 6786
          setType((ScanType)value);
2820 chandransh 6787
        }
6788
        break;
6789
 
4496 mandeep.dh 6790
      case ORDER_ID:
2820 chandransh 6791
        if (value == null) {
4496 mandeep.dh 6792
          unsetOrderId();
2820 chandransh 6793
        } else {
4496 mandeep.dh 6794
          setOrderId((Long)value);
2820 chandransh 6795
        }
6796
        break;
6797
 
5110 mandeep.dh 6798
      case FULFILMENT_WAREHOUSE_ID:
2820 chandransh 6799
        if (value == null) {
5110 mandeep.dh 6800
          unsetFulfilmentWarehouseId();
2820 chandransh 6801
        } else {
5110 mandeep.dh 6802
          setFulfilmentWarehouseId((Long)value);
2820 chandransh 6803
        }
6804
        break;
6805
 
5110 mandeep.dh 6806
      case QUANTITY:
6807
        if (value == null) {
6808
          unsetQuantity();
6809
        } else {
6810
          setQuantity((Double)value);
6811
        }
6812
        break;
6813
 
6814
      case BILLING_WAREHOUSE_ID:
6815
        if (value == null) {
6816
          unsetBillingWarehouseId();
6817
        } else {
6818
          setBillingWarehouseId((Long)value);
6819
        }
6820
        break;
6821
 
2820 chandransh 6822
      }
6823
    }
6824
 
6825
    public Object getFieldValue(_Fields field) {
6826
      switch (field) {
4555 mandeep.dh 6827
      case SERIAL_NUMBER:
6828
        return getSerialNumber();
2820 chandransh 6829
 
6830
      case TYPE:
6831
        return getType();
6832
 
4496 mandeep.dh 6833
      case ORDER_ID:
6834
        return Long.valueOf(getOrderId());
6835
 
5110 mandeep.dh 6836
      case FULFILMENT_WAREHOUSE_ID:
6837
        return Long.valueOf(getFulfilmentWarehouseId());
4496 mandeep.dh 6838
 
5110 mandeep.dh 6839
      case QUANTITY:
6840
        return Double.valueOf(getQuantity());
6841
 
6842
      case BILLING_WAREHOUSE_ID:
6843
        return Long.valueOf(getBillingWarehouseId());
6844
 
2820 chandransh 6845
      }
6846
      throw new IllegalStateException();
6847
    }
6848
 
3430 rajveer 6849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6850
    public boolean isSet(_Fields field) {
6851
      if (field == null) {
6852
        throw new IllegalArgumentException();
6853
      }
2820 chandransh 6854
 
6855
      switch (field) {
4555 mandeep.dh 6856
      case SERIAL_NUMBER:
6857
        return isSetSerialNumber();
2820 chandransh 6858
      case TYPE:
6859
        return isSetType();
4496 mandeep.dh 6860
      case ORDER_ID:
6861
        return isSetOrderId();
5110 mandeep.dh 6862
      case FULFILMENT_WAREHOUSE_ID:
6863
        return isSetFulfilmentWarehouseId();
6864
      case QUANTITY:
6865
        return isSetQuantity();
6866
      case BILLING_WAREHOUSE_ID:
6867
        return isSetBillingWarehouseId();
2820 chandransh 6868
      }
6869
      throw new IllegalStateException();
6870
    }
6871
 
6872
    @Override
6873
    public boolean equals(Object that) {
6874
      if (that == null)
6875
        return false;
4496 mandeep.dh 6876
      if (that instanceof scanSerializedItemForOrder_args)
6877
        return this.equals((scanSerializedItemForOrder_args)that);
2820 chandransh 6878
      return false;
6879
    }
6880
 
4496 mandeep.dh 6881
    public boolean equals(scanSerializedItemForOrder_args that) {
2820 chandransh 6882
      if (that == null)
6883
        return false;
6884
 
4555 mandeep.dh 6885
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
6886
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
6887
      if (this_present_serialNumber || that_present_serialNumber) {
6888
        if (!(this_present_serialNumber && that_present_serialNumber))
2820 chandransh 6889
          return false;
4555 mandeep.dh 6890
        if (!this.serialNumber.equals(that.serialNumber))
2820 chandransh 6891
          return false;
6892
      }
6893
 
4496 mandeep.dh 6894
      boolean this_present_type = true && this.isSetType();
6895
      boolean that_present_type = true && that.isSetType();
6896
      if (this_present_type || that_present_type) {
6897
        if (!(this_present_type && that_present_type))
2820 chandransh 6898
          return false;
4496 mandeep.dh 6899
        if (!this.type.equals(that.type))
2820 chandransh 6900
          return false;
6901
      }
6902
 
4496 mandeep.dh 6903
      boolean this_present_orderId = true;
6904
      boolean that_present_orderId = true;
6905
      if (this_present_orderId || that_present_orderId) {
6906
        if (!(this_present_orderId && that_present_orderId))
2820 chandransh 6907
          return false;
4496 mandeep.dh 6908
        if (this.orderId != that.orderId)
2820 chandransh 6909
          return false;
6910
      }
6911
 
5110 mandeep.dh 6912
      boolean this_present_fulfilmentWarehouseId = true;
6913
      boolean that_present_fulfilmentWarehouseId = true;
6914
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
6915
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
2820 chandransh 6916
          return false;
5110 mandeep.dh 6917
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
2820 chandransh 6918
          return false;
6919
      }
6920
 
5110 mandeep.dh 6921
      boolean this_present_quantity = true;
6922
      boolean that_present_quantity = true;
6923
      if (this_present_quantity || that_present_quantity) {
6924
        if (!(this_present_quantity && that_present_quantity))
6925
          return false;
6926
        if (this.quantity != that.quantity)
6927
          return false;
6928
      }
6929
 
6930
      boolean this_present_billingWarehouseId = true;
6931
      boolean that_present_billingWarehouseId = true;
6932
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
6933
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
6934
          return false;
6935
        if (this.billingWarehouseId != that.billingWarehouseId)
6936
          return false;
6937
      }
6938
 
2820 chandransh 6939
      return true;
6940
    }
6941
 
6942
    @Override
6943
    public int hashCode() {
6944
      return 0;
6945
    }
6946
 
4496 mandeep.dh 6947
    public int compareTo(scanSerializedItemForOrder_args other) {
2820 chandransh 6948
      if (!getClass().equals(other.getClass())) {
6949
        return getClass().getName().compareTo(other.getClass().getName());
6950
      }
6951
 
6952
      int lastComparison = 0;
4496 mandeep.dh 6953
      scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
2820 chandransh 6954
 
4555 mandeep.dh 6955
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
2820 chandransh 6956
      if (lastComparison != 0) {
6957
        return lastComparison;
6958
      }
4555 mandeep.dh 6959
      if (isSetSerialNumber()) {
6960
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
3430 rajveer 6961
        if (lastComparison != 0) {
6962
          return lastComparison;
6963
        }
2820 chandransh 6964
      }
4496 mandeep.dh 6965
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2820 chandransh 6966
      if (lastComparison != 0) {
6967
        return lastComparison;
6968
      }
4496 mandeep.dh 6969
      if (isSetType()) {
6970
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 6971
        if (lastComparison != 0) {
6972
          return lastComparison;
6973
        }
2820 chandransh 6974
      }
4496 mandeep.dh 6975
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2820 chandransh 6976
      if (lastComparison != 0) {
6977
        return lastComparison;
6978
      }
4496 mandeep.dh 6979
      if (isSetOrderId()) {
6980
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
3430 rajveer 6981
        if (lastComparison != 0) {
6982
          return lastComparison;
6983
        }
2820 chandransh 6984
      }
5110 mandeep.dh 6985
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
2820 chandransh 6986
      if (lastComparison != 0) {
6987
        return lastComparison;
6988
      }
5110 mandeep.dh 6989
      if (isSetFulfilmentWarehouseId()) {
6990
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
3430 rajveer 6991
        if (lastComparison != 0) {
6992
          return lastComparison;
6993
        }
2820 chandransh 6994
      }
5110 mandeep.dh 6995
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
6996
      if (lastComparison != 0) {
6997
        return lastComparison;
6998
      }
6999
      if (isSetQuantity()) {
7000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
7001
        if (lastComparison != 0) {
7002
          return lastComparison;
7003
        }
7004
      }
7005
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
7006
      if (lastComparison != 0) {
7007
        return lastComparison;
7008
      }
7009
      if (isSetBillingWarehouseId()) {
7010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
7011
        if (lastComparison != 0) {
7012
          return lastComparison;
7013
        }
7014
      }
2820 chandransh 7015
      return 0;
7016
    }
7017
 
3430 rajveer 7018
    public _Fields fieldForId(int fieldId) {
7019
      return _Fields.findByThriftId(fieldId);
7020
    }
7021
 
7022
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7023
      org.apache.thrift.protocol.TField field;
2820 chandransh 7024
      iprot.readStructBegin();
7025
      while (true)
7026
      {
7027
        field = iprot.readFieldBegin();
3430 rajveer 7028
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 7029
          break;
7030
        }
3430 rajveer 7031
        switch (field.id) {
4555 mandeep.dh 7032
          case 1: // SERIAL_NUMBER
7033
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7034
              this.serialNumber = iprot.readString();
3430 rajveer 7035
            } else { 
7036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7037
            }
7038
            break;
4496 mandeep.dh 7039
          case 2: // TYPE
7040
            if (field.type == org.apache.thrift.protocol.TType.I32) {
7041
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 7042
            } else { 
7043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7044
            }
7045
            break;
4496 mandeep.dh 7046
          case 3: // ORDER_ID
7047
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7048
              this.orderId = iprot.readI64();
7049
              setOrderIdIsSet(true);
3430 rajveer 7050
            } else { 
7051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7052
            }
7053
            break;
5110 mandeep.dh 7054
          case 4: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 7055
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5110 mandeep.dh 7056
              this.fulfilmentWarehouseId = iprot.readI64();
7057
              setFulfilmentWarehouseIdIsSet(true);
3430 rajveer 7058
            } else { 
7059
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7060
            }
7061
            break;
5110 mandeep.dh 7062
          case 5: // QUANTITY
7063
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
7064
              this.quantity = iprot.readDouble();
7065
              setQuantityIsSet(true);
7066
            } else { 
7067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7068
            }
7069
            break;
7070
          case 6: // BILLING_WAREHOUSE_ID
7071
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7072
              this.billingWarehouseId = iprot.readI64();
7073
              setBillingWarehouseIdIsSet(true);
7074
            } else { 
7075
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7076
            }
7077
            break;
3430 rajveer 7078
          default:
7079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 7080
        }
3430 rajveer 7081
        iprot.readFieldEnd();
2820 chandransh 7082
      }
7083
      iprot.readStructEnd();
7084
      validate();
7085
    }
7086
 
3430 rajveer 7087
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 7088
      validate();
7089
 
7090
      oprot.writeStructBegin(STRUCT_DESC);
4555 mandeep.dh 7091
      if (this.serialNumber != null) {
7092
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
7093
        oprot.writeString(this.serialNumber);
7094
        oprot.writeFieldEnd();
7095
      }
2820 chandransh 7096
      if (this.type != null) {
7097
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
7098
        oprot.writeI32(this.type.getValue());
7099
        oprot.writeFieldEnd();
7100
      }
4496 mandeep.dh 7101
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
7102
      oprot.writeI64(this.orderId);
7103
      oprot.writeFieldEnd();
5110 mandeep.dh 7104
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
7105
      oprot.writeI64(this.fulfilmentWarehouseId);
4496 mandeep.dh 7106
      oprot.writeFieldEnd();
5110 mandeep.dh 7107
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
7108
      oprot.writeDouble(this.quantity);
7109
      oprot.writeFieldEnd();
7110
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
7111
      oprot.writeI64(this.billingWarehouseId);
7112
      oprot.writeFieldEnd();
2820 chandransh 7113
      oprot.writeFieldStop();
7114
      oprot.writeStructEnd();
7115
    }
7116
 
7117
    @Override
7118
    public String toString() {
4496 mandeep.dh 7119
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
2820 chandransh 7120
      boolean first = true;
7121
 
4555 mandeep.dh 7122
      sb.append("serialNumber:");
7123
      if (this.serialNumber == null) {
7124
        sb.append("null");
7125
      } else {
7126
        sb.append(this.serialNumber);
7127
      }
2820 chandransh 7128
      first = false;
7129
      if (!first) sb.append(", ");
4496 mandeep.dh 7130
      sb.append("type:");
7131
      if (this.type == null) {
2820 chandransh 7132
        sb.append("null");
7133
      } else {
4496 mandeep.dh 7134
        sb.append(this.type);
2820 chandransh 7135
      }
7136
      first = false;
7137
      if (!first) sb.append(", ");
4496 mandeep.dh 7138
      sb.append("orderId:");
7139
      sb.append(this.orderId);
2820 chandransh 7140
      first = false;
7141
      if (!first) sb.append(", ");
5110 mandeep.dh 7142
      sb.append("fulfilmentWarehouseId:");
7143
      sb.append(this.fulfilmentWarehouseId);
2820 chandransh 7144
      first = false;
5110 mandeep.dh 7145
      if (!first) sb.append(", ");
7146
      sb.append("quantity:");
7147
      sb.append(this.quantity);
7148
      first = false;
7149
      if (!first) sb.append(", ");
7150
      sb.append("billingWarehouseId:");
7151
      sb.append(this.billingWarehouseId);
7152
      first = false;
2820 chandransh 7153
      sb.append(")");
7154
      return sb.toString();
7155
    }
7156
 
3430 rajveer 7157
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 7158
      // check for required fields
7159
    }
7160
 
3430 rajveer 7161
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7162
      try {
7163
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7164
      } catch (org.apache.thrift.TException te) {
7165
        throw new java.io.IOException(te);
7166
      }
7167
    }
7168
 
7169
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7170
      try {
7171
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7172
      } catch (org.apache.thrift.TException te) {
7173
        throw new java.io.IOException(te);
7174
      }
7175
    }
7176
 
2820 chandransh 7177
  }
7178
 
4496 mandeep.dh 7179
  public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable   {
7180
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
2820 chandransh 7181
 
4555 mandeep.dh 7182
    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 7183
    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 7184
 
4555 mandeep.dh 7185
    private InventoryItem success; // required
3430 rajveer 7186
    private WarehouseServiceException wex; // required
2820 chandransh 7187
 
7188
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7189
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4496 mandeep.dh 7190
      SUCCESS((short)0, "success"),
2820 chandransh 7191
      WEX((short)1, "wex");
7192
 
7193
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7194
 
7195
      static {
7196
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7197
          byName.put(field.getFieldName(), field);
7198
        }
7199
      }
7200
 
7201
      /**
7202
       * Find the _Fields constant that matches fieldId, or null if its not found.
7203
       */
7204
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7205
        switch(fieldId) {
4496 mandeep.dh 7206
          case 0: // SUCCESS
7207
            return SUCCESS;
3430 rajveer 7208
          case 1: // WEX
7209
            return WEX;
7210
          default:
7211
            return null;
7212
        }
2820 chandransh 7213
      }
7214
 
7215
      /**
7216
       * Find the _Fields constant that matches fieldId, throwing an exception
7217
       * if it is not found.
7218
       */
7219
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7220
        _Fields fields = findByThriftId(fieldId);
7221
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7222
        return fields;
7223
      }
7224
 
7225
      /**
7226
       * Find the _Fields constant that matches name, or null if its not found.
7227
       */
7228
      public static _Fields findByName(String name) {
7229
        return byName.get(name);
7230
      }
7231
 
7232
      private final short _thriftId;
7233
      private final String _fieldName;
7234
 
7235
      _Fields(short thriftId, String fieldName) {
7236
        _thriftId = thriftId;
7237
        _fieldName = fieldName;
7238
      }
7239
 
7240
      public short getThriftFieldId() {
7241
        return _thriftId;
7242
      }
7243
 
7244
      public String getFieldName() {
7245
        return _fieldName;
7246
      }
7247
    }
7248
 
7249
    // isset id assignments
7250
 
3430 rajveer 7251
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 7252
    static {
3430 rajveer 7253
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4496 mandeep.dh 7254
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4555 mandeep.dh 7255
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 7256
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7257
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7258
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 7259
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
2820 chandransh 7260
    }
7261
 
4496 mandeep.dh 7262
    public scanSerializedItemForOrder_result() {
2820 chandransh 7263
    }
7264
 
4496 mandeep.dh 7265
    public scanSerializedItemForOrder_result(
4555 mandeep.dh 7266
      InventoryItem success,
2820 chandransh 7267
      WarehouseServiceException wex)
7268
    {
7269
      this();
4496 mandeep.dh 7270
      this.success = success;
2820 chandransh 7271
      this.wex = wex;
7272
    }
7273
 
7274
    /**
7275
     * Performs a deep copy on <i>other</i>.
7276
     */
4496 mandeep.dh 7277
    public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
4555 mandeep.dh 7278
      if (other.isSetSuccess()) {
7279
        this.success = new InventoryItem(other.success);
7280
      }
2820 chandransh 7281
      if (other.isSetWex()) {
7282
        this.wex = new WarehouseServiceException(other.wex);
7283
      }
7284
    }
7285
 
4496 mandeep.dh 7286
    public scanSerializedItemForOrder_result deepCopy() {
7287
      return new scanSerializedItemForOrder_result(this);
2820 chandransh 7288
    }
7289
 
3430 rajveer 7290
    @Override
7291
    public void clear() {
4555 mandeep.dh 7292
      this.success = null;
3430 rajveer 7293
      this.wex = null;
2820 chandransh 7294
    }
7295
 
4555 mandeep.dh 7296
    public InventoryItem getSuccess() {
4496 mandeep.dh 7297
      return this.success;
7298
    }
7299
 
4555 mandeep.dh 7300
    public void setSuccess(InventoryItem success) {
4496 mandeep.dh 7301
      this.success = success;
7302
    }
7303
 
7304
    public void unsetSuccess() {
4555 mandeep.dh 7305
      this.success = null;
4496 mandeep.dh 7306
    }
7307
 
7308
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7309
    public boolean isSetSuccess() {
4555 mandeep.dh 7310
      return this.success != null;
4496 mandeep.dh 7311
    }
7312
 
7313
    public void setSuccessIsSet(boolean value) {
4555 mandeep.dh 7314
      if (!value) {
7315
        this.success = null;
7316
      }
4496 mandeep.dh 7317
    }
7318
 
2820 chandransh 7319
    public WarehouseServiceException getWex() {
7320
      return this.wex;
7321
    }
7322
 
3430 rajveer 7323
    public void setWex(WarehouseServiceException wex) {
2820 chandransh 7324
      this.wex = wex;
7325
    }
7326
 
7327
    public void unsetWex() {
7328
      this.wex = null;
7329
    }
7330
 
3430 rajveer 7331
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
2820 chandransh 7332
    public boolean isSetWex() {
7333
      return this.wex != null;
7334
    }
7335
 
7336
    public void setWexIsSet(boolean value) {
7337
      if (!value) {
7338
        this.wex = null;
7339
      }
7340
    }
7341
 
7342
    public void setFieldValue(_Fields field, Object value) {
7343
      switch (field) {
4496 mandeep.dh 7344
      case SUCCESS:
7345
        if (value == null) {
7346
          unsetSuccess();
7347
        } else {
4555 mandeep.dh 7348
          setSuccess((InventoryItem)value);
4496 mandeep.dh 7349
        }
7350
        break;
7351
 
2820 chandransh 7352
      case WEX:
7353
        if (value == null) {
7354
          unsetWex();
7355
        } else {
7356
          setWex((WarehouseServiceException)value);
7357
        }
7358
        break;
7359
 
7360
      }
7361
    }
7362
 
7363
    public Object getFieldValue(_Fields field) {
7364
      switch (field) {
4496 mandeep.dh 7365
      case SUCCESS:
4555 mandeep.dh 7366
        return getSuccess();
4496 mandeep.dh 7367
 
2820 chandransh 7368
      case WEX:
7369
        return getWex();
7370
 
7371
      }
7372
      throw new IllegalStateException();
7373
    }
7374
 
3430 rajveer 7375
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7376
    public boolean isSet(_Fields field) {
7377
      if (field == null) {
7378
        throw new IllegalArgumentException();
7379
      }
2820 chandransh 7380
 
7381
      switch (field) {
4496 mandeep.dh 7382
      case SUCCESS:
7383
        return isSetSuccess();
2820 chandransh 7384
      case WEX:
7385
        return isSetWex();
7386
      }
7387
      throw new IllegalStateException();
7388
    }
7389
 
7390
    @Override
7391
    public boolean equals(Object that) {
7392
      if (that == null)
7393
        return false;
4496 mandeep.dh 7394
      if (that instanceof scanSerializedItemForOrder_result)
7395
        return this.equals((scanSerializedItemForOrder_result)that);
2820 chandransh 7396
      return false;
7397
    }
7398
 
4496 mandeep.dh 7399
    public boolean equals(scanSerializedItemForOrder_result that) {
2820 chandransh 7400
      if (that == null)
7401
        return false;
7402
 
4555 mandeep.dh 7403
      boolean this_present_success = true && this.isSetSuccess();
7404
      boolean that_present_success = true && that.isSetSuccess();
4496 mandeep.dh 7405
      if (this_present_success || that_present_success) {
7406
        if (!(this_present_success && that_present_success))
7407
          return false;
4555 mandeep.dh 7408
        if (!this.success.equals(that.success))
4496 mandeep.dh 7409
          return false;
7410
      }
7411
 
2820 chandransh 7412
      boolean this_present_wex = true && this.isSetWex();
7413
      boolean that_present_wex = true && that.isSetWex();
7414
      if (this_present_wex || that_present_wex) {
7415
        if (!(this_present_wex && that_present_wex))
7416
          return false;
7417
        if (!this.wex.equals(that.wex))
7418
          return false;
7419
      }
7420
 
7421
      return true;
7422
    }
7423
 
7424
    @Override
7425
    public int hashCode() {
7426
      return 0;
7427
    }
7428
 
4496 mandeep.dh 7429
    public int compareTo(scanSerializedItemForOrder_result other) {
2820 chandransh 7430
      if (!getClass().equals(other.getClass())) {
7431
        return getClass().getName().compareTo(other.getClass().getName());
7432
      }
7433
 
7434
      int lastComparison = 0;
4496 mandeep.dh 7435
      scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
2820 chandransh 7436
 
4496 mandeep.dh 7437
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7438
      if (lastComparison != 0) {
7439
        return lastComparison;
7440
      }
7441
      if (isSetSuccess()) {
7442
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7443
        if (lastComparison != 0) {
7444
          return lastComparison;
7445
        }
7446
      }
3430 rajveer 7447
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 7448
      if (lastComparison != 0) {
7449
        return lastComparison;
7450
      }
3430 rajveer 7451
      if (isSetWex()) {
7452
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
7453
        if (lastComparison != 0) {
7454
          return lastComparison;
7455
        }
2820 chandransh 7456
      }
7457
      return 0;
7458
    }
7459
 
3430 rajveer 7460
    public _Fields fieldForId(int fieldId) {
7461
      return _Fields.findByThriftId(fieldId);
7462
    }
7463
 
7464
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7465
      org.apache.thrift.protocol.TField field;
2820 chandransh 7466
      iprot.readStructBegin();
7467
      while (true)
7468
      {
7469
        field = iprot.readFieldBegin();
3430 rajveer 7470
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 7471
          break;
7472
        }
3430 rajveer 7473
        switch (field.id) {
4496 mandeep.dh 7474
          case 0: // SUCCESS
4555 mandeep.dh 7475
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7476
              this.success = new InventoryItem();
7477
              this.success.read(iprot);
4496 mandeep.dh 7478
            } else { 
7479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7480
            }
7481
            break;
3430 rajveer 7482
          case 1: // WEX
7483
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7484
              this.wex = new WarehouseServiceException();
7485
              this.wex.read(iprot);
7486
            } else { 
7487
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7488
            }
7489
            break;
7490
          default:
7491
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 7492
        }
3430 rajveer 7493
        iprot.readFieldEnd();
2820 chandransh 7494
      }
7495
      iprot.readStructEnd();
7496
      validate();
7497
    }
7498
 
3430 rajveer 7499
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 7500
      oprot.writeStructBegin(STRUCT_DESC);
7501
 
4496 mandeep.dh 7502
      if (this.isSetSuccess()) {
7503
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4555 mandeep.dh 7504
        this.success.write(oprot);
4496 mandeep.dh 7505
        oprot.writeFieldEnd();
7506
      } else if (this.isSetWex()) {
2820 chandransh 7507
        oprot.writeFieldBegin(WEX_FIELD_DESC);
7508
        this.wex.write(oprot);
7509
        oprot.writeFieldEnd();
7510
      }
7511
      oprot.writeFieldStop();
7512
      oprot.writeStructEnd();
7513
    }
7514
 
7515
    @Override
7516
    public String toString() {
4496 mandeep.dh 7517
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
2820 chandransh 7518
      boolean first = true;
7519
 
4496 mandeep.dh 7520
      sb.append("success:");
4555 mandeep.dh 7521
      if (this.success == null) {
7522
        sb.append("null");
7523
      } else {
7524
        sb.append(this.success);
7525
      }
4496 mandeep.dh 7526
      first = false;
7527
      if (!first) sb.append(", ");
2820 chandransh 7528
      sb.append("wex:");
7529
      if (this.wex == null) {
7530
        sb.append("null");
7531
      } else {
7532
        sb.append(this.wex);
7533
      }
7534
      first = false;
7535
      sb.append(")");
7536
      return sb.toString();
7537
    }
7538
 
3430 rajveer 7539
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 7540
      // check for required fields
7541
    }
7542
 
3430 rajveer 7543
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7544
      try {
7545
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7546
      } catch (org.apache.thrift.TException te) {
7547
        throw new java.io.IOException(te);
7548
      }
7549
    }
7550
 
7551
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7552
      try {
7553
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7554
      } catch (org.apache.thrift.TException te) {
7555
        throw new java.io.IOException(te);
7556
      }
7557
    }
7558
 
2820 chandransh 7559
  }
7560
 
4496 mandeep.dh 7561
  public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable   {
7562
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
2820 chandransh 7563
 
5361 mandeep.dh 7564
    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 7565
    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);
7566
    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);
7567
    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 7568
    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 7569
    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 7570
 
5361 mandeep.dh 7571
    private InventoryItem inventoryItem; // required
3430 rajveer 7572
    private ScanType type; // required
4496 mandeep.dh 7573
    private long quantity; // required
7574
    private long orderId; // required
5110 mandeep.dh 7575
    private long fulfilmentWarehouseId; // required
5361 mandeep.dh 7576
    private long billingWarehouseId; // required
2820 chandransh 7577
 
7578
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7579
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 7580
      INVENTORY_ITEM((short)1, "inventoryItem"),
2820 chandransh 7581
      /**
7582
       * 
7583
       * @see ScanType
7584
       */
4496 mandeep.dh 7585
      TYPE((short)2, "type"),
7586
      QUANTITY((short)3, "quantity"),
7587
      ORDER_ID((short)4, "orderId"),
5361 mandeep.dh 7588
      FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
7589
      BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
2820 chandransh 7590
 
7591
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7592
 
7593
      static {
7594
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7595
          byName.put(field.getFieldName(), field);
7596
        }
7597
      }
7598
 
7599
      /**
7600
       * Find the _Fields constant that matches fieldId, or null if its not found.
7601
       */
7602
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7603
        switch(fieldId) {
5361 mandeep.dh 7604
          case 1: // INVENTORY_ITEM
7605
            return INVENTORY_ITEM;
4496 mandeep.dh 7606
          case 2: // TYPE
3430 rajveer 7607
            return TYPE;
4496 mandeep.dh 7608
          case 3: // QUANTITY
7609
            return QUANTITY;
7610
          case 4: // ORDER_ID
7611
            return ORDER_ID;
5110 mandeep.dh 7612
          case 5: // FULFILMENT_WAREHOUSE_ID
7613
            return FULFILMENT_WAREHOUSE_ID;
5361 mandeep.dh 7614
          case 6: // BILLING_WAREHOUSE_ID
7615
            return BILLING_WAREHOUSE_ID;
3430 rajveer 7616
          default:
7617
            return null;
7618
        }
2820 chandransh 7619
      }
7620
 
7621
      /**
7622
       * Find the _Fields constant that matches fieldId, throwing an exception
7623
       * if it is not found.
7624
       */
7625
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7626
        _Fields fields = findByThriftId(fieldId);
7627
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7628
        return fields;
7629
      }
7630
 
7631
      /**
7632
       * Find the _Fields constant that matches name, or null if its not found.
7633
       */
7634
      public static _Fields findByName(String name) {
7635
        return byName.get(name);
7636
      }
7637
 
7638
      private final short _thriftId;
7639
      private final String _fieldName;
7640
 
7641
      _Fields(short thriftId, String fieldName) {
7642
        _thriftId = thriftId;
7643
        _fieldName = fieldName;
7644
      }
7645
 
7646
      public short getThriftFieldId() {
7647
        return _thriftId;
7648
      }
7649
 
7650
      public String getFieldName() {
7651
        return _fieldName;
7652
      }
7653
    }
7654
 
7655
    // isset id assignments
5361 mandeep.dh 7656
    private static final int __QUANTITY_ISSET_ID = 0;
7657
    private static final int __ORDERID_ISSET_ID = 1;
7658
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
7659
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
4496 mandeep.dh 7660
    private BitSet __isset_bit_vector = new BitSet(4);
2820 chandransh 7661
 
3430 rajveer 7662
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 7663
    static {
3430 rajveer 7664
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 7665
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7666
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 7667
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7668
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
4496 mandeep.dh 7669
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7670
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7671
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7672
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 7673
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 7674
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5361 mandeep.dh 7675
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7676
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 7677
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 7678
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
2820 chandransh 7679
    }
7680
 
4496 mandeep.dh 7681
    public scanForOrder_args() {
2820 chandransh 7682
    }
7683
 
4496 mandeep.dh 7684
    public scanForOrder_args(
5361 mandeep.dh 7685
      InventoryItem inventoryItem,
4496 mandeep.dh 7686
      ScanType type,
7687
      long quantity,
7688
      long orderId,
5361 mandeep.dh 7689
      long fulfilmentWarehouseId,
7690
      long billingWarehouseId)
2820 chandransh 7691
    {
7692
      this();
5361 mandeep.dh 7693
      this.inventoryItem = inventoryItem;
2820 chandransh 7694
      this.type = type;
4496 mandeep.dh 7695
      this.quantity = quantity;
7696
      setQuantityIsSet(true);
7697
      this.orderId = orderId;
7698
      setOrderIdIsSet(true);
5110 mandeep.dh 7699
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
7700
      setFulfilmentWarehouseIdIsSet(true);
5361 mandeep.dh 7701
      this.billingWarehouseId = billingWarehouseId;
7702
      setBillingWarehouseIdIsSet(true);
2820 chandransh 7703
    }
7704
 
7705
    /**
7706
     * Performs a deep copy on <i>other</i>.
7707
     */
4496 mandeep.dh 7708
    public scanForOrder_args(scanForOrder_args other) {
7709
      __isset_bit_vector.clear();
7710
      __isset_bit_vector.or(other.__isset_bit_vector);
5361 mandeep.dh 7711
      if (other.isSetInventoryItem()) {
7712
        this.inventoryItem = new InventoryItem(other.inventoryItem);
7713
      }
2820 chandransh 7714
      if (other.isSetType()) {
7715
        this.type = other.type;
7716
      }
4496 mandeep.dh 7717
      this.quantity = other.quantity;
7718
      this.orderId = other.orderId;
5110 mandeep.dh 7719
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
5361 mandeep.dh 7720
      this.billingWarehouseId = other.billingWarehouseId;
2820 chandransh 7721
    }
7722
 
4496 mandeep.dh 7723
    public scanForOrder_args deepCopy() {
7724
      return new scanForOrder_args(this);
2820 chandransh 7725
    }
7726
 
3430 rajveer 7727
    @Override
7728
    public void clear() {
5361 mandeep.dh 7729
      this.inventoryItem = null;
3430 rajveer 7730
      this.type = null;
4496 mandeep.dh 7731
      setQuantityIsSet(false);
7732
      this.quantity = 0;
7733
      setOrderIdIsSet(false);
7734
      this.orderId = 0;
5110 mandeep.dh 7735
      setFulfilmentWarehouseIdIsSet(false);
7736
      this.fulfilmentWarehouseId = 0;
5361 mandeep.dh 7737
      setBillingWarehouseIdIsSet(false);
7738
      this.billingWarehouseId = 0;
2820 chandransh 7739
    }
7740
 
5361 mandeep.dh 7741
    public InventoryItem getInventoryItem() {
7742
      return this.inventoryItem;
2820 chandransh 7743
    }
7744
 
5361 mandeep.dh 7745
    public void setInventoryItem(InventoryItem inventoryItem) {
7746
      this.inventoryItem = inventoryItem;
2820 chandransh 7747
    }
7748
 
5361 mandeep.dh 7749
    public void unsetInventoryItem() {
7750
      this.inventoryItem = null;
2820 chandransh 7751
    }
7752
 
5361 mandeep.dh 7753
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
7754
    public boolean isSetInventoryItem() {
7755
      return this.inventoryItem != null;
2820 chandransh 7756
    }
7757
 
5361 mandeep.dh 7758
    public void setInventoryItemIsSet(boolean value) {
7759
      if (!value) {
7760
        this.inventoryItem = null;
7761
      }
2820 chandransh 7762
    }
7763
 
7764
    /**
7765
     * 
7766
     * @see ScanType
7767
     */
7768
    public ScanType getType() {
7769
      return this.type;
7770
    }
7771
 
7772
    /**
7773
     * 
7774
     * @see ScanType
7775
     */
3430 rajveer 7776
    public void setType(ScanType type) {
2820 chandransh 7777
      this.type = type;
7778
    }
7779
 
7780
    public void unsetType() {
7781
      this.type = null;
7782
    }
7783
 
3430 rajveer 7784
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
2820 chandransh 7785
    public boolean isSetType() {
7786
      return this.type != null;
7787
    }
7788
 
7789
    public void setTypeIsSet(boolean value) {
7790
      if (!value) {
7791
        this.type = null;
7792
      }
7793
    }
7794
 
4496 mandeep.dh 7795
    public long getQuantity() {
7796
      return this.quantity;
7797
    }
7798
 
7799
    public void setQuantity(long quantity) {
7800
      this.quantity = quantity;
7801
      setQuantityIsSet(true);
7802
    }
7803
 
7804
    public void unsetQuantity() {
7805
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
7806
    }
7807
 
7808
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
7809
    public boolean isSetQuantity() {
7810
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
7811
    }
7812
 
7813
    public void setQuantityIsSet(boolean value) {
7814
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
7815
    }
7816
 
7817
    public long getOrderId() {
7818
      return this.orderId;
7819
    }
7820
 
7821
    public void setOrderId(long orderId) {
7822
      this.orderId = orderId;
7823
      setOrderIdIsSet(true);
7824
    }
7825
 
7826
    public void unsetOrderId() {
7827
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
7828
    }
7829
 
7830
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
7831
    public boolean isSetOrderId() {
7832
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
7833
    }
7834
 
7835
    public void setOrderIdIsSet(boolean value) {
7836
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
7837
    }
7838
 
5110 mandeep.dh 7839
    public long getFulfilmentWarehouseId() {
7840
      return this.fulfilmentWarehouseId;
4496 mandeep.dh 7841
    }
7842
 
5110 mandeep.dh 7843
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
7844
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
7845
      setFulfilmentWarehouseIdIsSet(true);
4496 mandeep.dh 7846
    }
7847
 
5110 mandeep.dh 7848
    public void unsetFulfilmentWarehouseId() {
7849
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 7850
    }
7851
 
5110 mandeep.dh 7852
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
7853
    public boolean isSetFulfilmentWarehouseId() {
7854
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 7855
    }
7856
 
5110 mandeep.dh 7857
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
7858
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
4496 mandeep.dh 7859
    }
7860
 
5361 mandeep.dh 7861
    public long getBillingWarehouseId() {
7862
      return this.billingWarehouseId;
7863
    }
7864
 
7865
    public void setBillingWarehouseId(long billingWarehouseId) {
7866
      this.billingWarehouseId = billingWarehouseId;
7867
      setBillingWarehouseIdIsSet(true);
7868
    }
7869
 
7870
    public void unsetBillingWarehouseId() {
7871
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
7872
    }
7873
 
7874
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
7875
    public boolean isSetBillingWarehouseId() {
7876
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
7877
    }
7878
 
7879
    public void setBillingWarehouseIdIsSet(boolean value) {
7880
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
7881
    }
7882
 
2820 chandransh 7883
    public void setFieldValue(_Fields field, Object value) {
7884
      switch (field) {
5361 mandeep.dh 7885
      case INVENTORY_ITEM:
2820 chandransh 7886
        if (value == null) {
5361 mandeep.dh 7887
          unsetInventoryItem();
2820 chandransh 7888
        } else {
5361 mandeep.dh 7889
          setInventoryItem((InventoryItem)value);
2820 chandransh 7890
        }
7891
        break;
7892
 
4496 mandeep.dh 7893
      case TYPE:
2820 chandransh 7894
        if (value == null) {
4496 mandeep.dh 7895
          unsetType();
2820 chandransh 7896
        } else {
4496 mandeep.dh 7897
          setType((ScanType)value);
2820 chandransh 7898
        }
7899
        break;
7900
 
4496 mandeep.dh 7901
      case QUANTITY:
2820 chandransh 7902
        if (value == null) {
4496 mandeep.dh 7903
          unsetQuantity();
2820 chandransh 7904
        } else {
4496 mandeep.dh 7905
          setQuantity((Long)value);
2820 chandransh 7906
        }
7907
        break;
7908
 
4496 mandeep.dh 7909
      case ORDER_ID:
7910
        if (value == null) {
7911
          unsetOrderId();
7912
        } else {
7913
          setOrderId((Long)value);
7914
        }
7915
        break;
7916
 
5110 mandeep.dh 7917
      case FULFILMENT_WAREHOUSE_ID:
4496 mandeep.dh 7918
        if (value == null) {
5110 mandeep.dh 7919
          unsetFulfilmentWarehouseId();
4496 mandeep.dh 7920
        } else {
5110 mandeep.dh 7921
          setFulfilmentWarehouseId((Long)value);
4496 mandeep.dh 7922
        }
7923
        break;
7924
 
5361 mandeep.dh 7925
      case BILLING_WAREHOUSE_ID:
7926
        if (value == null) {
7927
          unsetBillingWarehouseId();
7928
        } else {
7929
          setBillingWarehouseId((Long)value);
7930
        }
7931
        break;
7932
 
2820 chandransh 7933
      }
7934
    }
7935
 
7936
    public Object getFieldValue(_Fields field) {
7937
      switch (field) {
5361 mandeep.dh 7938
      case INVENTORY_ITEM:
7939
        return getInventoryItem();
2820 chandransh 7940
 
7941
      case TYPE:
7942
        return getType();
7943
 
4496 mandeep.dh 7944
      case QUANTITY:
7945
        return Long.valueOf(getQuantity());
7946
 
7947
      case ORDER_ID:
7948
        return Long.valueOf(getOrderId());
7949
 
5110 mandeep.dh 7950
      case FULFILMENT_WAREHOUSE_ID:
7951
        return Long.valueOf(getFulfilmentWarehouseId());
4496 mandeep.dh 7952
 
5361 mandeep.dh 7953
      case BILLING_WAREHOUSE_ID:
7954
        return Long.valueOf(getBillingWarehouseId());
7955
 
2820 chandransh 7956
      }
7957
      throw new IllegalStateException();
7958
    }
7959
 
3430 rajveer 7960
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7961
    public boolean isSet(_Fields field) {
7962
      if (field == null) {
7963
        throw new IllegalArgumentException();
7964
      }
2820 chandransh 7965
 
7966
      switch (field) {
5361 mandeep.dh 7967
      case INVENTORY_ITEM:
7968
        return isSetInventoryItem();
2820 chandransh 7969
      case TYPE:
7970
        return isSetType();
4496 mandeep.dh 7971
      case QUANTITY:
7972
        return isSetQuantity();
7973
      case ORDER_ID:
7974
        return isSetOrderId();
5110 mandeep.dh 7975
      case FULFILMENT_WAREHOUSE_ID:
7976
        return isSetFulfilmentWarehouseId();
5361 mandeep.dh 7977
      case BILLING_WAREHOUSE_ID:
7978
        return isSetBillingWarehouseId();
2820 chandransh 7979
      }
7980
      throw new IllegalStateException();
7981
    }
7982
 
7983
    @Override
7984
    public boolean equals(Object that) {
7985
      if (that == null)
7986
        return false;
4496 mandeep.dh 7987
      if (that instanceof scanForOrder_args)
7988
        return this.equals((scanForOrder_args)that);
2820 chandransh 7989
      return false;
7990
    }
7991
 
4496 mandeep.dh 7992
    public boolean equals(scanForOrder_args that) {
2820 chandransh 7993
      if (that == null)
7994
        return false;
7995
 
5361 mandeep.dh 7996
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
7997
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
7998
      if (this_present_inventoryItem || that_present_inventoryItem) {
7999
        if (!(this_present_inventoryItem && that_present_inventoryItem))
2820 chandransh 8000
          return false;
5361 mandeep.dh 8001
        if (!this.inventoryItem.equals(that.inventoryItem))
2820 chandransh 8002
          return false;
8003
      }
8004
 
8005
      boolean this_present_type = true && this.isSetType();
8006
      boolean that_present_type = true && that.isSetType();
8007
      if (this_present_type || that_present_type) {
8008
        if (!(this_present_type && that_present_type))
8009
          return false;
8010
        if (!this.type.equals(that.type))
8011
          return false;
8012
      }
8013
 
4496 mandeep.dh 8014
      boolean this_present_quantity = true;
8015
      boolean that_present_quantity = true;
8016
      if (this_present_quantity || that_present_quantity) {
8017
        if (!(this_present_quantity && that_present_quantity))
8018
          return false;
8019
        if (this.quantity != that.quantity)
8020
          return false;
8021
      }
8022
 
8023
      boolean this_present_orderId = true;
8024
      boolean that_present_orderId = true;
8025
      if (this_present_orderId || that_present_orderId) {
8026
        if (!(this_present_orderId && that_present_orderId))
8027
          return false;
8028
        if (this.orderId != that.orderId)
8029
          return false;
8030
      }
8031
 
5110 mandeep.dh 8032
      boolean this_present_fulfilmentWarehouseId = true;
8033
      boolean that_present_fulfilmentWarehouseId = true;
8034
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
8035
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
4496 mandeep.dh 8036
          return false;
5110 mandeep.dh 8037
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
4496 mandeep.dh 8038
          return false;
8039
      }
8040
 
5361 mandeep.dh 8041
      boolean this_present_billingWarehouseId = true;
8042
      boolean that_present_billingWarehouseId = true;
8043
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
8044
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
8045
          return false;
8046
        if (this.billingWarehouseId != that.billingWarehouseId)
8047
          return false;
8048
      }
8049
 
2820 chandransh 8050
      return true;
8051
    }
8052
 
8053
    @Override
8054
    public int hashCode() {
8055
      return 0;
8056
    }
8057
 
4496 mandeep.dh 8058
    public int compareTo(scanForOrder_args other) {
2820 chandransh 8059
      if (!getClass().equals(other.getClass())) {
8060
        return getClass().getName().compareTo(other.getClass().getName());
8061
      }
8062
 
8063
      int lastComparison = 0;
4496 mandeep.dh 8064
      scanForOrder_args typedOther = (scanForOrder_args)other;
2820 chandransh 8065
 
5361 mandeep.dh 8066
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
2820 chandransh 8067
      if (lastComparison != 0) {
8068
        return lastComparison;
8069
      }
5361 mandeep.dh 8070
      if (isSetInventoryItem()) {
8071
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
3430 rajveer 8072
        if (lastComparison != 0) {
8073
          return lastComparison;
8074
        }
2820 chandransh 8075
      }
4496 mandeep.dh 8076
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2820 chandransh 8077
      if (lastComparison != 0) {
8078
        return lastComparison;
8079
      }
4496 mandeep.dh 8080
      if (isSetType()) {
8081
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 8082
        if (lastComparison != 0) {
8083
          return lastComparison;
8084
        }
2820 chandransh 8085
      }
4496 mandeep.dh 8086
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
2820 chandransh 8087
      if (lastComparison != 0) {
8088
        return lastComparison;
8089
      }
4496 mandeep.dh 8090
      if (isSetQuantity()) {
8091
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
3430 rajveer 8092
        if (lastComparison != 0) {
8093
          return lastComparison;
8094
        }
2820 chandransh 8095
      }
4496 mandeep.dh 8096
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
8097
      if (lastComparison != 0) {
8098
        return lastComparison;
8099
      }
8100
      if (isSetOrderId()) {
8101
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
8102
        if (lastComparison != 0) {
8103
          return lastComparison;
8104
        }
8105
      }
5110 mandeep.dh 8106
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
4496 mandeep.dh 8107
      if (lastComparison != 0) {
8108
        return lastComparison;
8109
      }
5110 mandeep.dh 8110
      if (isSetFulfilmentWarehouseId()) {
8111
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
4496 mandeep.dh 8112
        if (lastComparison != 0) {
8113
          return lastComparison;
8114
        }
8115
      }
5361 mandeep.dh 8116
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
8117
      if (lastComparison != 0) {
8118
        return lastComparison;
8119
      }
8120
      if (isSetBillingWarehouseId()) {
8121
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
8122
        if (lastComparison != 0) {
8123
          return lastComparison;
8124
        }
8125
      }
2820 chandransh 8126
      return 0;
8127
    }
8128
 
3430 rajveer 8129
    public _Fields fieldForId(int fieldId) {
8130
      return _Fields.findByThriftId(fieldId);
8131
    }
8132
 
8133
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8134
      org.apache.thrift.protocol.TField field;
2820 chandransh 8135
      iprot.readStructBegin();
8136
      while (true)
8137
      {
8138
        field = iprot.readFieldBegin();
3430 rajveer 8139
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 8140
          break;
8141
        }
3430 rajveer 8142
        switch (field.id) {
5361 mandeep.dh 8143
          case 1: // INVENTORY_ITEM
8144
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8145
              this.inventoryItem = new InventoryItem();
8146
              this.inventoryItem.read(iprot);
3430 rajveer 8147
            } else { 
8148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8149
            }
8150
            break;
4496 mandeep.dh 8151
          case 2: // TYPE
8152
            if (field.type == org.apache.thrift.protocol.TType.I32) {
8153
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 8154
            } else { 
8155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8156
            }
8157
            break;
4496 mandeep.dh 8158
          case 3: // QUANTITY
8159
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8160
              this.quantity = iprot.readI64();
8161
              setQuantityIsSet(true);
3430 rajveer 8162
            } else { 
8163
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8164
            }
8165
            break;
4496 mandeep.dh 8166
          case 4: // ORDER_ID
8167
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8168
              this.orderId = iprot.readI64();
8169
              setOrderIdIsSet(true);
8170
            } else { 
8171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8172
            }
8173
            break;
5110 mandeep.dh 8174
          case 5: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 8175
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5110 mandeep.dh 8176
              this.fulfilmentWarehouseId = iprot.readI64();
8177
              setFulfilmentWarehouseIdIsSet(true);
4496 mandeep.dh 8178
            } else { 
8179
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8180
            }
8181
            break;
5361 mandeep.dh 8182
          case 6: // BILLING_WAREHOUSE_ID
8183
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8184
              this.billingWarehouseId = iprot.readI64();
8185
              setBillingWarehouseIdIsSet(true);
8186
            } else { 
8187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8188
            }
8189
            break;
3430 rajveer 8190
          default:
8191
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 8192
        }
3430 rajveer 8193
        iprot.readFieldEnd();
2820 chandransh 8194
      }
8195
      iprot.readStructEnd();
8196
      validate();
8197
    }
8198
 
3430 rajveer 8199
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 8200
      validate();
8201
 
8202
      oprot.writeStructBegin(STRUCT_DESC);
5361 mandeep.dh 8203
      if (this.inventoryItem != null) {
8204
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
8205
        this.inventoryItem.write(oprot);
8206
        oprot.writeFieldEnd();
8207
      }
2820 chandransh 8208
      if (this.type != null) {
8209
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
8210
        oprot.writeI32(this.type.getValue());
8211
        oprot.writeFieldEnd();
8212
      }
4496 mandeep.dh 8213
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
8214
      oprot.writeI64(this.quantity);
8215
      oprot.writeFieldEnd();
8216
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
8217
      oprot.writeI64(this.orderId);
8218
      oprot.writeFieldEnd();
5110 mandeep.dh 8219
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
8220
      oprot.writeI64(this.fulfilmentWarehouseId);
4496 mandeep.dh 8221
      oprot.writeFieldEnd();
5361 mandeep.dh 8222
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
8223
      oprot.writeI64(this.billingWarehouseId);
8224
      oprot.writeFieldEnd();
2820 chandransh 8225
      oprot.writeFieldStop();
8226
      oprot.writeStructEnd();
8227
    }
8228
 
8229
    @Override
8230
    public String toString() {
4496 mandeep.dh 8231
      StringBuilder sb = new StringBuilder("scanForOrder_args(");
2820 chandransh 8232
      boolean first = true;
8233
 
5361 mandeep.dh 8234
      sb.append("inventoryItem:");
8235
      if (this.inventoryItem == null) {
8236
        sb.append("null");
8237
      } else {
8238
        sb.append(this.inventoryItem);
8239
      }
2820 chandransh 8240
      first = false;
8241
      if (!first) sb.append(", ");
8242
      sb.append("type:");
8243
      if (this.type == null) {
8244
        sb.append("null");
8245
      } else {
8246
        sb.append(this.type);
8247
      }
8248
      first = false;
4496 mandeep.dh 8249
      if (!first) sb.append(", ");
8250
      sb.append("quantity:");
8251
      sb.append(this.quantity);
8252
      first = false;
8253
      if (!first) sb.append(", ");
8254
      sb.append("orderId:");
8255
      sb.append(this.orderId);
8256
      first = false;
8257
      if (!first) sb.append(", ");
5110 mandeep.dh 8258
      sb.append("fulfilmentWarehouseId:");
8259
      sb.append(this.fulfilmentWarehouseId);
4496 mandeep.dh 8260
      first = false;
5361 mandeep.dh 8261
      if (!first) sb.append(", ");
8262
      sb.append("billingWarehouseId:");
8263
      sb.append(this.billingWarehouseId);
8264
      first = false;
2820 chandransh 8265
      sb.append(")");
8266
      return sb.toString();
8267
    }
8268
 
3430 rajveer 8269
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 8270
      // check for required fields
8271
    }
8272
 
3430 rajveer 8273
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8274
      try {
8275
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8276
      } catch (org.apache.thrift.TException te) {
8277
        throw new java.io.IOException(te);
8278
      }
8279
    }
8280
 
8281
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8282
      try {
4496 mandeep.dh 8283
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8284
        __isset_bit_vector = new BitSet(1);
3430 rajveer 8285
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8286
      } catch (org.apache.thrift.TException te) {
8287
        throw new java.io.IOException(te);
8288
      }
8289
    }
8290
 
2820 chandransh 8291
  }
8292
 
4496 mandeep.dh 8293
  public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable   {
8294
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
2820 chandransh 8295
 
5361 mandeep.dh 8296
    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 8297
    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 8298
 
5361 mandeep.dh 8299
    private InventoryItem success; // required
3430 rajveer 8300
    private WarehouseServiceException wex; // required
2820 chandransh 8301
 
8302
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8303
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 8304
      SUCCESS((short)0, "success"),
2820 chandransh 8305
      WEX((short)1, "wex");
8306
 
8307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8308
 
8309
      static {
8310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8311
          byName.put(field.getFieldName(), field);
8312
        }
8313
      }
8314
 
8315
      /**
8316
       * Find the _Fields constant that matches fieldId, or null if its not found.
8317
       */
8318
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8319
        switch(fieldId) {
5361 mandeep.dh 8320
          case 0: // SUCCESS
8321
            return SUCCESS;
3430 rajveer 8322
          case 1: // WEX
8323
            return WEX;
8324
          default:
8325
            return null;
8326
        }
2820 chandransh 8327
      }
8328
 
8329
      /**
8330
       * Find the _Fields constant that matches fieldId, throwing an exception
8331
       * if it is not found.
8332
       */
8333
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8334
        _Fields fields = findByThriftId(fieldId);
8335
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8336
        return fields;
8337
      }
8338
 
8339
      /**
8340
       * Find the _Fields constant that matches name, or null if its not found.
8341
       */
8342
      public static _Fields findByName(String name) {
8343
        return byName.get(name);
8344
      }
8345
 
8346
      private final short _thriftId;
8347
      private final String _fieldName;
8348
 
8349
      _Fields(short thriftId, String fieldName) {
8350
        _thriftId = thriftId;
8351
        _fieldName = fieldName;
8352
      }
8353
 
8354
      public short getThriftFieldId() {
8355
        return _thriftId;
8356
      }
8357
 
8358
      public String getFieldName() {
8359
        return _fieldName;
8360
      }
8361
    }
8362
 
8363
    // isset id assignments
8364
 
3430 rajveer 8365
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 8366
    static {
3430 rajveer 8367
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 8368
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8369
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 8370
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8371
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8372
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 8373
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
2820 chandransh 8374
    }
8375
 
4496 mandeep.dh 8376
    public scanForOrder_result() {
2820 chandransh 8377
    }
8378
 
4496 mandeep.dh 8379
    public scanForOrder_result(
5361 mandeep.dh 8380
      InventoryItem success,
2820 chandransh 8381
      WarehouseServiceException wex)
8382
    {
8383
      this();
5361 mandeep.dh 8384
      this.success = success;
2820 chandransh 8385
      this.wex = wex;
8386
    }
8387
 
8388
    /**
8389
     * Performs a deep copy on <i>other</i>.
8390
     */
4496 mandeep.dh 8391
    public scanForOrder_result(scanForOrder_result other) {
5361 mandeep.dh 8392
      if (other.isSetSuccess()) {
8393
        this.success = new InventoryItem(other.success);
8394
      }
2820 chandransh 8395
      if (other.isSetWex()) {
8396
        this.wex = new WarehouseServiceException(other.wex);
8397
      }
8398
    }
8399
 
4496 mandeep.dh 8400
    public scanForOrder_result deepCopy() {
8401
      return new scanForOrder_result(this);
2820 chandransh 8402
    }
8403
 
3430 rajveer 8404
    @Override
8405
    public void clear() {
5361 mandeep.dh 8406
      this.success = null;
3430 rajveer 8407
      this.wex = null;
2820 chandransh 8408
    }
8409
 
5361 mandeep.dh 8410
    public InventoryItem getSuccess() {
8411
      return this.success;
8412
    }
8413
 
8414
    public void setSuccess(InventoryItem success) {
8415
      this.success = success;
8416
    }
8417
 
8418
    public void unsetSuccess() {
8419
      this.success = null;
8420
    }
8421
 
8422
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8423
    public boolean isSetSuccess() {
8424
      return this.success != null;
8425
    }
8426
 
8427
    public void setSuccessIsSet(boolean value) {
8428
      if (!value) {
8429
        this.success = null;
8430
      }
8431
    }
8432
 
2820 chandransh 8433
    public WarehouseServiceException getWex() {
8434
      return this.wex;
8435
    }
8436
 
3430 rajveer 8437
    public void setWex(WarehouseServiceException wex) {
2820 chandransh 8438
      this.wex = wex;
8439
    }
8440
 
8441
    public void unsetWex() {
8442
      this.wex = null;
8443
    }
8444
 
3430 rajveer 8445
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
2820 chandransh 8446
    public boolean isSetWex() {
8447
      return this.wex != null;
8448
    }
8449
 
8450
    public void setWexIsSet(boolean value) {
8451
      if (!value) {
8452
        this.wex = null;
8453
      }
8454
    }
8455
 
8456
    public void setFieldValue(_Fields field, Object value) {
8457
      switch (field) {
5361 mandeep.dh 8458
      case SUCCESS:
8459
        if (value == null) {
8460
          unsetSuccess();
8461
        } else {
8462
          setSuccess((InventoryItem)value);
8463
        }
8464
        break;
8465
 
2820 chandransh 8466
      case WEX:
8467
        if (value == null) {
8468
          unsetWex();
8469
        } else {
8470
          setWex((WarehouseServiceException)value);
8471
        }
8472
        break;
8473
 
8474
      }
8475
    }
8476
 
8477
    public Object getFieldValue(_Fields field) {
8478
      switch (field) {
5361 mandeep.dh 8479
      case SUCCESS:
8480
        return getSuccess();
8481
 
2820 chandransh 8482
      case WEX:
8483
        return getWex();
8484
 
8485
      }
8486
      throw new IllegalStateException();
8487
    }
8488
 
3430 rajveer 8489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8490
    public boolean isSet(_Fields field) {
8491
      if (field == null) {
8492
        throw new IllegalArgumentException();
8493
      }
2820 chandransh 8494
 
8495
      switch (field) {
5361 mandeep.dh 8496
      case SUCCESS:
8497
        return isSetSuccess();
2820 chandransh 8498
      case WEX:
8499
        return isSetWex();
8500
      }
8501
      throw new IllegalStateException();
8502
    }
8503
 
8504
    @Override
8505
    public boolean equals(Object that) {
8506
      if (that == null)
8507
        return false;
4496 mandeep.dh 8508
      if (that instanceof scanForOrder_result)
8509
        return this.equals((scanForOrder_result)that);
2820 chandransh 8510
      return false;
8511
    }
8512
 
4496 mandeep.dh 8513
    public boolean equals(scanForOrder_result that) {
2820 chandransh 8514
      if (that == null)
8515
        return false;
8516
 
5361 mandeep.dh 8517
      boolean this_present_success = true && this.isSetSuccess();
8518
      boolean that_present_success = true && that.isSetSuccess();
8519
      if (this_present_success || that_present_success) {
8520
        if (!(this_present_success && that_present_success))
8521
          return false;
8522
        if (!this.success.equals(that.success))
8523
          return false;
8524
      }
8525
 
2820 chandransh 8526
      boolean this_present_wex = true && this.isSetWex();
8527
      boolean that_present_wex = true && that.isSetWex();
8528
      if (this_present_wex || that_present_wex) {
8529
        if (!(this_present_wex && that_present_wex))
8530
          return false;
8531
        if (!this.wex.equals(that.wex))
8532
          return false;
8533
      }
8534
 
8535
      return true;
8536
    }
8537
 
8538
    @Override
8539
    public int hashCode() {
8540
      return 0;
8541
    }
8542
 
4496 mandeep.dh 8543
    public int compareTo(scanForOrder_result other) {
2820 chandransh 8544
      if (!getClass().equals(other.getClass())) {
8545
        return getClass().getName().compareTo(other.getClass().getName());
8546
      }
8547
 
8548
      int lastComparison = 0;
4496 mandeep.dh 8549
      scanForOrder_result typedOther = (scanForOrder_result)other;
2820 chandransh 8550
 
5361 mandeep.dh 8551
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8552
      if (lastComparison != 0) {
8553
        return lastComparison;
8554
      }
8555
      if (isSetSuccess()) {
8556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8557
        if (lastComparison != 0) {
8558
          return lastComparison;
8559
        }
8560
      }
3430 rajveer 8561
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 8562
      if (lastComparison != 0) {
8563
        return lastComparison;
8564
      }
3430 rajveer 8565
      if (isSetWex()) {
8566
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
8567
        if (lastComparison != 0) {
8568
          return lastComparison;
8569
        }
2820 chandransh 8570
      }
8571
      return 0;
8572
    }
8573
 
3430 rajveer 8574
    public _Fields fieldForId(int fieldId) {
8575
      return _Fields.findByThriftId(fieldId);
8576
    }
8577
 
8578
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8579
      org.apache.thrift.protocol.TField field;
2820 chandransh 8580
      iprot.readStructBegin();
8581
      while (true)
8582
      {
8583
        field = iprot.readFieldBegin();
3430 rajveer 8584
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 8585
          break;
8586
        }
3430 rajveer 8587
        switch (field.id) {
5361 mandeep.dh 8588
          case 0: // SUCCESS
8589
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8590
              this.success = new InventoryItem();
8591
              this.success.read(iprot);
8592
            } else { 
8593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8594
            }
8595
            break;
3430 rajveer 8596
          case 1: // WEX
8597
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8598
              this.wex = new WarehouseServiceException();
8599
              this.wex.read(iprot);
8600
            } else { 
8601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8602
            }
8603
            break;
8604
          default:
8605
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 8606
        }
3430 rajveer 8607
        iprot.readFieldEnd();
2820 chandransh 8608
      }
8609
      iprot.readStructEnd();
8610
      validate();
8611
    }
8612
 
3430 rajveer 8613
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 8614
      oprot.writeStructBegin(STRUCT_DESC);
8615
 
5361 mandeep.dh 8616
      if (this.isSetSuccess()) {
8617
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8618
        this.success.write(oprot);
8619
        oprot.writeFieldEnd();
8620
      } else if (this.isSetWex()) {
2820 chandransh 8621
        oprot.writeFieldBegin(WEX_FIELD_DESC);
8622
        this.wex.write(oprot);
8623
        oprot.writeFieldEnd();
8624
      }
8625
      oprot.writeFieldStop();
8626
      oprot.writeStructEnd();
8627
    }
8628
 
8629
    @Override
8630
    public String toString() {
4496 mandeep.dh 8631
      StringBuilder sb = new StringBuilder("scanForOrder_result(");
2820 chandransh 8632
      boolean first = true;
8633
 
5361 mandeep.dh 8634
      sb.append("success:");
8635
      if (this.success == null) {
8636
        sb.append("null");
8637
      } else {
8638
        sb.append(this.success);
8639
      }
8640
      first = false;
8641
      if (!first) sb.append(", ");
2820 chandransh 8642
      sb.append("wex:");
8643
      if (this.wex == null) {
8644
        sb.append("null");
8645
      } else {
8646
        sb.append(this.wex);
8647
      }
8648
      first = false;
8649
      sb.append(")");
8650
      return sb.toString();
8651
    }
8652
 
3430 rajveer 8653
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 8654
      // check for required fields
8655
    }
8656
 
3430 rajveer 8657
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8658
      try {
8659
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8660
      } catch (org.apache.thrift.TException te) {
8661
        throw new java.io.IOException(te);
8662
      }
8663
    }
8664
 
8665
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8666
      try {
8667
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8668
      } catch (org.apache.thrift.TException te) {
8669
        throw new java.io.IOException(te);
8670
      }
8671
    }
8672
 
2820 chandransh 8673
  }
8674
 
4496 mandeep.dh 8675
  public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable   {
8676
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
8677
 
8678
    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);
8679
    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);
8680
 
8681
    private String itemNumber; // required
8682
    private long itemId; // required
8683
 
8684
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8685
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8686
      ITEM_NUMBER((short)1, "itemNumber"),
8687
      ITEM_ID((short)2, "itemId");
8688
 
8689
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8690
 
8691
      static {
8692
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8693
          byName.put(field.getFieldName(), field);
8694
        }
8695
      }
8696
 
8697
      /**
8698
       * Find the _Fields constant that matches fieldId, or null if its not found.
8699
       */
8700
      public static _Fields findByThriftId(int fieldId) {
8701
        switch(fieldId) {
8702
          case 1: // ITEM_NUMBER
8703
            return ITEM_NUMBER;
8704
          case 2: // ITEM_ID
8705
            return ITEM_ID;
8706
          default:
8707
            return null;
8708
        }
8709
      }
8710
 
8711
      /**
8712
       * Find the _Fields constant that matches fieldId, throwing an exception
8713
       * if it is not found.
8714
       */
8715
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8716
        _Fields fields = findByThriftId(fieldId);
8717
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8718
        return fields;
8719
      }
8720
 
8721
      /**
8722
       * Find the _Fields constant that matches name, or null if its not found.
8723
       */
8724
      public static _Fields findByName(String name) {
8725
        return byName.get(name);
8726
      }
8727
 
8728
      private final short _thriftId;
8729
      private final String _fieldName;
8730
 
8731
      _Fields(short thriftId, String fieldName) {
8732
        _thriftId = thriftId;
8733
        _fieldName = fieldName;
8734
      }
8735
 
8736
      public short getThriftFieldId() {
8737
        return _thriftId;
8738
      }
8739
 
8740
      public String getFieldName() {
8741
        return _fieldName;
8742
      }
8743
    }
8744
 
8745
    // isset id assignments
8746
    private static final int __ITEMID_ISSET_ID = 0;
8747
    private BitSet __isset_bit_vector = new BitSet(1);
8748
 
8749
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8750
    static {
8751
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8752
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8753
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8754
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8755
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8756
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8757
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
8758
    }
8759
 
8760
    public createItemNumberMapping_args() {
8761
    }
8762
 
8763
    public createItemNumberMapping_args(
8764
      String itemNumber,
8765
      long itemId)
8766
    {
8767
      this();
8768
      this.itemNumber = itemNumber;
8769
      this.itemId = itemId;
8770
      setItemIdIsSet(true);
8771
    }
8772
 
8773
    /**
8774
     * Performs a deep copy on <i>other</i>.
8775
     */
8776
    public createItemNumberMapping_args(createItemNumberMapping_args other) {
8777
      __isset_bit_vector.clear();
8778
      __isset_bit_vector.or(other.__isset_bit_vector);
8779
      if (other.isSetItemNumber()) {
8780
        this.itemNumber = other.itemNumber;
8781
      }
8782
      this.itemId = other.itemId;
8783
    }
8784
 
8785
    public createItemNumberMapping_args deepCopy() {
8786
      return new createItemNumberMapping_args(this);
8787
    }
8788
 
8789
    @Override
8790
    public void clear() {
8791
      this.itemNumber = null;
8792
      setItemIdIsSet(false);
8793
      this.itemId = 0;
8794
    }
8795
 
8796
    public String getItemNumber() {
8797
      return this.itemNumber;
8798
    }
8799
 
8800
    public void setItemNumber(String itemNumber) {
8801
      this.itemNumber = itemNumber;
8802
    }
8803
 
8804
    public void unsetItemNumber() {
8805
      this.itemNumber = null;
8806
    }
8807
 
8808
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
8809
    public boolean isSetItemNumber() {
8810
      return this.itemNumber != null;
8811
    }
8812
 
8813
    public void setItemNumberIsSet(boolean value) {
8814
      if (!value) {
8815
        this.itemNumber = null;
8816
      }
8817
    }
8818
 
8819
    public long getItemId() {
8820
      return this.itemId;
8821
    }
8822
 
8823
    public void setItemId(long itemId) {
8824
      this.itemId = itemId;
8825
      setItemIdIsSet(true);
8826
    }
8827
 
8828
    public void unsetItemId() {
8829
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
8830
    }
8831
 
8832
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
8833
    public boolean isSetItemId() {
8834
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
8835
    }
8836
 
8837
    public void setItemIdIsSet(boolean value) {
8838
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
8839
    }
8840
 
8841
    public void setFieldValue(_Fields field, Object value) {
8842
      switch (field) {
8843
      case ITEM_NUMBER:
8844
        if (value == null) {
8845
          unsetItemNumber();
8846
        } else {
8847
          setItemNumber((String)value);
8848
        }
8849
        break;
8850
 
8851
      case ITEM_ID:
8852
        if (value == null) {
8853
          unsetItemId();
8854
        } else {
8855
          setItemId((Long)value);
8856
        }
8857
        break;
8858
 
8859
      }
8860
    }
8861
 
8862
    public Object getFieldValue(_Fields field) {
8863
      switch (field) {
8864
      case ITEM_NUMBER:
8865
        return getItemNumber();
8866
 
8867
      case ITEM_ID:
8868
        return Long.valueOf(getItemId());
8869
 
8870
      }
8871
      throw new IllegalStateException();
8872
    }
8873
 
8874
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8875
    public boolean isSet(_Fields field) {
8876
      if (field == null) {
8877
        throw new IllegalArgumentException();
8878
      }
8879
 
8880
      switch (field) {
8881
      case ITEM_NUMBER:
8882
        return isSetItemNumber();
8883
      case ITEM_ID:
8884
        return isSetItemId();
8885
      }
8886
      throw new IllegalStateException();
8887
    }
8888
 
8889
    @Override
8890
    public boolean equals(Object that) {
8891
      if (that == null)
8892
        return false;
8893
      if (that instanceof createItemNumberMapping_args)
8894
        return this.equals((createItemNumberMapping_args)that);
8895
      return false;
8896
    }
8897
 
8898
    public boolean equals(createItemNumberMapping_args that) {
8899
      if (that == null)
8900
        return false;
8901
 
8902
      boolean this_present_itemNumber = true && this.isSetItemNumber();
8903
      boolean that_present_itemNumber = true && that.isSetItemNumber();
8904
      if (this_present_itemNumber || that_present_itemNumber) {
8905
        if (!(this_present_itemNumber && that_present_itemNumber))
8906
          return false;
8907
        if (!this.itemNumber.equals(that.itemNumber))
8908
          return false;
8909
      }
8910
 
8911
      boolean this_present_itemId = true;
8912
      boolean that_present_itemId = true;
8913
      if (this_present_itemId || that_present_itemId) {
8914
        if (!(this_present_itemId && that_present_itemId))
8915
          return false;
8916
        if (this.itemId != that.itemId)
8917
          return false;
8918
      }
8919
 
8920
      return true;
8921
    }
8922
 
8923
    @Override
8924
    public int hashCode() {
8925
      return 0;
8926
    }
8927
 
8928
    public int compareTo(createItemNumberMapping_args other) {
8929
      if (!getClass().equals(other.getClass())) {
8930
        return getClass().getName().compareTo(other.getClass().getName());
8931
      }
8932
 
8933
      int lastComparison = 0;
8934
      createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
8935
 
8936
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
8937
      if (lastComparison != 0) {
8938
        return lastComparison;
8939
      }
8940
      if (isSetItemNumber()) {
8941
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
8942
        if (lastComparison != 0) {
8943
          return lastComparison;
8944
        }
8945
      }
8946
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
8947
      if (lastComparison != 0) {
8948
        return lastComparison;
8949
      }
8950
      if (isSetItemId()) {
8951
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
8952
        if (lastComparison != 0) {
8953
          return lastComparison;
8954
        }
8955
      }
8956
      return 0;
8957
    }
8958
 
8959
    public _Fields fieldForId(int fieldId) {
8960
      return _Fields.findByThriftId(fieldId);
8961
    }
8962
 
8963
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8964
      org.apache.thrift.protocol.TField field;
8965
      iprot.readStructBegin();
8966
      while (true)
8967
      {
8968
        field = iprot.readFieldBegin();
8969
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8970
          break;
8971
        }
8972
        switch (field.id) {
8973
          case 1: // ITEM_NUMBER
8974
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8975
              this.itemNumber = iprot.readString();
8976
            } else { 
8977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8978
            }
8979
            break;
8980
          case 2: // ITEM_ID
8981
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8982
              this.itemId = iprot.readI64();
8983
              setItemIdIsSet(true);
8984
            } else { 
8985
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8986
            }
8987
            break;
8988
          default:
8989
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8990
        }
8991
        iprot.readFieldEnd();
8992
      }
8993
      iprot.readStructEnd();
8994
      validate();
8995
    }
8996
 
8997
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8998
      validate();
8999
 
9000
      oprot.writeStructBegin(STRUCT_DESC);
9001
      if (this.itemNumber != null) {
9002
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
9003
        oprot.writeString(this.itemNumber);
9004
        oprot.writeFieldEnd();
9005
      }
9006
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9007
      oprot.writeI64(this.itemId);
9008
      oprot.writeFieldEnd();
9009
      oprot.writeFieldStop();
9010
      oprot.writeStructEnd();
9011
    }
9012
 
9013
    @Override
9014
    public String toString() {
9015
      StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
9016
      boolean first = true;
9017
 
9018
      sb.append("itemNumber:");
9019
      if (this.itemNumber == null) {
9020
        sb.append("null");
9021
      } else {
9022
        sb.append(this.itemNumber);
9023
      }
9024
      first = false;
9025
      if (!first) sb.append(", ");
9026
      sb.append("itemId:");
9027
      sb.append(this.itemId);
9028
      first = false;
9029
      sb.append(")");
9030
      return sb.toString();
9031
    }
9032
 
9033
    public void validate() throws org.apache.thrift.TException {
9034
      // check for required fields
9035
    }
9036
 
9037
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9038
      try {
9039
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9040
      } catch (org.apache.thrift.TException te) {
9041
        throw new java.io.IOException(te);
9042
      }
9043
    }
9044
 
9045
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9046
      try {
9047
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9048
        __isset_bit_vector = new BitSet(1);
9049
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9050
      } catch (org.apache.thrift.TException te) {
9051
        throw new java.io.IOException(te);
9052
      }
9053
    }
9054
 
9055
  }
9056
 
9057
  public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable   {
9058
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
9059
 
9060
 
9061
 
9062
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9063
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9064
;
9065
 
9066
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9067
 
9068
      static {
9069
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9070
          byName.put(field.getFieldName(), field);
9071
        }
9072
      }
9073
 
9074
      /**
9075
       * Find the _Fields constant that matches fieldId, or null if its not found.
9076
       */
9077
      public static _Fields findByThriftId(int fieldId) {
9078
        switch(fieldId) {
9079
          default:
9080
            return null;
9081
        }
9082
      }
9083
 
9084
      /**
9085
       * Find the _Fields constant that matches fieldId, throwing an exception
9086
       * if it is not found.
9087
       */
9088
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9089
        _Fields fields = findByThriftId(fieldId);
9090
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9091
        return fields;
9092
      }
9093
 
9094
      /**
9095
       * Find the _Fields constant that matches name, or null if its not found.
9096
       */
9097
      public static _Fields findByName(String name) {
9098
        return byName.get(name);
9099
      }
9100
 
9101
      private final short _thriftId;
9102
      private final String _fieldName;
9103
 
9104
      _Fields(short thriftId, String fieldName) {
9105
        _thriftId = thriftId;
9106
        _fieldName = fieldName;
9107
      }
9108
 
9109
      public short getThriftFieldId() {
9110
        return _thriftId;
9111
      }
9112
 
9113
      public String getFieldName() {
9114
        return _fieldName;
9115
      }
9116
    }
9117
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9118
    static {
9119
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
9122
    }
9123
 
9124
    public createItemNumberMapping_result() {
9125
    }
9126
 
9127
    /**
9128
     * Performs a deep copy on <i>other</i>.
9129
     */
9130
    public createItemNumberMapping_result(createItemNumberMapping_result other) {
9131
    }
9132
 
9133
    public createItemNumberMapping_result deepCopy() {
9134
      return new createItemNumberMapping_result(this);
9135
    }
9136
 
9137
    @Override
9138
    public void clear() {
9139
    }
9140
 
9141
    public void setFieldValue(_Fields field, Object value) {
9142
      switch (field) {
9143
      }
9144
    }
9145
 
9146
    public Object getFieldValue(_Fields field) {
9147
      switch (field) {
9148
      }
9149
      throw new IllegalStateException();
9150
    }
9151
 
9152
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9153
    public boolean isSet(_Fields field) {
9154
      if (field == null) {
9155
        throw new IllegalArgumentException();
9156
      }
9157
 
9158
      switch (field) {
9159
      }
9160
      throw new IllegalStateException();
9161
    }
9162
 
9163
    @Override
9164
    public boolean equals(Object that) {
9165
      if (that == null)
9166
        return false;
9167
      if (that instanceof createItemNumberMapping_result)
9168
        return this.equals((createItemNumberMapping_result)that);
9169
      return false;
9170
    }
9171
 
9172
    public boolean equals(createItemNumberMapping_result that) {
9173
      if (that == null)
9174
        return false;
9175
 
9176
      return true;
9177
    }
9178
 
9179
    @Override
9180
    public int hashCode() {
9181
      return 0;
9182
    }
9183
 
9184
    public int compareTo(createItemNumberMapping_result other) {
9185
      if (!getClass().equals(other.getClass())) {
9186
        return getClass().getName().compareTo(other.getClass().getName());
9187
      }
9188
 
9189
      int lastComparison = 0;
9190
      createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
9191
 
9192
      return 0;
9193
    }
9194
 
9195
    public _Fields fieldForId(int fieldId) {
9196
      return _Fields.findByThriftId(fieldId);
9197
    }
9198
 
9199
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9200
      org.apache.thrift.protocol.TField field;
9201
      iprot.readStructBegin();
9202
      while (true)
9203
      {
9204
        field = iprot.readFieldBegin();
9205
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9206
          break;
9207
        }
9208
        switch (field.id) {
9209
          default:
9210
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9211
        }
9212
        iprot.readFieldEnd();
9213
      }
9214
      iprot.readStructEnd();
9215
      validate();
9216
    }
9217
 
9218
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9219
      oprot.writeStructBegin(STRUCT_DESC);
9220
 
9221
      oprot.writeFieldStop();
9222
      oprot.writeStructEnd();
9223
    }
9224
 
9225
    @Override
9226
    public String toString() {
9227
      StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
9228
      boolean first = true;
9229
 
9230
      sb.append(")");
9231
      return sb.toString();
9232
    }
9233
 
9234
    public void validate() throws org.apache.thrift.TException {
9235
      // check for required fields
9236
    }
9237
 
9238
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9239
      try {
9240
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9241
      } catch (org.apache.thrift.TException te) {
9242
        throw new java.io.IOException(te);
9243
      }
9244
    }
9245
 
9246
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9247
      try {
9248
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9249
      } catch (org.apache.thrift.TException te) {
9250
        throw new java.io.IOException(te);
9251
      }
9252
    }
9253
 
9254
  }
9255
 
4622 amit.gupta 9256
  public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable   {
9257
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
9258
 
9259
    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);
9260
 
9261
    private long itemId; // required
9262
 
9263
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9264
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9265
      ITEM_ID((short)1, "itemId");
9266
 
9267
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9268
 
9269
      static {
9270
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9271
          byName.put(field.getFieldName(), field);
9272
        }
9273
      }
9274
 
9275
      /**
9276
       * Find the _Fields constant that matches fieldId, or null if its not found.
9277
       */
9278
      public static _Fields findByThriftId(int fieldId) {
9279
        switch(fieldId) {
9280
          case 1: // ITEM_ID
9281
            return ITEM_ID;
9282
          default:
9283
            return null;
9284
        }
9285
      }
9286
 
9287
      /**
9288
       * Find the _Fields constant that matches fieldId, throwing an exception
9289
       * if it is not found.
9290
       */
9291
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9292
        _Fields fields = findByThriftId(fieldId);
9293
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9294
        return fields;
9295
      }
9296
 
9297
      /**
9298
       * Find the _Fields constant that matches name, or null if its not found.
9299
       */
9300
      public static _Fields findByName(String name) {
9301
        return byName.get(name);
9302
      }
9303
 
9304
      private final short _thriftId;
9305
      private final String _fieldName;
9306
 
9307
      _Fields(short thriftId, String fieldName) {
9308
        _thriftId = thriftId;
9309
        _fieldName = fieldName;
9310
      }
9311
 
9312
      public short getThriftFieldId() {
9313
        return _thriftId;
9314
      }
9315
 
9316
      public String getFieldName() {
9317
        return _fieldName;
9318
      }
9319
    }
9320
 
9321
    // isset id assignments
9322
    private static final int __ITEMID_ISSET_ID = 0;
9323
    private BitSet __isset_bit_vector = new BitSet(1);
9324
 
9325
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9326
    static {
9327
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9328
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9329
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9330
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9331
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
9332
    }
9333
 
9334
    public getItemNumbers_args() {
9335
    }
9336
 
9337
    public getItemNumbers_args(
9338
      long itemId)
9339
    {
9340
      this();
9341
      this.itemId = itemId;
9342
      setItemIdIsSet(true);
9343
    }
9344
 
9345
    /**
9346
     * Performs a deep copy on <i>other</i>.
9347
     */
9348
    public getItemNumbers_args(getItemNumbers_args other) {
9349
      __isset_bit_vector.clear();
9350
      __isset_bit_vector.or(other.__isset_bit_vector);
9351
      this.itemId = other.itemId;
9352
    }
9353
 
9354
    public getItemNumbers_args deepCopy() {
9355
      return new getItemNumbers_args(this);
9356
    }
9357
 
9358
    @Override
9359
    public void clear() {
9360
      setItemIdIsSet(false);
9361
      this.itemId = 0;
9362
    }
9363
 
9364
    public long getItemId() {
9365
      return this.itemId;
9366
    }
9367
 
9368
    public void setItemId(long itemId) {
9369
      this.itemId = itemId;
9370
      setItemIdIsSet(true);
9371
    }
9372
 
9373
    public void unsetItemId() {
9374
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9375
    }
9376
 
9377
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9378
    public boolean isSetItemId() {
9379
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9380
    }
9381
 
9382
    public void setItemIdIsSet(boolean value) {
9383
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9384
    }
9385
 
9386
    public void setFieldValue(_Fields field, Object value) {
9387
      switch (field) {
9388
      case ITEM_ID:
9389
        if (value == null) {
9390
          unsetItemId();
9391
        } else {
9392
          setItemId((Long)value);
9393
        }
9394
        break;
9395
 
9396
      }
9397
    }
9398
 
9399
    public Object getFieldValue(_Fields field) {
9400
      switch (field) {
9401
      case ITEM_ID:
9402
        return Long.valueOf(getItemId());
9403
 
9404
      }
9405
      throw new IllegalStateException();
9406
    }
9407
 
9408
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9409
    public boolean isSet(_Fields field) {
9410
      if (field == null) {
9411
        throw new IllegalArgumentException();
9412
      }
9413
 
9414
      switch (field) {
9415
      case ITEM_ID:
9416
        return isSetItemId();
9417
      }
9418
      throw new IllegalStateException();
9419
    }
9420
 
9421
    @Override
9422
    public boolean equals(Object that) {
9423
      if (that == null)
9424
        return false;
9425
      if (that instanceof getItemNumbers_args)
9426
        return this.equals((getItemNumbers_args)that);
9427
      return false;
9428
    }
9429
 
9430
    public boolean equals(getItemNumbers_args that) {
9431
      if (that == null)
9432
        return false;
9433
 
9434
      boolean this_present_itemId = true;
9435
      boolean that_present_itemId = true;
9436
      if (this_present_itemId || that_present_itemId) {
9437
        if (!(this_present_itemId && that_present_itemId))
9438
          return false;
9439
        if (this.itemId != that.itemId)
9440
          return false;
9441
      }
9442
 
9443
      return true;
9444
    }
9445
 
9446
    @Override
9447
    public int hashCode() {
9448
      return 0;
9449
    }
9450
 
9451
    public int compareTo(getItemNumbers_args other) {
9452
      if (!getClass().equals(other.getClass())) {
9453
        return getClass().getName().compareTo(other.getClass().getName());
9454
      }
9455
 
9456
      int lastComparison = 0;
9457
      getItemNumbers_args typedOther = (getItemNumbers_args)other;
9458
 
9459
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9460
      if (lastComparison != 0) {
9461
        return lastComparison;
9462
      }
9463
      if (isSetItemId()) {
9464
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9465
        if (lastComparison != 0) {
9466
          return lastComparison;
9467
        }
9468
      }
9469
      return 0;
9470
    }
9471
 
9472
    public _Fields fieldForId(int fieldId) {
9473
      return _Fields.findByThriftId(fieldId);
9474
    }
9475
 
9476
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9477
      org.apache.thrift.protocol.TField field;
9478
      iprot.readStructBegin();
9479
      while (true)
9480
      {
9481
        field = iprot.readFieldBegin();
9482
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9483
          break;
9484
        }
9485
        switch (field.id) {
9486
          case 1: // ITEM_ID
9487
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9488
              this.itemId = iprot.readI64();
9489
              setItemIdIsSet(true);
9490
            } else { 
9491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9492
            }
9493
            break;
9494
          default:
9495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9496
        }
9497
        iprot.readFieldEnd();
9498
      }
9499
      iprot.readStructEnd();
9500
      validate();
9501
    }
9502
 
9503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9504
      validate();
9505
 
9506
      oprot.writeStructBegin(STRUCT_DESC);
9507
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9508
      oprot.writeI64(this.itemId);
9509
      oprot.writeFieldEnd();
9510
      oprot.writeFieldStop();
9511
      oprot.writeStructEnd();
9512
    }
9513
 
9514
    @Override
9515
    public String toString() {
9516
      StringBuilder sb = new StringBuilder("getItemNumbers_args(");
9517
      boolean first = true;
9518
 
9519
      sb.append("itemId:");
9520
      sb.append(this.itemId);
9521
      first = false;
9522
      sb.append(")");
9523
      return sb.toString();
9524
    }
9525
 
9526
    public void validate() throws org.apache.thrift.TException {
9527
      // check for required fields
9528
    }
9529
 
9530
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9531
      try {
9532
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9533
      } catch (org.apache.thrift.TException te) {
9534
        throw new java.io.IOException(te);
9535
      }
9536
    }
9537
 
9538
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9539
      try {
9540
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9541
        __isset_bit_vector = new BitSet(1);
9542
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9543
      } catch (org.apache.thrift.TException te) {
9544
        throw new java.io.IOException(te);
9545
      }
9546
    }
9547
 
9548
  }
9549
 
9550
  public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable   {
9551
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
9552
 
9553
    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);
9554
 
9555
    private List<String> success; // required
9556
 
9557
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9558
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9559
      SUCCESS((short)0, "success");
9560
 
9561
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9562
 
9563
      static {
9564
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9565
          byName.put(field.getFieldName(), field);
9566
        }
9567
      }
9568
 
9569
      /**
9570
       * Find the _Fields constant that matches fieldId, or null if its not found.
9571
       */
9572
      public static _Fields findByThriftId(int fieldId) {
9573
        switch(fieldId) {
9574
          case 0: // SUCCESS
9575
            return SUCCESS;
9576
          default:
9577
            return null;
9578
        }
9579
      }
9580
 
9581
      /**
9582
       * Find the _Fields constant that matches fieldId, throwing an exception
9583
       * if it is not found.
9584
       */
9585
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9586
        _Fields fields = findByThriftId(fieldId);
9587
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9588
        return fields;
9589
      }
9590
 
9591
      /**
9592
       * Find the _Fields constant that matches name, or null if its not found.
9593
       */
9594
      public static _Fields findByName(String name) {
9595
        return byName.get(name);
9596
      }
9597
 
9598
      private final short _thriftId;
9599
      private final String _fieldName;
9600
 
9601
      _Fields(short thriftId, String fieldName) {
9602
        _thriftId = thriftId;
9603
        _fieldName = fieldName;
9604
      }
9605
 
9606
      public short getThriftFieldId() {
9607
        return _thriftId;
9608
      }
9609
 
9610
      public String getFieldName() {
9611
        return _fieldName;
9612
      }
9613
    }
9614
 
9615
    // isset id assignments
9616
 
9617
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9618
    static {
9619
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9620
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9621
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9622
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9623
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9624
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
9625
    }
9626
 
9627
    public getItemNumbers_result() {
9628
    }
9629
 
9630
    public getItemNumbers_result(
9631
      List<String> success)
9632
    {
9633
      this();
9634
      this.success = success;
9635
    }
9636
 
9637
    /**
9638
     * Performs a deep copy on <i>other</i>.
9639
     */
9640
    public getItemNumbers_result(getItemNumbers_result other) {
9641
      if (other.isSetSuccess()) {
9642
        List<String> __this__success = new ArrayList<String>();
9643
        for (String other_element : other.success) {
9644
          __this__success.add(other_element);
9645
        }
9646
        this.success = __this__success;
9647
      }
9648
    }
9649
 
9650
    public getItemNumbers_result deepCopy() {
9651
      return new getItemNumbers_result(this);
9652
    }
9653
 
9654
    @Override
9655
    public void clear() {
9656
      this.success = null;
9657
    }
9658
 
9659
    public int getSuccessSize() {
9660
      return (this.success == null) ? 0 : this.success.size();
9661
    }
9662
 
9663
    public java.util.Iterator<String> getSuccessIterator() {
9664
      return (this.success == null) ? null : this.success.iterator();
9665
    }
9666
 
9667
    public void addToSuccess(String elem) {
9668
      if (this.success == null) {
9669
        this.success = new ArrayList<String>();
9670
      }
9671
      this.success.add(elem);
9672
    }
9673
 
9674
    public List<String> getSuccess() {
9675
      return this.success;
9676
    }
9677
 
9678
    public void setSuccess(List<String> success) {
9679
      this.success = success;
9680
    }
9681
 
9682
    public void unsetSuccess() {
9683
      this.success = null;
9684
    }
9685
 
9686
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9687
    public boolean isSetSuccess() {
9688
      return this.success != null;
9689
    }
9690
 
9691
    public void setSuccessIsSet(boolean value) {
9692
      if (!value) {
9693
        this.success = null;
9694
      }
9695
    }
9696
 
9697
    public void setFieldValue(_Fields field, Object value) {
9698
      switch (field) {
9699
      case SUCCESS:
9700
        if (value == null) {
9701
          unsetSuccess();
9702
        } else {
9703
          setSuccess((List<String>)value);
9704
        }
9705
        break;
9706
 
9707
      }
9708
    }
9709
 
9710
    public Object getFieldValue(_Fields field) {
9711
      switch (field) {
9712
      case SUCCESS:
9713
        return getSuccess();
9714
 
9715
      }
9716
      throw new IllegalStateException();
9717
    }
9718
 
9719
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9720
    public boolean isSet(_Fields field) {
9721
      if (field == null) {
9722
        throw new IllegalArgumentException();
9723
      }
9724
 
9725
      switch (field) {
9726
      case SUCCESS:
9727
        return isSetSuccess();
9728
      }
9729
      throw new IllegalStateException();
9730
    }
9731
 
9732
    @Override
9733
    public boolean equals(Object that) {
9734
      if (that == null)
9735
        return false;
9736
      if (that instanceof getItemNumbers_result)
9737
        return this.equals((getItemNumbers_result)that);
9738
      return false;
9739
    }
9740
 
9741
    public boolean equals(getItemNumbers_result that) {
9742
      if (that == null)
9743
        return false;
9744
 
9745
      boolean this_present_success = true && this.isSetSuccess();
9746
      boolean that_present_success = true && that.isSetSuccess();
9747
      if (this_present_success || that_present_success) {
9748
        if (!(this_present_success && that_present_success))
9749
          return false;
9750
        if (!this.success.equals(that.success))
9751
          return false;
9752
      }
9753
 
9754
      return true;
9755
    }
9756
 
9757
    @Override
9758
    public int hashCode() {
9759
      return 0;
9760
    }
9761
 
9762
    public int compareTo(getItemNumbers_result other) {
9763
      if (!getClass().equals(other.getClass())) {
9764
        return getClass().getName().compareTo(other.getClass().getName());
9765
      }
9766
 
9767
      int lastComparison = 0;
9768
      getItemNumbers_result typedOther = (getItemNumbers_result)other;
9769
 
9770
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9771
      if (lastComparison != 0) {
9772
        return lastComparison;
9773
      }
9774
      if (isSetSuccess()) {
9775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9776
        if (lastComparison != 0) {
9777
          return lastComparison;
9778
        }
9779
      }
9780
      return 0;
9781
    }
9782
 
9783
    public _Fields fieldForId(int fieldId) {
9784
      return _Fields.findByThriftId(fieldId);
9785
    }
9786
 
9787
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9788
      org.apache.thrift.protocol.TField field;
9789
      iprot.readStructBegin();
9790
      while (true)
9791
      {
9792
        field = iprot.readFieldBegin();
9793
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9794
          break;
9795
        }
9796
        switch (field.id) {
9797
          case 0: // SUCCESS
9798
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9799
              {
5361 mandeep.dh 9800
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
9801
                this.success = new ArrayList<String>(_list0.size);
9802
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
4622 amit.gupta 9803
                {
5361 mandeep.dh 9804
                  String _elem2; // required
9805
                  _elem2 = iprot.readString();
9806
                  this.success.add(_elem2);
4622 amit.gupta 9807
                }
9808
                iprot.readListEnd();
9809
              }
9810
            } else { 
9811
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9812
            }
9813
            break;
9814
          default:
9815
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9816
        }
9817
        iprot.readFieldEnd();
9818
      }
9819
      iprot.readStructEnd();
9820
      validate();
9821
    }
9822
 
9823
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9824
      oprot.writeStructBegin(STRUCT_DESC);
9825
 
9826
      if (this.isSetSuccess()) {
9827
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9828
        {
9829
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5361 mandeep.dh 9830
          for (String _iter3 : this.success)
4622 amit.gupta 9831
          {
5361 mandeep.dh 9832
            oprot.writeString(_iter3);
4622 amit.gupta 9833
          }
9834
          oprot.writeListEnd();
9835
        }
9836
        oprot.writeFieldEnd();
9837
      }
9838
      oprot.writeFieldStop();
9839
      oprot.writeStructEnd();
9840
    }
9841
 
9842
    @Override
9843
    public String toString() {
9844
      StringBuilder sb = new StringBuilder("getItemNumbers_result(");
9845
      boolean first = true;
9846
 
9847
      sb.append("success:");
9848
      if (this.success == null) {
9849
        sb.append("null");
9850
      } else {
9851
        sb.append(this.success);
9852
      }
9853
      first = false;
9854
      sb.append(")");
9855
      return sb.toString();
9856
    }
9857
 
9858
    public void validate() throws org.apache.thrift.TException {
9859
      // check for required fields
9860
    }
9861
 
9862
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9863
      try {
9864
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9865
      } catch (org.apache.thrift.TException te) {
9866
        throw new java.io.IOException(te);
9867
      }
9868
    }
9869
 
9870
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9871
      try {
9872
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9873
      } catch (org.apache.thrift.TException te) {
9874
        throw new java.io.IOException(te);
9875
      }
9876
    }
9877
 
9878
  }
9879
 
5110 mandeep.dh 9880
  public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable   {
9881
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
9882
 
9883
    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);
9884
 
9885
    private String itemNumber; // required
9886
 
9887
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9888
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9889
      ITEM_NUMBER((short)1, "itemNumber");
9890
 
9891
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9892
 
9893
      static {
9894
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9895
          byName.put(field.getFieldName(), field);
9896
        }
9897
      }
9898
 
9899
      /**
9900
       * Find the _Fields constant that matches fieldId, or null if its not found.
9901
       */
9902
      public static _Fields findByThriftId(int fieldId) {
9903
        switch(fieldId) {
9904
          case 1: // ITEM_NUMBER
9905
            return ITEM_NUMBER;
9906
          default:
9907
            return null;
9908
        }
9909
      }
9910
 
9911
      /**
9912
       * Find the _Fields constant that matches fieldId, throwing an exception
9913
       * if it is not found.
9914
       */
9915
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9916
        _Fields fields = findByThriftId(fieldId);
9917
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9918
        return fields;
9919
      }
9920
 
9921
      /**
9922
       * Find the _Fields constant that matches name, or null if its not found.
9923
       */
9924
      public static _Fields findByName(String name) {
9925
        return byName.get(name);
9926
      }
9927
 
9928
      private final short _thriftId;
9929
      private final String _fieldName;
9930
 
9931
      _Fields(short thriftId, String fieldName) {
9932
        _thriftId = thriftId;
9933
        _fieldName = fieldName;
9934
      }
9935
 
9936
      public short getThriftFieldId() {
9937
        return _thriftId;
9938
      }
9939
 
9940
      public String getFieldName() {
9941
        return _fieldName;
9942
      }
9943
    }
9944
 
9945
    // isset id assignments
9946
 
9947
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9948
    static {
9949
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9950
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9952
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9953
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
9954
    }
9955
 
9956
    public getItemIds_args() {
9957
    }
9958
 
9959
    public getItemIds_args(
9960
      String itemNumber)
9961
    {
9962
      this();
9963
      this.itemNumber = itemNumber;
9964
    }
9965
 
9966
    /**
9967
     * Performs a deep copy on <i>other</i>.
9968
     */
9969
    public getItemIds_args(getItemIds_args other) {
9970
      if (other.isSetItemNumber()) {
9971
        this.itemNumber = other.itemNumber;
9972
      }
9973
    }
9974
 
9975
    public getItemIds_args deepCopy() {
9976
      return new getItemIds_args(this);
9977
    }
9978
 
9979
    @Override
9980
    public void clear() {
9981
      this.itemNumber = null;
9982
    }
9983
 
9984
    public String getItemNumber() {
9985
      return this.itemNumber;
9986
    }
9987
 
9988
    public void setItemNumber(String itemNumber) {
9989
      this.itemNumber = itemNumber;
9990
    }
9991
 
9992
    public void unsetItemNumber() {
9993
      this.itemNumber = null;
9994
    }
9995
 
9996
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
9997
    public boolean isSetItemNumber() {
9998
      return this.itemNumber != null;
9999
    }
10000
 
10001
    public void setItemNumberIsSet(boolean value) {
10002
      if (!value) {
10003
        this.itemNumber = null;
10004
      }
10005
    }
10006
 
10007
    public void setFieldValue(_Fields field, Object value) {
10008
      switch (field) {
10009
      case ITEM_NUMBER:
10010
        if (value == null) {
10011
          unsetItemNumber();
10012
        } else {
10013
          setItemNumber((String)value);
10014
        }
10015
        break;
10016
 
10017
      }
10018
    }
10019
 
10020
    public Object getFieldValue(_Fields field) {
10021
      switch (field) {
10022
      case ITEM_NUMBER:
10023
        return getItemNumber();
10024
 
10025
      }
10026
      throw new IllegalStateException();
10027
    }
10028
 
10029
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10030
    public boolean isSet(_Fields field) {
10031
      if (field == null) {
10032
        throw new IllegalArgumentException();
10033
      }
10034
 
10035
      switch (field) {
10036
      case ITEM_NUMBER:
10037
        return isSetItemNumber();
10038
      }
10039
      throw new IllegalStateException();
10040
    }
10041
 
10042
    @Override
10043
    public boolean equals(Object that) {
10044
      if (that == null)
10045
        return false;
10046
      if (that instanceof getItemIds_args)
10047
        return this.equals((getItemIds_args)that);
10048
      return false;
10049
    }
10050
 
10051
    public boolean equals(getItemIds_args that) {
10052
      if (that == null)
10053
        return false;
10054
 
10055
      boolean this_present_itemNumber = true && this.isSetItemNumber();
10056
      boolean that_present_itemNumber = true && that.isSetItemNumber();
10057
      if (this_present_itemNumber || that_present_itemNumber) {
10058
        if (!(this_present_itemNumber && that_present_itemNumber))
10059
          return false;
10060
        if (!this.itemNumber.equals(that.itemNumber))
10061
          return false;
10062
      }
10063
 
10064
      return true;
10065
    }
10066
 
10067
    @Override
10068
    public int hashCode() {
10069
      return 0;
10070
    }
10071
 
10072
    public int compareTo(getItemIds_args other) {
10073
      if (!getClass().equals(other.getClass())) {
10074
        return getClass().getName().compareTo(other.getClass().getName());
10075
      }
10076
 
10077
      int lastComparison = 0;
10078
      getItemIds_args typedOther = (getItemIds_args)other;
10079
 
10080
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
10081
      if (lastComparison != 0) {
10082
        return lastComparison;
10083
      }
10084
      if (isSetItemNumber()) {
10085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
10086
        if (lastComparison != 0) {
10087
          return lastComparison;
10088
        }
10089
      }
10090
      return 0;
10091
    }
10092
 
10093
    public _Fields fieldForId(int fieldId) {
10094
      return _Fields.findByThriftId(fieldId);
10095
    }
10096
 
10097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10098
      org.apache.thrift.protocol.TField field;
10099
      iprot.readStructBegin();
10100
      while (true)
10101
      {
10102
        field = iprot.readFieldBegin();
10103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10104
          break;
10105
        }
10106
        switch (field.id) {
10107
          case 1: // ITEM_NUMBER
10108
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10109
              this.itemNumber = iprot.readString();
10110
            } else { 
10111
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10112
            }
10113
            break;
10114
          default:
10115
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10116
        }
10117
        iprot.readFieldEnd();
10118
      }
10119
      iprot.readStructEnd();
10120
      validate();
10121
    }
10122
 
10123
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10124
      validate();
10125
 
10126
      oprot.writeStructBegin(STRUCT_DESC);
10127
      if (this.itemNumber != null) {
10128
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
10129
        oprot.writeString(this.itemNumber);
10130
        oprot.writeFieldEnd();
10131
      }
10132
      oprot.writeFieldStop();
10133
      oprot.writeStructEnd();
10134
    }
10135
 
10136
    @Override
10137
    public String toString() {
10138
      StringBuilder sb = new StringBuilder("getItemIds_args(");
10139
      boolean first = true;
10140
 
10141
      sb.append("itemNumber:");
10142
      if (this.itemNumber == null) {
10143
        sb.append("null");
10144
      } else {
10145
        sb.append(this.itemNumber);
10146
      }
10147
      first = false;
10148
      sb.append(")");
10149
      return sb.toString();
10150
    }
10151
 
10152
    public void validate() throws org.apache.thrift.TException {
10153
      // check for required fields
10154
    }
10155
 
10156
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10157
      try {
10158
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10159
      } catch (org.apache.thrift.TException te) {
10160
        throw new java.io.IOException(te);
10161
      }
10162
    }
10163
 
10164
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10165
      try {
10166
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10167
      } catch (org.apache.thrift.TException te) {
10168
        throw new java.io.IOException(te);
10169
      }
10170
    }
10171
 
10172
  }
10173
 
10174
  public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable   {
10175
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
10176
 
10177
    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);
10178
 
10179
    private List<Long> success; // required
10180
 
10181
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10182
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10183
      SUCCESS((short)0, "success");
10184
 
10185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10186
 
10187
      static {
10188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10189
          byName.put(field.getFieldName(), field);
10190
        }
10191
      }
10192
 
10193
      /**
10194
       * Find the _Fields constant that matches fieldId, or null if its not found.
10195
       */
10196
      public static _Fields findByThriftId(int fieldId) {
10197
        switch(fieldId) {
10198
          case 0: // SUCCESS
10199
            return SUCCESS;
10200
          default:
10201
            return null;
10202
        }
10203
      }
10204
 
10205
      /**
10206
       * Find the _Fields constant that matches fieldId, throwing an exception
10207
       * if it is not found.
10208
       */
10209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10210
        _Fields fields = findByThriftId(fieldId);
10211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10212
        return fields;
10213
      }
10214
 
10215
      /**
10216
       * Find the _Fields constant that matches name, or null if its not found.
10217
       */
10218
      public static _Fields findByName(String name) {
10219
        return byName.get(name);
10220
      }
10221
 
10222
      private final short _thriftId;
10223
      private final String _fieldName;
10224
 
10225
      _Fields(short thriftId, String fieldName) {
10226
        _thriftId = thriftId;
10227
        _fieldName = fieldName;
10228
      }
10229
 
10230
      public short getThriftFieldId() {
10231
        return _thriftId;
10232
      }
10233
 
10234
      public String getFieldName() {
10235
        return _fieldName;
10236
      }
10237
    }
10238
 
10239
    // isset id assignments
10240
 
10241
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10242
    static {
10243
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10244
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10245
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10246
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10247
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10248
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
10249
    }
10250
 
10251
    public getItemIds_result() {
10252
    }
10253
 
10254
    public getItemIds_result(
10255
      List<Long> success)
10256
    {
10257
      this();
10258
      this.success = success;
10259
    }
10260
 
10261
    /**
10262
     * Performs a deep copy on <i>other</i>.
10263
     */
10264
    public getItemIds_result(getItemIds_result other) {
10265
      if (other.isSetSuccess()) {
10266
        List<Long> __this__success = new ArrayList<Long>();
10267
        for (Long other_element : other.success) {
10268
          __this__success.add(other_element);
10269
        }
10270
        this.success = __this__success;
10271
      }
10272
    }
10273
 
10274
    public getItemIds_result deepCopy() {
10275
      return new getItemIds_result(this);
10276
    }
10277
 
10278
    @Override
10279
    public void clear() {
10280
      this.success = null;
10281
    }
10282
 
10283
    public int getSuccessSize() {
10284
      return (this.success == null) ? 0 : this.success.size();
10285
    }
10286
 
10287
    public java.util.Iterator<Long> getSuccessIterator() {
10288
      return (this.success == null) ? null : this.success.iterator();
10289
    }
10290
 
10291
    public void addToSuccess(long elem) {
10292
      if (this.success == null) {
10293
        this.success = new ArrayList<Long>();
10294
      }
10295
      this.success.add(elem);
10296
    }
10297
 
10298
    public List<Long> getSuccess() {
10299
      return this.success;
10300
    }
10301
 
10302
    public void setSuccess(List<Long> success) {
10303
      this.success = success;
10304
    }
10305
 
10306
    public void unsetSuccess() {
10307
      this.success = null;
10308
    }
10309
 
10310
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10311
    public boolean isSetSuccess() {
10312
      return this.success != null;
10313
    }
10314
 
10315
    public void setSuccessIsSet(boolean value) {
10316
      if (!value) {
10317
        this.success = null;
10318
      }
10319
    }
10320
 
10321
    public void setFieldValue(_Fields field, Object value) {
10322
      switch (field) {
10323
      case SUCCESS:
10324
        if (value == null) {
10325
          unsetSuccess();
10326
        } else {
10327
          setSuccess((List<Long>)value);
10328
        }
10329
        break;
10330
 
10331
      }
10332
    }
10333
 
10334
    public Object getFieldValue(_Fields field) {
10335
      switch (field) {
10336
      case SUCCESS:
10337
        return getSuccess();
10338
 
10339
      }
10340
      throw new IllegalStateException();
10341
    }
10342
 
10343
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10344
    public boolean isSet(_Fields field) {
10345
      if (field == null) {
10346
        throw new IllegalArgumentException();
10347
      }
10348
 
10349
      switch (field) {
10350
      case SUCCESS:
10351
        return isSetSuccess();
10352
      }
10353
      throw new IllegalStateException();
10354
    }
10355
 
10356
    @Override
10357
    public boolean equals(Object that) {
10358
      if (that == null)
10359
        return false;
10360
      if (that instanceof getItemIds_result)
10361
        return this.equals((getItemIds_result)that);
10362
      return false;
10363
    }
10364
 
10365
    public boolean equals(getItemIds_result that) {
10366
      if (that == null)
10367
        return false;
10368
 
10369
      boolean this_present_success = true && this.isSetSuccess();
10370
      boolean that_present_success = true && that.isSetSuccess();
10371
      if (this_present_success || that_present_success) {
10372
        if (!(this_present_success && that_present_success))
10373
          return false;
10374
        if (!this.success.equals(that.success))
10375
          return false;
10376
      }
10377
 
10378
      return true;
10379
    }
10380
 
10381
    @Override
10382
    public int hashCode() {
10383
      return 0;
10384
    }
10385
 
10386
    public int compareTo(getItemIds_result other) {
10387
      if (!getClass().equals(other.getClass())) {
10388
        return getClass().getName().compareTo(other.getClass().getName());
10389
      }
10390
 
10391
      int lastComparison = 0;
10392
      getItemIds_result typedOther = (getItemIds_result)other;
10393
 
10394
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10395
      if (lastComparison != 0) {
10396
        return lastComparison;
10397
      }
10398
      if (isSetSuccess()) {
10399
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10400
        if (lastComparison != 0) {
10401
          return lastComparison;
10402
        }
10403
      }
10404
      return 0;
10405
    }
10406
 
10407
    public _Fields fieldForId(int fieldId) {
10408
      return _Fields.findByThriftId(fieldId);
10409
    }
10410
 
10411
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10412
      org.apache.thrift.protocol.TField field;
10413
      iprot.readStructBegin();
10414
      while (true)
10415
      {
10416
        field = iprot.readFieldBegin();
10417
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10418
          break;
10419
        }
10420
        switch (field.id) {
10421
          case 0: // SUCCESS
10422
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10423
              {
5361 mandeep.dh 10424
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
10425
                this.success = new ArrayList<Long>(_list4.size);
10426
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
5110 mandeep.dh 10427
                {
5361 mandeep.dh 10428
                  long _elem6; // required
10429
                  _elem6 = iprot.readI64();
10430
                  this.success.add(_elem6);
5110 mandeep.dh 10431
                }
10432
                iprot.readListEnd();
10433
              }
10434
            } else { 
10435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10436
            }
10437
            break;
10438
          default:
10439
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10440
        }
10441
        iprot.readFieldEnd();
10442
      }
10443
      iprot.readStructEnd();
10444
      validate();
10445
    }
10446
 
10447
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10448
      oprot.writeStructBegin(STRUCT_DESC);
10449
 
10450
      if (this.isSetSuccess()) {
10451
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10452
        {
10453
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
5361 mandeep.dh 10454
          for (long _iter7 : this.success)
5110 mandeep.dh 10455
          {
5361 mandeep.dh 10456
            oprot.writeI64(_iter7);
5110 mandeep.dh 10457
          }
10458
          oprot.writeListEnd();
10459
        }
10460
        oprot.writeFieldEnd();
10461
      }
10462
      oprot.writeFieldStop();
10463
      oprot.writeStructEnd();
10464
    }
10465
 
10466
    @Override
10467
    public String toString() {
10468
      StringBuilder sb = new StringBuilder("getItemIds_result(");
10469
      boolean first = true;
10470
 
10471
      sb.append("success:");
10472
      if (this.success == null) {
10473
        sb.append("null");
10474
      } else {
10475
        sb.append(this.success);
10476
      }
10477
      first = false;
10478
      sb.append(")");
10479
      return sb.toString();
10480
    }
10481
 
10482
    public void validate() throws org.apache.thrift.TException {
10483
      // check for required fields
10484
    }
10485
 
10486
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10487
      try {
10488
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10489
      } catch (org.apache.thrift.TException te) {
10490
        throw new java.io.IOException(te);
10491
      }
10492
    }
10493
 
10494
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10495
      try {
10496
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10497
      } catch (org.apache.thrift.TException te) {
10498
        throw new java.io.IOException(te);
10499
      }
10500
    }
10501
 
10502
  }
10503
 
5185 mandeep.dh 10504
  public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable   {
10505
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
10506
 
10507
    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);
10508
 
10509
    private ScanType lastScanType; // required
10510
 
10511
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10512
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10513
      /**
10514
       * 
10515
       * @see ScanType
10516
       */
10517
      LAST_SCAN_TYPE((short)1, "lastScanType");
10518
 
10519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10520
 
10521
      static {
10522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10523
          byName.put(field.getFieldName(), field);
10524
        }
10525
      }
10526
 
10527
      /**
10528
       * Find the _Fields constant that matches fieldId, or null if its not found.
10529
       */
10530
      public static _Fields findByThriftId(int fieldId) {
10531
        switch(fieldId) {
10532
          case 1: // LAST_SCAN_TYPE
10533
            return LAST_SCAN_TYPE;
10534
          default:
10535
            return null;
10536
        }
10537
      }
10538
 
10539
      /**
10540
       * Find the _Fields constant that matches fieldId, throwing an exception
10541
       * if it is not found.
10542
       */
10543
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10544
        _Fields fields = findByThriftId(fieldId);
10545
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10546
        return fields;
10547
      }
10548
 
10549
      /**
10550
       * Find the _Fields constant that matches name, or null if its not found.
10551
       */
10552
      public static _Fields findByName(String name) {
10553
        return byName.get(name);
10554
      }
10555
 
10556
      private final short _thriftId;
10557
      private final String _fieldName;
10558
 
10559
      _Fields(short thriftId, String fieldName) {
10560
        _thriftId = thriftId;
10561
        _fieldName = fieldName;
10562
      }
10563
 
10564
      public short getThriftFieldId() {
10565
        return _thriftId;
10566
      }
10567
 
10568
      public String getFieldName() {
10569
        return _fieldName;
10570
      }
10571
    }
10572
 
10573
    // isset id assignments
10574
 
10575
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10576
    static {
10577
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10578
      tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10579
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
10580
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10581
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
10582
    }
10583
 
10584
    public getInventoryItemsFromLastScanType_args() {
10585
    }
10586
 
10587
    public getInventoryItemsFromLastScanType_args(
10588
      ScanType lastScanType)
10589
    {
10590
      this();
10591
      this.lastScanType = lastScanType;
10592
    }
10593
 
10594
    /**
10595
     * Performs a deep copy on <i>other</i>.
10596
     */
10597
    public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
10598
      if (other.isSetLastScanType()) {
10599
        this.lastScanType = other.lastScanType;
10600
      }
10601
    }
10602
 
10603
    public getInventoryItemsFromLastScanType_args deepCopy() {
10604
      return new getInventoryItemsFromLastScanType_args(this);
10605
    }
10606
 
10607
    @Override
10608
    public void clear() {
10609
      this.lastScanType = null;
10610
    }
10611
 
10612
    /**
10613
     * 
10614
     * @see ScanType
10615
     */
10616
    public ScanType getLastScanType() {
10617
      return this.lastScanType;
10618
    }
10619
 
10620
    /**
10621
     * 
10622
     * @see ScanType
10623
     */
10624
    public void setLastScanType(ScanType lastScanType) {
10625
      this.lastScanType = lastScanType;
10626
    }
10627
 
10628
    public void unsetLastScanType() {
10629
      this.lastScanType = null;
10630
    }
10631
 
10632
    /** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
10633
    public boolean isSetLastScanType() {
10634
      return this.lastScanType != null;
10635
    }
10636
 
10637
    public void setLastScanTypeIsSet(boolean value) {
10638
      if (!value) {
10639
        this.lastScanType = null;
10640
      }
10641
    }
10642
 
10643
    public void setFieldValue(_Fields field, Object value) {
10644
      switch (field) {
10645
      case LAST_SCAN_TYPE:
10646
        if (value == null) {
10647
          unsetLastScanType();
10648
        } else {
10649
          setLastScanType((ScanType)value);
10650
        }
10651
        break;
10652
 
10653
      }
10654
    }
10655
 
10656
    public Object getFieldValue(_Fields field) {
10657
      switch (field) {
10658
      case LAST_SCAN_TYPE:
10659
        return getLastScanType();
10660
 
10661
      }
10662
      throw new IllegalStateException();
10663
    }
10664
 
10665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10666
    public boolean isSet(_Fields field) {
10667
      if (field == null) {
10668
        throw new IllegalArgumentException();
10669
      }
10670
 
10671
      switch (field) {
10672
      case LAST_SCAN_TYPE:
10673
        return isSetLastScanType();
10674
      }
10675
      throw new IllegalStateException();
10676
    }
10677
 
10678
    @Override
10679
    public boolean equals(Object that) {
10680
      if (that == null)
10681
        return false;
10682
      if (that instanceof getInventoryItemsFromLastScanType_args)
10683
        return this.equals((getInventoryItemsFromLastScanType_args)that);
10684
      return false;
10685
    }
10686
 
10687
    public boolean equals(getInventoryItemsFromLastScanType_args that) {
10688
      if (that == null)
10689
        return false;
10690
 
10691
      boolean this_present_lastScanType = true && this.isSetLastScanType();
10692
      boolean that_present_lastScanType = true && that.isSetLastScanType();
10693
      if (this_present_lastScanType || that_present_lastScanType) {
10694
        if (!(this_present_lastScanType && that_present_lastScanType))
10695
          return false;
10696
        if (!this.lastScanType.equals(that.lastScanType))
10697
          return false;
10698
      }
10699
 
10700
      return true;
10701
    }
10702
 
10703
    @Override
10704
    public int hashCode() {
10705
      return 0;
10706
    }
10707
 
10708
    public int compareTo(getInventoryItemsFromLastScanType_args other) {
10709
      if (!getClass().equals(other.getClass())) {
10710
        return getClass().getName().compareTo(other.getClass().getName());
10711
      }
10712
 
10713
      int lastComparison = 0;
10714
      getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
10715
 
10716
      lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
10717
      if (lastComparison != 0) {
10718
        return lastComparison;
10719
      }
10720
      if (isSetLastScanType()) {
10721
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
10722
        if (lastComparison != 0) {
10723
          return lastComparison;
10724
        }
10725
      }
10726
      return 0;
10727
    }
10728
 
10729
    public _Fields fieldForId(int fieldId) {
10730
      return _Fields.findByThriftId(fieldId);
10731
    }
10732
 
10733
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10734
      org.apache.thrift.protocol.TField field;
10735
      iprot.readStructBegin();
10736
      while (true)
10737
      {
10738
        field = iprot.readFieldBegin();
10739
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10740
          break;
10741
        }
10742
        switch (field.id) {
10743
          case 1: // LAST_SCAN_TYPE
10744
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10745
              this.lastScanType = ScanType.findByValue(iprot.readI32());
10746
            } else { 
10747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10748
            }
10749
            break;
10750
          default:
10751
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10752
        }
10753
        iprot.readFieldEnd();
10754
      }
10755
      iprot.readStructEnd();
10756
      validate();
10757
    }
10758
 
10759
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10760
      validate();
10761
 
10762
      oprot.writeStructBegin(STRUCT_DESC);
10763
      if (this.lastScanType != null) {
10764
        oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
10765
        oprot.writeI32(this.lastScanType.getValue());
10766
        oprot.writeFieldEnd();
10767
      }
10768
      oprot.writeFieldStop();
10769
      oprot.writeStructEnd();
10770
    }
10771
 
10772
    @Override
10773
    public String toString() {
10774
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
10775
      boolean first = true;
10776
 
10777
      sb.append("lastScanType:");
10778
      if (this.lastScanType == null) {
10779
        sb.append("null");
10780
      } else {
10781
        sb.append(this.lastScanType);
10782
      }
10783
      first = false;
10784
      sb.append(")");
10785
      return sb.toString();
10786
    }
10787
 
10788
    public void validate() throws org.apache.thrift.TException {
10789
      // check for required fields
10790
    }
10791
 
10792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10793
      try {
10794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10795
      } catch (org.apache.thrift.TException te) {
10796
        throw new java.io.IOException(te);
10797
      }
10798
    }
10799
 
10800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10801
      try {
10802
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10803
      } catch (org.apache.thrift.TException te) {
10804
        throw new java.io.IOException(te);
10805
      }
10806
    }
10807
 
10808
  }
10809
 
10810
  public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable   {
10811
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
10812
 
10813
    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);
10814
    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);
10815
 
10816
    private List<InventoryItem> success; // required
10817
    private WarehouseServiceException wex; // required
10818
 
10819
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10820
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10821
      SUCCESS((short)0, "success"),
10822
      WEX((short)1, "wex");
10823
 
10824
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10825
 
10826
      static {
10827
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10828
          byName.put(field.getFieldName(), field);
10829
        }
10830
      }
10831
 
10832
      /**
10833
       * Find the _Fields constant that matches fieldId, or null if its not found.
10834
       */
10835
      public static _Fields findByThriftId(int fieldId) {
10836
        switch(fieldId) {
10837
          case 0: // SUCCESS
10838
            return SUCCESS;
10839
          case 1: // WEX
10840
            return WEX;
10841
          default:
10842
            return null;
10843
        }
10844
      }
10845
 
10846
      /**
10847
       * Find the _Fields constant that matches fieldId, throwing an exception
10848
       * if it is not found.
10849
       */
10850
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10851
        _Fields fields = findByThriftId(fieldId);
10852
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10853
        return fields;
10854
      }
10855
 
10856
      /**
10857
       * Find the _Fields constant that matches name, or null if its not found.
10858
       */
10859
      public static _Fields findByName(String name) {
10860
        return byName.get(name);
10861
      }
10862
 
10863
      private final short _thriftId;
10864
      private final String _fieldName;
10865
 
10866
      _Fields(short thriftId, String fieldName) {
10867
        _thriftId = thriftId;
10868
        _fieldName = fieldName;
10869
      }
10870
 
10871
      public short getThriftFieldId() {
10872
        return _thriftId;
10873
      }
10874
 
10875
      public String getFieldName() {
10876
        return _fieldName;
10877
      }
10878
    }
10879
 
10880
    // isset id assignments
10881
 
10882
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10883
    static {
10884
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10885
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10886
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10887
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
10888
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10889
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10890
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10891
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
10892
    }
10893
 
10894
    public getInventoryItemsFromLastScanType_result() {
10895
    }
10896
 
10897
    public getInventoryItemsFromLastScanType_result(
10898
      List<InventoryItem> success,
10899
      WarehouseServiceException wex)
10900
    {
10901
      this();
10902
      this.success = success;
10903
      this.wex = wex;
10904
    }
10905
 
10906
    /**
10907
     * Performs a deep copy on <i>other</i>.
10908
     */
10909
    public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
10910
      if (other.isSetSuccess()) {
10911
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
10912
        for (InventoryItem other_element : other.success) {
10913
          __this__success.add(new InventoryItem(other_element));
10914
        }
10915
        this.success = __this__success;
10916
      }
10917
      if (other.isSetWex()) {
10918
        this.wex = new WarehouseServiceException(other.wex);
10919
      }
10920
    }
10921
 
10922
    public getInventoryItemsFromLastScanType_result deepCopy() {
10923
      return new getInventoryItemsFromLastScanType_result(this);
10924
    }
10925
 
10926
    @Override
10927
    public void clear() {
10928
      this.success = null;
10929
      this.wex = null;
10930
    }
10931
 
10932
    public int getSuccessSize() {
10933
      return (this.success == null) ? 0 : this.success.size();
10934
    }
10935
 
10936
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
10937
      return (this.success == null) ? null : this.success.iterator();
10938
    }
10939
 
10940
    public void addToSuccess(InventoryItem elem) {
10941
      if (this.success == null) {
10942
        this.success = new ArrayList<InventoryItem>();
10943
      }
10944
      this.success.add(elem);
10945
    }
10946
 
10947
    public List<InventoryItem> getSuccess() {
10948
      return this.success;
10949
    }
10950
 
10951
    public void setSuccess(List<InventoryItem> success) {
10952
      this.success = success;
10953
    }
10954
 
10955
    public void unsetSuccess() {
10956
      this.success = null;
10957
    }
10958
 
10959
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10960
    public boolean isSetSuccess() {
10961
      return this.success != null;
10962
    }
10963
 
10964
    public void setSuccessIsSet(boolean value) {
10965
      if (!value) {
10966
        this.success = null;
10967
      }
10968
    }
10969
 
10970
    public WarehouseServiceException getWex() {
10971
      return this.wex;
10972
    }
10973
 
10974
    public void setWex(WarehouseServiceException wex) {
10975
      this.wex = wex;
10976
    }
10977
 
10978
    public void unsetWex() {
10979
      this.wex = null;
10980
    }
10981
 
10982
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
10983
    public boolean isSetWex() {
10984
      return this.wex != null;
10985
    }
10986
 
10987
    public void setWexIsSet(boolean value) {
10988
      if (!value) {
10989
        this.wex = null;
10990
      }
10991
    }
10992
 
10993
    public void setFieldValue(_Fields field, Object value) {
10994
      switch (field) {
10995
      case SUCCESS:
10996
        if (value == null) {
10997
          unsetSuccess();
10998
        } else {
10999
          setSuccess((List<InventoryItem>)value);
11000
        }
11001
        break;
11002
 
11003
      case WEX:
11004
        if (value == null) {
11005
          unsetWex();
11006
        } else {
11007
          setWex((WarehouseServiceException)value);
11008
        }
11009
        break;
11010
 
11011
      }
11012
    }
11013
 
11014
    public Object getFieldValue(_Fields field) {
11015
      switch (field) {
11016
      case SUCCESS:
11017
        return getSuccess();
11018
 
11019
      case WEX:
11020
        return getWex();
11021
 
11022
      }
11023
      throw new IllegalStateException();
11024
    }
11025
 
11026
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11027
    public boolean isSet(_Fields field) {
11028
      if (field == null) {
11029
        throw new IllegalArgumentException();
11030
      }
11031
 
11032
      switch (field) {
11033
      case SUCCESS:
11034
        return isSetSuccess();
11035
      case WEX:
11036
        return isSetWex();
11037
      }
11038
      throw new IllegalStateException();
11039
    }
11040
 
11041
    @Override
11042
    public boolean equals(Object that) {
11043
      if (that == null)
11044
        return false;
11045
      if (that instanceof getInventoryItemsFromLastScanType_result)
11046
        return this.equals((getInventoryItemsFromLastScanType_result)that);
11047
      return false;
11048
    }
11049
 
11050
    public boolean equals(getInventoryItemsFromLastScanType_result that) {
11051
      if (that == null)
11052
        return false;
11053
 
11054
      boolean this_present_success = true && this.isSetSuccess();
11055
      boolean that_present_success = true && that.isSetSuccess();
11056
      if (this_present_success || that_present_success) {
11057
        if (!(this_present_success && that_present_success))
11058
          return false;
11059
        if (!this.success.equals(that.success))
11060
          return false;
11061
      }
11062
 
11063
      boolean this_present_wex = true && this.isSetWex();
11064
      boolean that_present_wex = true && that.isSetWex();
11065
      if (this_present_wex || that_present_wex) {
11066
        if (!(this_present_wex && that_present_wex))
11067
          return false;
11068
        if (!this.wex.equals(that.wex))
11069
          return false;
11070
      }
11071
 
11072
      return true;
11073
    }
11074
 
11075
    @Override
11076
    public int hashCode() {
11077
      return 0;
11078
    }
11079
 
11080
    public int compareTo(getInventoryItemsFromLastScanType_result other) {
11081
      if (!getClass().equals(other.getClass())) {
11082
        return getClass().getName().compareTo(other.getClass().getName());
11083
      }
11084
 
11085
      int lastComparison = 0;
11086
      getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
11087
 
11088
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11089
      if (lastComparison != 0) {
11090
        return lastComparison;
11091
      }
11092
      if (isSetSuccess()) {
11093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11094
        if (lastComparison != 0) {
11095
          return lastComparison;
11096
        }
11097
      }
11098
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
11099
      if (lastComparison != 0) {
11100
        return lastComparison;
11101
      }
11102
      if (isSetWex()) {
11103
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
11104
        if (lastComparison != 0) {
11105
          return lastComparison;
11106
        }
11107
      }
11108
      return 0;
11109
    }
11110
 
11111
    public _Fields fieldForId(int fieldId) {
11112
      return _Fields.findByThriftId(fieldId);
11113
    }
11114
 
11115
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11116
      org.apache.thrift.protocol.TField field;
11117
      iprot.readStructBegin();
11118
      while (true)
11119
      {
11120
        field = iprot.readFieldBegin();
11121
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11122
          break;
11123
        }
11124
        switch (field.id) {
11125
          case 0: // SUCCESS
11126
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11127
              {
5361 mandeep.dh 11128
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
11129
                this.success = new ArrayList<InventoryItem>(_list8.size);
11130
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
5185 mandeep.dh 11131
                {
5361 mandeep.dh 11132
                  InventoryItem _elem10; // required
11133
                  _elem10 = new InventoryItem();
11134
                  _elem10.read(iprot);
11135
                  this.success.add(_elem10);
5185 mandeep.dh 11136
                }
11137
                iprot.readListEnd();
11138
              }
11139
            } else { 
11140
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11141
            }
11142
            break;
11143
          case 1: // WEX
11144
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11145
              this.wex = new WarehouseServiceException();
11146
              this.wex.read(iprot);
11147
            } else { 
11148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11149
            }
11150
            break;
11151
          default:
11152
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11153
        }
11154
        iprot.readFieldEnd();
11155
      }
11156
      iprot.readStructEnd();
11157
      validate();
11158
    }
11159
 
11160
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11161
      oprot.writeStructBegin(STRUCT_DESC);
11162
 
11163
      if (this.isSetSuccess()) {
11164
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11165
        {
11166
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5361 mandeep.dh 11167
          for (InventoryItem _iter11 : this.success)
5185 mandeep.dh 11168
          {
5361 mandeep.dh 11169
            _iter11.write(oprot);
5185 mandeep.dh 11170
          }
11171
          oprot.writeListEnd();
11172
        }
11173
        oprot.writeFieldEnd();
11174
      } else if (this.isSetWex()) {
11175
        oprot.writeFieldBegin(WEX_FIELD_DESC);
11176
        this.wex.write(oprot);
11177
        oprot.writeFieldEnd();
11178
      }
11179
      oprot.writeFieldStop();
11180
      oprot.writeStructEnd();
11181
    }
11182
 
11183
    @Override
11184
    public String toString() {
11185
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
11186
      boolean first = true;
11187
 
11188
      sb.append("success:");
11189
      if (this.success == null) {
11190
        sb.append("null");
11191
      } else {
11192
        sb.append(this.success);
11193
      }
11194
      first = false;
11195
      if (!first) sb.append(", ");
11196
      sb.append("wex:");
11197
      if (this.wex == null) {
11198
        sb.append("null");
11199
      } else {
11200
        sb.append(this.wex);
11201
      }
11202
      first = false;
11203
      sb.append(")");
11204
      return sb.toString();
11205
    }
11206
 
11207
    public void validate() throws org.apache.thrift.TException {
11208
      // check for required fields
11209
    }
11210
 
11211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11212
      try {
11213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11214
      } catch (org.apache.thrift.TException te) {
11215
        throw new java.io.IOException(te);
11216
      }
11217
    }
11218
 
11219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11220
      try {
11221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11222
      } catch (org.apache.thrift.TException te) {
11223
        throw new java.io.IOException(te);
11224
      }
11225
    }
11226
 
11227
  }
11228
 
11229
  public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable   {
11230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
11231
 
11232
    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);
11233
 
11234
    private long inventoryItemId; // required
11235
 
11236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11237
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11238
      INVENTORY_ITEM_ID((short)1, "inventoryItemId");
11239
 
11240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11241
 
11242
      static {
11243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11244
          byName.put(field.getFieldName(), field);
11245
        }
11246
      }
11247
 
11248
      /**
11249
       * Find the _Fields constant that matches fieldId, or null if its not found.
11250
       */
11251
      public static _Fields findByThriftId(int fieldId) {
11252
        switch(fieldId) {
11253
          case 1: // INVENTORY_ITEM_ID
11254
            return INVENTORY_ITEM_ID;
11255
          default:
11256
            return null;
11257
        }
11258
      }
11259
 
11260
      /**
11261
       * Find the _Fields constant that matches fieldId, throwing an exception
11262
       * if it is not found.
11263
       */
11264
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11265
        _Fields fields = findByThriftId(fieldId);
11266
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11267
        return fields;
11268
      }
11269
 
11270
      /**
11271
       * Find the _Fields constant that matches name, or null if its not found.
11272
       */
11273
      public static _Fields findByName(String name) {
11274
        return byName.get(name);
11275
      }
11276
 
11277
      private final short _thriftId;
11278
      private final String _fieldName;
11279
 
11280
      _Fields(short thriftId, String fieldName) {
11281
        _thriftId = thriftId;
11282
        _fieldName = fieldName;
11283
      }
11284
 
11285
      public short getThriftFieldId() {
11286
        return _thriftId;
11287
      }
11288
 
11289
      public String getFieldName() {
11290
        return _fieldName;
11291
      }
11292
    }
11293
 
11294
    // isset id assignments
11295
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
11296
    private BitSet __isset_bit_vector = new BitSet(1);
11297
 
11298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11299
    static {
11300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11301
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
11305
    }
11306
 
11307
    public getInventoryItemFromId_args() {
11308
    }
11309
 
11310
    public getInventoryItemFromId_args(
11311
      long inventoryItemId)
11312
    {
11313
      this();
11314
      this.inventoryItemId = inventoryItemId;
11315
      setInventoryItemIdIsSet(true);
11316
    }
11317
 
11318
    /**
11319
     * Performs a deep copy on <i>other</i>.
11320
     */
11321
    public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
11322
      __isset_bit_vector.clear();
11323
      __isset_bit_vector.or(other.__isset_bit_vector);
11324
      this.inventoryItemId = other.inventoryItemId;
11325
    }
11326
 
11327
    public getInventoryItemFromId_args deepCopy() {
11328
      return new getInventoryItemFromId_args(this);
11329
    }
11330
 
11331
    @Override
11332
    public void clear() {
11333
      setInventoryItemIdIsSet(false);
11334
      this.inventoryItemId = 0;
11335
    }
11336
 
11337
    public long getInventoryItemId() {
11338
      return this.inventoryItemId;
11339
    }
11340
 
11341
    public void setInventoryItemId(long inventoryItemId) {
11342
      this.inventoryItemId = inventoryItemId;
11343
      setInventoryItemIdIsSet(true);
11344
    }
11345
 
11346
    public void unsetInventoryItemId() {
11347
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
11348
    }
11349
 
11350
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
11351
    public boolean isSetInventoryItemId() {
11352
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
11353
    }
11354
 
11355
    public void setInventoryItemIdIsSet(boolean value) {
11356
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
11357
    }
11358
 
11359
    public void setFieldValue(_Fields field, Object value) {
11360
      switch (field) {
11361
      case INVENTORY_ITEM_ID:
11362
        if (value == null) {
11363
          unsetInventoryItemId();
11364
        } else {
11365
          setInventoryItemId((Long)value);
11366
        }
11367
        break;
11368
 
11369
      }
11370
    }
11371
 
11372
    public Object getFieldValue(_Fields field) {
11373
      switch (field) {
11374
      case INVENTORY_ITEM_ID:
11375
        return Long.valueOf(getInventoryItemId());
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 INVENTORY_ITEM_ID:
11389
        return isSetInventoryItemId();
11390
      }
11391
      throw new IllegalStateException();
11392
    }
11393
 
11394
    @Override
11395
    public boolean equals(Object that) {
11396
      if (that == null)
11397
        return false;
11398
      if (that instanceof getInventoryItemFromId_args)
11399
        return this.equals((getInventoryItemFromId_args)that);
11400
      return false;
11401
    }
11402
 
11403
    public boolean equals(getInventoryItemFromId_args that) {
11404
      if (that == null)
11405
        return false;
11406
 
11407
      boolean this_present_inventoryItemId = true;
11408
      boolean that_present_inventoryItemId = true;
11409
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
11410
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
11411
          return false;
11412
        if (this.inventoryItemId != that.inventoryItemId)
11413
          return false;
11414
      }
11415
 
11416
      return true;
11417
    }
11418
 
11419
    @Override
11420
    public int hashCode() {
11421
      return 0;
11422
    }
11423
 
11424
    public int compareTo(getInventoryItemFromId_args other) {
11425
      if (!getClass().equals(other.getClass())) {
11426
        return getClass().getName().compareTo(other.getClass().getName());
11427
      }
11428
 
11429
      int lastComparison = 0;
11430
      getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
11431
 
11432
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
11433
      if (lastComparison != 0) {
11434
        return lastComparison;
11435
      }
11436
      if (isSetInventoryItemId()) {
11437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
11438
        if (lastComparison != 0) {
11439
          return lastComparison;
11440
        }
11441
      }
11442
      return 0;
11443
    }
11444
 
11445
    public _Fields fieldForId(int fieldId) {
11446
      return _Fields.findByThriftId(fieldId);
11447
    }
11448
 
11449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11450
      org.apache.thrift.protocol.TField field;
11451
      iprot.readStructBegin();
11452
      while (true)
11453
      {
11454
        field = iprot.readFieldBegin();
11455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11456
          break;
11457
        }
11458
        switch (field.id) {
11459
          case 1: // INVENTORY_ITEM_ID
11460
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11461
              this.inventoryItemId = iprot.readI64();
11462
              setInventoryItemIdIsSet(true);
11463
            } else { 
11464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11465
            }
11466
            break;
11467
          default:
11468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11469
        }
11470
        iprot.readFieldEnd();
11471
      }
11472
      iprot.readStructEnd();
11473
      validate();
11474
    }
11475
 
11476
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11477
      validate();
11478
 
11479
      oprot.writeStructBegin(STRUCT_DESC);
11480
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
11481
      oprot.writeI64(this.inventoryItemId);
11482
      oprot.writeFieldEnd();
11483
      oprot.writeFieldStop();
11484
      oprot.writeStructEnd();
11485
    }
11486
 
11487
    @Override
11488
    public String toString() {
11489
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
11490
      boolean first = true;
11491
 
11492
      sb.append("inventoryItemId:");
11493
      sb.append(this.inventoryItemId);
11494
      first = false;
11495
      sb.append(")");
11496
      return sb.toString();
11497
    }
11498
 
11499
    public void validate() throws org.apache.thrift.TException {
11500
      // check for required fields
11501
    }
11502
 
11503
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11504
      try {
11505
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11506
      } catch (org.apache.thrift.TException te) {
11507
        throw new java.io.IOException(te);
11508
      }
11509
    }
11510
 
11511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11512
      try {
5372 mandeep.dh 11513
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11514
        __isset_bit_vector = new BitSet(1);
5185 mandeep.dh 11515
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11516
      } catch (org.apache.thrift.TException te) {
11517
        throw new java.io.IOException(te);
11518
      }
11519
    }
11520
 
11521
  }
11522
 
11523
  public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable   {
11524
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
11525
 
11526
    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);
11527
    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);
11528
 
11529
    private InventoryItem success; // required
11530
    private WarehouseServiceException wex; // required
11531
 
11532
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11533
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11534
      SUCCESS((short)0, "success"),
11535
      WEX((short)1, "wex");
11536
 
11537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11538
 
11539
      static {
11540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11541
          byName.put(field.getFieldName(), field);
11542
        }
11543
      }
11544
 
11545
      /**
11546
       * Find the _Fields constant that matches fieldId, or null if its not found.
11547
       */
11548
      public static _Fields findByThriftId(int fieldId) {
11549
        switch(fieldId) {
11550
          case 0: // SUCCESS
11551
            return SUCCESS;
11552
          case 1: // WEX
11553
            return WEX;
11554
          default:
11555
            return null;
11556
        }
11557
      }
11558
 
11559
      /**
11560
       * Find the _Fields constant that matches fieldId, throwing an exception
11561
       * if it is not found.
11562
       */
11563
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11564
        _Fields fields = findByThriftId(fieldId);
11565
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11566
        return fields;
11567
      }
11568
 
11569
      /**
11570
       * Find the _Fields constant that matches name, or null if its not found.
11571
       */
11572
      public static _Fields findByName(String name) {
11573
        return byName.get(name);
11574
      }
11575
 
11576
      private final short _thriftId;
11577
      private final String _fieldName;
11578
 
11579
      _Fields(short thriftId, String fieldName) {
11580
        _thriftId = thriftId;
11581
        _fieldName = fieldName;
11582
      }
11583
 
11584
      public short getThriftFieldId() {
11585
        return _thriftId;
11586
      }
11587
 
11588
      public String getFieldName() {
11589
        return _fieldName;
11590
      }
11591
    }
11592
 
11593
    // isset id assignments
11594
 
11595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11596
    static {
11597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11598
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11599
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
11600
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11601
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11602
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11603
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
11604
    }
11605
 
11606
    public getInventoryItemFromId_result() {
11607
    }
11608
 
11609
    public getInventoryItemFromId_result(
11610
      InventoryItem success,
11611
      WarehouseServiceException wex)
11612
    {
11613
      this();
11614
      this.success = success;
11615
      this.wex = wex;
11616
    }
11617
 
11618
    /**
11619
     * Performs a deep copy on <i>other</i>.
11620
     */
11621
    public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
11622
      if (other.isSetSuccess()) {
11623
        this.success = new InventoryItem(other.success);
11624
      }
11625
      if (other.isSetWex()) {
11626
        this.wex = new WarehouseServiceException(other.wex);
11627
      }
11628
    }
11629
 
11630
    public getInventoryItemFromId_result deepCopy() {
11631
      return new getInventoryItemFromId_result(this);
11632
    }
11633
 
11634
    @Override
11635
    public void clear() {
11636
      this.success = null;
11637
      this.wex = null;
11638
    }
11639
 
11640
    public InventoryItem getSuccess() {
11641
      return this.success;
11642
    }
11643
 
11644
    public void setSuccess(InventoryItem success) {
11645
      this.success = success;
11646
    }
11647
 
11648
    public void unsetSuccess() {
11649
      this.success = null;
11650
    }
11651
 
11652
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11653
    public boolean isSetSuccess() {
11654
      return this.success != null;
11655
    }
11656
 
11657
    public void setSuccessIsSet(boolean value) {
11658
      if (!value) {
11659
        this.success = null;
11660
      }
11661
    }
11662
 
11663
    public WarehouseServiceException getWex() {
11664
      return this.wex;
11665
    }
11666
 
11667
    public void setWex(WarehouseServiceException wex) {
11668
      this.wex = wex;
11669
    }
11670
 
11671
    public void unsetWex() {
11672
      this.wex = null;
11673
    }
11674
 
11675
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
11676
    public boolean isSetWex() {
11677
      return this.wex != null;
11678
    }
11679
 
11680
    public void setWexIsSet(boolean value) {
11681
      if (!value) {
11682
        this.wex = null;
11683
      }
11684
    }
11685
 
11686
    public void setFieldValue(_Fields field, Object value) {
11687
      switch (field) {
11688
      case SUCCESS:
11689
        if (value == null) {
11690
          unsetSuccess();
11691
        } else {
11692
          setSuccess((InventoryItem)value);
11693
        }
11694
        break;
11695
 
11696
      case WEX:
11697
        if (value == null) {
11698
          unsetWex();
11699
        } else {
11700
          setWex((WarehouseServiceException)value);
11701
        }
11702
        break;
11703
 
11704
      }
11705
    }
11706
 
11707
    public Object getFieldValue(_Fields field) {
11708
      switch (field) {
11709
      case SUCCESS:
11710
        return getSuccess();
11711
 
11712
      case WEX:
11713
        return getWex();
11714
 
11715
      }
11716
      throw new IllegalStateException();
11717
    }
11718
 
11719
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11720
    public boolean isSet(_Fields field) {
11721
      if (field == null) {
11722
        throw new IllegalArgumentException();
11723
      }
11724
 
11725
      switch (field) {
11726
      case SUCCESS:
11727
        return isSetSuccess();
11728
      case WEX:
11729
        return isSetWex();
11730
      }
11731
      throw new IllegalStateException();
11732
    }
11733
 
11734
    @Override
11735
    public boolean equals(Object that) {
11736
      if (that == null)
11737
        return false;
11738
      if (that instanceof getInventoryItemFromId_result)
11739
        return this.equals((getInventoryItemFromId_result)that);
11740
      return false;
11741
    }
11742
 
11743
    public boolean equals(getInventoryItemFromId_result that) {
11744
      if (that == null)
11745
        return false;
11746
 
11747
      boolean this_present_success = true && this.isSetSuccess();
11748
      boolean that_present_success = true && that.isSetSuccess();
11749
      if (this_present_success || that_present_success) {
11750
        if (!(this_present_success && that_present_success))
11751
          return false;
11752
        if (!this.success.equals(that.success))
11753
          return false;
11754
      }
11755
 
11756
      boolean this_present_wex = true && this.isSetWex();
11757
      boolean that_present_wex = true && that.isSetWex();
11758
      if (this_present_wex || that_present_wex) {
11759
        if (!(this_present_wex && that_present_wex))
11760
          return false;
11761
        if (!this.wex.equals(that.wex))
11762
          return false;
11763
      }
11764
 
11765
      return true;
11766
    }
11767
 
11768
    @Override
11769
    public int hashCode() {
11770
      return 0;
11771
    }
11772
 
11773
    public int compareTo(getInventoryItemFromId_result other) {
11774
      if (!getClass().equals(other.getClass())) {
11775
        return getClass().getName().compareTo(other.getClass().getName());
11776
      }
11777
 
11778
      int lastComparison = 0;
11779
      getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
11780
 
11781
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11782
      if (lastComparison != 0) {
11783
        return lastComparison;
11784
      }
11785
      if (isSetSuccess()) {
11786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11787
        if (lastComparison != 0) {
11788
          return lastComparison;
11789
        }
11790
      }
11791
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
11792
      if (lastComparison != 0) {
11793
        return lastComparison;
11794
      }
11795
      if (isSetWex()) {
11796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
11797
        if (lastComparison != 0) {
11798
          return lastComparison;
11799
        }
11800
      }
11801
      return 0;
11802
    }
11803
 
11804
    public _Fields fieldForId(int fieldId) {
11805
      return _Fields.findByThriftId(fieldId);
11806
    }
11807
 
11808
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11809
      org.apache.thrift.protocol.TField field;
11810
      iprot.readStructBegin();
11811
      while (true)
11812
      {
11813
        field = iprot.readFieldBegin();
11814
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11815
          break;
11816
        }
11817
        switch (field.id) {
11818
          case 0: // SUCCESS
11819
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11820
              this.success = new InventoryItem();
11821
              this.success.read(iprot);
11822
            } else { 
11823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11824
            }
11825
            break;
11826
          case 1: // WEX
11827
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11828
              this.wex = new WarehouseServiceException();
11829
              this.wex.read(iprot);
11830
            } else { 
11831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11832
            }
11833
            break;
11834
          default:
11835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11836
        }
11837
        iprot.readFieldEnd();
11838
      }
11839
      iprot.readStructEnd();
11840
      validate();
11841
    }
11842
 
11843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11844
      oprot.writeStructBegin(STRUCT_DESC);
11845
 
11846
      if (this.isSetSuccess()) {
11847
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11848
        this.success.write(oprot);
11849
        oprot.writeFieldEnd();
11850
      } else if (this.isSetWex()) {
11851
        oprot.writeFieldBegin(WEX_FIELD_DESC);
11852
        this.wex.write(oprot);
11853
        oprot.writeFieldEnd();
11854
      }
11855
      oprot.writeFieldStop();
11856
      oprot.writeStructEnd();
11857
    }
11858
 
11859
    @Override
11860
    public String toString() {
11861
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
11862
      boolean first = true;
11863
 
11864
      sb.append("success:");
11865
      if (this.success == null) {
11866
        sb.append("null");
11867
      } else {
11868
        sb.append(this.success);
11869
      }
11870
      first = false;
11871
      if (!first) sb.append(", ");
11872
      sb.append("wex:");
11873
      if (this.wex == null) {
11874
        sb.append("null");
11875
      } else {
11876
        sb.append(this.wex);
11877
      }
11878
      first = false;
11879
      sb.append(")");
11880
      return sb.toString();
11881
    }
11882
 
11883
    public void validate() throws org.apache.thrift.TException {
11884
      // check for required fields
11885
    }
11886
 
11887
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11888
      try {
11889
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11890
      } catch (org.apache.thrift.TException te) {
11891
        throw new java.io.IOException(te);
11892
      }
11893
    }
11894
 
11895
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11896
      try {
11897
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11898
      } catch (org.apache.thrift.TException te) {
11899
        throw new java.io.IOException(te);
11900
      }
11901
    }
11902
 
11903
  }
11904
 
5372 mandeep.dh 11905
  public static class getPurchaseScans_args implements org.apache.thrift.TBase<getPurchaseScans_args, getPurchaseScans_args._Fields>, java.io.Serializable, Cloneable   {
11906
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_args");
11907
 
11908
    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);
11909
    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);
11910
 
11911
    private long startDate; // required
11912
    private long endDate; // required
11913
 
11914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11916
      START_DATE((short)1, "startDate"),
11917
      END_DATE((short)2, "endDate");
11918
 
11919
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11920
 
11921
      static {
11922
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11923
          byName.put(field.getFieldName(), field);
11924
        }
11925
      }
11926
 
11927
      /**
11928
       * Find the _Fields constant that matches fieldId, or null if its not found.
11929
       */
11930
      public static _Fields findByThriftId(int fieldId) {
11931
        switch(fieldId) {
11932
          case 1: // START_DATE
11933
            return START_DATE;
11934
          case 2: // END_DATE
11935
            return END_DATE;
11936
          default:
11937
            return null;
11938
        }
11939
      }
11940
 
11941
      /**
11942
       * Find the _Fields constant that matches fieldId, throwing an exception
11943
       * if it is not found.
11944
       */
11945
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11946
        _Fields fields = findByThriftId(fieldId);
11947
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11948
        return fields;
11949
      }
11950
 
11951
      /**
11952
       * Find the _Fields constant that matches name, or null if its not found.
11953
       */
11954
      public static _Fields findByName(String name) {
11955
        return byName.get(name);
11956
      }
11957
 
11958
      private final short _thriftId;
11959
      private final String _fieldName;
11960
 
11961
      _Fields(short thriftId, String fieldName) {
11962
        _thriftId = thriftId;
11963
        _fieldName = fieldName;
11964
      }
11965
 
11966
      public short getThriftFieldId() {
11967
        return _thriftId;
11968
      }
11969
 
11970
      public String getFieldName() {
11971
        return _fieldName;
11972
      }
11973
    }
11974
 
11975
    // isset id assignments
11976
    private static final int __STARTDATE_ISSET_ID = 0;
11977
    private static final int __ENDDATE_ISSET_ID = 1;
11978
    private BitSet __isset_bit_vector = new BitSet(2);
11979
 
11980
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11981
    static {
11982
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11983
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11984
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11985
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11986
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11987
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11988
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_args.class, metaDataMap);
11989
    }
11990
 
11991
    public getPurchaseScans_args() {
11992
    }
11993
 
11994
    public getPurchaseScans_args(
11995
      long startDate,
11996
      long endDate)
11997
    {
11998
      this();
11999
      this.startDate = startDate;
12000
      setStartDateIsSet(true);
12001
      this.endDate = endDate;
12002
      setEndDateIsSet(true);
12003
    }
12004
 
12005
    /**
12006
     * Performs a deep copy on <i>other</i>.
12007
     */
12008
    public getPurchaseScans_args(getPurchaseScans_args other) {
12009
      __isset_bit_vector.clear();
12010
      __isset_bit_vector.or(other.__isset_bit_vector);
12011
      this.startDate = other.startDate;
12012
      this.endDate = other.endDate;
12013
    }
12014
 
12015
    public getPurchaseScans_args deepCopy() {
12016
      return new getPurchaseScans_args(this);
12017
    }
12018
 
12019
    @Override
12020
    public void clear() {
12021
      setStartDateIsSet(false);
12022
      this.startDate = 0;
12023
      setEndDateIsSet(false);
12024
      this.endDate = 0;
12025
    }
12026
 
12027
    public long getStartDate() {
12028
      return this.startDate;
12029
    }
12030
 
12031
    public void setStartDate(long startDate) {
12032
      this.startDate = startDate;
12033
      setStartDateIsSet(true);
12034
    }
12035
 
12036
    public void unsetStartDate() {
12037
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
12038
    }
12039
 
12040
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
12041
    public boolean isSetStartDate() {
12042
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
12043
    }
12044
 
12045
    public void setStartDateIsSet(boolean value) {
12046
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
12047
    }
12048
 
12049
    public long getEndDate() {
12050
      return this.endDate;
12051
    }
12052
 
12053
    public void setEndDate(long endDate) {
12054
      this.endDate = endDate;
12055
      setEndDateIsSet(true);
12056
    }
12057
 
12058
    public void unsetEndDate() {
12059
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
12060
    }
12061
 
12062
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
12063
    public boolean isSetEndDate() {
12064
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
12065
    }
12066
 
12067
    public void setEndDateIsSet(boolean value) {
12068
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
12069
    }
12070
 
12071
    public void setFieldValue(_Fields field, Object value) {
12072
      switch (field) {
12073
      case START_DATE:
12074
        if (value == null) {
12075
          unsetStartDate();
12076
        } else {
12077
          setStartDate((Long)value);
12078
        }
12079
        break;
12080
 
12081
      case END_DATE:
12082
        if (value == null) {
12083
          unsetEndDate();
12084
        } else {
12085
          setEndDate((Long)value);
12086
        }
12087
        break;
12088
 
12089
      }
12090
    }
12091
 
12092
    public Object getFieldValue(_Fields field) {
12093
      switch (field) {
12094
      case START_DATE:
12095
        return Long.valueOf(getStartDate());
12096
 
12097
      case END_DATE:
12098
        return Long.valueOf(getEndDate());
12099
 
12100
      }
12101
      throw new IllegalStateException();
12102
    }
12103
 
12104
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12105
    public boolean isSet(_Fields field) {
12106
      if (field == null) {
12107
        throw new IllegalArgumentException();
12108
      }
12109
 
12110
      switch (field) {
12111
      case START_DATE:
12112
        return isSetStartDate();
12113
      case END_DATE:
12114
        return isSetEndDate();
12115
      }
12116
      throw new IllegalStateException();
12117
    }
12118
 
12119
    @Override
12120
    public boolean equals(Object that) {
12121
      if (that == null)
12122
        return false;
12123
      if (that instanceof getPurchaseScans_args)
12124
        return this.equals((getPurchaseScans_args)that);
12125
      return false;
12126
    }
12127
 
12128
    public boolean equals(getPurchaseScans_args that) {
12129
      if (that == null)
12130
        return false;
12131
 
12132
      boolean this_present_startDate = true;
12133
      boolean that_present_startDate = true;
12134
      if (this_present_startDate || that_present_startDate) {
12135
        if (!(this_present_startDate && that_present_startDate))
12136
          return false;
12137
        if (this.startDate != that.startDate)
12138
          return false;
12139
      }
12140
 
12141
      boolean this_present_endDate = true;
12142
      boolean that_present_endDate = true;
12143
      if (this_present_endDate || that_present_endDate) {
12144
        if (!(this_present_endDate && that_present_endDate))
12145
          return false;
12146
        if (this.endDate != that.endDate)
12147
          return false;
12148
      }
12149
 
12150
      return true;
12151
    }
12152
 
12153
    @Override
12154
    public int hashCode() {
12155
      return 0;
12156
    }
12157
 
12158
    public int compareTo(getPurchaseScans_args other) {
12159
      if (!getClass().equals(other.getClass())) {
12160
        return getClass().getName().compareTo(other.getClass().getName());
12161
      }
12162
 
12163
      int lastComparison = 0;
12164
      getPurchaseScans_args typedOther = (getPurchaseScans_args)other;
12165
 
12166
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
12167
      if (lastComparison != 0) {
12168
        return lastComparison;
12169
      }
12170
      if (isSetStartDate()) {
12171
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
12172
        if (lastComparison != 0) {
12173
          return lastComparison;
12174
        }
12175
      }
12176
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
12177
      if (lastComparison != 0) {
12178
        return lastComparison;
12179
      }
12180
      if (isSetEndDate()) {
12181
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
12182
        if (lastComparison != 0) {
12183
          return lastComparison;
12184
        }
12185
      }
12186
      return 0;
12187
    }
12188
 
12189
    public _Fields fieldForId(int fieldId) {
12190
      return _Fields.findByThriftId(fieldId);
12191
    }
12192
 
12193
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12194
      org.apache.thrift.protocol.TField field;
12195
      iprot.readStructBegin();
12196
      while (true)
12197
      {
12198
        field = iprot.readFieldBegin();
12199
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12200
          break;
12201
        }
12202
        switch (field.id) {
12203
          case 1: // START_DATE
12204
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12205
              this.startDate = iprot.readI64();
12206
              setStartDateIsSet(true);
12207
            } else { 
12208
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12209
            }
12210
            break;
12211
          case 2: // END_DATE
12212
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12213
              this.endDate = iprot.readI64();
12214
              setEndDateIsSet(true);
12215
            } else { 
12216
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12217
            }
12218
            break;
12219
          default:
12220
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12221
        }
12222
        iprot.readFieldEnd();
12223
      }
12224
      iprot.readStructEnd();
12225
      validate();
12226
    }
12227
 
12228
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12229
      validate();
12230
 
12231
      oprot.writeStructBegin(STRUCT_DESC);
12232
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
12233
      oprot.writeI64(this.startDate);
12234
      oprot.writeFieldEnd();
12235
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
12236
      oprot.writeI64(this.endDate);
12237
      oprot.writeFieldEnd();
12238
      oprot.writeFieldStop();
12239
      oprot.writeStructEnd();
12240
    }
12241
 
12242
    @Override
12243
    public String toString() {
12244
      StringBuilder sb = new StringBuilder("getPurchaseScans_args(");
12245
      boolean first = true;
12246
 
12247
      sb.append("startDate:");
12248
      sb.append(this.startDate);
12249
      first = false;
12250
      if (!first) sb.append(", ");
12251
      sb.append("endDate:");
12252
      sb.append(this.endDate);
12253
      first = false;
12254
      sb.append(")");
12255
      return sb.toString();
12256
    }
12257
 
12258
    public void validate() throws org.apache.thrift.TException {
12259
      // check for required fields
12260
    }
12261
 
12262
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12263
      try {
12264
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12265
      } catch (org.apache.thrift.TException te) {
12266
        throw new java.io.IOException(te);
12267
      }
12268
    }
12269
 
12270
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12271
      try {
12272
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12273
        __isset_bit_vector = new BitSet(1);
12274
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12275
      } catch (org.apache.thrift.TException te) {
12276
        throw new java.io.IOException(te);
12277
      }
12278
    }
12279
 
12280
  }
12281
 
12282
  public static class getPurchaseScans_result implements org.apache.thrift.TBase<getPurchaseScans_result, getPurchaseScans_result._Fields>, java.io.Serializable, Cloneable   {
12283
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_result");
12284
 
12285
    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);
12286
 
12287
    private List<DetailedPurchaseScan> success; // required
12288
 
12289
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12290
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12291
      SUCCESS((short)0, "success");
12292
 
12293
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12294
 
12295
      static {
12296
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12297
          byName.put(field.getFieldName(), field);
12298
        }
12299
      }
12300
 
12301
      /**
12302
       * Find the _Fields constant that matches fieldId, or null if its not found.
12303
       */
12304
      public static _Fields findByThriftId(int fieldId) {
12305
        switch(fieldId) {
12306
          case 0: // SUCCESS
12307
            return SUCCESS;
12308
          default:
12309
            return null;
12310
        }
12311
      }
12312
 
12313
      /**
12314
       * Find the _Fields constant that matches fieldId, throwing an exception
12315
       * if it is not found.
12316
       */
12317
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12318
        _Fields fields = findByThriftId(fieldId);
12319
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12320
        return fields;
12321
      }
12322
 
12323
      /**
12324
       * Find the _Fields constant that matches name, or null if its not found.
12325
       */
12326
      public static _Fields findByName(String name) {
12327
        return byName.get(name);
12328
      }
12329
 
12330
      private final short _thriftId;
12331
      private final String _fieldName;
12332
 
12333
      _Fields(short thriftId, String fieldName) {
12334
        _thriftId = thriftId;
12335
        _fieldName = fieldName;
12336
      }
12337
 
12338
      public short getThriftFieldId() {
12339
        return _thriftId;
12340
      }
12341
 
12342
      public String getFieldName() {
12343
        return _fieldName;
12344
      }
12345
    }
12346
 
12347
    // isset id assignments
12348
 
12349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12350
    static {
12351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12352
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12353
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12354
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
12355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_result.class, metaDataMap);
12357
    }
12358
 
12359
    public getPurchaseScans_result() {
12360
    }
12361
 
12362
    public getPurchaseScans_result(
12363
      List<DetailedPurchaseScan> success)
12364
    {
12365
      this();
12366
      this.success = success;
12367
    }
12368
 
12369
    /**
12370
     * Performs a deep copy on <i>other</i>.
12371
     */
12372
    public getPurchaseScans_result(getPurchaseScans_result other) {
12373
      if (other.isSetSuccess()) {
12374
        List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
12375
        for (DetailedPurchaseScan other_element : other.success) {
12376
          __this__success.add(new DetailedPurchaseScan(other_element));
12377
        }
12378
        this.success = __this__success;
12379
      }
12380
    }
12381
 
12382
    public getPurchaseScans_result deepCopy() {
12383
      return new getPurchaseScans_result(this);
12384
    }
12385
 
12386
    @Override
12387
    public void clear() {
12388
      this.success = null;
12389
    }
12390
 
12391
    public int getSuccessSize() {
12392
      return (this.success == null) ? 0 : this.success.size();
12393
    }
12394
 
12395
    public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
12396
      return (this.success == null) ? null : this.success.iterator();
12397
    }
12398
 
12399
    public void addToSuccess(DetailedPurchaseScan elem) {
12400
      if (this.success == null) {
12401
        this.success = new ArrayList<DetailedPurchaseScan>();
12402
      }
12403
      this.success.add(elem);
12404
    }
12405
 
12406
    public List<DetailedPurchaseScan> getSuccess() {
12407
      return this.success;
12408
    }
12409
 
12410
    public void setSuccess(List<DetailedPurchaseScan> success) {
12411
      this.success = success;
12412
    }
12413
 
12414
    public void unsetSuccess() {
12415
      this.success = null;
12416
    }
12417
 
12418
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12419
    public boolean isSetSuccess() {
12420
      return this.success != null;
12421
    }
12422
 
12423
    public void setSuccessIsSet(boolean value) {
12424
      if (!value) {
12425
        this.success = null;
12426
      }
12427
    }
12428
 
12429
    public void setFieldValue(_Fields field, Object value) {
12430
      switch (field) {
12431
      case SUCCESS:
12432
        if (value == null) {
12433
          unsetSuccess();
12434
        } else {
12435
          setSuccess((List<DetailedPurchaseScan>)value);
12436
        }
12437
        break;
12438
 
12439
      }
12440
    }
12441
 
12442
    public Object getFieldValue(_Fields field) {
12443
      switch (field) {
12444
      case SUCCESS:
12445
        return getSuccess();
12446
 
12447
      }
12448
      throw new IllegalStateException();
12449
    }
12450
 
12451
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12452
    public boolean isSet(_Fields field) {
12453
      if (field == null) {
12454
        throw new IllegalArgumentException();
12455
      }
12456
 
12457
      switch (field) {
12458
      case SUCCESS:
12459
        return isSetSuccess();
12460
      }
12461
      throw new IllegalStateException();
12462
    }
12463
 
12464
    @Override
12465
    public boolean equals(Object that) {
12466
      if (that == null)
12467
        return false;
12468
      if (that instanceof getPurchaseScans_result)
12469
        return this.equals((getPurchaseScans_result)that);
12470
      return false;
12471
    }
12472
 
12473
    public boolean equals(getPurchaseScans_result that) {
12474
      if (that == null)
12475
        return false;
12476
 
12477
      boolean this_present_success = true && this.isSetSuccess();
12478
      boolean that_present_success = true && that.isSetSuccess();
12479
      if (this_present_success || that_present_success) {
12480
        if (!(this_present_success && that_present_success))
12481
          return false;
12482
        if (!this.success.equals(that.success))
12483
          return false;
12484
      }
12485
 
12486
      return true;
12487
    }
12488
 
12489
    @Override
12490
    public int hashCode() {
12491
      return 0;
12492
    }
12493
 
12494
    public int compareTo(getPurchaseScans_result other) {
12495
      if (!getClass().equals(other.getClass())) {
12496
        return getClass().getName().compareTo(other.getClass().getName());
12497
      }
12498
 
12499
      int lastComparison = 0;
12500
      getPurchaseScans_result typedOther = (getPurchaseScans_result)other;
12501
 
12502
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12503
      if (lastComparison != 0) {
12504
        return lastComparison;
12505
      }
12506
      if (isSetSuccess()) {
12507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12508
        if (lastComparison != 0) {
12509
          return lastComparison;
12510
        }
12511
      }
12512
      return 0;
12513
    }
12514
 
12515
    public _Fields fieldForId(int fieldId) {
12516
      return _Fields.findByThriftId(fieldId);
12517
    }
12518
 
12519
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12520
      org.apache.thrift.protocol.TField field;
12521
      iprot.readStructBegin();
12522
      while (true)
12523
      {
12524
        field = iprot.readFieldBegin();
12525
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12526
          break;
12527
        }
12528
        switch (field.id) {
12529
          case 0: // SUCCESS
12530
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12531
              {
12532
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
12533
                this.success = new ArrayList<DetailedPurchaseScan>(_list12.size);
12534
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
12535
                {
12536
                  DetailedPurchaseScan _elem14; // required
12537
                  _elem14 = new DetailedPurchaseScan();
12538
                  _elem14.read(iprot);
12539
                  this.success.add(_elem14);
12540
                }
12541
                iprot.readListEnd();
12542
              }
12543
            } else { 
12544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12545
            }
12546
            break;
12547
          default:
12548
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12549
        }
12550
        iprot.readFieldEnd();
12551
      }
12552
      iprot.readStructEnd();
12553
      validate();
12554
    }
12555
 
12556
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12557
      oprot.writeStructBegin(STRUCT_DESC);
12558
 
12559
      if (this.isSetSuccess()) {
12560
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12561
        {
12562
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12563
          for (DetailedPurchaseScan _iter15 : this.success)
12564
          {
12565
            _iter15.write(oprot);
12566
          }
12567
          oprot.writeListEnd();
12568
        }
12569
        oprot.writeFieldEnd();
12570
      }
12571
      oprot.writeFieldStop();
12572
      oprot.writeStructEnd();
12573
    }
12574
 
12575
    @Override
12576
    public String toString() {
12577
      StringBuilder sb = new StringBuilder("getPurchaseScans_result(");
12578
      boolean first = true;
12579
 
12580
      sb.append("success:");
12581
      if (this.success == null) {
12582
        sb.append("null");
12583
      } else {
12584
        sb.append(this.success);
12585
      }
12586
      first = false;
12587
      sb.append(")");
12588
      return sb.toString();
12589
    }
12590
 
12591
    public void validate() throws org.apache.thrift.TException {
12592
      // check for required fields
12593
    }
12594
 
12595
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12596
      try {
12597
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12598
      } catch (org.apache.thrift.TException te) {
12599
        throw new java.io.IOException(te);
12600
      }
12601
    }
12602
 
12603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12604
      try {
12605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12606
      } catch (org.apache.thrift.TException te) {
12607
        throw new java.io.IOException(te);
12608
      }
12609
    }
12610
 
12611
  }
12612
 
7210 amar.kumar 12613
  public static class getPurchaseScansByGrnDate_args implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_args, getPurchaseScansByGrnDate_args._Fields>, java.io.Serializable, Cloneable   {
12614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_args");
12615
 
12616
    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);
12617
    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);
12618
 
12619
    private long startDate; // required
12620
    private long endDate; // required
12621
 
12622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12624
      START_DATE((short)1, "startDate"),
12625
      END_DATE((short)2, "endDate");
12626
 
12627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12628
 
12629
      static {
12630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12631
          byName.put(field.getFieldName(), field);
12632
        }
12633
      }
12634
 
12635
      /**
12636
       * Find the _Fields constant that matches fieldId, or null if its not found.
12637
       */
12638
      public static _Fields findByThriftId(int fieldId) {
12639
        switch(fieldId) {
12640
          case 1: // START_DATE
12641
            return START_DATE;
12642
          case 2: // END_DATE
12643
            return END_DATE;
12644
          default:
12645
            return null;
12646
        }
12647
      }
12648
 
12649
      /**
12650
       * Find the _Fields constant that matches fieldId, throwing an exception
12651
       * if it is not found.
12652
       */
12653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12654
        _Fields fields = findByThriftId(fieldId);
12655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12656
        return fields;
12657
      }
12658
 
12659
      /**
12660
       * Find the _Fields constant that matches name, or null if its not found.
12661
       */
12662
      public static _Fields findByName(String name) {
12663
        return byName.get(name);
12664
      }
12665
 
12666
      private final short _thriftId;
12667
      private final String _fieldName;
12668
 
12669
      _Fields(short thriftId, String fieldName) {
12670
        _thriftId = thriftId;
12671
        _fieldName = fieldName;
12672
      }
12673
 
12674
      public short getThriftFieldId() {
12675
        return _thriftId;
12676
      }
12677
 
12678
      public String getFieldName() {
12679
        return _fieldName;
12680
      }
12681
    }
12682
 
12683
    // isset id assignments
12684
    private static final int __STARTDATE_ISSET_ID = 0;
12685
    private static final int __ENDDATE_ISSET_ID = 1;
12686
    private BitSet __isset_bit_vector = new BitSet(2);
12687
 
12688
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12689
    static {
12690
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12691
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12693
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12694
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12695
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12696
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_args.class, metaDataMap);
12697
    }
12698
 
12699
    public getPurchaseScansByGrnDate_args() {
12700
    }
12701
 
12702
    public getPurchaseScansByGrnDate_args(
12703
      long startDate,
12704
      long endDate)
12705
    {
12706
      this();
12707
      this.startDate = startDate;
12708
      setStartDateIsSet(true);
12709
      this.endDate = endDate;
12710
      setEndDateIsSet(true);
12711
    }
12712
 
12713
    /**
12714
     * Performs a deep copy on <i>other</i>.
12715
     */
12716
    public getPurchaseScansByGrnDate_args(getPurchaseScansByGrnDate_args other) {
12717
      __isset_bit_vector.clear();
12718
      __isset_bit_vector.or(other.__isset_bit_vector);
12719
      this.startDate = other.startDate;
12720
      this.endDate = other.endDate;
12721
    }
12722
 
12723
    public getPurchaseScansByGrnDate_args deepCopy() {
12724
      return new getPurchaseScansByGrnDate_args(this);
12725
    }
12726
 
12727
    @Override
12728
    public void clear() {
12729
      setStartDateIsSet(false);
12730
      this.startDate = 0;
12731
      setEndDateIsSet(false);
12732
      this.endDate = 0;
12733
    }
12734
 
12735
    public long getStartDate() {
12736
      return this.startDate;
12737
    }
12738
 
12739
    public void setStartDate(long startDate) {
12740
      this.startDate = startDate;
12741
      setStartDateIsSet(true);
12742
    }
12743
 
12744
    public void unsetStartDate() {
12745
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
12746
    }
12747
 
12748
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
12749
    public boolean isSetStartDate() {
12750
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
12751
    }
12752
 
12753
    public void setStartDateIsSet(boolean value) {
12754
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
12755
    }
12756
 
12757
    public long getEndDate() {
12758
      return this.endDate;
12759
    }
12760
 
12761
    public void setEndDate(long endDate) {
12762
      this.endDate = endDate;
12763
      setEndDateIsSet(true);
12764
    }
12765
 
12766
    public void unsetEndDate() {
12767
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
12768
    }
12769
 
12770
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
12771
    public boolean isSetEndDate() {
12772
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
12773
    }
12774
 
12775
    public void setEndDateIsSet(boolean value) {
12776
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
12777
    }
12778
 
12779
    public void setFieldValue(_Fields field, Object value) {
12780
      switch (field) {
12781
      case START_DATE:
12782
        if (value == null) {
12783
          unsetStartDate();
12784
        } else {
12785
          setStartDate((Long)value);
12786
        }
12787
        break;
12788
 
12789
      case END_DATE:
12790
        if (value == null) {
12791
          unsetEndDate();
12792
        } else {
12793
          setEndDate((Long)value);
12794
        }
12795
        break;
12796
 
12797
      }
12798
    }
12799
 
12800
    public Object getFieldValue(_Fields field) {
12801
      switch (field) {
12802
      case START_DATE:
12803
        return Long.valueOf(getStartDate());
12804
 
12805
      case END_DATE:
12806
        return Long.valueOf(getEndDate());
12807
 
12808
      }
12809
      throw new IllegalStateException();
12810
    }
12811
 
12812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12813
    public boolean isSet(_Fields field) {
12814
      if (field == null) {
12815
        throw new IllegalArgumentException();
12816
      }
12817
 
12818
      switch (field) {
12819
      case START_DATE:
12820
        return isSetStartDate();
12821
      case END_DATE:
12822
        return isSetEndDate();
12823
      }
12824
      throw new IllegalStateException();
12825
    }
12826
 
12827
    @Override
12828
    public boolean equals(Object that) {
12829
      if (that == null)
12830
        return false;
12831
      if (that instanceof getPurchaseScansByGrnDate_args)
12832
        return this.equals((getPurchaseScansByGrnDate_args)that);
12833
      return false;
12834
    }
12835
 
12836
    public boolean equals(getPurchaseScansByGrnDate_args that) {
12837
      if (that == null)
12838
        return false;
12839
 
12840
      boolean this_present_startDate = true;
12841
      boolean that_present_startDate = true;
12842
      if (this_present_startDate || that_present_startDate) {
12843
        if (!(this_present_startDate && that_present_startDate))
12844
          return false;
12845
        if (this.startDate != that.startDate)
12846
          return false;
12847
      }
12848
 
12849
      boolean this_present_endDate = true;
12850
      boolean that_present_endDate = true;
12851
      if (this_present_endDate || that_present_endDate) {
12852
        if (!(this_present_endDate && that_present_endDate))
12853
          return false;
12854
        if (this.endDate != that.endDate)
12855
          return false;
12856
      }
12857
 
12858
      return true;
12859
    }
12860
 
12861
    @Override
12862
    public int hashCode() {
12863
      return 0;
12864
    }
12865
 
12866
    public int compareTo(getPurchaseScansByGrnDate_args other) {
12867
      if (!getClass().equals(other.getClass())) {
12868
        return getClass().getName().compareTo(other.getClass().getName());
12869
      }
12870
 
12871
      int lastComparison = 0;
12872
      getPurchaseScansByGrnDate_args typedOther = (getPurchaseScansByGrnDate_args)other;
12873
 
12874
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
12875
      if (lastComparison != 0) {
12876
        return lastComparison;
12877
      }
12878
      if (isSetStartDate()) {
12879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
12880
        if (lastComparison != 0) {
12881
          return lastComparison;
12882
        }
12883
      }
12884
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
12885
      if (lastComparison != 0) {
12886
        return lastComparison;
12887
      }
12888
      if (isSetEndDate()) {
12889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
12890
        if (lastComparison != 0) {
12891
          return lastComparison;
12892
        }
12893
      }
12894
      return 0;
12895
    }
12896
 
12897
    public _Fields fieldForId(int fieldId) {
12898
      return _Fields.findByThriftId(fieldId);
12899
    }
12900
 
12901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12902
      org.apache.thrift.protocol.TField field;
12903
      iprot.readStructBegin();
12904
      while (true)
12905
      {
12906
        field = iprot.readFieldBegin();
12907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12908
          break;
12909
        }
12910
        switch (field.id) {
12911
          case 1: // START_DATE
12912
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12913
              this.startDate = iprot.readI64();
12914
              setStartDateIsSet(true);
12915
            } else { 
12916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12917
            }
12918
            break;
12919
          case 2: // END_DATE
12920
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12921
              this.endDate = iprot.readI64();
12922
              setEndDateIsSet(true);
12923
            } else { 
12924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12925
            }
12926
            break;
12927
          default:
12928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12929
        }
12930
        iprot.readFieldEnd();
12931
      }
12932
      iprot.readStructEnd();
12933
      validate();
12934
    }
12935
 
12936
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12937
      validate();
12938
 
12939
      oprot.writeStructBegin(STRUCT_DESC);
12940
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
12941
      oprot.writeI64(this.startDate);
12942
      oprot.writeFieldEnd();
12943
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
12944
      oprot.writeI64(this.endDate);
12945
      oprot.writeFieldEnd();
12946
      oprot.writeFieldStop();
12947
      oprot.writeStructEnd();
12948
    }
12949
 
12950
    @Override
12951
    public String toString() {
12952
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_args(");
12953
      boolean first = true;
12954
 
12955
      sb.append("startDate:");
12956
      sb.append(this.startDate);
12957
      first = false;
12958
      if (!first) sb.append(", ");
12959
      sb.append("endDate:");
12960
      sb.append(this.endDate);
12961
      first = false;
12962
      sb.append(")");
12963
      return sb.toString();
12964
    }
12965
 
12966
    public void validate() throws org.apache.thrift.TException {
12967
      // check for required fields
12968
    }
12969
 
12970
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12971
      try {
12972
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12973
      } catch (org.apache.thrift.TException te) {
12974
        throw new java.io.IOException(te);
12975
      }
12976
    }
12977
 
12978
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12979
      try {
12980
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12981
        __isset_bit_vector = new BitSet(1);
12982
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12983
      } catch (org.apache.thrift.TException te) {
12984
        throw new java.io.IOException(te);
12985
      }
12986
    }
12987
 
12988
  }
12989
 
12990
  public static class getPurchaseScansByGrnDate_result implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_result, getPurchaseScansByGrnDate_result._Fields>, java.io.Serializable, Cloneable   {
12991
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_result");
12992
 
12993
    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);
12994
 
12995
    private List<DetailedPurchaseScan> success; // required
12996
 
12997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12999
      SUCCESS((short)0, "success");
13000
 
13001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13002
 
13003
      static {
13004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13005
          byName.put(field.getFieldName(), field);
13006
        }
13007
      }
13008
 
13009
      /**
13010
       * Find the _Fields constant that matches fieldId, or null if its not found.
13011
       */
13012
      public static _Fields findByThriftId(int fieldId) {
13013
        switch(fieldId) {
13014
          case 0: // SUCCESS
13015
            return SUCCESS;
13016
          default:
13017
            return null;
13018
        }
13019
      }
13020
 
13021
      /**
13022
       * Find the _Fields constant that matches fieldId, throwing an exception
13023
       * if it is not found.
13024
       */
13025
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13026
        _Fields fields = findByThriftId(fieldId);
13027
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13028
        return fields;
13029
      }
13030
 
13031
      /**
13032
       * Find the _Fields constant that matches name, or null if its not found.
13033
       */
13034
      public static _Fields findByName(String name) {
13035
        return byName.get(name);
13036
      }
13037
 
13038
      private final short _thriftId;
13039
      private final String _fieldName;
13040
 
13041
      _Fields(short thriftId, String fieldName) {
13042
        _thriftId = thriftId;
13043
        _fieldName = fieldName;
13044
      }
13045
 
13046
      public short getThriftFieldId() {
13047
        return _thriftId;
13048
      }
13049
 
13050
      public String getFieldName() {
13051
        return _fieldName;
13052
      }
13053
    }
13054
 
13055
    // isset id assignments
13056
 
13057
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13058
    static {
13059
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13060
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13061
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13062
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
13063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_result.class, metaDataMap);
13065
    }
13066
 
13067
    public getPurchaseScansByGrnDate_result() {
13068
    }
13069
 
13070
    public getPurchaseScansByGrnDate_result(
13071
      List<DetailedPurchaseScan> success)
13072
    {
13073
      this();
13074
      this.success = success;
13075
    }
13076
 
13077
    /**
13078
     * Performs a deep copy on <i>other</i>.
13079
     */
13080
    public getPurchaseScansByGrnDate_result(getPurchaseScansByGrnDate_result other) {
13081
      if (other.isSetSuccess()) {
13082
        List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
13083
        for (DetailedPurchaseScan other_element : other.success) {
13084
          __this__success.add(new DetailedPurchaseScan(other_element));
13085
        }
13086
        this.success = __this__success;
13087
      }
13088
    }
13089
 
13090
    public getPurchaseScansByGrnDate_result deepCopy() {
13091
      return new getPurchaseScansByGrnDate_result(this);
13092
    }
13093
 
13094
    @Override
13095
    public void clear() {
13096
      this.success = null;
13097
    }
13098
 
13099
    public int getSuccessSize() {
13100
      return (this.success == null) ? 0 : this.success.size();
13101
    }
13102
 
13103
    public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
13104
      return (this.success == null) ? null : this.success.iterator();
13105
    }
13106
 
13107
    public void addToSuccess(DetailedPurchaseScan elem) {
13108
      if (this.success == null) {
13109
        this.success = new ArrayList<DetailedPurchaseScan>();
13110
      }
13111
      this.success.add(elem);
13112
    }
13113
 
13114
    public List<DetailedPurchaseScan> getSuccess() {
13115
      return this.success;
13116
    }
13117
 
13118
    public void setSuccess(List<DetailedPurchaseScan> success) {
13119
      this.success = success;
13120
    }
13121
 
13122
    public void unsetSuccess() {
13123
      this.success = null;
13124
    }
13125
 
13126
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13127
    public boolean isSetSuccess() {
13128
      return this.success != null;
13129
    }
13130
 
13131
    public void setSuccessIsSet(boolean value) {
13132
      if (!value) {
13133
        this.success = null;
13134
      }
13135
    }
13136
 
13137
    public void setFieldValue(_Fields field, Object value) {
13138
      switch (field) {
13139
      case SUCCESS:
13140
        if (value == null) {
13141
          unsetSuccess();
13142
        } else {
13143
          setSuccess((List<DetailedPurchaseScan>)value);
13144
        }
13145
        break;
13146
 
13147
      }
13148
    }
13149
 
13150
    public Object getFieldValue(_Fields field) {
13151
      switch (field) {
13152
      case SUCCESS:
13153
        return getSuccess();
13154
 
13155
      }
13156
      throw new IllegalStateException();
13157
    }
13158
 
13159
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13160
    public boolean isSet(_Fields field) {
13161
      if (field == null) {
13162
        throw new IllegalArgumentException();
13163
      }
13164
 
13165
      switch (field) {
13166
      case SUCCESS:
13167
        return isSetSuccess();
13168
      }
13169
      throw new IllegalStateException();
13170
    }
13171
 
13172
    @Override
13173
    public boolean equals(Object that) {
13174
      if (that == null)
13175
        return false;
13176
      if (that instanceof getPurchaseScansByGrnDate_result)
13177
        return this.equals((getPurchaseScansByGrnDate_result)that);
13178
      return false;
13179
    }
13180
 
13181
    public boolean equals(getPurchaseScansByGrnDate_result that) {
13182
      if (that == null)
13183
        return false;
13184
 
13185
      boolean this_present_success = true && this.isSetSuccess();
13186
      boolean that_present_success = true && that.isSetSuccess();
13187
      if (this_present_success || that_present_success) {
13188
        if (!(this_present_success && that_present_success))
13189
          return false;
13190
        if (!this.success.equals(that.success))
13191
          return false;
13192
      }
13193
 
13194
      return true;
13195
    }
13196
 
13197
    @Override
13198
    public int hashCode() {
13199
      return 0;
13200
    }
13201
 
13202
    public int compareTo(getPurchaseScansByGrnDate_result other) {
13203
      if (!getClass().equals(other.getClass())) {
13204
        return getClass().getName().compareTo(other.getClass().getName());
13205
      }
13206
 
13207
      int lastComparison = 0;
13208
      getPurchaseScansByGrnDate_result typedOther = (getPurchaseScansByGrnDate_result)other;
13209
 
13210
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13211
      if (lastComparison != 0) {
13212
        return lastComparison;
13213
      }
13214
      if (isSetSuccess()) {
13215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13216
        if (lastComparison != 0) {
13217
          return lastComparison;
13218
        }
13219
      }
13220
      return 0;
13221
    }
13222
 
13223
    public _Fields fieldForId(int fieldId) {
13224
      return _Fields.findByThriftId(fieldId);
13225
    }
13226
 
13227
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13228
      org.apache.thrift.protocol.TField field;
13229
      iprot.readStructBegin();
13230
      while (true)
13231
      {
13232
        field = iprot.readFieldBegin();
13233
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13234
          break;
13235
        }
13236
        switch (field.id) {
13237
          case 0: // SUCCESS
13238
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13239
              {
13240
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
13241
                this.success = new ArrayList<DetailedPurchaseScan>(_list16.size);
13242
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
13243
                {
13244
                  DetailedPurchaseScan _elem18; // required
13245
                  _elem18 = new DetailedPurchaseScan();
13246
                  _elem18.read(iprot);
13247
                  this.success.add(_elem18);
13248
                }
13249
                iprot.readListEnd();
13250
              }
13251
            } else { 
13252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13253
            }
13254
            break;
13255
          default:
13256
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13257
        }
13258
        iprot.readFieldEnd();
13259
      }
13260
      iprot.readStructEnd();
13261
      validate();
13262
    }
13263
 
13264
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13265
      oprot.writeStructBegin(STRUCT_DESC);
13266
 
13267
      if (this.isSetSuccess()) {
13268
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13269
        {
13270
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13271
          for (DetailedPurchaseScan _iter19 : this.success)
13272
          {
13273
            _iter19.write(oprot);
13274
          }
13275
          oprot.writeListEnd();
13276
        }
13277
        oprot.writeFieldEnd();
13278
      }
13279
      oprot.writeFieldStop();
13280
      oprot.writeStructEnd();
13281
    }
13282
 
13283
    @Override
13284
    public String toString() {
13285
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_result(");
13286
      boolean first = true;
13287
 
13288
      sb.append("success:");
13289
      if (this.success == null) {
13290
        sb.append("null");
13291
      } else {
13292
        sb.append(this.success);
13293
      }
13294
      first = false;
13295
      sb.append(")");
13296
      return sb.toString();
13297
    }
13298
 
13299
    public void validate() throws org.apache.thrift.TException {
13300
      // check for required fields
13301
    }
13302
 
13303
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13304
      try {
13305
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13306
      } catch (org.apache.thrift.TException te) {
13307
        throw new java.io.IOException(te);
13308
      }
13309
    }
13310
 
13311
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13312
      try {
13313
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13314
      } catch (org.apache.thrift.TException te) {
13315
        throw new java.io.IOException(te);
13316
      }
13317
    }
13318
 
13319
  }
13320
 
5496 mandeep.dh 13321
  public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable   {
13322
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
13323
 
13324
    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);
13325
 
13326
    private long date; // required
13327
 
13328
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13329
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13330
      DATE((short)1, "date");
13331
 
13332
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13333
 
13334
      static {
13335
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13336
          byName.put(field.getFieldName(), field);
13337
        }
13338
      }
13339
 
13340
      /**
13341
       * Find the _Fields constant that matches fieldId, or null if its not found.
13342
       */
13343
      public static _Fields findByThriftId(int fieldId) {
13344
        switch(fieldId) {
13345
          case 1: // DATE
13346
            return DATE;
13347
          default:
13348
            return null;
13349
        }
13350
      }
13351
 
13352
      /**
13353
       * Find the _Fields constant that matches fieldId, throwing an exception
13354
       * if it is not found.
13355
       */
13356
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13357
        _Fields fields = findByThriftId(fieldId);
13358
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13359
        return fields;
13360
      }
13361
 
13362
      /**
13363
       * Find the _Fields constant that matches name, or null if its not found.
13364
       */
13365
      public static _Fields findByName(String name) {
13366
        return byName.get(name);
13367
      }
13368
 
13369
      private final short _thriftId;
13370
      private final String _fieldName;
13371
 
13372
      _Fields(short thriftId, String fieldName) {
13373
        _thriftId = thriftId;
13374
        _fieldName = fieldName;
13375
      }
13376
 
13377
      public short getThriftFieldId() {
13378
        return _thriftId;
13379
      }
13380
 
13381
      public String getFieldName() {
13382
        return _fieldName;
13383
      }
13384
    }
13385
 
13386
    // isset id assignments
13387
    private static final int __DATE_ISSET_ID = 0;
13388
    private BitSet __isset_bit_vector = new BitSet(1);
13389
 
13390
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13391
    static {
13392
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13393
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13394
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13395
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13396
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_args.class, metaDataMap);
13397
    }
13398
 
13399
    public fetchScansPerInvoiceNumber_args() {
13400
    }
13401
 
13402
    public fetchScansPerInvoiceNumber_args(
13403
      long date)
13404
    {
13405
      this();
13406
      this.date = date;
13407
      setDateIsSet(true);
13408
    }
13409
 
13410
    /**
13411
     * Performs a deep copy on <i>other</i>.
13412
     */
13413
    public fetchScansPerInvoiceNumber_args(fetchScansPerInvoiceNumber_args other) {
13414
      __isset_bit_vector.clear();
13415
      __isset_bit_vector.or(other.__isset_bit_vector);
13416
      this.date = other.date;
13417
    }
13418
 
13419
    public fetchScansPerInvoiceNumber_args deepCopy() {
13420
      return new fetchScansPerInvoiceNumber_args(this);
13421
    }
13422
 
13423
    @Override
13424
    public void clear() {
13425
      setDateIsSet(false);
13426
      this.date = 0;
13427
    }
13428
 
13429
    public long getDate() {
13430
      return this.date;
13431
    }
13432
 
13433
    public void setDate(long date) {
13434
      this.date = date;
13435
      setDateIsSet(true);
13436
    }
13437
 
13438
    public void unsetDate() {
13439
      __isset_bit_vector.clear(__DATE_ISSET_ID);
13440
    }
13441
 
13442
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
13443
    public boolean isSetDate() {
13444
      return __isset_bit_vector.get(__DATE_ISSET_ID);
13445
    }
13446
 
13447
    public void setDateIsSet(boolean value) {
13448
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
13449
    }
13450
 
13451
    public void setFieldValue(_Fields field, Object value) {
13452
      switch (field) {
13453
      case DATE:
13454
        if (value == null) {
13455
          unsetDate();
13456
        } else {
13457
          setDate((Long)value);
13458
        }
13459
        break;
13460
 
13461
      }
13462
    }
13463
 
13464
    public Object getFieldValue(_Fields field) {
13465
      switch (field) {
13466
      case DATE:
13467
        return Long.valueOf(getDate());
13468
 
13469
      }
13470
      throw new IllegalStateException();
13471
    }
13472
 
13473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13474
    public boolean isSet(_Fields field) {
13475
      if (field == null) {
13476
        throw new IllegalArgumentException();
13477
      }
13478
 
13479
      switch (field) {
13480
      case DATE:
13481
        return isSetDate();
13482
      }
13483
      throw new IllegalStateException();
13484
    }
13485
 
13486
    @Override
13487
    public boolean equals(Object that) {
13488
      if (that == null)
13489
        return false;
13490
      if (that instanceof fetchScansPerInvoiceNumber_args)
13491
        return this.equals((fetchScansPerInvoiceNumber_args)that);
13492
      return false;
13493
    }
13494
 
13495
    public boolean equals(fetchScansPerInvoiceNumber_args that) {
13496
      if (that == null)
13497
        return false;
13498
 
13499
      boolean this_present_date = true;
13500
      boolean that_present_date = true;
13501
      if (this_present_date || that_present_date) {
13502
        if (!(this_present_date && that_present_date))
13503
          return false;
13504
        if (this.date != that.date)
13505
          return false;
13506
      }
13507
 
13508
      return true;
13509
    }
13510
 
13511
    @Override
13512
    public int hashCode() {
13513
      return 0;
13514
    }
13515
 
13516
    public int compareTo(fetchScansPerInvoiceNumber_args other) {
13517
      if (!getClass().equals(other.getClass())) {
13518
        return getClass().getName().compareTo(other.getClass().getName());
13519
      }
13520
 
13521
      int lastComparison = 0;
13522
      fetchScansPerInvoiceNumber_args typedOther = (fetchScansPerInvoiceNumber_args)other;
13523
 
13524
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
13525
      if (lastComparison != 0) {
13526
        return lastComparison;
13527
      }
13528
      if (isSetDate()) {
13529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
13530
        if (lastComparison != 0) {
13531
          return lastComparison;
13532
        }
13533
      }
13534
      return 0;
13535
    }
13536
 
13537
    public _Fields fieldForId(int fieldId) {
13538
      return _Fields.findByThriftId(fieldId);
13539
    }
13540
 
13541
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13542
      org.apache.thrift.protocol.TField field;
13543
      iprot.readStructBegin();
13544
      while (true)
13545
      {
13546
        field = iprot.readFieldBegin();
13547
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13548
          break;
13549
        }
13550
        switch (field.id) {
13551
          case 1: // DATE
13552
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13553
              this.date = iprot.readI64();
13554
              setDateIsSet(true);
13555
            } else { 
13556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13557
            }
13558
            break;
13559
          default:
13560
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13561
        }
13562
        iprot.readFieldEnd();
13563
      }
13564
      iprot.readStructEnd();
13565
      validate();
13566
    }
13567
 
13568
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13569
      validate();
13570
 
13571
      oprot.writeStructBegin(STRUCT_DESC);
13572
      oprot.writeFieldBegin(DATE_FIELD_DESC);
13573
      oprot.writeI64(this.date);
13574
      oprot.writeFieldEnd();
13575
      oprot.writeFieldStop();
13576
      oprot.writeStructEnd();
13577
    }
13578
 
13579
    @Override
13580
    public String toString() {
13581
      StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_args(");
13582
      boolean first = true;
13583
 
13584
      sb.append("date:");
13585
      sb.append(this.date);
13586
      first = false;
13587
      sb.append(")");
13588
      return sb.toString();
13589
    }
13590
 
13591
    public void validate() throws org.apache.thrift.TException {
13592
      // check for required fields
13593
    }
13594
 
13595
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13596
      try {
13597
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13598
      } catch (org.apache.thrift.TException te) {
13599
        throw new java.io.IOException(te);
13600
      }
13601
    }
13602
 
13603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13604
      try {
5711 mandeep.dh 13605
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13606
        __isset_bit_vector = new BitSet(1);
5496 mandeep.dh 13607
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13608
      } catch (org.apache.thrift.TException te) {
13609
        throw new java.io.IOException(te);
13610
      }
13611
    }
13612
 
13613
  }
13614
 
13615
  public static class fetchScansPerInvoiceNumber_result implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_result, fetchScansPerInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable   {
13616
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_result");
13617
 
13618
    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);
13619
 
13620
    private List<InvoiceScan> success; // required
13621
 
13622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13624
      SUCCESS((short)0, "success");
13625
 
13626
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13627
 
13628
      static {
13629
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13630
          byName.put(field.getFieldName(), field);
13631
        }
13632
      }
13633
 
13634
      /**
13635
       * Find the _Fields constant that matches fieldId, or null if its not found.
13636
       */
13637
      public static _Fields findByThriftId(int fieldId) {
13638
        switch(fieldId) {
13639
          case 0: // SUCCESS
13640
            return SUCCESS;
13641
          default:
13642
            return null;
13643
        }
13644
      }
13645
 
13646
      /**
13647
       * Find the _Fields constant that matches fieldId, throwing an exception
13648
       * if it is not found.
13649
       */
13650
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13651
        _Fields fields = findByThriftId(fieldId);
13652
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13653
        return fields;
13654
      }
13655
 
13656
      /**
13657
       * Find the _Fields constant that matches name, or null if its not found.
13658
       */
13659
      public static _Fields findByName(String name) {
13660
        return byName.get(name);
13661
      }
13662
 
13663
      private final short _thriftId;
13664
      private final String _fieldName;
13665
 
13666
      _Fields(short thriftId, String fieldName) {
13667
        _thriftId = thriftId;
13668
        _fieldName = fieldName;
13669
      }
13670
 
13671
      public short getThriftFieldId() {
13672
        return _thriftId;
13673
      }
13674
 
13675
      public String getFieldName() {
13676
        return _fieldName;
13677
      }
13678
    }
13679
 
13680
    // isset id assignments
13681
 
13682
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13683
    static {
13684
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13685
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13686
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13687
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InvoiceScan.class))));
13688
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13689
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_result.class, metaDataMap);
13690
    }
13691
 
13692
    public fetchScansPerInvoiceNumber_result() {
13693
    }
13694
 
13695
    public fetchScansPerInvoiceNumber_result(
13696
      List<InvoiceScan> success)
13697
    {
13698
      this();
13699
      this.success = success;
13700
    }
13701
 
13702
    /**
13703
     * Performs a deep copy on <i>other</i>.
13704
     */
13705
    public fetchScansPerInvoiceNumber_result(fetchScansPerInvoiceNumber_result other) {
13706
      if (other.isSetSuccess()) {
13707
        List<InvoiceScan> __this__success = new ArrayList<InvoiceScan>();
13708
        for (InvoiceScan other_element : other.success) {
13709
          __this__success.add(new InvoiceScan(other_element));
13710
        }
13711
        this.success = __this__success;
13712
      }
13713
    }
13714
 
13715
    public fetchScansPerInvoiceNumber_result deepCopy() {
13716
      return new fetchScansPerInvoiceNumber_result(this);
13717
    }
13718
 
13719
    @Override
13720
    public void clear() {
13721
      this.success = null;
13722
    }
13723
 
13724
    public int getSuccessSize() {
13725
      return (this.success == null) ? 0 : this.success.size();
13726
    }
13727
 
13728
    public java.util.Iterator<InvoiceScan> getSuccessIterator() {
13729
      return (this.success == null) ? null : this.success.iterator();
13730
    }
13731
 
13732
    public void addToSuccess(InvoiceScan elem) {
13733
      if (this.success == null) {
13734
        this.success = new ArrayList<InvoiceScan>();
13735
      }
13736
      this.success.add(elem);
13737
    }
13738
 
13739
    public List<InvoiceScan> getSuccess() {
13740
      return this.success;
13741
    }
13742
 
13743
    public void setSuccess(List<InvoiceScan> success) {
13744
      this.success = success;
13745
    }
13746
 
13747
    public void unsetSuccess() {
13748
      this.success = null;
13749
    }
13750
 
13751
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13752
    public boolean isSetSuccess() {
13753
      return this.success != null;
13754
    }
13755
 
13756
    public void setSuccessIsSet(boolean value) {
13757
      if (!value) {
13758
        this.success = null;
13759
      }
13760
    }
13761
 
13762
    public void setFieldValue(_Fields field, Object value) {
13763
      switch (field) {
13764
      case SUCCESS:
13765
        if (value == null) {
13766
          unsetSuccess();
13767
        } else {
13768
          setSuccess((List<InvoiceScan>)value);
13769
        }
13770
        break;
13771
 
13772
      }
13773
    }
13774
 
13775
    public Object getFieldValue(_Fields field) {
13776
      switch (field) {
13777
      case SUCCESS:
13778
        return getSuccess();
13779
 
13780
      }
13781
      throw new IllegalStateException();
13782
    }
13783
 
13784
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13785
    public boolean isSet(_Fields field) {
13786
      if (field == null) {
13787
        throw new IllegalArgumentException();
13788
      }
13789
 
13790
      switch (field) {
13791
      case SUCCESS:
13792
        return isSetSuccess();
13793
      }
13794
      throw new IllegalStateException();
13795
    }
13796
 
13797
    @Override
13798
    public boolean equals(Object that) {
13799
      if (that == null)
13800
        return false;
13801
      if (that instanceof fetchScansPerInvoiceNumber_result)
13802
        return this.equals((fetchScansPerInvoiceNumber_result)that);
13803
      return false;
13804
    }
13805
 
13806
    public boolean equals(fetchScansPerInvoiceNumber_result that) {
13807
      if (that == null)
13808
        return false;
13809
 
13810
      boolean this_present_success = true && this.isSetSuccess();
13811
      boolean that_present_success = true && that.isSetSuccess();
13812
      if (this_present_success || that_present_success) {
13813
        if (!(this_present_success && that_present_success))
13814
          return false;
13815
        if (!this.success.equals(that.success))
13816
          return false;
13817
      }
13818
 
13819
      return true;
13820
    }
13821
 
13822
    @Override
13823
    public int hashCode() {
13824
      return 0;
13825
    }
13826
 
13827
    public int compareTo(fetchScansPerInvoiceNumber_result other) {
13828
      if (!getClass().equals(other.getClass())) {
13829
        return getClass().getName().compareTo(other.getClass().getName());
13830
      }
13831
 
13832
      int lastComparison = 0;
13833
      fetchScansPerInvoiceNumber_result typedOther = (fetchScansPerInvoiceNumber_result)other;
13834
 
13835
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13836
      if (lastComparison != 0) {
13837
        return lastComparison;
13838
      }
13839
      if (isSetSuccess()) {
13840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13841
        if (lastComparison != 0) {
13842
          return lastComparison;
13843
        }
13844
      }
13845
      return 0;
13846
    }
13847
 
13848
    public _Fields fieldForId(int fieldId) {
13849
      return _Fields.findByThriftId(fieldId);
13850
    }
13851
 
13852
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13853
      org.apache.thrift.protocol.TField field;
13854
      iprot.readStructBegin();
13855
      while (true)
13856
      {
13857
        field = iprot.readFieldBegin();
13858
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13859
          break;
13860
        }
13861
        switch (field.id) {
13862
          case 0: // SUCCESS
13863
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13864
              {
7210 amar.kumar 13865
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
13866
                this.success = new ArrayList<InvoiceScan>(_list20.size);
13867
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5496 mandeep.dh 13868
                {
7210 amar.kumar 13869
                  InvoiceScan _elem22; // required
13870
                  _elem22 = new InvoiceScan();
13871
                  _elem22.read(iprot);
13872
                  this.success.add(_elem22);
5496 mandeep.dh 13873
                }
13874
                iprot.readListEnd();
13875
              }
13876
            } else { 
13877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13878
            }
13879
            break;
13880
          default:
13881
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13882
        }
13883
        iprot.readFieldEnd();
13884
      }
13885
      iprot.readStructEnd();
13886
      validate();
13887
    }
13888
 
13889
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13890
      oprot.writeStructBegin(STRUCT_DESC);
13891
 
13892
      if (this.isSetSuccess()) {
13893
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13894
        {
13895
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 13896
          for (InvoiceScan _iter23 : this.success)
5496 mandeep.dh 13897
          {
7210 amar.kumar 13898
            _iter23.write(oprot);
5496 mandeep.dh 13899
          }
13900
          oprot.writeListEnd();
13901
        }
13902
        oprot.writeFieldEnd();
13903
      }
13904
      oprot.writeFieldStop();
13905
      oprot.writeStructEnd();
13906
    }
13907
 
13908
    @Override
13909
    public String toString() {
13910
      StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_result(");
13911
      boolean first = true;
13912
 
13913
      sb.append("success:");
13914
      if (this.success == null) {
13915
        sb.append("null");
13916
      } else {
13917
        sb.append(this.success);
13918
      }
13919
      first = false;
13920
      sb.append(")");
13921
      return sb.toString();
13922
    }
13923
 
13924
    public void validate() throws org.apache.thrift.TException {
13925
      // check for required fields
13926
    }
13927
 
13928
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13929
      try {
13930
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13931
      } catch (org.apache.thrift.TException te) {
13932
        throw new java.io.IOException(te);
13933
      }
13934
    }
13935
 
13936
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13937
      try {
13938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13939
      } catch (org.apache.thrift.TException te) {
13940
        throw new java.io.IOException(te);
13941
      }
13942
    }
13943
 
13944
  }
13945
 
5620 mandeep.dh 13946
  public static class getInventoryItemFromOrder_args implements org.apache.thrift.TBase<getInventoryItemFromOrder_args, getInventoryItemFromOrder_args._Fields>, java.io.Serializable, Cloneable   {
13947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_args");
13948
 
13949
    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);
13950
 
13951
    private long orderId; // required
13952
 
13953
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13954
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13955
      ORDER_ID((short)1, "orderId");
13956
 
13957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13958
 
13959
      static {
13960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13961
          byName.put(field.getFieldName(), field);
13962
        }
13963
      }
13964
 
13965
      /**
13966
       * Find the _Fields constant that matches fieldId, or null if its not found.
13967
       */
13968
      public static _Fields findByThriftId(int fieldId) {
13969
        switch(fieldId) {
13970
          case 1: // ORDER_ID
13971
            return ORDER_ID;
13972
          default:
13973
            return null;
13974
        }
13975
      }
13976
 
13977
      /**
13978
       * Find the _Fields constant that matches fieldId, throwing an exception
13979
       * if it is not found.
13980
       */
13981
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13982
        _Fields fields = findByThriftId(fieldId);
13983
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13984
        return fields;
13985
      }
13986
 
13987
      /**
13988
       * Find the _Fields constant that matches name, or null if its not found.
13989
       */
13990
      public static _Fields findByName(String name) {
13991
        return byName.get(name);
13992
      }
13993
 
13994
      private final short _thriftId;
13995
      private final String _fieldName;
13996
 
13997
      _Fields(short thriftId, String fieldName) {
13998
        _thriftId = thriftId;
13999
        _fieldName = fieldName;
14000
      }
14001
 
14002
      public short getThriftFieldId() {
14003
        return _thriftId;
14004
      }
14005
 
14006
      public String getFieldName() {
14007
        return _fieldName;
14008
      }
14009
    }
14010
 
14011
    // isset id assignments
14012
    private static final int __ORDERID_ISSET_ID = 0;
14013
    private BitSet __isset_bit_vector = new BitSet(1);
14014
 
14015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14016
    static {
14017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14018
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14019
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14020
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14021
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_args.class, metaDataMap);
14022
    }
14023
 
14024
    public getInventoryItemFromOrder_args() {
14025
    }
14026
 
14027
    public getInventoryItemFromOrder_args(
14028
      long orderId)
14029
    {
14030
      this();
14031
      this.orderId = orderId;
14032
      setOrderIdIsSet(true);
14033
    }
14034
 
14035
    /**
14036
     * Performs a deep copy on <i>other</i>.
14037
     */
14038
    public getInventoryItemFromOrder_args(getInventoryItemFromOrder_args other) {
14039
      __isset_bit_vector.clear();
14040
      __isset_bit_vector.or(other.__isset_bit_vector);
14041
      this.orderId = other.orderId;
14042
    }
14043
 
14044
    public getInventoryItemFromOrder_args deepCopy() {
14045
      return new getInventoryItemFromOrder_args(this);
14046
    }
14047
 
14048
    @Override
14049
    public void clear() {
14050
      setOrderIdIsSet(false);
14051
      this.orderId = 0;
14052
    }
14053
 
14054
    public long getOrderId() {
14055
      return this.orderId;
14056
    }
14057
 
14058
    public void setOrderId(long orderId) {
14059
      this.orderId = orderId;
14060
      setOrderIdIsSet(true);
14061
    }
14062
 
14063
    public void unsetOrderId() {
14064
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14065
    }
14066
 
14067
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
14068
    public boolean isSetOrderId() {
14069
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14070
    }
14071
 
14072
    public void setOrderIdIsSet(boolean value) {
14073
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14074
    }
14075
 
14076
    public void setFieldValue(_Fields field, Object value) {
14077
      switch (field) {
14078
      case ORDER_ID:
14079
        if (value == null) {
14080
          unsetOrderId();
14081
        } else {
14082
          setOrderId((Long)value);
14083
        }
14084
        break;
14085
 
14086
      }
14087
    }
14088
 
14089
    public Object getFieldValue(_Fields field) {
14090
      switch (field) {
14091
      case ORDER_ID:
14092
        return Long.valueOf(getOrderId());
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 ORDER_ID:
14106
        return isSetOrderId();
14107
      }
14108
      throw new IllegalStateException();
14109
    }
14110
 
14111
    @Override
14112
    public boolean equals(Object that) {
14113
      if (that == null)
14114
        return false;
14115
      if (that instanceof getInventoryItemFromOrder_args)
14116
        return this.equals((getInventoryItemFromOrder_args)that);
14117
      return false;
14118
    }
14119
 
14120
    public boolean equals(getInventoryItemFromOrder_args that) {
14121
      if (that == null)
14122
        return false;
14123
 
14124
      boolean this_present_orderId = true;
14125
      boolean that_present_orderId = true;
14126
      if (this_present_orderId || that_present_orderId) {
14127
        if (!(this_present_orderId && that_present_orderId))
14128
          return false;
14129
        if (this.orderId != that.orderId)
14130
          return false;
14131
      }
14132
 
14133
      return true;
14134
    }
14135
 
14136
    @Override
14137
    public int hashCode() {
14138
      return 0;
14139
    }
14140
 
14141
    public int compareTo(getInventoryItemFromOrder_args other) {
14142
      if (!getClass().equals(other.getClass())) {
14143
        return getClass().getName().compareTo(other.getClass().getName());
14144
      }
14145
 
14146
      int lastComparison = 0;
14147
      getInventoryItemFromOrder_args typedOther = (getInventoryItemFromOrder_args)other;
14148
 
14149
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
14150
      if (lastComparison != 0) {
14151
        return lastComparison;
14152
      }
14153
      if (isSetOrderId()) {
14154
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14155
        if (lastComparison != 0) {
14156
          return lastComparison;
14157
        }
14158
      }
14159
      return 0;
14160
    }
14161
 
14162
    public _Fields fieldForId(int fieldId) {
14163
      return _Fields.findByThriftId(fieldId);
14164
    }
14165
 
14166
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14167
      org.apache.thrift.protocol.TField field;
14168
      iprot.readStructBegin();
14169
      while (true)
14170
      {
14171
        field = iprot.readFieldBegin();
14172
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14173
          break;
14174
        }
14175
        switch (field.id) {
14176
          case 1: // ORDER_ID
14177
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14178
              this.orderId = iprot.readI64();
14179
              setOrderIdIsSet(true);
14180
            } else { 
14181
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14182
            }
14183
            break;
14184
          default:
14185
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14186
        }
14187
        iprot.readFieldEnd();
14188
      }
14189
      iprot.readStructEnd();
14190
      validate();
14191
    }
14192
 
14193
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14194
      validate();
14195
 
14196
      oprot.writeStructBegin(STRUCT_DESC);
14197
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14198
      oprot.writeI64(this.orderId);
14199
      oprot.writeFieldEnd();
14200
      oprot.writeFieldStop();
14201
      oprot.writeStructEnd();
14202
    }
14203
 
14204
    @Override
14205
    public String toString() {
14206
      StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_args(");
14207
      boolean first = true;
14208
 
14209
      sb.append("orderId:");
14210
      sb.append(this.orderId);
14211
      first = false;
14212
      sb.append(")");
14213
      return sb.toString();
14214
    }
14215
 
14216
    public void validate() throws org.apache.thrift.TException {
14217
      // check for required fields
14218
    }
14219
 
14220
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14221
      try {
14222
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14223
      } catch (org.apache.thrift.TException te) {
14224
        throw new java.io.IOException(te);
14225
      }
14226
    }
14227
 
14228
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14229
      try {
14230
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14231
        __isset_bit_vector = new BitSet(1);
14232
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14233
      } catch (org.apache.thrift.TException te) {
14234
        throw new java.io.IOException(te);
14235
      }
14236
    }
14237
 
14238
  }
14239
 
14240
  public static class getInventoryItemFromOrder_result implements org.apache.thrift.TBase<getInventoryItemFromOrder_result, getInventoryItemFromOrder_result._Fields>, java.io.Serializable, Cloneable   {
14241
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_result");
14242
 
14243
    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);
14244
    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);
14245
 
14246
    private InventoryItem success; // required
14247
    private WarehouseServiceException we; // required
14248
 
14249
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14250
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14251
      SUCCESS((short)0, "success"),
14252
      WE((short)1, "we");
14253
 
14254
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14255
 
14256
      static {
14257
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14258
          byName.put(field.getFieldName(), field);
14259
        }
14260
      }
14261
 
14262
      /**
14263
       * Find the _Fields constant that matches fieldId, or null if its not found.
14264
       */
14265
      public static _Fields findByThriftId(int fieldId) {
14266
        switch(fieldId) {
14267
          case 0: // SUCCESS
14268
            return SUCCESS;
14269
          case 1: // WE
14270
            return WE;
14271
          default:
14272
            return null;
14273
        }
14274
      }
14275
 
14276
      /**
14277
       * Find the _Fields constant that matches fieldId, throwing an exception
14278
       * if it is not found.
14279
       */
14280
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14281
        _Fields fields = findByThriftId(fieldId);
14282
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14283
        return fields;
14284
      }
14285
 
14286
      /**
14287
       * Find the _Fields constant that matches name, or null if its not found.
14288
       */
14289
      public static _Fields findByName(String name) {
14290
        return byName.get(name);
14291
      }
14292
 
14293
      private final short _thriftId;
14294
      private final String _fieldName;
14295
 
14296
      _Fields(short thriftId, String fieldName) {
14297
        _thriftId = thriftId;
14298
        _fieldName = fieldName;
14299
      }
14300
 
14301
      public short getThriftFieldId() {
14302
        return _thriftId;
14303
      }
14304
 
14305
      public String getFieldName() {
14306
        return _fieldName;
14307
      }
14308
    }
14309
 
14310
    // isset id assignments
14311
 
14312
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14313
    static {
14314
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14315
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14316
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
14317
      tmpMap.put(_Fields.WE, new org.apache.thrift.meta_data.FieldMetaData("we", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14318
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14319
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14320
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_result.class, metaDataMap);
14321
    }
14322
 
14323
    public getInventoryItemFromOrder_result() {
14324
    }
14325
 
14326
    public getInventoryItemFromOrder_result(
14327
      InventoryItem success,
14328
      WarehouseServiceException we)
14329
    {
14330
      this();
14331
      this.success = success;
14332
      this.we = we;
14333
    }
14334
 
14335
    /**
14336
     * Performs a deep copy on <i>other</i>.
14337
     */
14338
    public getInventoryItemFromOrder_result(getInventoryItemFromOrder_result other) {
14339
      if (other.isSetSuccess()) {
14340
        this.success = new InventoryItem(other.success);
14341
      }
14342
      if (other.isSetWe()) {
14343
        this.we = new WarehouseServiceException(other.we);
14344
      }
14345
    }
14346
 
14347
    public getInventoryItemFromOrder_result deepCopy() {
14348
      return new getInventoryItemFromOrder_result(this);
14349
    }
14350
 
14351
    @Override
14352
    public void clear() {
14353
      this.success = null;
14354
      this.we = null;
14355
    }
14356
 
14357
    public InventoryItem getSuccess() {
14358
      return this.success;
14359
    }
14360
 
14361
    public void setSuccess(InventoryItem success) {
14362
      this.success = success;
14363
    }
14364
 
14365
    public void unsetSuccess() {
14366
      this.success = null;
14367
    }
14368
 
14369
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14370
    public boolean isSetSuccess() {
14371
      return this.success != null;
14372
    }
14373
 
14374
    public void setSuccessIsSet(boolean value) {
14375
      if (!value) {
14376
        this.success = null;
14377
      }
14378
    }
14379
 
14380
    public WarehouseServiceException getWe() {
14381
      return this.we;
14382
    }
14383
 
14384
    public void setWe(WarehouseServiceException we) {
14385
      this.we = we;
14386
    }
14387
 
14388
    public void unsetWe() {
14389
      this.we = null;
14390
    }
14391
 
14392
    /** Returns true if field we is set (has been assigned a value) and false otherwise */
14393
    public boolean isSetWe() {
14394
      return this.we != null;
14395
    }
14396
 
14397
    public void setWeIsSet(boolean value) {
14398
      if (!value) {
14399
        this.we = null;
14400
      }
14401
    }
14402
 
14403
    public void setFieldValue(_Fields field, Object value) {
14404
      switch (field) {
14405
      case SUCCESS:
14406
        if (value == null) {
14407
          unsetSuccess();
14408
        } else {
14409
          setSuccess((InventoryItem)value);
14410
        }
14411
        break;
14412
 
14413
      case WE:
14414
        if (value == null) {
14415
          unsetWe();
14416
        } else {
14417
          setWe((WarehouseServiceException)value);
14418
        }
14419
        break;
14420
 
14421
      }
14422
    }
14423
 
14424
    public Object getFieldValue(_Fields field) {
14425
      switch (field) {
14426
      case SUCCESS:
14427
        return getSuccess();
14428
 
14429
      case WE:
14430
        return getWe();
14431
 
14432
      }
14433
      throw new IllegalStateException();
14434
    }
14435
 
14436
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14437
    public boolean isSet(_Fields field) {
14438
      if (field == null) {
14439
        throw new IllegalArgumentException();
14440
      }
14441
 
14442
      switch (field) {
14443
      case SUCCESS:
14444
        return isSetSuccess();
14445
      case WE:
14446
        return isSetWe();
14447
      }
14448
      throw new IllegalStateException();
14449
    }
14450
 
14451
    @Override
14452
    public boolean equals(Object that) {
14453
      if (that == null)
14454
        return false;
14455
      if (that instanceof getInventoryItemFromOrder_result)
14456
        return this.equals((getInventoryItemFromOrder_result)that);
14457
      return false;
14458
    }
14459
 
14460
    public boolean equals(getInventoryItemFromOrder_result that) {
14461
      if (that == null)
14462
        return false;
14463
 
14464
      boolean this_present_success = true && this.isSetSuccess();
14465
      boolean that_present_success = true && that.isSetSuccess();
14466
      if (this_present_success || that_present_success) {
14467
        if (!(this_present_success && that_present_success))
14468
          return false;
14469
        if (!this.success.equals(that.success))
14470
          return false;
14471
      }
14472
 
14473
      boolean this_present_we = true && this.isSetWe();
14474
      boolean that_present_we = true && that.isSetWe();
14475
      if (this_present_we || that_present_we) {
14476
        if (!(this_present_we && that_present_we))
14477
          return false;
14478
        if (!this.we.equals(that.we))
14479
          return false;
14480
      }
14481
 
14482
      return true;
14483
    }
14484
 
14485
    @Override
14486
    public int hashCode() {
14487
      return 0;
14488
    }
14489
 
14490
    public int compareTo(getInventoryItemFromOrder_result other) {
14491
      if (!getClass().equals(other.getClass())) {
14492
        return getClass().getName().compareTo(other.getClass().getName());
14493
      }
14494
 
14495
      int lastComparison = 0;
14496
      getInventoryItemFromOrder_result typedOther = (getInventoryItemFromOrder_result)other;
14497
 
14498
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14499
      if (lastComparison != 0) {
14500
        return lastComparison;
14501
      }
14502
      if (isSetSuccess()) {
14503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14504
        if (lastComparison != 0) {
14505
          return lastComparison;
14506
        }
14507
      }
14508
      lastComparison = Boolean.valueOf(isSetWe()).compareTo(typedOther.isSetWe());
14509
      if (lastComparison != 0) {
14510
        return lastComparison;
14511
      }
14512
      if (isSetWe()) {
14513
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.we, typedOther.we);
14514
        if (lastComparison != 0) {
14515
          return lastComparison;
14516
        }
14517
      }
14518
      return 0;
14519
    }
14520
 
14521
    public _Fields fieldForId(int fieldId) {
14522
      return _Fields.findByThriftId(fieldId);
14523
    }
14524
 
14525
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14526
      org.apache.thrift.protocol.TField field;
14527
      iprot.readStructBegin();
14528
      while (true)
14529
      {
14530
        field = iprot.readFieldBegin();
14531
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14532
          break;
14533
        }
14534
        switch (field.id) {
14535
          case 0: // SUCCESS
14536
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14537
              this.success = new InventoryItem();
14538
              this.success.read(iprot);
14539
            } else { 
14540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14541
            }
14542
            break;
14543
          case 1: // WE
14544
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14545
              this.we = new WarehouseServiceException();
14546
              this.we.read(iprot);
14547
            } else { 
14548
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14549
            }
14550
            break;
14551
          default:
14552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14553
        }
14554
        iprot.readFieldEnd();
14555
      }
14556
      iprot.readStructEnd();
14557
      validate();
14558
    }
14559
 
14560
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14561
      oprot.writeStructBegin(STRUCT_DESC);
14562
 
14563
      if (this.isSetSuccess()) {
14564
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14565
        this.success.write(oprot);
14566
        oprot.writeFieldEnd();
14567
      } else if (this.isSetWe()) {
14568
        oprot.writeFieldBegin(WE_FIELD_DESC);
14569
        this.we.write(oprot);
14570
        oprot.writeFieldEnd();
14571
      }
14572
      oprot.writeFieldStop();
14573
      oprot.writeStructEnd();
14574
    }
14575
 
14576
    @Override
14577
    public String toString() {
14578
      StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_result(");
14579
      boolean first = true;
14580
 
14581
      sb.append("success:");
14582
      if (this.success == null) {
14583
        sb.append("null");
14584
      } else {
14585
        sb.append(this.success);
14586
      }
14587
      first = false;
14588
      if (!first) sb.append(", ");
14589
      sb.append("we:");
14590
      if (this.we == null) {
14591
        sb.append("null");
14592
      } else {
14593
        sb.append(this.we);
14594
      }
14595
      first = false;
14596
      sb.append(")");
14597
      return sb.toString();
14598
    }
14599
 
14600
    public void validate() throws org.apache.thrift.TException {
14601
      // check for required fields
14602
    }
14603
 
14604
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14605
      try {
14606
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14607
      } catch (org.apache.thrift.TException te) {
14608
        throw new java.io.IOException(te);
14609
      }
14610
    }
14611
 
14612
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14613
      try {
14614
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14615
      } catch (org.apache.thrift.TException te) {
14616
        throw new java.io.IOException(te);
14617
      }
14618
    }
14619
 
14620
  }
14621
 
5711 mandeep.dh 14622
  public static class getInventoryAge_args implements org.apache.thrift.TBase<getInventoryAge_args, getInventoryAge_args._Fields>, java.io.Serializable, Cloneable   {
14623
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_args");
14624
 
14625
 
14626
 
14627
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14628
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14629
;
14630
 
14631
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14632
 
14633
      static {
14634
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14635
          byName.put(field.getFieldName(), field);
14636
        }
14637
      }
14638
 
14639
      /**
14640
       * Find the _Fields constant that matches fieldId, or null if its not found.
14641
       */
14642
      public static _Fields findByThriftId(int fieldId) {
14643
        switch(fieldId) {
14644
          default:
14645
            return null;
14646
        }
14647
      }
14648
 
14649
      /**
14650
       * Find the _Fields constant that matches fieldId, throwing an exception
14651
       * if it is not found.
14652
       */
14653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14654
        _Fields fields = findByThriftId(fieldId);
14655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14656
        return fields;
14657
      }
14658
 
14659
      /**
14660
       * Find the _Fields constant that matches name, or null if its not found.
14661
       */
14662
      public static _Fields findByName(String name) {
14663
        return byName.get(name);
14664
      }
14665
 
14666
      private final short _thriftId;
14667
      private final String _fieldName;
14668
 
14669
      _Fields(short thriftId, String fieldName) {
14670
        _thriftId = thriftId;
14671
        _fieldName = fieldName;
14672
      }
14673
 
14674
      public short getThriftFieldId() {
14675
        return _thriftId;
14676
      }
14677
 
14678
      public String getFieldName() {
14679
        return _fieldName;
14680
      }
14681
    }
14682
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14683
    static {
14684
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14685
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14686
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_args.class, metaDataMap);
14687
    }
14688
 
14689
    public getInventoryAge_args() {
14690
    }
14691
 
14692
    /**
14693
     * Performs a deep copy on <i>other</i>.
14694
     */
14695
    public getInventoryAge_args(getInventoryAge_args other) {
14696
    }
14697
 
14698
    public getInventoryAge_args deepCopy() {
14699
      return new getInventoryAge_args(this);
14700
    }
14701
 
14702
    @Override
14703
    public void clear() {
14704
    }
14705
 
14706
    public void setFieldValue(_Fields field, Object value) {
14707
      switch (field) {
14708
      }
14709
    }
14710
 
14711
    public Object getFieldValue(_Fields field) {
14712
      switch (field) {
14713
      }
14714
      throw new IllegalStateException();
14715
    }
14716
 
14717
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14718
    public boolean isSet(_Fields field) {
14719
      if (field == null) {
14720
        throw new IllegalArgumentException();
14721
      }
14722
 
14723
      switch (field) {
14724
      }
14725
      throw new IllegalStateException();
14726
    }
14727
 
14728
    @Override
14729
    public boolean equals(Object that) {
14730
      if (that == null)
14731
        return false;
14732
      if (that instanceof getInventoryAge_args)
14733
        return this.equals((getInventoryAge_args)that);
14734
      return false;
14735
    }
14736
 
14737
    public boolean equals(getInventoryAge_args that) {
14738
      if (that == null)
14739
        return false;
14740
 
14741
      return true;
14742
    }
14743
 
14744
    @Override
14745
    public int hashCode() {
14746
      return 0;
14747
    }
14748
 
14749
    public int compareTo(getInventoryAge_args other) {
14750
      if (!getClass().equals(other.getClass())) {
14751
        return getClass().getName().compareTo(other.getClass().getName());
14752
      }
14753
 
14754
      int lastComparison = 0;
14755
      getInventoryAge_args typedOther = (getInventoryAge_args)other;
14756
 
14757
      return 0;
14758
    }
14759
 
14760
    public _Fields fieldForId(int fieldId) {
14761
      return _Fields.findByThriftId(fieldId);
14762
    }
14763
 
14764
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14765
      org.apache.thrift.protocol.TField field;
14766
      iprot.readStructBegin();
14767
      while (true)
14768
      {
14769
        field = iprot.readFieldBegin();
14770
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14771
          break;
14772
        }
14773
        switch (field.id) {
14774
          default:
14775
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14776
        }
14777
        iprot.readFieldEnd();
14778
      }
14779
      iprot.readStructEnd();
14780
      validate();
14781
    }
14782
 
14783
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14784
      validate();
14785
 
14786
      oprot.writeStructBegin(STRUCT_DESC);
14787
      oprot.writeFieldStop();
14788
      oprot.writeStructEnd();
14789
    }
14790
 
14791
    @Override
14792
    public String toString() {
14793
      StringBuilder sb = new StringBuilder("getInventoryAge_args(");
14794
      boolean first = true;
14795
 
14796
      sb.append(")");
14797
      return sb.toString();
14798
    }
14799
 
14800
    public void validate() throws org.apache.thrift.TException {
14801
      // check for required fields
14802
    }
14803
 
14804
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14805
      try {
14806
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14807
      } catch (org.apache.thrift.TException te) {
14808
        throw new java.io.IOException(te);
14809
      }
14810
    }
14811
 
14812
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14813
      try {
14814
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14815
      } catch (org.apache.thrift.TException te) {
14816
        throw new java.io.IOException(te);
14817
      }
14818
    }
14819
 
14820
  }
14821
 
14822
  public static class getInventoryAge_result implements org.apache.thrift.TBase<getInventoryAge_result, getInventoryAge_result._Fields>, java.io.Serializable, Cloneable   {
14823
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_result");
14824
 
14825
    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);
14826
 
14827
    private List<InventoryAge> success; // required
14828
 
14829
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14830
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14831
      SUCCESS((short)0, "success");
14832
 
14833
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14834
 
14835
      static {
14836
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14837
          byName.put(field.getFieldName(), field);
14838
        }
14839
      }
14840
 
14841
      /**
14842
       * Find the _Fields constant that matches fieldId, or null if its not found.
14843
       */
14844
      public static _Fields findByThriftId(int fieldId) {
14845
        switch(fieldId) {
14846
          case 0: // SUCCESS
14847
            return SUCCESS;
14848
          default:
14849
            return null;
14850
        }
14851
      }
14852
 
14853
      /**
14854
       * Find the _Fields constant that matches fieldId, throwing an exception
14855
       * if it is not found.
14856
       */
14857
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14858
        _Fields fields = findByThriftId(fieldId);
14859
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14860
        return fields;
14861
      }
14862
 
14863
      /**
14864
       * Find the _Fields constant that matches name, or null if its not found.
14865
       */
14866
      public static _Fields findByName(String name) {
14867
        return byName.get(name);
14868
      }
14869
 
14870
      private final short _thriftId;
14871
      private final String _fieldName;
14872
 
14873
      _Fields(short thriftId, String fieldName) {
14874
        _thriftId = thriftId;
14875
        _fieldName = fieldName;
14876
      }
14877
 
14878
      public short getThriftFieldId() {
14879
        return _thriftId;
14880
      }
14881
 
14882
      public String getFieldName() {
14883
        return _fieldName;
14884
      }
14885
    }
14886
 
14887
    // isset id assignments
14888
 
14889
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14890
    static {
14891
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14892
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14893
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14894
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAge.class))));
14895
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14896
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_result.class, metaDataMap);
14897
    }
14898
 
14899
    public getInventoryAge_result() {
14900
    }
14901
 
14902
    public getInventoryAge_result(
14903
      List<InventoryAge> success)
14904
    {
14905
      this();
14906
      this.success = success;
14907
    }
14908
 
14909
    /**
14910
     * Performs a deep copy on <i>other</i>.
14911
     */
14912
    public getInventoryAge_result(getInventoryAge_result other) {
14913
      if (other.isSetSuccess()) {
14914
        List<InventoryAge> __this__success = new ArrayList<InventoryAge>();
14915
        for (InventoryAge other_element : other.success) {
14916
          __this__success.add(new InventoryAge(other_element));
14917
        }
14918
        this.success = __this__success;
14919
      }
14920
    }
14921
 
14922
    public getInventoryAge_result deepCopy() {
14923
      return new getInventoryAge_result(this);
14924
    }
14925
 
14926
    @Override
14927
    public void clear() {
14928
      this.success = null;
14929
    }
14930
 
14931
    public int getSuccessSize() {
14932
      return (this.success == null) ? 0 : this.success.size();
14933
    }
14934
 
14935
    public java.util.Iterator<InventoryAge> getSuccessIterator() {
14936
      return (this.success == null) ? null : this.success.iterator();
14937
    }
14938
 
14939
    public void addToSuccess(InventoryAge elem) {
14940
      if (this.success == null) {
14941
        this.success = new ArrayList<InventoryAge>();
14942
      }
14943
      this.success.add(elem);
14944
    }
14945
 
14946
    public List<InventoryAge> getSuccess() {
14947
      return this.success;
14948
    }
14949
 
14950
    public void setSuccess(List<InventoryAge> success) {
14951
      this.success = success;
14952
    }
14953
 
14954
    public void unsetSuccess() {
14955
      this.success = null;
14956
    }
14957
 
14958
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14959
    public boolean isSetSuccess() {
14960
      return this.success != null;
14961
    }
14962
 
14963
    public void setSuccessIsSet(boolean value) {
14964
      if (!value) {
14965
        this.success = null;
14966
      }
14967
    }
14968
 
14969
    public void setFieldValue(_Fields field, Object value) {
14970
      switch (field) {
14971
      case SUCCESS:
14972
        if (value == null) {
14973
          unsetSuccess();
14974
        } else {
14975
          setSuccess((List<InventoryAge>)value);
14976
        }
14977
        break;
14978
 
14979
      }
14980
    }
14981
 
14982
    public Object getFieldValue(_Fields field) {
14983
      switch (field) {
14984
      case SUCCESS:
14985
        return getSuccess();
14986
 
14987
      }
14988
      throw new IllegalStateException();
14989
    }
14990
 
14991
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14992
    public boolean isSet(_Fields field) {
14993
      if (field == null) {
14994
        throw new IllegalArgumentException();
14995
      }
14996
 
14997
      switch (field) {
14998
      case SUCCESS:
14999
        return isSetSuccess();
15000
      }
15001
      throw new IllegalStateException();
15002
    }
15003
 
15004
    @Override
15005
    public boolean equals(Object that) {
15006
      if (that == null)
15007
        return false;
15008
      if (that instanceof getInventoryAge_result)
15009
        return this.equals((getInventoryAge_result)that);
15010
      return false;
15011
    }
15012
 
15013
    public boolean equals(getInventoryAge_result that) {
15014
      if (that == null)
15015
        return false;
15016
 
15017
      boolean this_present_success = true && this.isSetSuccess();
15018
      boolean that_present_success = true && that.isSetSuccess();
15019
      if (this_present_success || that_present_success) {
15020
        if (!(this_present_success && that_present_success))
15021
          return false;
15022
        if (!this.success.equals(that.success))
15023
          return false;
15024
      }
15025
 
15026
      return true;
15027
    }
15028
 
15029
    @Override
15030
    public int hashCode() {
15031
      return 0;
15032
    }
15033
 
15034
    public int compareTo(getInventoryAge_result other) {
15035
      if (!getClass().equals(other.getClass())) {
15036
        return getClass().getName().compareTo(other.getClass().getName());
15037
      }
15038
 
15039
      int lastComparison = 0;
15040
      getInventoryAge_result typedOther = (getInventoryAge_result)other;
15041
 
15042
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15043
      if (lastComparison != 0) {
15044
        return lastComparison;
15045
      }
15046
      if (isSetSuccess()) {
15047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15048
        if (lastComparison != 0) {
15049
          return lastComparison;
15050
        }
15051
      }
15052
      return 0;
15053
    }
15054
 
15055
    public _Fields fieldForId(int fieldId) {
15056
      return _Fields.findByThriftId(fieldId);
15057
    }
15058
 
15059
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15060
      org.apache.thrift.protocol.TField field;
15061
      iprot.readStructBegin();
15062
      while (true)
15063
      {
15064
        field = iprot.readFieldBegin();
15065
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15066
          break;
15067
        }
15068
        switch (field.id) {
15069
          case 0: // SUCCESS
15070
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15071
              {
7210 amar.kumar 15072
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
15073
                this.success = new ArrayList<InventoryAge>(_list24.size);
15074
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
5711 mandeep.dh 15075
                {
7210 amar.kumar 15076
                  InventoryAge _elem26; // required
15077
                  _elem26 = new InventoryAge();
15078
                  _elem26.read(iprot);
15079
                  this.success.add(_elem26);
5711 mandeep.dh 15080
                }
15081
                iprot.readListEnd();
15082
              }
15083
            } else { 
15084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15085
            }
15086
            break;
15087
          default:
15088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15089
        }
15090
        iprot.readFieldEnd();
15091
      }
15092
      iprot.readStructEnd();
15093
      validate();
15094
    }
15095
 
15096
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15097
      oprot.writeStructBegin(STRUCT_DESC);
15098
 
15099
      if (this.isSetSuccess()) {
15100
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15101
        {
15102
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 15103
          for (InventoryAge _iter27 : this.success)
5711 mandeep.dh 15104
          {
7210 amar.kumar 15105
            _iter27.write(oprot);
5711 mandeep.dh 15106
          }
15107
          oprot.writeListEnd();
15108
        }
15109
        oprot.writeFieldEnd();
15110
      }
15111
      oprot.writeFieldStop();
15112
      oprot.writeStructEnd();
15113
    }
15114
 
15115
    @Override
15116
    public String toString() {
15117
      StringBuilder sb = new StringBuilder("getInventoryAge_result(");
15118
      boolean first = true;
15119
 
15120
      sb.append("success:");
15121
      if (this.success == null) {
15122
        sb.append("null");
15123
      } else {
15124
        sb.append(this.success);
15125
      }
15126
      first = false;
15127
      sb.append(")");
15128
      return sb.toString();
15129
    }
15130
 
15131
    public void validate() throws org.apache.thrift.TException {
15132
      // check for required fields
15133
    }
15134
 
15135
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15136
      try {
15137
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15138
      } catch (org.apache.thrift.TException te) {
15139
        throw new java.io.IOException(te);
15140
      }
15141
    }
15142
 
15143
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15144
      try {
15145
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15146
      } catch (org.apache.thrift.TException te) {
15147
        throw new java.io.IOException(te);
15148
      }
15149
    }
15150
 
15151
  }
15152
 
6322 amar.kumar 15153
  public static class getInventoryScansForItem_args implements org.apache.thrift.TBase<getInventoryScansForItem_args, getInventoryScansForItem_args._Fields>, java.io.Serializable, Cloneable   {
15154
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_args");
15155
 
15156
    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);
15157
    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);
15158
    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);
15159
 
15160
    private long itemId; // required
15161
    private long fromDate; // required
15162
    private long toDate; // required
15163
 
15164
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15165
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15166
      ITEM_ID((short)1, "itemId"),
15167
      FROM_DATE((short)2, "fromDate"),
15168
      TO_DATE((short)3, "toDate");
15169
 
15170
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15171
 
15172
      static {
15173
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15174
          byName.put(field.getFieldName(), field);
15175
        }
15176
      }
15177
 
15178
      /**
15179
       * Find the _Fields constant that matches fieldId, or null if its not found.
15180
       */
15181
      public static _Fields findByThriftId(int fieldId) {
15182
        switch(fieldId) {
15183
          case 1: // ITEM_ID
15184
            return ITEM_ID;
15185
          case 2: // FROM_DATE
15186
            return FROM_DATE;
15187
          case 3: // TO_DATE
15188
            return TO_DATE;
15189
          default:
15190
            return null;
15191
        }
15192
      }
15193
 
15194
      /**
15195
       * Find the _Fields constant that matches fieldId, throwing an exception
15196
       * if it is not found.
15197
       */
15198
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15199
        _Fields fields = findByThriftId(fieldId);
15200
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15201
        return fields;
15202
      }
15203
 
15204
      /**
15205
       * Find the _Fields constant that matches name, or null if its not found.
15206
       */
15207
      public static _Fields findByName(String name) {
15208
        return byName.get(name);
15209
      }
15210
 
15211
      private final short _thriftId;
15212
      private final String _fieldName;
15213
 
15214
      _Fields(short thriftId, String fieldName) {
15215
        _thriftId = thriftId;
15216
        _fieldName = fieldName;
15217
      }
15218
 
15219
      public short getThriftFieldId() {
15220
        return _thriftId;
15221
      }
15222
 
15223
      public String getFieldName() {
15224
        return _fieldName;
15225
      }
15226
    }
15227
 
15228
    // isset id assignments
15229
    private static final int __ITEMID_ISSET_ID = 0;
15230
    private static final int __FROMDATE_ISSET_ID = 1;
15231
    private static final int __TODATE_ISSET_ID = 2;
15232
    private BitSet __isset_bit_vector = new BitSet(3);
15233
 
15234
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15235
    static {
15236
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15237
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15239
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15241
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15243
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15244
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_args.class, metaDataMap);
15245
    }
15246
 
15247
    public getInventoryScansForItem_args() {
15248
    }
15249
 
15250
    public getInventoryScansForItem_args(
15251
      long itemId,
15252
      long fromDate,
15253
      long toDate)
15254
    {
15255
      this();
15256
      this.itemId = itemId;
15257
      setItemIdIsSet(true);
15258
      this.fromDate = fromDate;
15259
      setFromDateIsSet(true);
15260
      this.toDate = toDate;
15261
      setToDateIsSet(true);
15262
    }
15263
 
15264
    /**
15265
     * Performs a deep copy on <i>other</i>.
15266
     */
15267
    public getInventoryScansForItem_args(getInventoryScansForItem_args other) {
15268
      __isset_bit_vector.clear();
15269
      __isset_bit_vector.or(other.__isset_bit_vector);
15270
      this.itemId = other.itemId;
15271
      this.fromDate = other.fromDate;
15272
      this.toDate = other.toDate;
15273
    }
15274
 
15275
    public getInventoryScansForItem_args deepCopy() {
15276
      return new getInventoryScansForItem_args(this);
15277
    }
15278
 
15279
    @Override
15280
    public void clear() {
15281
      setItemIdIsSet(false);
15282
      this.itemId = 0;
15283
      setFromDateIsSet(false);
15284
      this.fromDate = 0;
15285
      setToDateIsSet(false);
15286
      this.toDate = 0;
15287
    }
15288
 
15289
    public long getItemId() {
15290
      return this.itemId;
15291
    }
15292
 
15293
    public void setItemId(long itemId) {
15294
      this.itemId = itemId;
15295
      setItemIdIsSet(true);
15296
    }
15297
 
15298
    public void unsetItemId() {
15299
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15300
    }
15301
 
15302
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15303
    public boolean isSetItemId() {
15304
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15305
    }
15306
 
15307
    public void setItemIdIsSet(boolean value) {
15308
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15309
    }
15310
 
15311
    public long getFromDate() {
15312
      return this.fromDate;
15313
    }
15314
 
15315
    public void setFromDate(long fromDate) {
15316
      this.fromDate = fromDate;
15317
      setFromDateIsSet(true);
15318
    }
15319
 
15320
    public void unsetFromDate() {
15321
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
15322
    }
15323
 
15324
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
15325
    public boolean isSetFromDate() {
15326
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
15327
    }
15328
 
15329
    public void setFromDateIsSet(boolean value) {
15330
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
15331
    }
15332
 
15333
    public long getToDate() {
15334
      return this.toDate;
15335
    }
15336
 
15337
    public void setToDate(long toDate) {
15338
      this.toDate = toDate;
15339
      setToDateIsSet(true);
15340
    }
15341
 
15342
    public void unsetToDate() {
15343
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
15344
    }
15345
 
15346
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
15347
    public boolean isSetToDate() {
15348
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
15349
    }
15350
 
15351
    public void setToDateIsSet(boolean value) {
15352
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
15353
    }
15354
 
15355
    public void setFieldValue(_Fields field, Object value) {
15356
      switch (field) {
15357
      case ITEM_ID:
15358
        if (value == null) {
15359
          unsetItemId();
15360
        } else {
15361
          setItemId((Long)value);
15362
        }
15363
        break;
15364
 
15365
      case FROM_DATE:
15366
        if (value == null) {
15367
          unsetFromDate();
15368
        } else {
15369
          setFromDate((Long)value);
15370
        }
15371
        break;
15372
 
15373
      case TO_DATE:
15374
        if (value == null) {
15375
          unsetToDate();
15376
        } else {
15377
          setToDate((Long)value);
15378
        }
15379
        break;
15380
 
15381
      }
15382
    }
15383
 
15384
    public Object getFieldValue(_Fields field) {
15385
      switch (field) {
15386
      case ITEM_ID:
15387
        return Long.valueOf(getItemId());
15388
 
15389
      case FROM_DATE:
15390
        return Long.valueOf(getFromDate());
15391
 
15392
      case TO_DATE:
15393
        return Long.valueOf(getToDate());
15394
 
15395
      }
15396
      throw new IllegalStateException();
15397
    }
15398
 
15399
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15400
    public boolean isSet(_Fields field) {
15401
      if (field == null) {
15402
        throw new IllegalArgumentException();
15403
      }
15404
 
15405
      switch (field) {
15406
      case ITEM_ID:
15407
        return isSetItemId();
15408
      case FROM_DATE:
15409
        return isSetFromDate();
15410
      case TO_DATE:
15411
        return isSetToDate();
15412
      }
15413
      throw new IllegalStateException();
15414
    }
15415
 
15416
    @Override
15417
    public boolean equals(Object that) {
15418
      if (that == null)
15419
        return false;
15420
      if (that instanceof getInventoryScansForItem_args)
15421
        return this.equals((getInventoryScansForItem_args)that);
15422
      return false;
15423
    }
15424
 
15425
    public boolean equals(getInventoryScansForItem_args that) {
15426
      if (that == null)
15427
        return false;
15428
 
15429
      boolean this_present_itemId = true;
15430
      boolean that_present_itemId = true;
15431
      if (this_present_itemId || that_present_itemId) {
15432
        if (!(this_present_itemId && that_present_itemId))
15433
          return false;
15434
        if (this.itemId != that.itemId)
15435
          return false;
15436
      }
15437
 
15438
      boolean this_present_fromDate = true;
15439
      boolean that_present_fromDate = true;
15440
      if (this_present_fromDate || that_present_fromDate) {
15441
        if (!(this_present_fromDate && that_present_fromDate))
15442
          return false;
15443
        if (this.fromDate != that.fromDate)
15444
          return false;
15445
      }
15446
 
15447
      boolean this_present_toDate = true;
15448
      boolean that_present_toDate = true;
15449
      if (this_present_toDate || that_present_toDate) {
15450
        if (!(this_present_toDate && that_present_toDate))
15451
          return false;
15452
        if (this.toDate != that.toDate)
15453
          return false;
15454
      }
15455
 
15456
      return true;
15457
    }
15458
 
15459
    @Override
15460
    public int hashCode() {
15461
      return 0;
15462
    }
15463
 
15464
    public int compareTo(getInventoryScansForItem_args other) {
15465
      if (!getClass().equals(other.getClass())) {
15466
        return getClass().getName().compareTo(other.getClass().getName());
15467
      }
15468
 
15469
      int lastComparison = 0;
15470
      getInventoryScansForItem_args typedOther = (getInventoryScansForItem_args)other;
15471
 
15472
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15473
      if (lastComparison != 0) {
15474
        return lastComparison;
15475
      }
15476
      if (isSetItemId()) {
15477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15478
        if (lastComparison != 0) {
15479
          return lastComparison;
15480
        }
15481
      }
15482
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
15483
      if (lastComparison != 0) {
15484
        return lastComparison;
15485
      }
15486
      if (isSetFromDate()) {
15487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
15488
        if (lastComparison != 0) {
15489
          return lastComparison;
15490
        }
15491
      }
15492
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
15493
      if (lastComparison != 0) {
15494
        return lastComparison;
15495
      }
15496
      if (isSetToDate()) {
15497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
15498
        if (lastComparison != 0) {
15499
          return lastComparison;
15500
        }
15501
      }
15502
      return 0;
15503
    }
15504
 
15505
    public _Fields fieldForId(int fieldId) {
15506
      return _Fields.findByThriftId(fieldId);
15507
    }
15508
 
15509
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15510
      org.apache.thrift.protocol.TField field;
15511
      iprot.readStructBegin();
15512
      while (true)
15513
      {
15514
        field = iprot.readFieldBegin();
15515
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15516
          break;
15517
        }
15518
        switch (field.id) {
15519
          case 1: // ITEM_ID
15520
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15521
              this.itemId = iprot.readI64();
15522
              setItemIdIsSet(true);
15523
            } else { 
15524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15525
            }
15526
            break;
15527
          case 2: // FROM_DATE
15528
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15529
              this.fromDate = iprot.readI64();
15530
              setFromDateIsSet(true);
15531
            } else { 
15532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15533
            }
15534
            break;
15535
          case 3: // TO_DATE
15536
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15537
              this.toDate = iprot.readI64();
15538
              setToDateIsSet(true);
15539
            } else { 
15540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15541
            }
15542
            break;
15543
          default:
15544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15545
        }
15546
        iprot.readFieldEnd();
15547
      }
15548
      iprot.readStructEnd();
15549
      validate();
15550
    }
15551
 
15552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15553
      validate();
15554
 
15555
      oprot.writeStructBegin(STRUCT_DESC);
15556
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15557
      oprot.writeI64(this.itemId);
15558
      oprot.writeFieldEnd();
15559
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
15560
      oprot.writeI64(this.fromDate);
15561
      oprot.writeFieldEnd();
15562
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
15563
      oprot.writeI64(this.toDate);
15564
      oprot.writeFieldEnd();
15565
      oprot.writeFieldStop();
15566
      oprot.writeStructEnd();
15567
    }
15568
 
15569
    @Override
15570
    public String toString() {
15571
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_args(");
15572
      boolean first = true;
15573
 
15574
      sb.append("itemId:");
15575
      sb.append(this.itemId);
15576
      first = false;
15577
      if (!first) sb.append(", ");
15578
      sb.append("fromDate:");
15579
      sb.append(this.fromDate);
15580
      first = false;
15581
      if (!first) sb.append(", ");
15582
      sb.append("toDate:");
15583
      sb.append(this.toDate);
15584
      first = false;
15585
      sb.append(")");
15586
      return sb.toString();
15587
    }
15588
 
15589
    public void validate() throws org.apache.thrift.TException {
15590
      // check for required fields
15591
    }
15592
 
15593
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15594
      try {
15595
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15596
      } catch (org.apache.thrift.TException te) {
15597
        throw new java.io.IOException(te);
15598
      }
15599
    }
15600
 
15601
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15602
      try {
15603
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15604
      } catch (org.apache.thrift.TException te) {
15605
        throw new java.io.IOException(te);
15606
      }
15607
    }
15608
 
15609
  }
15610
 
15611
  public static class getInventoryScansForItem_result implements org.apache.thrift.TBase<getInventoryScansForItem_result, getInventoryScansForItem_result._Fields>, java.io.Serializable, Cloneable   {
15612
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_result");
15613
 
15614
    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);
15615
 
15616
    private List<Scan> success; // required
15617
 
15618
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15619
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15620
      SUCCESS((short)0, "success");
15621
 
15622
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15623
 
15624
      static {
15625
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15626
          byName.put(field.getFieldName(), field);
15627
        }
15628
      }
15629
 
15630
      /**
15631
       * Find the _Fields constant that matches fieldId, or null if its not found.
15632
       */
15633
      public static _Fields findByThriftId(int fieldId) {
15634
        switch(fieldId) {
15635
          case 0: // SUCCESS
15636
            return SUCCESS;
15637
          default:
15638
            return null;
15639
        }
15640
      }
15641
 
15642
      /**
15643
       * Find the _Fields constant that matches fieldId, throwing an exception
15644
       * if it is not found.
15645
       */
15646
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15647
        _Fields fields = findByThriftId(fieldId);
15648
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15649
        return fields;
15650
      }
15651
 
15652
      /**
15653
       * Find the _Fields constant that matches name, or null if its not found.
15654
       */
15655
      public static _Fields findByName(String name) {
15656
        return byName.get(name);
15657
      }
15658
 
15659
      private final short _thriftId;
15660
      private final String _fieldName;
15661
 
15662
      _Fields(short thriftId, String fieldName) {
15663
        _thriftId = thriftId;
15664
        _fieldName = fieldName;
15665
      }
15666
 
15667
      public short getThriftFieldId() {
15668
        return _thriftId;
15669
      }
15670
 
15671
      public String getFieldName() {
15672
        return _fieldName;
15673
      }
15674
    }
15675
 
15676
    // isset id assignments
15677
 
15678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15679
    static {
15680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15681
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15682
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15683
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
15684
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15685
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_result.class, metaDataMap);
15686
    }
15687
 
15688
    public getInventoryScansForItem_result() {
15689
    }
15690
 
15691
    public getInventoryScansForItem_result(
15692
      List<Scan> success)
15693
    {
15694
      this();
15695
      this.success = success;
15696
    }
15697
 
15698
    /**
15699
     * Performs a deep copy on <i>other</i>.
15700
     */
15701
    public getInventoryScansForItem_result(getInventoryScansForItem_result other) {
15702
      if (other.isSetSuccess()) {
15703
        List<Scan> __this__success = new ArrayList<Scan>();
15704
        for (Scan other_element : other.success) {
15705
          __this__success.add(new Scan(other_element));
15706
        }
15707
        this.success = __this__success;
15708
      }
15709
    }
15710
 
15711
    public getInventoryScansForItem_result deepCopy() {
15712
      return new getInventoryScansForItem_result(this);
15713
    }
15714
 
15715
    @Override
15716
    public void clear() {
15717
      this.success = null;
15718
    }
15719
 
15720
    public int getSuccessSize() {
15721
      return (this.success == null) ? 0 : this.success.size();
15722
    }
15723
 
15724
    public java.util.Iterator<Scan> getSuccessIterator() {
15725
      return (this.success == null) ? null : this.success.iterator();
15726
    }
15727
 
15728
    public void addToSuccess(Scan elem) {
15729
      if (this.success == null) {
15730
        this.success = new ArrayList<Scan>();
15731
      }
15732
      this.success.add(elem);
15733
    }
15734
 
15735
    public List<Scan> getSuccess() {
15736
      return this.success;
15737
    }
15738
 
15739
    public void setSuccess(List<Scan> success) {
15740
      this.success = success;
15741
    }
15742
 
15743
    public void unsetSuccess() {
15744
      this.success = null;
15745
    }
15746
 
15747
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15748
    public boolean isSetSuccess() {
15749
      return this.success != null;
15750
    }
15751
 
15752
    public void setSuccessIsSet(boolean value) {
15753
      if (!value) {
15754
        this.success = null;
15755
      }
15756
    }
15757
 
15758
    public void setFieldValue(_Fields field, Object value) {
15759
      switch (field) {
15760
      case SUCCESS:
15761
        if (value == null) {
15762
          unsetSuccess();
15763
        } else {
15764
          setSuccess((List<Scan>)value);
15765
        }
15766
        break;
15767
 
15768
      }
15769
    }
15770
 
15771
    public Object getFieldValue(_Fields field) {
15772
      switch (field) {
15773
      case SUCCESS:
15774
        return getSuccess();
15775
 
15776
      }
15777
      throw new IllegalStateException();
15778
    }
15779
 
15780
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15781
    public boolean isSet(_Fields field) {
15782
      if (field == null) {
15783
        throw new IllegalArgumentException();
15784
      }
15785
 
15786
      switch (field) {
15787
      case SUCCESS:
15788
        return isSetSuccess();
15789
      }
15790
      throw new IllegalStateException();
15791
    }
15792
 
15793
    @Override
15794
    public boolean equals(Object that) {
15795
      if (that == null)
15796
        return false;
15797
      if (that instanceof getInventoryScansForItem_result)
15798
        return this.equals((getInventoryScansForItem_result)that);
15799
      return false;
15800
    }
15801
 
15802
    public boolean equals(getInventoryScansForItem_result that) {
15803
      if (that == null)
15804
        return false;
15805
 
15806
      boolean this_present_success = true && this.isSetSuccess();
15807
      boolean that_present_success = true && that.isSetSuccess();
15808
      if (this_present_success || that_present_success) {
15809
        if (!(this_present_success && that_present_success))
15810
          return false;
15811
        if (!this.success.equals(that.success))
15812
          return false;
15813
      }
15814
 
15815
      return true;
15816
    }
15817
 
15818
    @Override
15819
    public int hashCode() {
15820
      return 0;
15821
    }
15822
 
15823
    public int compareTo(getInventoryScansForItem_result other) {
15824
      if (!getClass().equals(other.getClass())) {
15825
        return getClass().getName().compareTo(other.getClass().getName());
15826
      }
15827
 
15828
      int lastComparison = 0;
15829
      getInventoryScansForItem_result typedOther = (getInventoryScansForItem_result)other;
15830
 
15831
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15832
      if (lastComparison != 0) {
15833
        return lastComparison;
15834
      }
15835
      if (isSetSuccess()) {
15836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15837
        if (lastComparison != 0) {
15838
          return lastComparison;
15839
        }
15840
      }
15841
      return 0;
15842
    }
15843
 
15844
    public _Fields fieldForId(int fieldId) {
15845
      return _Fields.findByThriftId(fieldId);
15846
    }
15847
 
15848
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15849
      org.apache.thrift.protocol.TField field;
15850
      iprot.readStructBegin();
15851
      while (true)
15852
      {
15853
        field = iprot.readFieldBegin();
15854
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15855
          break;
15856
        }
15857
        switch (field.id) {
15858
          case 0: // SUCCESS
15859
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15860
              {
7210 amar.kumar 15861
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
15862
                this.success = new ArrayList<Scan>(_list28.size);
15863
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
6322 amar.kumar 15864
                {
7210 amar.kumar 15865
                  Scan _elem30; // required
15866
                  _elem30 = new Scan();
15867
                  _elem30.read(iprot);
15868
                  this.success.add(_elem30);
6322 amar.kumar 15869
                }
15870
                iprot.readListEnd();
15871
              }
15872
            } else { 
15873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15874
            }
15875
            break;
15876
          default:
15877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15878
        }
15879
        iprot.readFieldEnd();
15880
      }
15881
      iprot.readStructEnd();
15882
      validate();
15883
    }
15884
 
15885
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15886
      oprot.writeStructBegin(STRUCT_DESC);
15887
 
15888
      if (this.isSetSuccess()) {
15889
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15890
        {
15891
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 15892
          for (Scan _iter31 : this.success)
6322 amar.kumar 15893
          {
7210 amar.kumar 15894
            _iter31.write(oprot);
6322 amar.kumar 15895
          }
15896
          oprot.writeListEnd();
15897
        }
15898
        oprot.writeFieldEnd();
15899
      }
15900
      oprot.writeFieldStop();
15901
      oprot.writeStructEnd();
15902
    }
15903
 
15904
    @Override
15905
    public String toString() {
15906
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_result(");
15907
      boolean first = true;
15908
 
15909
      sb.append("success:");
15910
      if (this.success == null) {
15911
        sb.append("null");
15912
      } else {
15913
        sb.append(this.success);
15914
      }
15915
      first = false;
15916
      sb.append(")");
15917
      return sb.toString();
15918
    }
15919
 
15920
    public void validate() throws org.apache.thrift.TException {
15921
      // check for required fields
15922
    }
15923
 
15924
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15925
      try {
15926
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15927
      } catch (org.apache.thrift.TException te) {
15928
        throw new java.io.IOException(te);
15929
      }
15930
    }
15931
 
15932
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15933
      try {
15934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15935
      } catch (org.apache.thrift.TException te) {
15936
        throw new java.io.IOException(te);
15937
      }
15938
    }
15939
 
15940
  }
15941
 
15942
  public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable   {
15943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
15944
 
7410 amar.kumar 15945
    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 15946
 
7410 amar.kumar 15947
    private String serialNumber; // required
6322 amar.kumar 15948
 
15949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15951
      SERIAL_NUMBER((short)1, "serialNumber");
15952
 
15953
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15954
 
15955
      static {
15956
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15957
          byName.put(field.getFieldName(), field);
15958
        }
15959
      }
15960
 
15961
      /**
15962
       * Find the _Fields constant that matches fieldId, or null if its not found.
15963
       */
15964
      public static _Fields findByThriftId(int fieldId) {
15965
        switch(fieldId) {
15966
          case 1: // SERIAL_NUMBER
15967
            return SERIAL_NUMBER;
15968
          default:
15969
            return null;
15970
        }
15971
      }
15972
 
15973
      /**
15974
       * Find the _Fields constant that matches fieldId, throwing an exception
15975
       * if it is not found.
15976
       */
15977
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15978
        _Fields fields = findByThriftId(fieldId);
15979
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15980
        return fields;
15981
      }
15982
 
15983
      /**
15984
       * Find the _Fields constant that matches name, or null if its not found.
15985
       */
15986
      public static _Fields findByName(String name) {
15987
        return byName.get(name);
15988
      }
15989
 
15990
      private final short _thriftId;
15991
      private final String _fieldName;
15992
 
15993
      _Fields(short thriftId, String fieldName) {
15994
        _thriftId = thriftId;
15995
        _fieldName = fieldName;
15996
      }
15997
 
15998
      public short getThriftFieldId() {
15999
        return _thriftId;
16000
      }
16001
 
16002
      public String getFieldName() {
16003
        return _fieldName;
16004
      }
16005
    }
16006
 
16007
    // isset id assignments
16008
 
16009
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16010
    static {
16011
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16012
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7410 amar.kumar 16013
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6322 amar.kumar 16014
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16015
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
16016
    }
16017
 
16018
    public getScanRecordsForSerialNumber_args() {
16019
    }
16020
 
16021
    public getScanRecordsForSerialNumber_args(
7410 amar.kumar 16022
      String serialNumber)
6322 amar.kumar 16023
    {
16024
      this();
16025
      this.serialNumber = serialNumber;
16026
    }
16027
 
16028
    /**
16029
     * Performs a deep copy on <i>other</i>.
16030
     */
16031
    public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
7410 amar.kumar 16032
      if (other.isSetSerialNumber()) {
16033
        this.serialNumber = other.serialNumber;
16034
      }
6322 amar.kumar 16035
    }
16036
 
16037
    public getScanRecordsForSerialNumber_args deepCopy() {
16038
      return new getScanRecordsForSerialNumber_args(this);
16039
    }
16040
 
16041
    @Override
16042
    public void clear() {
7410 amar.kumar 16043
      this.serialNumber = null;
6322 amar.kumar 16044
    }
16045
 
7410 amar.kumar 16046
    public String getSerialNumber() {
6322 amar.kumar 16047
      return this.serialNumber;
16048
    }
16049
 
7410 amar.kumar 16050
    public void setSerialNumber(String serialNumber) {
6322 amar.kumar 16051
      this.serialNumber = serialNumber;
16052
    }
16053
 
16054
    public void unsetSerialNumber() {
7410 amar.kumar 16055
      this.serialNumber = null;
6322 amar.kumar 16056
    }
16057
 
16058
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
16059
    public boolean isSetSerialNumber() {
7410 amar.kumar 16060
      return this.serialNumber != null;
6322 amar.kumar 16061
    }
16062
 
16063
    public void setSerialNumberIsSet(boolean value) {
7410 amar.kumar 16064
      if (!value) {
16065
        this.serialNumber = null;
16066
      }
6322 amar.kumar 16067
    }
16068
 
16069
    public void setFieldValue(_Fields field, Object value) {
16070
      switch (field) {
16071
      case SERIAL_NUMBER:
16072
        if (value == null) {
16073
          unsetSerialNumber();
16074
        } else {
7410 amar.kumar 16075
          setSerialNumber((String)value);
6322 amar.kumar 16076
        }
16077
        break;
16078
 
16079
      }
16080
    }
16081
 
16082
    public Object getFieldValue(_Fields field) {
16083
      switch (field) {
16084
      case SERIAL_NUMBER:
7410 amar.kumar 16085
        return getSerialNumber();
6322 amar.kumar 16086
 
16087
      }
16088
      throw new IllegalStateException();
16089
    }
16090
 
16091
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16092
    public boolean isSet(_Fields field) {
16093
      if (field == null) {
16094
        throw new IllegalArgumentException();
16095
      }
16096
 
16097
      switch (field) {
16098
      case SERIAL_NUMBER:
16099
        return isSetSerialNumber();
16100
      }
16101
      throw new IllegalStateException();
16102
    }
16103
 
16104
    @Override
16105
    public boolean equals(Object that) {
16106
      if (that == null)
16107
        return false;
16108
      if (that instanceof getScanRecordsForSerialNumber_args)
16109
        return this.equals((getScanRecordsForSerialNumber_args)that);
16110
      return false;
16111
    }
16112
 
16113
    public boolean equals(getScanRecordsForSerialNumber_args that) {
16114
      if (that == null)
16115
        return false;
16116
 
7410 amar.kumar 16117
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
16118
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
6322 amar.kumar 16119
      if (this_present_serialNumber || that_present_serialNumber) {
16120
        if (!(this_present_serialNumber && that_present_serialNumber))
16121
          return false;
7410 amar.kumar 16122
        if (!this.serialNumber.equals(that.serialNumber))
6322 amar.kumar 16123
          return false;
16124
      }
16125
 
16126
      return true;
16127
    }
16128
 
16129
    @Override
16130
    public int hashCode() {
16131
      return 0;
16132
    }
16133
 
16134
    public int compareTo(getScanRecordsForSerialNumber_args other) {
16135
      if (!getClass().equals(other.getClass())) {
16136
        return getClass().getName().compareTo(other.getClass().getName());
16137
      }
16138
 
16139
      int lastComparison = 0;
16140
      getScanRecordsForSerialNumber_args typedOther = (getScanRecordsForSerialNumber_args)other;
16141
 
16142
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
16143
      if (lastComparison != 0) {
16144
        return lastComparison;
16145
      }
16146
      if (isSetSerialNumber()) {
16147
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
16148
        if (lastComparison != 0) {
16149
          return lastComparison;
16150
        }
16151
      }
16152
      return 0;
16153
    }
16154
 
16155
    public _Fields fieldForId(int fieldId) {
16156
      return _Fields.findByThriftId(fieldId);
16157
    }
16158
 
16159
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16160
      org.apache.thrift.protocol.TField field;
16161
      iprot.readStructBegin();
16162
      while (true)
16163
      {
16164
        field = iprot.readFieldBegin();
16165
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16166
          break;
16167
        }
16168
        switch (field.id) {
16169
          case 1: // SERIAL_NUMBER
7410 amar.kumar 16170
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16171
              this.serialNumber = iprot.readString();
6322 amar.kumar 16172
            } else { 
16173
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16174
            }
16175
            break;
16176
          default:
16177
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16178
        }
16179
        iprot.readFieldEnd();
16180
      }
16181
      iprot.readStructEnd();
16182
      validate();
16183
    }
16184
 
16185
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16186
      validate();
16187
 
16188
      oprot.writeStructBegin(STRUCT_DESC);
7410 amar.kumar 16189
      if (this.serialNumber != null) {
16190
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
16191
        oprot.writeString(this.serialNumber);
16192
        oprot.writeFieldEnd();
16193
      }
6322 amar.kumar 16194
      oprot.writeFieldStop();
16195
      oprot.writeStructEnd();
16196
    }
16197
 
16198
    @Override
16199
    public String toString() {
16200
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
16201
      boolean first = true;
16202
 
16203
      sb.append("serialNumber:");
7410 amar.kumar 16204
      if (this.serialNumber == null) {
16205
        sb.append("null");
16206
      } else {
16207
        sb.append(this.serialNumber);
16208
      }
6322 amar.kumar 16209
      first = false;
16210
      sb.append(")");
16211
      return sb.toString();
16212
    }
16213
 
16214
    public void validate() throws org.apache.thrift.TException {
16215
      // check for required fields
16216
    }
16217
 
16218
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16219
      try {
16220
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16221
      } catch (org.apache.thrift.TException te) {
16222
        throw new java.io.IOException(te);
16223
      }
16224
    }
16225
 
16226
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16227
      try {
16228
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16229
      } catch (org.apache.thrift.TException te) {
16230
        throw new java.io.IOException(te);
16231
      }
16232
    }
16233
 
16234
  }
16235
 
16236
  public static class getScanRecordsForSerialNumber_result implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_result, getScanRecordsForSerialNumber_result._Fields>, java.io.Serializable, Cloneable   {
16237
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_result");
16238
 
16239
    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);
16240
 
16241
    private List<Scan> success; // required
16242
 
16243
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16244
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16245
      SUCCESS((short)0, "success");
16246
 
16247
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16248
 
16249
      static {
16250
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16251
          byName.put(field.getFieldName(), field);
16252
        }
16253
      }
16254
 
16255
      /**
16256
       * Find the _Fields constant that matches fieldId, or null if its not found.
16257
       */
16258
      public static _Fields findByThriftId(int fieldId) {
16259
        switch(fieldId) {
16260
          case 0: // SUCCESS
16261
            return SUCCESS;
16262
          default:
16263
            return null;
16264
        }
16265
      }
16266
 
16267
      /**
16268
       * Find the _Fields constant that matches fieldId, throwing an exception
16269
       * if it is not found.
16270
       */
16271
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16272
        _Fields fields = findByThriftId(fieldId);
16273
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16274
        return fields;
16275
      }
16276
 
16277
      /**
16278
       * Find the _Fields constant that matches name, or null if its not found.
16279
       */
16280
      public static _Fields findByName(String name) {
16281
        return byName.get(name);
16282
      }
16283
 
16284
      private final short _thriftId;
16285
      private final String _fieldName;
16286
 
16287
      _Fields(short thriftId, String fieldName) {
16288
        _thriftId = thriftId;
16289
        _fieldName = fieldName;
16290
      }
16291
 
16292
      public short getThriftFieldId() {
16293
        return _thriftId;
16294
      }
16295
 
16296
      public String getFieldName() {
16297
        return _fieldName;
16298
      }
16299
    }
16300
 
16301
    // isset id assignments
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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", 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, Scan.class))));
16309
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16310
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_result.class, metaDataMap);
16311
    }
16312
 
16313
    public getScanRecordsForSerialNumber_result() {
16314
    }
16315
 
16316
    public getScanRecordsForSerialNumber_result(
16317
      List<Scan> success)
16318
    {
16319
      this();
16320
      this.success = success;
16321
    }
16322
 
16323
    /**
16324
     * Performs a deep copy on <i>other</i>.
16325
     */
16326
    public getScanRecordsForSerialNumber_result(getScanRecordsForSerialNumber_result other) {
16327
      if (other.isSetSuccess()) {
16328
        List<Scan> __this__success = new ArrayList<Scan>();
16329
        for (Scan other_element : other.success) {
16330
          __this__success.add(new Scan(other_element));
16331
        }
16332
        this.success = __this__success;
16333
      }
16334
    }
16335
 
16336
    public getScanRecordsForSerialNumber_result deepCopy() {
16337
      return new getScanRecordsForSerialNumber_result(this);
16338
    }
16339
 
16340
    @Override
16341
    public void clear() {
16342
      this.success = null;
16343
    }
16344
 
16345
    public int getSuccessSize() {
16346
      return (this.success == null) ? 0 : this.success.size();
16347
    }
16348
 
16349
    public java.util.Iterator<Scan> getSuccessIterator() {
16350
      return (this.success == null) ? null : this.success.iterator();
16351
    }
16352
 
16353
    public void addToSuccess(Scan elem) {
16354
      if (this.success == null) {
16355
        this.success = new ArrayList<Scan>();
16356
      }
16357
      this.success.add(elem);
16358
    }
16359
 
16360
    public List<Scan> getSuccess() {
16361
      return this.success;
16362
    }
16363
 
16364
    public void setSuccess(List<Scan> success) {
16365
      this.success = success;
16366
    }
16367
 
16368
    public void unsetSuccess() {
16369
      this.success = null;
16370
    }
16371
 
16372
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16373
    public boolean isSetSuccess() {
16374
      return this.success != null;
16375
    }
16376
 
16377
    public void setSuccessIsSet(boolean value) {
16378
      if (!value) {
16379
        this.success = null;
16380
      }
16381
    }
16382
 
16383
    public void setFieldValue(_Fields field, Object value) {
16384
      switch (field) {
16385
      case SUCCESS:
16386
        if (value == null) {
16387
          unsetSuccess();
16388
        } else {
16389
          setSuccess((List<Scan>)value);
16390
        }
16391
        break;
16392
 
16393
      }
16394
    }
16395
 
16396
    public Object getFieldValue(_Fields field) {
16397
      switch (field) {
16398
      case SUCCESS:
16399
        return getSuccess();
16400
 
16401
      }
16402
      throw new IllegalStateException();
16403
    }
16404
 
16405
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16406
    public boolean isSet(_Fields field) {
16407
      if (field == null) {
16408
        throw new IllegalArgumentException();
16409
      }
16410
 
16411
      switch (field) {
16412
      case SUCCESS:
16413
        return isSetSuccess();
16414
      }
16415
      throw new IllegalStateException();
16416
    }
16417
 
16418
    @Override
16419
    public boolean equals(Object that) {
16420
      if (that == null)
16421
        return false;
16422
      if (that instanceof getScanRecordsForSerialNumber_result)
16423
        return this.equals((getScanRecordsForSerialNumber_result)that);
16424
      return false;
16425
    }
16426
 
16427
    public boolean equals(getScanRecordsForSerialNumber_result that) {
16428
      if (that == null)
16429
        return false;
16430
 
16431
      boolean this_present_success = true && this.isSetSuccess();
16432
      boolean that_present_success = true && that.isSetSuccess();
16433
      if (this_present_success || that_present_success) {
16434
        if (!(this_present_success && that_present_success))
16435
          return false;
16436
        if (!this.success.equals(that.success))
16437
          return false;
16438
      }
16439
 
16440
      return true;
16441
    }
16442
 
16443
    @Override
16444
    public int hashCode() {
16445
      return 0;
16446
    }
16447
 
16448
    public int compareTo(getScanRecordsForSerialNumber_result other) {
16449
      if (!getClass().equals(other.getClass())) {
16450
        return getClass().getName().compareTo(other.getClass().getName());
16451
      }
16452
 
16453
      int lastComparison = 0;
16454
      getScanRecordsForSerialNumber_result typedOther = (getScanRecordsForSerialNumber_result)other;
16455
 
16456
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16457
      if (lastComparison != 0) {
16458
        return lastComparison;
16459
      }
16460
      if (isSetSuccess()) {
16461
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16462
        if (lastComparison != 0) {
16463
          return lastComparison;
16464
        }
16465
      }
16466
      return 0;
16467
    }
16468
 
16469
    public _Fields fieldForId(int fieldId) {
16470
      return _Fields.findByThriftId(fieldId);
16471
    }
16472
 
16473
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16474
      org.apache.thrift.protocol.TField field;
16475
      iprot.readStructBegin();
16476
      while (true)
16477
      {
16478
        field = iprot.readFieldBegin();
16479
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16480
          break;
16481
        }
16482
        switch (field.id) {
16483
          case 0: // SUCCESS
16484
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16485
              {
7210 amar.kumar 16486
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
16487
                this.success = new ArrayList<Scan>(_list32.size);
16488
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
6322 amar.kumar 16489
                {
7210 amar.kumar 16490
                  Scan _elem34; // required
16491
                  _elem34 = new Scan();
16492
                  _elem34.read(iprot);
16493
                  this.success.add(_elem34);
6322 amar.kumar 16494
                }
16495
                iprot.readListEnd();
16496
              }
16497
            } else { 
16498
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16499
            }
16500
            break;
16501
          default:
16502
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16503
        }
16504
        iprot.readFieldEnd();
16505
      }
16506
      iprot.readStructEnd();
16507
      validate();
16508
    }
16509
 
16510
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16511
      oprot.writeStructBegin(STRUCT_DESC);
16512
 
16513
      if (this.isSetSuccess()) {
16514
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16515
        {
16516
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 16517
          for (Scan _iter35 : this.success)
6322 amar.kumar 16518
          {
7210 amar.kumar 16519
            _iter35.write(oprot);
6322 amar.kumar 16520
          }
16521
          oprot.writeListEnd();
16522
        }
16523
        oprot.writeFieldEnd();
16524
      }
16525
      oprot.writeFieldStop();
16526
      oprot.writeStructEnd();
16527
    }
16528
 
16529
    @Override
16530
    public String toString() {
16531
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_result(");
16532
      boolean first = true;
16533
 
16534
      sb.append("success:");
16535
      if (this.success == null) {
16536
        sb.append("null");
16537
      } else {
16538
        sb.append(this.success);
16539
      }
16540
      first = false;
16541
      sb.append(")");
16542
      return sb.toString();
16543
    }
16544
 
16545
    public void validate() throws org.apache.thrift.TException {
16546
      // check for required fields
16547
    }
16548
 
16549
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16550
      try {
16551
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16552
      } catch (org.apache.thrift.TException te) {
16553
        throw new java.io.IOException(te);
16554
      }
16555
    }
16556
 
16557
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16558
      try {
16559
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16560
      } catch (org.apache.thrift.TException te) {
16561
        throw new java.io.IOException(te);
16562
      }
16563
    }
16564
 
16565
  }
16566
 
6467 amar.kumar 16567
  public static class scanForPurchaseReturn_args implements org.apache.thrift.TBase<scanForPurchaseReturn_args, scanForPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
16568
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_args");
16569
 
16570
    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);
16571
    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);
16572
 
16573
    private List<InventoryItem> saleReturnItems; // required
16574
    private long vendorId; // required
16575
 
16576
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16577
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16578
      SALE_RETURN_ITEMS((short)1, "saleReturnItems"),
16579
      VENDOR_ID((short)2, "vendorId");
16580
 
16581
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16582
 
16583
      static {
16584
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16585
          byName.put(field.getFieldName(), field);
16586
        }
16587
      }
16588
 
16589
      /**
16590
       * Find the _Fields constant that matches fieldId, or null if its not found.
16591
       */
16592
      public static _Fields findByThriftId(int fieldId) {
16593
        switch(fieldId) {
16594
          case 1: // SALE_RETURN_ITEMS
16595
            return SALE_RETURN_ITEMS;
16596
          case 2: // VENDOR_ID
16597
            return VENDOR_ID;
16598
          default:
16599
            return null;
16600
        }
16601
      }
16602
 
16603
      /**
16604
       * Find the _Fields constant that matches fieldId, throwing an exception
16605
       * if it is not found.
16606
       */
16607
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16608
        _Fields fields = findByThriftId(fieldId);
16609
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16610
        return fields;
16611
      }
16612
 
16613
      /**
16614
       * Find the _Fields constant that matches name, or null if its not found.
16615
       */
16616
      public static _Fields findByName(String name) {
16617
        return byName.get(name);
16618
      }
16619
 
16620
      private final short _thriftId;
16621
      private final String _fieldName;
16622
 
16623
      _Fields(short thriftId, String fieldName) {
16624
        _thriftId = thriftId;
16625
        _fieldName = fieldName;
16626
      }
16627
 
16628
      public short getThriftFieldId() {
16629
        return _thriftId;
16630
      }
16631
 
16632
      public String getFieldName() {
16633
        return _fieldName;
16634
      }
16635
    }
16636
 
16637
    // isset id assignments
16638
    private static final int __VENDORID_ISSET_ID = 0;
16639
    private BitSet __isset_bit_vector = new BitSet(1);
16640
 
16641
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16642
    static {
16643
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16644
      tmpMap.put(_Fields.SALE_RETURN_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("saleReturnItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16645
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16646
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
16647
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_args.class, metaDataMap);
16651
    }
16652
 
16653
    public scanForPurchaseReturn_args() {
16654
    }
16655
 
16656
    public scanForPurchaseReturn_args(
16657
      List<InventoryItem> saleReturnItems,
16658
      long vendorId)
16659
    {
16660
      this();
16661
      this.saleReturnItems = saleReturnItems;
16662
      this.vendorId = vendorId;
16663
      setVendorIdIsSet(true);
16664
    }
16665
 
16666
    /**
16667
     * Performs a deep copy on <i>other</i>.
16668
     */
16669
    public scanForPurchaseReturn_args(scanForPurchaseReturn_args other) {
16670
      __isset_bit_vector.clear();
16671
      __isset_bit_vector.or(other.__isset_bit_vector);
16672
      if (other.isSetSaleReturnItems()) {
16673
        List<InventoryItem> __this__saleReturnItems = new ArrayList<InventoryItem>();
16674
        for (InventoryItem other_element : other.saleReturnItems) {
16675
          __this__saleReturnItems.add(new InventoryItem(other_element));
16676
        }
16677
        this.saleReturnItems = __this__saleReturnItems;
16678
      }
16679
      this.vendorId = other.vendorId;
16680
    }
16681
 
16682
    public scanForPurchaseReturn_args deepCopy() {
16683
      return new scanForPurchaseReturn_args(this);
16684
    }
16685
 
16686
    @Override
16687
    public void clear() {
16688
      this.saleReturnItems = null;
16689
      setVendorIdIsSet(false);
16690
      this.vendorId = 0;
16691
    }
16692
 
16693
    public int getSaleReturnItemsSize() {
16694
      return (this.saleReturnItems == null) ? 0 : this.saleReturnItems.size();
16695
    }
16696
 
16697
    public java.util.Iterator<InventoryItem> getSaleReturnItemsIterator() {
16698
      return (this.saleReturnItems == null) ? null : this.saleReturnItems.iterator();
16699
    }
16700
 
16701
    public void addToSaleReturnItems(InventoryItem elem) {
16702
      if (this.saleReturnItems == null) {
16703
        this.saleReturnItems = new ArrayList<InventoryItem>();
16704
      }
16705
      this.saleReturnItems.add(elem);
16706
    }
16707
 
16708
    public List<InventoryItem> getSaleReturnItems() {
16709
      return this.saleReturnItems;
16710
    }
16711
 
16712
    public void setSaleReturnItems(List<InventoryItem> saleReturnItems) {
16713
      this.saleReturnItems = saleReturnItems;
16714
    }
16715
 
16716
    public void unsetSaleReturnItems() {
16717
      this.saleReturnItems = null;
16718
    }
16719
 
16720
    /** Returns true if field saleReturnItems is set (has been assigned a value) and false otherwise */
16721
    public boolean isSetSaleReturnItems() {
16722
      return this.saleReturnItems != null;
16723
    }
16724
 
16725
    public void setSaleReturnItemsIsSet(boolean value) {
16726
      if (!value) {
16727
        this.saleReturnItems = null;
16728
      }
16729
    }
16730
 
16731
    public long getVendorId() {
16732
      return this.vendorId;
16733
    }
16734
 
16735
    public void setVendorId(long vendorId) {
16736
      this.vendorId = vendorId;
16737
      setVendorIdIsSet(true);
16738
    }
16739
 
16740
    public void unsetVendorId() {
16741
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
16742
    }
16743
 
16744
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
16745
    public boolean isSetVendorId() {
16746
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
16747
    }
16748
 
16749
    public void setVendorIdIsSet(boolean value) {
16750
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
16751
    }
16752
 
16753
    public void setFieldValue(_Fields field, Object value) {
16754
      switch (field) {
16755
      case SALE_RETURN_ITEMS:
16756
        if (value == null) {
16757
          unsetSaleReturnItems();
16758
        } else {
16759
          setSaleReturnItems((List<InventoryItem>)value);
16760
        }
16761
        break;
16762
 
16763
      case VENDOR_ID:
16764
        if (value == null) {
16765
          unsetVendorId();
16766
        } else {
16767
          setVendorId((Long)value);
16768
        }
16769
        break;
16770
 
16771
      }
16772
    }
16773
 
16774
    public Object getFieldValue(_Fields field) {
16775
      switch (field) {
16776
      case SALE_RETURN_ITEMS:
16777
        return getSaleReturnItems();
16778
 
16779
      case VENDOR_ID:
16780
        return Long.valueOf(getVendorId());
16781
 
16782
      }
16783
      throw new IllegalStateException();
16784
    }
16785
 
16786
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16787
    public boolean isSet(_Fields field) {
16788
      if (field == null) {
16789
        throw new IllegalArgumentException();
16790
      }
16791
 
16792
      switch (field) {
16793
      case SALE_RETURN_ITEMS:
16794
        return isSetSaleReturnItems();
16795
      case VENDOR_ID:
16796
        return isSetVendorId();
16797
      }
16798
      throw new IllegalStateException();
16799
    }
16800
 
16801
    @Override
16802
    public boolean equals(Object that) {
16803
      if (that == null)
16804
        return false;
16805
      if (that instanceof scanForPurchaseReturn_args)
16806
        return this.equals((scanForPurchaseReturn_args)that);
16807
      return false;
16808
    }
16809
 
16810
    public boolean equals(scanForPurchaseReturn_args that) {
16811
      if (that == null)
16812
        return false;
16813
 
16814
      boolean this_present_saleReturnItems = true && this.isSetSaleReturnItems();
16815
      boolean that_present_saleReturnItems = true && that.isSetSaleReturnItems();
16816
      if (this_present_saleReturnItems || that_present_saleReturnItems) {
16817
        if (!(this_present_saleReturnItems && that_present_saleReturnItems))
16818
          return false;
16819
        if (!this.saleReturnItems.equals(that.saleReturnItems))
16820
          return false;
16821
      }
16822
 
16823
      boolean this_present_vendorId = true;
16824
      boolean that_present_vendorId = true;
16825
      if (this_present_vendorId || that_present_vendorId) {
16826
        if (!(this_present_vendorId && that_present_vendorId))
16827
          return false;
16828
        if (this.vendorId != that.vendorId)
16829
          return false;
16830
      }
16831
 
16832
      return true;
16833
    }
16834
 
16835
    @Override
16836
    public int hashCode() {
16837
      return 0;
16838
    }
16839
 
16840
    public int compareTo(scanForPurchaseReturn_args other) {
16841
      if (!getClass().equals(other.getClass())) {
16842
        return getClass().getName().compareTo(other.getClass().getName());
16843
      }
16844
 
16845
      int lastComparison = 0;
16846
      scanForPurchaseReturn_args typedOther = (scanForPurchaseReturn_args)other;
16847
 
16848
      lastComparison = Boolean.valueOf(isSetSaleReturnItems()).compareTo(typedOther.isSetSaleReturnItems());
16849
      if (lastComparison != 0) {
16850
        return lastComparison;
16851
      }
16852
      if (isSetSaleReturnItems()) {
16853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.saleReturnItems, typedOther.saleReturnItems);
16854
        if (lastComparison != 0) {
16855
          return lastComparison;
16856
        }
16857
      }
16858
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
16859
      if (lastComparison != 0) {
16860
        return lastComparison;
16861
      }
16862
      if (isSetVendorId()) {
16863
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
16864
        if (lastComparison != 0) {
16865
          return lastComparison;
16866
        }
16867
      }
16868
      return 0;
16869
    }
16870
 
16871
    public _Fields fieldForId(int fieldId) {
16872
      return _Fields.findByThriftId(fieldId);
16873
    }
16874
 
16875
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16876
      org.apache.thrift.protocol.TField field;
16877
      iprot.readStructBegin();
16878
      while (true)
16879
      {
16880
        field = iprot.readFieldBegin();
16881
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16882
          break;
16883
        }
16884
        switch (field.id) {
16885
          case 1: // SALE_RETURN_ITEMS
16886
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16887
              {
7210 amar.kumar 16888
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
16889
                this.saleReturnItems = new ArrayList<InventoryItem>(_list36.size);
16890
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
6467 amar.kumar 16891
                {
7210 amar.kumar 16892
                  InventoryItem _elem38; // required
16893
                  _elem38 = new InventoryItem();
16894
                  _elem38.read(iprot);
16895
                  this.saleReturnItems.add(_elem38);
6467 amar.kumar 16896
                }
16897
                iprot.readListEnd();
16898
              }
16899
            } else { 
16900
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16901
            }
16902
            break;
16903
          case 2: // VENDOR_ID
16904
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16905
              this.vendorId = iprot.readI64();
16906
              setVendorIdIsSet(true);
16907
            } else { 
16908
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16909
            }
16910
            break;
16911
          default:
16912
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16913
        }
16914
        iprot.readFieldEnd();
16915
      }
16916
      iprot.readStructEnd();
16917
      validate();
16918
    }
16919
 
16920
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16921
      validate();
16922
 
16923
      oprot.writeStructBegin(STRUCT_DESC);
16924
      if (this.saleReturnItems != null) {
16925
        oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
16926
        {
16927
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
7210 amar.kumar 16928
          for (InventoryItem _iter39 : this.saleReturnItems)
6467 amar.kumar 16929
          {
7210 amar.kumar 16930
            _iter39.write(oprot);
6467 amar.kumar 16931
          }
16932
          oprot.writeListEnd();
16933
        }
16934
        oprot.writeFieldEnd();
16935
      }
16936
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
16937
      oprot.writeI64(this.vendorId);
16938
      oprot.writeFieldEnd();
16939
      oprot.writeFieldStop();
16940
      oprot.writeStructEnd();
16941
    }
16942
 
16943
    @Override
16944
    public String toString() {
16945
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_args(");
16946
      boolean first = true;
16947
 
16948
      sb.append("saleReturnItems:");
16949
      if (this.saleReturnItems == null) {
16950
        sb.append("null");
16951
      } else {
16952
        sb.append(this.saleReturnItems);
16953
      }
16954
      first = false;
16955
      if (!first) sb.append(", ");
16956
      sb.append("vendorId:");
16957
      sb.append(this.vendorId);
16958
      first = false;
16959
      sb.append(")");
16960
      return sb.toString();
16961
    }
16962
 
16963
    public void validate() throws org.apache.thrift.TException {
16964
      // check for required fields
16965
    }
16966
 
16967
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16968
      try {
16969
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16970
      } catch (org.apache.thrift.TException te) {
16971
        throw new java.io.IOException(te);
16972
      }
16973
    }
16974
 
16975
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16976
      try {
16977
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16978
      } catch (org.apache.thrift.TException te) {
16979
        throw new java.io.IOException(te);
16980
      }
16981
    }
16982
 
16983
  }
16984
 
16985
  public static class scanForPurchaseReturn_result implements org.apache.thrift.TBase<scanForPurchaseReturn_result, scanForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
16986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_result");
16987
 
16988
    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);
16989
 
16990
    private WarehouseServiceException ex; // required
16991
 
16992
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16993
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16994
      EX((short)1, "ex");
16995
 
16996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16997
 
16998
      static {
16999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17000
          byName.put(field.getFieldName(), field);
17001
        }
17002
      }
17003
 
17004
      /**
17005
       * Find the _Fields constant that matches fieldId, or null if its not found.
17006
       */
17007
      public static _Fields findByThriftId(int fieldId) {
17008
        switch(fieldId) {
17009
          case 1: // EX
17010
            return EX;
17011
          default:
17012
            return null;
17013
        }
17014
      }
17015
 
17016
      /**
17017
       * Find the _Fields constant that matches fieldId, throwing an exception
17018
       * if it is not found.
17019
       */
17020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17021
        _Fields fields = findByThriftId(fieldId);
17022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17023
        return fields;
17024
      }
17025
 
17026
      /**
17027
       * Find the _Fields constant that matches name, or null if its not found.
17028
       */
17029
      public static _Fields findByName(String name) {
17030
        return byName.get(name);
17031
      }
17032
 
17033
      private final short _thriftId;
17034
      private final String _fieldName;
17035
 
17036
      _Fields(short thriftId, String fieldName) {
17037
        _thriftId = thriftId;
17038
        _fieldName = fieldName;
17039
      }
17040
 
17041
      public short getThriftFieldId() {
17042
        return _thriftId;
17043
      }
17044
 
17045
      public String getFieldName() {
17046
        return _fieldName;
17047
      }
17048
    }
17049
 
17050
    // isset id assignments
17051
 
17052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17053
    static {
17054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17055
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17057
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17058
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_result.class, metaDataMap);
17059
    }
17060
 
17061
    public scanForPurchaseReturn_result() {
17062
    }
17063
 
17064
    public scanForPurchaseReturn_result(
17065
      WarehouseServiceException ex)
17066
    {
17067
      this();
17068
      this.ex = ex;
17069
    }
17070
 
17071
    /**
17072
     * Performs a deep copy on <i>other</i>.
17073
     */
17074
    public scanForPurchaseReturn_result(scanForPurchaseReturn_result other) {
17075
      if (other.isSetEx()) {
17076
        this.ex = new WarehouseServiceException(other.ex);
17077
      }
17078
    }
17079
 
17080
    public scanForPurchaseReturn_result deepCopy() {
17081
      return new scanForPurchaseReturn_result(this);
17082
    }
17083
 
17084
    @Override
17085
    public void clear() {
17086
      this.ex = null;
17087
    }
17088
 
17089
    public WarehouseServiceException getEx() {
17090
      return this.ex;
17091
    }
17092
 
17093
    public void setEx(WarehouseServiceException ex) {
17094
      this.ex = ex;
17095
    }
17096
 
17097
    public void unsetEx() {
17098
      this.ex = null;
17099
    }
17100
 
17101
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
17102
    public boolean isSetEx() {
17103
      return this.ex != null;
17104
    }
17105
 
17106
    public void setExIsSet(boolean value) {
17107
      if (!value) {
17108
        this.ex = null;
17109
      }
17110
    }
17111
 
17112
    public void setFieldValue(_Fields field, Object value) {
17113
      switch (field) {
17114
      case EX:
17115
        if (value == null) {
17116
          unsetEx();
17117
        } else {
17118
          setEx((WarehouseServiceException)value);
17119
        }
17120
        break;
17121
 
17122
      }
17123
    }
17124
 
17125
    public Object getFieldValue(_Fields field) {
17126
      switch (field) {
17127
      case EX:
17128
        return getEx();
17129
 
17130
      }
17131
      throw new IllegalStateException();
17132
    }
17133
 
17134
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17135
    public boolean isSet(_Fields field) {
17136
      if (field == null) {
17137
        throw new IllegalArgumentException();
17138
      }
17139
 
17140
      switch (field) {
17141
      case EX:
17142
        return isSetEx();
17143
      }
17144
      throw new IllegalStateException();
17145
    }
17146
 
17147
    @Override
17148
    public boolean equals(Object that) {
17149
      if (that == null)
17150
        return false;
17151
      if (that instanceof scanForPurchaseReturn_result)
17152
        return this.equals((scanForPurchaseReturn_result)that);
17153
      return false;
17154
    }
17155
 
17156
    public boolean equals(scanForPurchaseReturn_result that) {
17157
      if (that == null)
17158
        return false;
17159
 
17160
      boolean this_present_ex = true && this.isSetEx();
17161
      boolean that_present_ex = true && that.isSetEx();
17162
      if (this_present_ex || that_present_ex) {
17163
        if (!(this_present_ex && that_present_ex))
17164
          return false;
17165
        if (!this.ex.equals(that.ex))
17166
          return false;
17167
      }
17168
 
17169
      return true;
17170
    }
17171
 
17172
    @Override
17173
    public int hashCode() {
17174
      return 0;
17175
    }
17176
 
17177
    public int compareTo(scanForPurchaseReturn_result other) {
17178
      if (!getClass().equals(other.getClass())) {
17179
        return getClass().getName().compareTo(other.getClass().getName());
17180
      }
17181
 
17182
      int lastComparison = 0;
17183
      scanForPurchaseReturn_result typedOther = (scanForPurchaseReturn_result)other;
17184
 
17185
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
17186
      if (lastComparison != 0) {
17187
        return lastComparison;
17188
      }
17189
      if (isSetEx()) {
17190
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17191
        if (lastComparison != 0) {
17192
          return lastComparison;
17193
        }
17194
      }
17195
      return 0;
17196
    }
17197
 
17198
    public _Fields fieldForId(int fieldId) {
17199
      return _Fields.findByThriftId(fieldId);
17200
    }
17201
 
17202
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17203
      org.apache.thrift.protocol.TField field;
17204
      iprot.readStructBegin();
17205
      while (true)
17206
      {
17207
        field = iprot.readFieldBegin();
17208
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17209
          break;
17210
        }
17211
        switch (field.id) {
17212
          case 1: // EX
17213
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17214
              this.ex = new WarehouseServiceException();
17215
              this.ex.read(iprot);
17216
            } else { 
17217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17218
            }
17219
            break;
17220
          default:
17221
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17222
        }
17223
        iprot.readFieldEnd();
17224
      }
17225
      iprot.readStructEnd();
17226
      validate();
17227
    }
17228
 
17229
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17230
      oprot.writeStructBegin(STRUCT_DESC);
17231
 
17232
      if (this.isSetEx()) {
17233
        oprot.writeFieldBegin(EX_FIELD_DESC);
17234
        this.ex.write(oprot);
17235
        oprot.writeFieldEnd();
17236
      }
17237
      oprot.writeFieldStop();
17238
      oprot.writeStructEnd();
17239
    }
17240
 
17241
    @Override
17242
    public String toString() {
17243
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_result(");
17244
      boolean first = true;
17245
 
17246
      sb.append("ex:");
17247
      if (this.ex == null) {
17248
        sb.append("null");
17249
      } else {
17250
        sb.append(this.ex);
17251
      }
17252
      first = false;
17253
      sb.append(")");
17254
      return sb.toString();
17255
    }
17256
 
17257
    public void validate() throws org.apache.thrift.TException {
17258
      // check for required fields
17259
    }
17260
 
17261
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17262
      try {
17263
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17264
      } catch (org.apache.thrift.TException te) {
17265
        throw new java.io.IOException(te);
17266
      }
17267
    }
17268
 
17269
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17270
      try {
17271
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17272
      } catch (org.apache.thrift.TException te) {
17273
        throw new java.io.IOException(te);
17274
      }
17275
    }
17276
 
17277
  }
17278
 
6548 amar.kumar 17279
  public static class scanForLostItem_args implements org.apache.thrift.TBase<scanForLostItem_args, scanForLostItem_args._Fields>, java.io.Serializable, Cloneable   {
17280
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_args");
17281
 
17282
    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);
17283
    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);
17284
 
17285
    private List<InventoryItem> lostItems; // required
17286
    private long vendorId; // required
17287
 
17288
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17289
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17290
      LOST_ITEMS((short)1, "lostItems"),
17291
      VENDOR_ID((short)2, "vendorId");
17292
 
17293
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17294
 
17295
      static {
17296
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17297
          byName.put(field.getFieldName(), field);
17298
        }
17299
      }
17300
 
17301
      /**
17302
       * Find the _Fields constant that matches fieldId, or null if its not found.
17303
       */
17304
      public static _Fields findByThriftId(int fieldId) {
17305
        switch(fieldId) {
17306
          case 1: // LOST_ITEMS
17307
            return LOST_ITEMS;
17308
          case 2: // VENDOR_ID
17309
            return VENDOR_ID;
17310
          default:
17311
            return null;
17312
        }
17313
      }
17314
 
17315
      /**
17316
       * Find the _Fields constant that matches fieldId, throwing an exception
17317
       * if it is not found.
17318
       */
17319
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17320
        _Fields fields = findByThriftId(fieldId);
17321
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17322
        return fields;
17323
      }
17324
 
17325
      /**
17326
       * Find the _Fields constant that matches name, or null if its not found.
17327
       */
17328
      public static _Fields findByName(String name) {
17329
        return byName.get(name);
17330
      }
17331
 
17332
      private final short _thriftId;
17333
      private final String _fieldName;
17334
 
17335
      _Fields(short thriftId, String fieldName) {
17336
        _thriftId = thriftId;
17337
        _fieldName = fieldName;
17338
      }
17339
 
17340
      public short getThriftFieldId() {
17341
        return _thriftId;
17342
      }
17343
 
17344
      public String getFieldName() {
17345
        return _fieldName;
17346
      }
17347
    }
17348
 
17349
    // isset id assignments
17350
    private static final int __VENDORID_ISSET_ID = 0;
17351
    private BitSet __isset_bit_vector = new BitSet(1);
17352
 
17353
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17354
    static {
17355
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17356
      tmpMap.put(_Fields.LOST_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("lostItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17357
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17358
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
17359
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17360
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17361
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17362
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_args.class, metaDataMap);
17363
    }
17364
 
17365
    public scanForLostItem_args() {
17366
    }
17367
 
17368
    public scanForLostItem_args(
17369
      List<InventoryItem> lostItems,
17370
      long vendorId)
17371
    {
17372
      this();
17373
      this.lostItems = lostItems;
17374
      this.vendorId = vendorId;
17375
      setVendorIdIsSet(true);
17376
    }
17377
 
17378
    /**
17379
     * Performs a deep copy on <i>other</i>.
17380
     */
17381
    public scanForLostItem_args(scanForLostItem_args other) {
17382
      __isset_bit_vector.clear();
17383
      __isset_bit_vector.or(other.__isset_bit_vector);
17384
      if (other.isSetLostItems()) {
17385
        List<InventoryItem> __this__lostItems = new ArrayList<InventoryItem>();
17386
        for (InventoryItem other_element : other.lostItems) {
17387
          __this__lostItems.add(new InventoryItem(other_element));
17388
        }
17389
        this.lostItems = __this__lostItems;
17390
      }
17391
      this.vendorId = other.vendorId;
17392
    }
17393
 
17394
    public scanForLostItem_args deepCopy() {
17395
      return new scanForLostItem_args(this);
17396
    }
17397
 
17398
    @Override
17399
    public void clear() {
17400
      this.lostItems = null;
17401
      setVendorIdIsSet(false);
17402
      this.vendorId = 0;
17403
    }
17404
 
17405
    public int getLostItemsSize() {
17406
      return (this.lostItems == null) ? 0 : this.lostItems.size();
17407
    }
17408
 
17409
    public java.util.Iterator<InventoryItem> getLostItemsIterator() {
17410
      return (this.lostItems == null) ? null : this.lostItems.iterator();
17411
    }
17412
 
17413
    public void addToLostItems(InventoryItem elem) {
17414
      if (this.lostItems == null) {
17415
        this.lostItems = new ArrayList<InventoryItem>();
17416
      }
17417
      this.lostItems.add(elem);
17418
    }
17419
 
17420
    public List<InventoryItem> getLostItems() {
17421
      return this.lostItems;
17422
    }
17423
 
17424
    public void setLostItems(List<InventoryItem> lostItems) {
17425
      this.lostItems = lostItems;
17426
    }
17427
 
17428
    public void unsetLostItems() {
17429
      this.lostItems = null;
17430
    }
17431
 
17432
    /** Returns true if field lostItems is set (has been assigned a value) and false otherwise */
17433
    public boolean isSetLostItems() {
17434
      return this.lostItems != null;
17435
    }
17436
 
17437
    public void setLostItemsIsSet(boolean value) {
17438
      if (!value) {
17439
        this.lostItems = null;
17440
      }
17441
    }
17442
 
17443
    public long getVendorId() {
17444
      return this.vendorId;
17445
    }
17446
 
17447
    public void setVendorId(long vendorId) {
17448
      this.vendorId = vendorId;
17449
      setVendorIdIsSet(true);
17450
    }
17451
 
17452
    public void unsetVendorId() {
17453
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17454
    }
17455
 
17456
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17457
    public boolean isSetVendorId() {
17458
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17459
    }
17460
 
17461
    public void setVendorIdIsSet(boolean value) {
17462
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17463
    }
17464
 
17465
    public void setFieldValue(_Fields field, Object value) {
17466
      switch (field) {
17467
      case LOST_ITEMS:
17468
        if (value == null) {
17469
          unsetLostItems();
17470
        } else {
17471
          setLostItems((List<InventoryItem>)value);
17472
        }
17473
        break;
17474
 
17475
      case VENDOR_ID:
17476
        if (value == null) {
17477
          unsetVendorId();
17478
        } else {
17479
          setVendorId((Long)value);
17480
        }
17481
        break;
17482
 
17483
      }
17484
    }
17485
 
17486
    public Object getFieldValue(_Fields field) {
17487
      switch (field) {
17488
      case LOST_ITEMS:
17489
        return getLostItems();
17490
 
17491
      case VENDOR_ID:
17492
        return Long.valueOf(getVendorId());
17493
 
17494
      }
17495
      throw new IllegalStateException();
17496
    }
17497
 
17498
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17499
    public boolean isSet(_Fields field) {
17500
      if (field == null) {
17501
        throw new IllegalArgumentException();
17502
      }
17503
 
17504
      switch (field) {
17505
      case LOST_ITEMS:
17506
        return isSetLostItems();
17507
      case VENDOR_ID:
17508
        return isSetVendorId();
17509
      }
17510
      throw new IllegalStateException();
17511
    }
17512
 
17513
    @Override
17514
    public boolean equals(Object that) {
17515
      if (that == null)
17516
        return false;
17517
      if (that instanceof scanForLostItem_args)
17518
        return this.equals((scanForLostItem_args)that);
17519
      return false;
17520
    }
17521
 
17522
    public boolean equals(scanForLostItem_args that) {
17523
      if (that == null)
17524
        return false;
17525
 
17526
      boolean this_present_lostItems = true && this.isSetLostItems();
17527
      boolean that_present_lostItems = true && that.isSetLostItems();
17528
      if (this_present_lostItems || that_present_lostItems) {
17529
        if (!(this_present_lostItems && that_present_lostItems))
17530
          return false;
17531
        if (!this.lostItems.equals(that.lostItems))
17532
          return false;
17533
      }
17534
 
17535
      boolean this_present_vendorId = true;
17536
      boolean that_present_vendorId = true;
17537
      if (this_present_vendorId || that_present_vendorId) {
17538
        if (!(this_present_vendorId && that_present_vendorId))
17539
          return false;
17540
        if (this.vendorId != that.vendorId)
17541
          return false;
17542
      }
17543
 
17544
      return true;
17545
    }
17546
 
17547
    @Override
17548
    public int hashCode() {
17549
      return 0;
17550
    }
17551
 
17552
    public int compareTo(scanForLostItem_args other) {
17553
      if (!getClass().equals(other.getClass())) {
17554
        return getClass().getName().compareTo(other.getClass().getName());
17555
      }
17556
 
17557
      int lastComparison = 0;
17558
      scanForLostItem_args typedOther = (scanForLostItem_args)other;
17559
 
17560
      lastComparison = Boolean.valueOf(isSetLostItems()).compareTo(typedOther.isSetLostItems());
17561
      if (lastComparison != 0) {
17562
        return lastComparison;
17563
      }
17564
      if (isSetLostItems()) {
17565
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lostItems, typedOther.lostItems);
17566
        if (lastComparison != 0) {
17567
          return lastComparison;
17568
        }
17569
      }
17570
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
17571
      if (lastComparison != 0) {
17572
        return lastComparison;
17573
      }
17574
      if (isSetVendorId()) {
17575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
17576
        if (lastComparison != 0) {
17577
          return lastComparison;
17578
        }
17579
      }
17580
      return 0;
17581
    }
17582
 
17583
    public _Fields fieldForId(int fieldId) {
17584
      return _Fields.findByThriftId(fieldId);
17585
    }
17586
 
17587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17588
      org.apache.thrift.protocol.TField field;
17589
      iprot.readStructBegin();
17590
      while (true)
17591
      {
17592
        field = iprot.readFieldBegin();
17593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17594
          break;
17595
        }
17596
        switch (field.id) {
17597
          case 1: // LOST_ITEMS
17598
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17599
              {
7210 amar.kumar 17600
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
17601
                this.lostItems = new ArrayList<InventoryItem>(_list40.size);
17602
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
6548 amar.kumar 17603
                {
7210 amar.kumar 17604
                  InventoryItem _elem42; // required
17605
                  _elem42 = new InventoryItem();
17606
                  _elem42.read(iprot);
17607
                  this.lostItems.add(_elem42);
6548 amar.kumar 17608
                }
17609
                iprot.readListEnd();
17610
              }
17611
            } else { 
17612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17613
            }
17614
            break;
17615
          case 2: // VENDOR_ID
17616
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17617
              this.vendorId = iprot.readI64();
17618
              setVendorIdIsSet(true);
17619
            } else { 
17620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17621
            }
17622
            break;
17623
          default:
17624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17625
        }
17626
        iprot.readFieldEnd();
17627
      }
17628
      iprot.readStructEnd();
17629
      validate();
17630
    }
17631
 
17632
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17633
      validate();
17634
 
17635
      oprot.writeStructBegin(STRUCT_DESC);
17636
      if (this.lostItems != null) {
17637
        oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
17638
        {
17639
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
7210 amar.kumar 17640
          for (InventoryItem _iter43 : this.lostItems)
6548 amar.kumar 17641
          {
7210 amar.kumar 17642
            _iter43.write(oprot);
6548 amar.kumar 17643
          }
17644
          oprot.writeListEnd();
17645
        }
17646
        oprot.writeFieldEnd();
17647
      }
17648
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
17649
      oprot.writeI64(this.vendorId);
17650
      oprot.writeFieldEnd();
17651
      oprot.writeFieldStop();
17652
      oprot.writeStructEnd();
17653
    }
17654
 
17655
    @Override
17656
    public String toString() {
17657
      StringBuilder sb = new StringBuilder("scanForLostItem_args(");
17658
      boolean first = true;
17659
 
17660
      sb.append("lostItems:");
17661
      if (this.lostItems == null) {
17662
        sb.append("null");
17663
      } else {
17664
        sb.append(this.lostItems);
17665
      }
17666
      first = false;
17667
      if (!first) sb.append(", ");
17668
      sb.append("vendorId:");
17669
      sb.append(this.vendorId);
17670
      first = false;
17671
      sb.append(")");
17672
      return sb.toString();
17673
    }
17674
 
17675
    public void validate() throws org.apache.thrift.TException {
17676
      // check for required fields
17677
    }
17678
 
17679
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17680
      try {
17681
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17682
      } catch (org.apache.thrift.TException te) {
17683
        throw new java.io.IOException(te);
17684
      }
17685
    }
17686
 
17687
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17688
      try {
17689
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17690
      } catch (org.apache.thrift.TException te) {
17691
        throw new java.io.IOException(te);
17692
      }
17693
    }
17694
 
17695
  }
17696
 
17697
  public static class scanForLostItem_result implements org.apache.thrift.TBase<scanForLostItem_result, scanForLostItem_result._Fields>, java.io.Serializable, Cloneable   {
17698
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_result");
17699
 
17700
    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);
17701
 
17702
    private WarehouseServiceException ex; // required
17703
 
17704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17705
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17706
      EX((short)1, "ex");
17707
 
17708
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17709
 
17710
      static {
17711
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17712
          byName.put(field.getFieldName(), field);
17713
        }
17714
      }
17715
 
17716
      /**
17717
       * Find the _Fields constant that matches fieldId, or null if its not found.
17718
       */
17719
      public static _Fields findByThriftId(int fieldId) {
17720
        switch(fieldId) {
17721
          case 1: // EX
17722
            return EX;
17723
          default:
17724
            return null;
17725
        }
17726
      }
17727
 
17728
      /**
17729
       * Find the _Fields constant that matches fieldId, throwing an exception
17730
       * if it is not found.
17731
       */
17732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17733
        _Fields fields = findByThriftId(fieldId);
17734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17735
        return fields;
17736
      }
17737
 
17738
      /**
17739
       * Find the _Fields constant that matches name, or null if its not found.
17740
       */
17741
      public static _Fields findByName(String name) {
17742
        return byName.get(name);
17743
      }
17744
 
17745
      private final short _thriftId;
17746
      private final String _fieldName;
17747
 
17748
      _Fields(short thriftId, String fieldName) {
17749
        _thriftId = thriftId;
17750
        _fieldName = fieldName;
17751
      }
17752
 
17753
      public short getThriftFieldId() {
17754
        return _thriftId;
17755
      }
17756
 
17757
      public String getFieldName() {
17758
        return _fieldName;
17759
      }
17760
    }
17761
 
17762
    // isset id assignments
17763
 
17764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17765
    static {
17766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17767
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17768
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_result.class, metaDataMap);
17771
    }
17772
 
17773
    public scanForLostItem_result() {
17774
    }
17775
 
17776
    public scanForLostItem_result(
17777
      WarehouseServiceException ex)
17778
    {
17779
      this();
17780
      this.ex = ex;
17781
    }
17782
 
17783
    /**
17784
     * Performs a deep copy on <i>other</i>.
17785
     */
17786
    public scanForLostItem_result(scanForLostItem_result other) {
17787
      if (other.isSetEx()) {
17788
        this.ex = new WarehouseServiceException(other.ex);
17789
      }
17790
    }
17791
 
17792
    public scanForLostItem_result deepCopy() {
17793
      return new scanForLostItem_result(this);
17794
    }
17795
 
17796
    @Override
17797
    public void clear() {
17798
      this.ex = null;
17799
    }
17800
 
17801
    public WarehouseServiceException getEx() {
17802
      return this.ex;
17803
    }
17804
 
17805
    public void setEx(WarehouseServiceException ex) {
17806
      this.ex = ex;
17807
    }
17808
 
17809
    public void unsetEx() {
17810
      this.ex = null;
17811
    }
17812
 
17813
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
17814
    public boolean isSetEx() {
17815
      return this.ex != null;
17816
    }
17817
 
17818
    public void setExIsSet(boolean value) {
17819
      if (!value) {
17820
        this.ex = null;
17821
      }
17822
    }
17823
 
17824
    public void setFieldValue(_Fields field, Object value) {
17825
      switch (field) {
17826
      case EX:
17827
        if (value == null) {
17828
          unsetEx();
17829
        } else {
17830
          setEx((WarehouseServiceException)value);
17831
        }
17832
        break;
17833
 
17834
      }
17835
    }
17836
 
17837
    public Object getFieldValue(_Fields field) {
17838
      switch (field) {
17839
      case EX:
17840
        return getEx();
17841
 
17842
      }
17843
      throw new IllegalStateException();
17844
    }
17845
 
17846
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17847
    public boolean isSet(_Fields field) {
17848
      if (field == null) {
17849
        throw new IllegalArgumentException();
17850
      }
17851
 
17852
      switch (field) {
17853
      case EX:
17854
        return isSetEx();
17855
      }
17856
      throw new IllegalStateException();
17857
    }
17858
 
17859
    @Override
17860
    public boolean equals(Object that) {
17861
      if (that == null)
17862
        return false;
17863
      if (that instanceof scanForLostItem_result)
17864
        return this.equals((scanForLostItem_result)that);
17865
      return false;
17866
    }
17867
 
17868
    public boolean equals(scanForLostItem_result that) {
17869
      if (that == null)
17870
        return false;
17871
 
17872
      boolean this_present_ex = true && this.isSetEx();
17873
      boolean that_present_ex = true && that.isSetEx();
17874
      if (this_present_ex || that_present_ex) {
17875
        if (!(this_present_ex && that_present_ex))
17876
          return false;
17877
        if (!this.ex.equals(that.ex))
17878
          return false;
17879
      }
17880
 
17881
      return true;
17882
    }
17883
 
17884
    @Override
17885
    public int hashCode() {
17886
      return 0;
17887
    }
17888
 
17889
    public int compareTo(scanForLostItem_result other) {
17890
      if (!getClass().equals(other.getClass())) {
17891
        return getClass().getName().compareTo(other.getClass().getName());
17892
      }
17893
 
17894
      int lastComparison = 0;
17895
      scanForLostItem_result typedOther = (scanForLostItem_result)other;
17896
 
17897
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
17898
      if (lastComparison != 0) {
17899
        return lastComparison;
17900
      }
17901
      if (isSetEx()) {
17902
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17903
        if (lastComparison != 0) {
17904
          return lastComparison;
17905
        }
17906
      }
17907
      return 0;
17908
    }
17909
 
17910
    public _Fields fieldForId(int fieldId) {
17911
      return _Fields.findByThriftId(fieldId);
17912
    }
17913
 
17914
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17915
      org.apache.thrift.protocol.TField field;
17916
      iprot.readStructBegin();
17917
      while (true)
17918
      {
17919
        field = iprot.readFieldBegin();
17920
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17921
          break;
17922
        }
17923
        switch (field.id) {
17924
          case 1: // EX
17925
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17926
              this.ex = new WarehouseServiceException();
17927
              this.ex.read(iprot);
17928
            } else { 
17929
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17930
            }
17931
            break;
17932
          default:
17933
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17934
        }
17935
        iprot.readFieldEnd();
17936
      }
17937
      iprot.readStructEnd();
17938
      validate();
17939
    }
17940
 
17941
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17942
      oprot.writeStructBegin(STRUCT_DESC);
17943
 
17944
      if (this.isSetEx()) {
17945
        oprot.writeFieldBegin(EX_FIELD_DESC);
17946
        this.ex.write(oprot);
17947
        oprot.writeFieldEnd();
17948
      }
17949
      oprot.writeFieldStop();
17950
      oprot.writeStructEnd();
17951
    }
17952
 
17953
    @Override
17954
    public String toString() {
17955
      StringBuilder sb = new StringBuilder("scanForLostItem_result(");
17956
      boolean first = true;
17957
 
17958
      sb.append("ex:");
17959
      if (this.ex == null) {
17960
        sb.append("null");
17961
      } else {
17962
        sb.append(this.ex);
17963
      }
17964
      first = false;
17965
      sb.append(")");
17966
      return sb.toString();
17967
    }
17968
 
17969
    public void validate() throws org.apache.thrift.TException {
17970
      // check for required fields
17971
    }
17972
 
17973
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17974
      try {
17975
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17976
      } catch (org.apache.thrift.TException te) {
17977
        throw new java.io.IOException(te);
17978
      }
17979
    }
17980
 
17981
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17982
      try {
17983
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17984
      } catch (org.apache.thrift.TException te) {
17985
        throw new java.io.IOException(te);
17986
      }
17987
    }
17988
 
17989
  }
17990
 
17991
  public static class getCurrentSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_args, getCurrentSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
17992
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_args");
17993
 
17994
 
17995
 
17996
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17997
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17998
;
17999
 
18000
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18001
 
18002
      static {
18003
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18004
          byName.put(field.getFieldName(), field);
18005
        }
18006
      }
18007
 
18008
      /**
18009
       * Find the _Fields constant that matches fieldId, or null if its not found.
18010
       */
18011
      public static _Fields findByThriftId(int fieldId) {
18012
        switch(fieldId) {
18013
          default:
18014
            return null;
18015
        }
18016
      }
18017
 
18018
      /**
18019
       * Find the _Fields constant that matches fieldId, throwing an exception
18020
       * if it is not found.
18021
       */
18022
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18023
        _Fields fields = findByThriftId(fieldId);
18024
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18025
        return fields;
18026
      }
18027
 
18028
      /**
18029
       * Find the _Fields constant that matches name, or null if its not found.
18030
       */
18031
      public static _Fields findByName(String name) {
18032
        return byName.get(name);
18033
      }
18034
 
18035
      private final short _thriftId;
18036
      private final String _fieldName;
18037
 
18038
      _Fields(short thriftId, String fieldName) {
18039
        _thriftId = thriftId;
18040
        _fieldName = fieldName;
18041
      }
18042
 
18043
      public short getThriftFieldId() {
18044
        return _thriftId;
18045
      }
18046
 
18047
      public String getFieldName() {
18048
        return _fieldName;
18049
      }
18050
    }
18051
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18052
    static {
18053
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18054
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18055
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_args.class, metaDataMap);
18056
    }
18057
 
18058
    public getCurrentSerializedInventoryByScans_args() {
18059
    }
18060
 
18061
    /**
18062
     * Performs a deep copy on <i>other</i>.
18063
     */
18064
    public getCurrentSerializedInventoryByScans_args(getCurrentSerializedInventoryByScans_args other) {
18065
    }
18066
 
18067
    public getCurrentSerializedInventoryByScans_args deepCopy() {
18068
      return new getCurrentSerializedInventoryByScans_args(this);
18069
    }
18070
 
18071
    @Override
18072
    public void clear() {
18073
    }
18074
 
18075
    public void setFieldValue(_Fields field, Object value) {
18076
      switch (field) {
18077
      }
18078
    }
18079
 
18080
    public Object getFieldValue(_Fields field) {
18081
      switch (field) {
18082
      }
18083
      throw new IllegalStateException();
18084
    }
18085
 
18086
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18087
    public boolean isSet(_Fields field) {
18088
      if (field == null) {
18089
        throw new IllegalArgumentException();
18090
      }
18091
 
18092
      switch (field) {
18093
      }
18094
      throw new IllegalStateException();
18095
    }
18096
 
18097
    @Override
18098
    public boolean equals(Object that) {
18099
      if (that == null)
18100
        return false;
18101
      if (that instanceof getCurrentSerializedInventoryByScans_args)
18102
        return this.equals((getCurrentSerializedInventoryByScans_args)that);
18103
      return false;
18104
    }
18105
 
18106
    public boolean equals(getCurrentSerializedInventoryByScans_args that) {
18107
      if (that == null)
18108
        return false;
18109
 
18110
      return true;
18111
    }
18112
 
18113
    @Override
18114
    public int hashCode() {
18115
      return 0;
18116
    }
18117
 
18118
    public int compareTo(getCurrentSerializedInventoryByScans_args other) {
18119
      if (!getClass().equals(other.getClass())) {
18120
        return getClass().getName().compareTo(other.getClass().getName());
18121
      }
18122
 
18123
      int lastComparison = 0;
18124
      getCurrentSerializedInventoryByScans_args typedOther = (getCurrentSerializedInventoryByScans_args)other;
18125
 
18126
      return 0;
18127
    }
18128
 
18129
    public _Fields fieldForId(int fieldId) {
18130
      return _Fields.findByThriftId(fieldId);
18131
    }
18132
 
18133
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18134
      org.apache.thrift.protocol.TField field;
18135
      iprot.readStructBegin();
18136
      while (true)
18137
      {
18138
        field = iprot.readFieldBegin();
18139
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18140
          break;
18141
        }
18142
        switch (field.id) {
18143
          default:
18144
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18145
        }
18146
        iprot.readFieldEnd();
18147
      }
18148
      iprot.readStructEnd();
18149
      validate();
18150
    }
18151
 
18152
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18153
      validate();
18154
 
18155
      oprot.writeStructBegin(STRUCT_DESC);
18156
      oprot.writeFieldStop();
18157
      oprot.writeStructEnd();
18158
    }
18159
 
18160
    @Override
18161
    public String toString() {
18162
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_args(");
18163
      boolean first = true;
18164
 
18165
      sb.append(")");
18166
      return sb.toString();
18167
    }
18168
 
18169
    public void validate() throws org.apache.thrift.TException {
18170
      // check for required fields
18171
    }
18172
 
18173
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18174
      try {
18175
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18176
      } catch (org.apache.thrift.TException te) {
18177
        throw new java.io.IOException(te);
18178
      }
18179
    }
18180
 
18181
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18182
      try {
18183
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18184
      } catch (org.apache.thrift.TException te) {
18185
        throw new java.io.IOException(te);
18186
      }
18187
    }
18188
 
18189
  }
18190
 
18191
  public static class getCurrentSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_result, getCurrentSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
18192
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_result");
18193
 
18194
    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);
18195
 
18196
    private List<InventoryAvailability> success; // required
18197
 
18198
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18199
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18200
      SUCCESS((short)0, "success");
18201
 
18202
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18203
 
18204
      static {
18205
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18206
          byName.put(field.getFieldName(), field);
18207
        }
18208
      }
18209
 
18210
      /**
18211
       * Find the _Fields constant that matches fieldId, or null if its not found.
18212
       */
18213
      public static _Fields findByThriftId(int fieldId) {
18214
        switch(fieldId) {
18215
          case 0: // SUCCESS
18216
            return SUCCESS;
18217
          default:
18218
            return null;
18219
        }
18220
      }
18221
 
18222
      /**
18223
       * Find the _Fields constant that matches fieldId, throwing an exception
18224
       * if it is not found.
18225
       */
18226
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18227
        _Fields fields = findByThriftId(fieldId);
18228
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18229
        return fields;
18230
      }
18231
 
18232
      /**
18233
       * Find the _Fields constant that matches name, or null if its not found.
18234
       */
18235
      public static _Fields findByName(String name) {
18236
        return byName.get(name);
18237
      }
18238
 
18239
      private final short _thriftId;
18240
      private final String _fieldName;
18241
 
18242
      _Fields(short thriftId, String fieldName) {
18243
        _thriftId = thriftId;
18244
        _fieldName = fieldName;
18245
      }
18246
 
18247
      public short getThriftFieldId() {
18248
        return _thriftId;
18249
      }
18250
 
18251
      public String getFieldName() {
18252
        return _fieldName;
18253
      }
18254
    }
18255
 
18256
    // isset id assignments
18257
 
18258
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18259
    static {
18260
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18261
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18262
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18263
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
18264
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18265
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_result.class, metaDataMap);
18266
    }
18267
 
18268
    public getCurrentSerializedInventoryByScans_result() {
18269
    }
18270
 
18271
    public getCurrentSerializedInventoryByScans_result(
18272
      List<InventoryAvailability> success)
18273
    {
18274
      this();
18275
      this.success = success;
18276
    }
18277
 
18278
    /**
18279
     * Performs a deep copy on <i>other</i>.
18280
     */
18281
    public getCurrentSerializedInventoryByScans_result(getCurrentSerializedInventoryByScans_result other) {
18282
      if (other.isSetSuccess()) {
18283
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
18284
        for (InventoryAvailability other_element : other.success) {
18285
          __this__success.add(new InventoryAvailability(other_element));
18286
        }
18287
        this.success = __this__success;
18288
      }
18289
    }
18290
 
18291
    public getCurrentSerializedInventoryByScans_result deepCopy() {
18292
      return new getCurrentSerializedInventoryByScans_result(this);
18293
    }
18294
 
18295
    @Override
18296
    public void clear() {
18297
      this.success = null;
18298
    }
18299
 
18300
    public int getSuccessSize() {
18301
      return (this.success == null) ? 0 : this.success.size();
18302
    }
18303
 
18304
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
18305
      return (this.success == null) ? null : this.success.iterator();
18306
    }
18307
 
18308
    public void addToSuccess(InventoryAvailability elem) {
18309
      if (this.success == null) {
18310
        this.success = new ArrayList<InventoryAvailability>();
18311
      }
18312
      this.success.add(elem);
18313
    }
18314
 
18315
    public List<InventoryAvailability> getSuccess() {
18316
      return this.success;
18317
    }
18318
 
18319
    public void setSuccess(List<InventoryAvailability> success) {
18320
      this.success = success;
18321
    }
18322
 
18323
    public void unsetSuccess() {
18324
      this.success = null;
18325
    }
18326
 
18327
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18328
    public boolean isSetSuccess() {
18329
      return this.success != null;
18330
    }
18331
 
18332
    public void setSuccessIsSet(boolean value) {
18333
      if (!value) {
18334
        this.success = null;
18335
      }
18336
    }
18337
 
18338
    public void setFieldValue(_Fields field, Object value) {
18339
      switch (field) {
18340
      case SUCCESS:
18341
        if (value == null) {
18342
          unsetSuccess();
18343
        } else {
18344
          setSuccess((List<InventoryAvailability>)value);
18345
        }
18346
        break;
18347
 
18348
      }
18349
    }
18350
 
18351
    public Object getFieldValue(_Fields field) {
18352
      switch (field) {
18353
      case SUCCESS:
18354
        return getSuccess();
18355
 
18356
      }
18357
      throw new IllegalStateException();
18358
    }
18359
 
18360
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18361
    public boolean isSet(_Fields field) {
18362
      if (field == null) {
18363
        throw new IllegalArgumentException();
18364
      }
18365
 
18366
      switch (field) {
18367
      case SUCCESS:
18368
        return isSetSuccess();
18369
      }
18370
      throw new IllegalStateException();
18371
    }
18372
 
18373
    @Override
18374
    public boolean equals(Object that) {
18375
      if (that == null)
18376
        return false;
18377
      if (that instanceof getCurrentSerializedInventoryByScans_result)
18378
        return this.equals((getCurrentSerializedInventoryByScans_result)that);
18379
      return false;
18380
    }
18381
 
18382
    public boolean equals(getCurrentSerializedInventoryByScans_result that) {
18383
      if (that == null)
18384
        return false;
18385
 
18386
      boolean this_present_success = true && this.isSetSuccess();
18387
      boolean that_present_success = true && that.isSetSuccess();
18388
      if (this_present_success || that_present_success) {
18389
        if (!(this_present_success && that_present_success))
18390
          return false;
18391
        if (!this.success.equals(that.success))
18392
          return false;
18393
      }
18394
 
18395
      return true;
18396
    }
18397
 
18398
    @Override
18399
    public int hashCode() {
18400
      return 0;
18401
    }
18402
 
18403
    public int compareTo(getCurrentSerializedInventoryByScans_result other) {
18404
      if (!getClass().equals(other.getClass())) {
18405
        return getClass().getName().compareTo(other.getClass().getName());
18406
      }
18407
 
18408
      int lastComparison = 0;
18409
      getCurrentSerializedInventoryByScans_result typedOther = (getCurrentSerializedInventoryByScans_result)other;
18410
 
18411
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18412
      if (lastComparison != 0) {
18413
        return lastComparison;
18414
      }
18415
      if (isSetSuccess()) {
18416
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18417
        if (lastComparison != 0) {
18418
          return lastComparison;
18419
        }
18420
      }
18421
      return 0;
18422
    }
18423
 
18424
    public _Fields fieldForId(int fieldId) {
18425
      return _Fields.findByThriftId(fieldId);
18426
    }
18427
 
18428
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18429
      org.apache.thrift.protocol.TField field;
18430
      iprot.readStructBegin();
18431
      while (true)
18432
      {
18433
        field = iprot.readFieldBegin();
18434
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18435
          break;
18436
        }
18437
        switch (field.id) {
18438
          case 0: // SUCCESS
18439
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18440
              {
7210 amar.kumar 18441
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
18442
                this.success = new ArrayList<InventoryAvailability>(_list44.size);
18443
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
6548 amar.kumar 18444
                {
7210 amar.kumar 18445
                  InventoryAvailability _elem46; // required
18446
                  _elem46 = new InventoryAvailability();
18447
                  _elem46.read(iprot);
18448
                  this.success.add(_elem46);
6548 amar.kumar 18449
                }
18450
                iprot.readListEnd();
18451
              }
18452
            } else { 
18453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18454
            }
18455
            break;
18456
          default:
18457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18458
        }
18459
        iprot.readFieldEnd();
18460
      }
18461
      iprot.readStructEnd();
18462
      validate();
18463
    }
18464
 
18465
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18466
      oprot.writeStructBegin(STRUCT_DESC);
18467
 
18468
      if (this.isSetSuccess()) {
18469
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18470
        {
18471
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 18472
          for (InventoryAvailability _iter47 : this.success)
6548 amar.kumar 18473
          {
7210 amar.kumar 18474
            _iter47.write(oprot);
6548 amar.kumar 18475
          }
18476
          oprot.writeListEnd();
18477
        }
18478
        oprot.writeFieldEnd();
18479
      }
18480
      oprot.writeFieldStop();
18481
      oprot.writeStructEnd();
18482
    }
18483
 
18484
    @Override
18485
    public String toString() {
18486
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_result(");
18487
      boolean first = true;
18488
 
18489
      sb.append("success:");
18490
      if (this.success == null) {
18491
        sb.append("null");
18492
      } else {
18493
        sb.append(this.success);
18494
      }
18495
      first = false;
18496
      sb.append(")");
18497
      return sb.toString();
18498
    }
18499
 
18500
    public void validate() throws org.apache.thrift.TException {
18501
      // check for required fields
18502
    }
18503
 
18504
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18505
      try {
18506
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18507
      } catch (org.apache.thrift.TException te) {
18508
        throw new java.io.IOException(te);
18509
      }
18510
    }
18511
 
18512
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18513
      try {
18514
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18515
      } catch (org.apache.thrift.TException te) {
18516
        throw new java.io.IOException(te);
18517
      }
18518
    }
18519
 
18520
  }
18521
 
6630 amar.kumar 18522
  public static class getCurrentNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_args, getCurrentNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
18523
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_args");
18524
 
18525
 
18526
 
18527
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18528
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18529
;
18530
 
18531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18532
 
18533
      static {
18534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18535
          byName.put(field.getFieldName(), field);
18536
        }
18537
      }
18538
 
18539
      /**
18540
       * Find the _Fields constant that matches fieldId, or null if its not found.
18541
       */
18542
      public static _Fields findByThriftId(int fieldId) {
18543
        switch(fieldId) {
18544
          default:
18545
            return null;
18546
        }
18547
      }
18548
 
18549
      /**
18550
       * Find the _Fields constant that matches fieldId, throwing an exception
18551
       * if it is not found.
18552
       */
18553
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18554
        _Fields fields = findByThriftId(fieldId);
18555
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18556
        return fields;
18557
      }
18558
 
18559
      /**
18560
       * Find the _Fields constant that matches name, or null if its not found.
18561
       */
18562
      public static _Fields findByName(String name) {
18563
        return byName.get(name);
18564
      }
18565
 
18566
      private final short _thriftId;
18567
      private final String _fieldName;
18568
 
18569
      _Fields(short thriftId, String fieldName) {
18570
        _thriftId = thriftId;
18571
        _fieldName = fieldName;
18572
      }
18573
 
18574
      public short getThriftFieldId() {
18575
        return _thriftId;
18576
      }
18577
 
18578
      public String getFieldName() {
18579
        return _fieldName;
18580
      }
18581
    }
18582
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18583
    static {
18584
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18585
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18586
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_args.class, metaDataMap);
18587
    }
18588
 
18589
    public getCurrentNonSerializedInventoryByScans_args() {
18590
    }
18591
 
18592
    /**
18593
     * Performs a deep copy on <i>other</i>.
18594
     */
18595
    public getCurrentNonSerializedInventoryByScans_args(getCurrentNonSerializedInventoryByScans_args other) {
18596
    }
18597
 
18598
    public getCurrentNonSerializedInventoryByScans_args deepCopy() {
18599
      return new getCurrentNonSerializedInventoryByScans_args(this);
18600
    }
18601
 
18602
    @Override
18603
    public void clear() {
18604
    }
18605
 
18606
    public void setFieldValue(_Fields field, Object value) {
18607
      switch (field) {
18608
      }
18609
    }
18610
 
18611
    public Object getFieldValue(_Fields field) {
18612
      switch (field) {
18613
      }
18614
      throw new IllegalStateException();
18615
    }
18616
 
18617
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18618
    public boolean isSet(_Fields field) {
18619
      if (field == null) {
18620
        throw new IllegalArgumentException();
18621
      }
18622
 
18623
      switch (field) {
18624
      }
18625
      throw new IllegalStateException();
18626
    }
18627
 
18628
    @Override
18629
    public boolean equals(Object that) {
18630
      if (that == null)
18631
        return false;
18632
      if (that instanceof getCurrentNonSerializedInventoryByScans_args)
18633
        return this.equals((getCurrentNonSerializedInventoryByScans_args)that);
18634
      return false;
18635
    }
18636
 
18637
    public boolean equals(getCurrentNonSerializedInventoryByScans_args that) {
18638
      if (that == null)
18639
        return false;
18640
 
18641
      return true;
18642
    }
18643
 
18644
    @Override
18645
    public int hashCode() {
18646
      return 0;
18647
    }
18648
 
18649
    public int compareTo(getCurrentNonSerializedInventoryByScans_args other) {
18650
      if (!getClass().equals(other.getClass())) {
18651
        return getClass().getName().compareTo(other.getClass().getName());
18652
      }
18653
 
18654
      int lastComparison = 0;
18655
      getCurrentNonSerializedInventoryByScans_args typedOther = (getCurrentNonSerializedInventoryByScans_args)other;
18656
 
18657
      return 0;
18658
    }
18659
 
18660
    public _Fields fieldForId(int fieldId) {
18661
      return _Fields.findByThriftId(fieldId);
18662
    }
18663
 
18664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18665
      org.apache.thrift.protocol.TField field;
18666
      iprot.readStructBegin();
18667
      while (true)
18668
      {
18669
        field = iprot.readFieldBegin();
18670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18671
          break;
18672
        }
18673
        switch (field.id) {
18674
          default:
18675
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18676
        }
18677
        iprot.readFieldEnd();
18678
      }
18679
      iprot.readStructEnd();
18680
      validate();
18681
    }
18682
 
18683
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18684
      validate();
18685
 
18686
      oprot.writeStructBegin(STRUCT_DESC);
18687
      oprot.writeFieldStop();
18688
      oprot.writeStructEnd();
18689
    }
18690
 
18691
    @Override
18692
    public String toString() {
18693
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_args(");
18694
      boolean first = true;
18695
 
18696
      sb.append(")");
18697
      return sb.toString();
18698
    }
18699
 
18700
    public void validate() throws org.apache.thrift.TException {
18701
      // check for required fields
18702
    }
18703
 
18704
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18705
      try {
18706
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18707
      } catch (org.apache.thrift.TException te) {
18708
        throw new java.io.IOException(te);
18709
      }
18710
    }
18711
 
18712
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18713
      try {
18714
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18715
      } catch (org.apache.thrift.TException te) {
18716
        throw new java.io.IOException(te);
18717
      }
18718
    }
18719
 
18720
  }
18721
 
18722
  public static class getCurrentNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_result, getCurrentNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
18723
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_result");
18724
 
18725
    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);
18726
 
18727
    private List<InventoryAvailability> success; // required
18728
 
18729
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18730
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18731
      SUCCESS((short)0, "success");
18732
 
18733
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18734
 
18735
      static {
18736
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18737
          byName.put(field.getFieldName(), field);
18738
        }
18739
      }
18740
 
18741
      /**
18742
       * Find the _Fields constant that matches fieldId, or null if its not found.
18743
       */
18744
      public static _Fields findByThriftId(int fieldId) {
18745
        switch(fieldId) {
18746
          case 0: // SUCCESS
18747
            return SUCCESS;
18748
          default:
18749
            return null;
18750
        }
18751
      }
18752
 
18753
      /**
18754
       * Find the _Fields constant that matches fieldId, throwing an exception
18755
       * if it is not found.
18756
       */
18757
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18758
        _Fields fields = findByThriftId(fieldId);
18759
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18760
        return fields;
18761
      }
18762
 
18763
      /**
18764
       * Find the _Fields constant that matches name, or null if its not found.
18765
       */
18766
      public static _Fields findByName(String name) {
18767
        return byName.get(name);
18768
      }
18769
 
18770
      private final short _thriftId;
18771
      private final String _fieldName;
18772
 
18773
      _Fields(short thriftId, String fieldName) {
18774
        _thriftId = thriftId;
18775
        _fieldName = fieldName;
18776
      }
18777
 
18778
      public short getThriftFieldId() {
18779
        return _thriftId;
18780
      }
18781
 
18782
      public String getFieldName() {
18783
        return _fieldName;
18784
      }
18785
    }
18786
 
18787
    // isset id assignments
18788
 
18789
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18790
    static {
18791
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18792
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18793
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18794
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
18795
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18796
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_result.class, metaDataMap);
18797
    }
18798
 
18799
    public getCurrentNonSerializedInventoryByScans_result() {
18800
    }
18801
 
18802
    public getCurrentNonSerializedInventoryByScans_result(
18803
      List<InventoryAvailability> success)
18804
    {
18805
      this();
18806
      this.success = success;
18807
    }
18808
 
18809
    /**
18810
     * Performs a deep copy on <i>other</i>.
18811
     */
18812
    public getCurrentNonSerializedInventoryByScans_result(getCurrentNonSerializedInventoryByScans_result other) {
18813
      if (other.isSetSuccess()) {
18814
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
18815
        for (InventoryAvailability other_element : other.success) {
18816
          __this__success.add(new InventoryAvailability(other_element));
18817
        }
18818
        this.success = __this__success;
18819
      }
18820
    }
18821
 
18822
    public getCurrentNonSerializedInventoryByScans_result deepCopy() {
18823
      return new getCurrentNonSerializedInventoryByScans_result(this);
18824
    }
18825
 
18826
    @Override
18827
    public void clear() {
18828
      this.success = null;
18829
    }
18830
 
18831
    public int getSuccessSize() {
18832
      return (this.success == null) ? 0 : this.success.size();
18833
    }
18834
 
18835
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
18836
      return (this.success == null) ? null : this.success.iterator();
18837
    }
18838
 
18839
    public void addToSuccess(InventoryAvailability elem) {
18840
      if (this.success == null) {
18841
        this.success = new ArrayList<InventoryAvailability>();
18842
      }
18843
      this.success.add(elem);
18844
    }
18845
 
18846
    public List<InventoryAvailability> getSuccess() {
18847
      return this.success;
18848
    }
18849
 
18850
    public void setSuccess(List<InventoryAvailability> success) {
18851
      this.success = success;
18852
    }
18853
 
18854
    public void unsetSuccess() {
18855
      this.success = null;
18856
    }
18857
 
18858
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18859
    public boolean isSetSuccess() {
18860
      return this.success != null;
18861
    }
18862
 
18863
    public void setSuccessIsSet(boolean value) {
18864
      if (!value) {
18865
        this.success = null;
18866
      }
18867
    }
18868
 
18869
    public void setFieldValue(_Fields field, Object value) {
18870
      switch (field) {
18871
      case SUCCESS:
18872
        if (value == null) {
18873
          unsetSuccess();
18874
        } else {
18875
          setSuccess((List<InventoryAvailability>)value);
18876
        }
18877
        break;
18878
 
18879
      }
18880
    }
18881
 
18882
    public Object getFieldValue(_Fields field) {
18883
      switch (field) {
18884
      case SUCCESS:
18885
        return getSuccess();
18886
 
18887
      }
18888
      throw new IllegalStateException();
18889
    }
18890
 
18891
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18892
    public boolean isSet(_Fields field) {
18893
      if (field == null) {
18894
        throw new IllegalArgumentException();
18895
      }
18896
 
18897
      switch (field) {
18898
      case SUCCESS:
18899
        return isSetSuccess();
18900
      }
18901
      throw new IllegalStateException();
18902
    }
18903
 
18904
    @Override
18905
    public boolean equals(Object that) {
18906
      if (that == null)
18907
        return false;
18908
      if (that instanceof getCurrentNonSerializedInventoryByScans_result)
18909
        return this.equals((getCurrentNonSerializedInventoryByScans_result)that);
18910
      return false;
18911
    }
18912
 
18913
    public boolean equals(getCurrentNonSerializedInventoryByScans_result that) {
18914
      if (that == null)
18915
        return false;
18916
 
18917
      boolean this_present_success = true && this.isSetSuccess();
18918
      boolean that_present_success = true && that.isSetSuccess();
18919
      if (this_present_success || that_present_success) {
18920
        if (!(this_present_success && that_present_success))
18921
          return false;
18922
        if (!this.success.equals(that.success))
18923
          return false;
18924
      }
18925
 
18926
      return true;
18927
    }
18928
 
18929
    @Override
18930
    public int hashCode() {
18931
      return 0;
18932
    }
18933
 
18934
    public int compareTo(getCurrentNonSerializedInventoryByScans_result other) {
18935
      if (!getClass().equals(other.getClass())) {
18936
        return getClass().getName().compareTo(other.getClass().getName());
18937
      }
18938
 
18939
      int lastComparison = 0;
18940
      getCurrentNonSerializedInventoryByScans_result typedOther = (getCurrentNonSerializedInventoryByScans_result)other;
18941
 
18942
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18943
      if (lastComparison != 0) {
18944
        return lastComparison;
18945
      }
18946
      if (isSetSuccess()) {
18947
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18948
        if (lastComparison != 0) {
18949
          return lastComparison;
18950
        }
18951
      }
18952
      return 0;
18953
    }
18954
 
18955
    public _Fields fieldForId(int fieldId) {
18956
      return _Fields.findByThriftId(fieldId);
18957
    }
18958
 
18959
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18960
      org.apache.thrift.protocol.TField field;
18961
      iprot.readStructBegin();
18962
      while (true)
18963
      {
18964
        field = iprot.readFieldBegin();
18965
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18966
          break;
18967
        }
18968
        switch (field.id) {
18969
          case 0: // SUCCESS
18970
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18971
              {
7210 amar.kumar 18972
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
18973
                this.success = new ArrayList<InventoryAvailability>(_list48.size);
18974
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
6630 amar.kumar 18975
                {
7210 amar.kumar 18976
                  InventoryAvailability _elem50; // required
18977
                  _elem50 = new InventoryAvailability();
18978
                  _elem50.read(iprot);
18979
                  this.success.add(_elem50);
6630 amar.kumar 18980
                }
18981
                iprot.readListEnd();
18982
              }
18983
            } else { 
18984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18985
            }
18986
            break;
18987
          default:
18988
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18989
        }
18990
        iprot.readFieldEnd();
18991
      }
18992
      iprot.readStructEnd();
18993
      validate();
18994
    }
18995
 
18996
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18997
      oprot.writeStructBegin(STRUCT_DESC);
18998
 
18999
      if (this.isSetSuccess()) {
19000
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19001
        {
19002
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 19003
          for (InventoryAvailability _iter51 : this.success)
6630 amar.kumar 19004
          {
7210 amar.kumar 19005
            _iter51.write(oprot);
6630 amar.kumar 19006
          }
19007
          oprot.writeListEnd();
19008
        }
19009
        oprot.writeFieldEnd();
19010
      }
19011
      oprot.writeFieldStop();
19012
      oprot.writeStructEnd();
19013
    }
19014
 
19015
    @Override
19016
    public String toString() {
19017
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_result(");
19018
      boolean first = true;
19019
 
19020
      sb.append("success:");
19021
      if (this.success == null) {
19022
        sb.append("null");
19023
      } else {
19024
        sb.append(this.success);
19025
      }
19026
      first = false;
19027
      sb.append(")");
19028
      return sb.toString();
19029
    }
19030
 
19031
    public void validate() throws org.apache.thrift.TException {
19032
      // check for required fields
19033
    }
19034
 
19035
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19036
      try {
19037
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19038
      } catch (org.apache.thrift.TException te) {
19039
        throw new java.io.IOException(te);
19040
      }
19041
    }
19042
 
19043
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19044
      try {
19045
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19046
      } catch (org.apache.thrift.TException te) {
19047
        throw new java.io.IOException(te);
19048
      }
19049
    }
19050
 
19051
  }
19052
 
6762 amar.kumar 19053
  public static class getHistoricSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_args, getHistoricSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
19054
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_args");
19055
 
19056
    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);
19057
 
19058
    private long date; // required
19059
 
19060
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19061
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19062
      DATE((short)1, "date");
19063
 
19064
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19065
 
19066
      static {
19067
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19068
          byName.put(field.getFieldName(), field);
19069
        }
19070
      }
19071
 
19072
      /**
19073
       * Find the _Fields constant that matches fieldId, or null if its not found.
19074
       */
19075
      public static _Fields findByThriftId(int fieldId) {
19076
        switch(fieldId) {
19077
          case 1: // DATE
19078
            return DATE;
19079
          default:
19080
            return null;
19081
        }
19082
      }
19083
 
19084
      /**
19085
       * Find the _Fields constant that matches fieldId, throwing an exception
19086
       * if it is not found.
19087
       */
19088
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19089
        _Fields fields = findByThriftId(fieldId);
19090
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19091
        return fields;
19092
      }
19093
 
19094
      /**
19095
       * Find the _Fields constant that matches name, or null if its not found.
19096
       */
19097
      public static _Fields findByName(String name) {
19098
        return byName.get(name);
19099
      }
19100
 
19101
      private final short _thriftId;
19102
      private final String _fieldName;
19103
 
19104
      _Fields(short thriftId, String fieldName) {
19105
        _thriftId = thriftId;
19106
        _fieldName = fieldName;
19107
      }
19108
 
19109
      public short getThriftFieldId() {
19110
        return _thriftId;
19111
      }
19112
 
19113
      public String getFieldName() {
19114
        return _fieldName;
19115
      }
19116
    }
19117
 
19118
    // isset id assignments
19119
    private static final int __DATE_ISSET_ID = 0;
19120
    private BitSet __isset_bit_vector = new BitSet(1);
19121
 
19122
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19123
    static {
19124
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19125
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19126
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19127
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19128
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_args.class, metaDataMap);
19129
    }
19130
 
19131
    public getHistoricSerializedInventoryByScans_args() {
19132
    }
19133
 
19134
    public getHistoricSerializedInventoryByScans_args(
19135
      long date)
19136
    {
19137
      this();
19138
      this.date = date;
19139
      setDateIsSet(true);
19140
    }
19141
 
19142
    /**
19143
     * Performs a deep copy on <i>other</i>.
19144
     */
19145
    public getHistoricSerializedInventoryByScans_args(getHistoricSerializedInventoryByScans_args other) {
19146
      __isset_bit_vector.clear();
19147
      __isset_bit_vector.or(other.__isset_bit_vector);
19148
      this.date = other.date;
19149
    }
19150
 
19151
    public getHistoricSerializedInventoryByScans_args deepCopy() {
19152
      return new getHistoricSerializedInventoryByScans_args(this);
19153
    }
19154
 
19155
    @Override
19156
    public void clear() {
19157
      setDateIsSet(false);
19158
      this.date = 0;
19159
    }
19160
 
19161
    public long getDate() {
19162
      return this.date;
19163
    }
19164
 
19165
    public void setDate(long date) {
19166
      this.date = date;
19167
      setDateIsSet(true);
19168
    }
19169
 
19170
    public void unsetDate() {
19171
      __isset_bit_vector.clear(__DATE_ISSET_ID);
19172
    }
19173
 
19174
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
19175
    public boolean isSetDate() {
19176
      return __isset_bit_vector.get(__DATE_ISSET_ID);
19177
    }
19178
 
19179
    public void setDateIsSet(boolean value) {
19180
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
19181
    }
19182
 
19183
    public void setFieldValue(_Fields field, Object value) {
19184
      switch (field) {
19185
      case DATE:
19186
        if (value == null) {
19187
          unsetDate();
19188
        } else {
19189
          setDate((Long)value);
19190
        }
19191
        break;
19192
 
19193
      }
19194
    }
19195
 
19196
    public Object getFieldValue(_Fields field) {
19197
      switch (field) {
19198
      case DATE:
19199
        return Long.valueOf(getDate());
19200
 
19201
      }
19202
      throw new IllegalStateException();
19203
    }
19204
 
19205
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19206
    public boolean isSet(_Fields field) {
19207
      if (field == null) {
19208
        throw new IllegalArgumentException();
19209
      }
19210
 
19211
      switch (field) {
19212
      case DATE:
19213
        return isSetDate();
19214
      }
19215
      throw new IllegalStateException();
19216
    }
19217
 
19218
    @Override
19219
    public boolean equals(Object that) {
19220
      if (that == null)
19221
        return false;
19222
      if (that instanceof getHistoricSerializedInventoryByScans_args)
19223
        return this.equals((getHistoricSerializedInventoryByScans_args)that);
19224
      return false;
19225
    }
19226
 
19227
    public boolean equals(getHistoricSerializedInventoryByScans_args that) {
19228
      if (that == null)
19229
        return false;
19230
 
19231
      boolean this_present_date = true;
19232
      boolean that_present_date = true;
19233
      if (this_present_date || that_present_date) {
19234
        if (!(this_present_date && that_present_date))
19235
          return false;
19236
        if (this.date != that.date)
19237
          return false;
19238
      }
19239
 
19240
      return true;
19241
    }
19242
 
19243
    @Override
19244
    public int hashCode() {
19245
      return 0;
19246
    }
19247
 
19248
    public int compareTo(getHistoricSerializedInventoryByScans_args other) {
19249
      if (!getClass().equals(other.getClass())) {
19250
        return getClass().getName().compareTo(other.getClass().getName());
19251
      }
19252
 
19253
      int lastComparison = 0;
19254
      getHistoricSerializedInventoryByScans_args typedOther = (getHistoricSerializedInventoryByScans_args)other;
19255
 
19256
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
19257
      if (lastComparison != 0) {
19258
        return lastComparison;
19259
      }
19260
      if (isSetDate()) {
19261
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
19262
        if (lastComparison != 0) {
19263
          return lastComparison;
19264
        }
19265
      }
19266
      return 0;
19267
    }
19268
 
19269
    public _Fields fieldForId(int fieldId) {
19270
      return _Fields.findByThriftId(fieldId);
19271
    }
19272
 
19273
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19274
      org.apache.thrift.protocol.TField field;
19275
      iprot.readStructBegin();
19276
      while (true)
19277
      {
19278
        field = iprot.readFieldBegin();
19279
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19280
          break;
19281
        }
19282
        switch (field.id) {
19283
          case 1: // DATE
19284
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19285
              this.date = iprot.readI64();
19286
              setDateIsSet(true);
19287
            } else { 
19288
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19289
            }
19290
            break;
19291
          default:
19292
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19293
        }
19294
        iprot.readFieldEnd();
19295
      }
19296
      iprot.readStructEnd();
19297
      validate();
19298
    }
19299
 
19300
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19301
      validate();
19302
 
19303
      oprot.writeStructBegin(STRUCT_DESC);
19304
      oprot.writeFieldBegin(DATE_FIELD_DESC);
19305
      oprot.writeI64(this.date);
19306
      oprot.writeFieldEnd();
19307
      oprot.writeFieldStop();
19308
      oprot.writeStructEnd();
19309
    }
19310
 
19311
    @Override
19312
    public String toString() {
19313
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_args(");
19314
      boolean first = true;
19315
 
19316
      sb.append("date:");
19317
      sb.append(this.date);
19318
      first = false;
19319
      sb.append(")");
19320
      return sb.toString();
19321
    }
19322
 
19323
    public void validate() throws org.apache.thrift.TException {
19324
      // check for required fields
19325
    }
19326
 
19327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19328
      try {
19329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19330
      } catch (org.apache.thrift.TException te) {
19331
        throw new java.io.IOException(te);
19332
      }
19333
    }
19334
 
19335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19336
      try {
19337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19338
      } catch (org.apache.thrift.TException te) {
19339
        throw new java.io.IOException(te);
19340
      }
19341
    }
19342
 
19343
  }
19344
 
19345
  public static class getHistoricSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_result, getHistoricSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
19346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_result");
19347
 
19348
    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);
19349
 
19350
    private List<InventoryAvailability> success; // required
19351
 
19352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19353
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19354
      SUCCESS((short)0, "success");
19355
 
19356
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19357
 
19358
      static {
19359
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19360
          byName.put(field.getFieldName(), field);
19361
        }
19362
      }
19363
 
19364
      /**
19365
       * Find the _Fields constant that matches fieldId, or null if its not found.
19366
       */
19367
      public static _Fields findByThriftId(int fieldId) {
19368
        switch(fieldId) {
19369
          case 0: // SUCCESS
19370
            return SUCCESS;
19371
          default:
19372
            return null;
19373
        }
19374
      }
19375
 
19376
      /**
19377
       * Find the _Fields constant that matches fieldId, throwing an exception
19378
       * if it is not found.
19379
       */
19380
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19381
        _Fields fields = findByThriftId(fieldId);
19382
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19383
        return fields;
19384
      }
19385
 
19386
      /**
19387
       * Find the _Fields constant that matches name, or null if its not found.
19388
       */
19389
      public static _Fields findByName(String name) {
19390
        return byName.get(name);
19391
      }
19392
 
19393
      private final short _thriftId;
19394
      private final String _fieldName;
19395
 
19396
      _Fields(short thriftId, String fieldName) {
19397
        _thriftId = thriftId;
19398
        _fieldName = fieldName;
19399
      }
19400
 
19401
      public short getThriftFieldId() {
19402
        return _thriftId;
19403
      }
19404
 
19405
      public String getFieldName() {
19406
        return _fieldName;
19407
      }
19408
    }
19409
 
19410
    // isset id assignments
19411
 
19412
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19413
    static {
19414
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19415
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19416
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19417
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
19418
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19419
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_result.class, metaDataMap);
19420
    }
19421
 
19422
    public getHistoricSerializedInventoryByScans_result() {
19423
    }
19424
 
19425
    public getHistoricSerializedInventoryByScans_result(
19426
      List<InventoryAvailability> success)
19427
    {
19428
      this();
19429
      this.success = success;
19430
    }
19431
 
19432
    /**
19433
     * Performs a deep copy on <i>other</i>.
19434
     */
19435
    public getHistoricSerializedInventoryByScans_result(getHistoricSerializedInventoryByScans_result other) {
19436
      if (other.isSetSuccess()) {
19437
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
19438
        for (InventoryAvailability other_element : other.success) {
19439
          __this__success.add(new InventoryAvailability(other_element));
19440
        }
19441
        this.success = __this__success;
19442
      }
19443
    }
19444
 
19445
    public getHistoricSerializedInventoryByScans_result deepCopy() {
19446
      return new getHistoricSerializedInventoryByScans_result(this);
19447
    }
19448
 
19449
    @Override
19450
    public void clear() {
19451
      this.success = null;
19452
    }
19453
 
19454
    public int getSuccessSize() {
19455
      return (this.success == null) ? 0 : this.success.size();
19456
    }
19457
 
19458
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
19459
      return (this.success == null) ? null : this.success.iterator();
19460
    }
19461
 
19462
    public void addToSuccess(InventoryAvailability elem) {
19463
      if (this.success == null) {
19464
        this.success = new ArrayList<InventoryAvailability>();
19465
      }
19466
      this.success.add(elem);
19467
    }
19468
 
19469
    public List<InventoryAvailability> getSuccess() {
19470
      return this.success;
19471
    }
19472
 
19473
    public void setSuccess(List<InventoryAvailability> success) {
19474
      this.success = success;
19475
    }
19476
 
19477
    public void unsetSuccess() {
19478
      this.success = null;
19479
    }
19480
 
19481
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19482
    public boolean isSetSuccess() {
19483
      return this.success != null;
19484
    }
19485
 
19486
    public void setSuccessIsSet(boolean value) {
19487
      if (!value) {
19488
        this.success = null;
19489
      }
19490
    }
19491
 
19492
    public void setFieldValue(_Fields field, Object value) {
19493
      switch (field) {
19494
      case SUCCESS:
19495
        if (value == null) {
19496
          unsetSuccess();
19497
        } else {
19498
          setSuccess((List<InventoryAvailability>)value);
19499
        }
19500
        break;
19501
 
19502
      }
19503
    }
19504
 
19505
    public Object getFieldValue(_Fields field) {
19506
      switch (field) {
19507
      case SUCCESS:
19508
        return getSuccess();
19509
 
19510
      }
19511
      throw new IllegalStateException();
19512
    }
19513
 
19514
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19515
    public boolean isSet(_Fields field) {
19516
      if (field == null) {
19517
        throw new IllegalArgumentException();
19518
      }
19519
 
19520
      switch (field) {
19521
      case SUCCESS:
19522
        return isSetSuccess();
19523
      }
19524
      throw new IllegalStateException();
19525
    }
19526
 
19527
    @Override
19528
    public boolean equals(Object that) {
19529
      if (that == null)
19530
        return false;
19531
      if (that instanceof getHistoricSerializedInventoryByScans_result)
19532
        return this.equals((getHistoricSerializedInventoryByScans_result)that);
19533
      return false;
19534
    }
19535
 
19536
    public boolean equals(getHistoricSerializedInventoryByScans_result that) {
19537
      if (that == null)
19538
        return false;
19539
 
19540
      boolean this_present_success = true && this.isSetSuccess();
19541
      boolean that_present_success = true && that.isSetSuccess();
19542
      if (this_present_success || that_present_success) {
19543
        if (!(this_present_success && that_present_success))
19544
          return false;
19545
        if (!this.success.equals(that.success))
19546
          return false;
19547
      }
19548
 
19549
      return true;
19550
    }
19551
 
19552
    @Override
19553
    public int hashCode() {
19554
      return 0;
19555
    }
19556
 
19557
    public int compareTo(getHistoricSerializedInventoryByScans_result other) {
19558
      if (!getClass().equals(other.getClass())) {
19559
        return getClass().getName().compareTo(other.getClass().getName());
19560
      }
19561
 
19562
      int lastComparison = 0;
19563
      getHistoricSerializedInventoryByScans_result typedOther = (getHistoricSerializedInventoryByScans_result)other;
19564
 
19565
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19566
      if (lastComparison != 0) {
19567
        return lastComparison;
19568
      }
19569
      if (isSetSuccess()) {
19570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19571
        if (lastComparison != 0) {
19572
          return lastComparison;
19573
        }
19574
      }
19575
      return 0;
19576
    }
19577
 
19578
    public _Fields fieldForId(int fieldId) {
19579
      return _Fields.findByThriftId(fieldId);
19580
    }
19581
 
19582
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19583
      org.apache.thrift.protocol.TField field;
19584
      iprot.readStructBegin();
19585
      while (true)
19586
      {
19587
        field = iprot.readFieldBegin();
19588
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19589
          break;
19590
        }
19591
        switch (field.id) {
19592
          case 0: // SUCCESS
19593
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19594
              {
7210 amar.kumar 19595
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
19596
                this.success = new ArrayList<InventoryAvailability>(_list52.size);
19597
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
6762 amar.kumar 19598
                {
7210 amar.kumar 19599
                  InventoryAvailability _elem54; // required
19600
                  _elem54 = new InventoryAvailability();
19601
                  _elem54.read(iprot);
19602
                  this.success.add(_elem54);
6762 amar.kumar 19603
                }
19604
                iprot.readListEnd();
19605
              }
19606
            } else { 
19607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19608
            }
19609
            break;
19610
          default:
19611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19612
        }
19613
        iprot.readFieldEnd();
19614
      }
19615
      iprot.readStructEnd();
19616
      validate();
19617
    }
19618
 
19619
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19620
      oprot.writeStructBegin(STRUCT_DESC);
19621
 
19622
      if (this.isSetSuccess()) {
19623
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19624
        {
19625
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 19626
          for (InventoryAvailability _iter55 : this.success)
6762 amar.kumar 19627
          {
7210 amar.kumar 19628
            _iter55.write(oprot);
6762 amar.kumar 19629
          }
19630
          oprot.writeListEnd();
19631
        }
19632
        oprot.writeFieldEnd();
19633
      }
19634
      oprot.writeFieldStop();
19635
      oprot.writeStructEnd();
19636
    }
19637
 
19638
    @Override
19639
    public String toString() {
19640
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_result(");
19641
      boolean first = true;
19642
 
19643
      sb.append("success:");
19644
      if (this.success == null) {
19645
        sb.append("null");
19646
      } else {
19647
        sb.append(this.success);
19648
      }
19649
      first = false;
19650
      sb.append(")");
19651
      return sb.toString();
19652
    }
19653
 
19654
    public void validate() throws org.apache.thrift.TException {
19655
      // check for required fields
19656
    }
19657
 
19658
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19659
      try {
19660
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19661
      } catch (org.apache.thrift.TException te) {
19662
        throw new java.io.IOException(te);
19663
      }
19664
    }
19665
 
19666
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19667
      try {
19668
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19669
      } catch (org.apache.thrift.TException te) {
19670
        throw new java.io.IOException(te);
19671
      }
19672
    }
19673
 
19674
  }
19675
 
19676
  public static class getHistoricNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_args, getHistoricNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
19677
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_args");
19678
 
19679
    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);
19680
 
19681
    private long date; // required
19682
 
19683
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19684
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19685
      DATE((short)1, "date");
19686
 
19687
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19688
 
19689
      static {
19690
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19691
          byName.put(field.getFieldName(), field);
19692
        }
19693
      }
19694
 
19695
      /**
19696
       * Find the _Fields constant that matches fieldId, or null if its not found.
19697
       */
19698
      public static _Fields findByThriftId(int fieldId) {
19699
        switch(fieldId) {
19700
          case 1: // DATE
19701
            return DATE;
19702
          default:
19703
            return null;
19704
        }
19705
      }
19706
 
19707
      /**
19708
       * Find the _Fields constant that matches fieldId, throwing an exception
19709
       * if it is not found.
19710
       */
19711
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19712
        _Fields fields = findByThriftId(fieldId);
19713
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19714
        return fields;
19715
      }
19716
 
19717
      /**
19718
       * Find the _Fields constant that matches name, or null if its not found.
19719
       */
19720
      public static _Fields findByName(String name) {
19721
        return byName.get(name);
19722
      }
19723
 
19724
      private final short _thriftId;
19725
      private final String _fieldName;
19726
 
19727
      _Fields(short thriftId, String fieldName) {
19728
        _thriftId = thriftId;
19729
        _fieldName = fieldName;
19730
      }
19731
 
19732
      public short getThriftFieldId() {
19733
        return _thriftId;
19734
      }
19735
 
19736
      public String getFieldName() {
19737
        return _fieldName;
19738
      }
19739
    }
19740
 
19741
    // isset id assignments
19742
    private static final int __DATE_ISSET_ID = 0;
19743
    private BitSet __isset_bit_vector = new BitSet(1);
19744
 
19745
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19746
    static {
19747
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19748
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19749
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19750
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19751
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_args.class, metaDataMap);
19752
    }
19753
 
19754
    public getHistoricNonSerializedInventoryByScans_args() {
19755
    }
19756
 
19757
    public getHistoricNonSerializedInventoryByScans_args(
19758
      long date)
19759
    {
19760
      this();
19761
      this.date = date;
19762
      setDateIsSet(true);
19763
    }
19764
 
19765
    /**
19766
     * Performs a deep copy on <i>other</i>.
19767
     */
19768
    public getHistoricNonSerializedInventoryByScans_args(getHistoricNonSerializedInventoryByScans_args other) {
19769
      __isset_bit_vector.clear();
19770
      __isset_bit_vector.or(other.__isset_bit_vector);
19771
      this.date = other.date;
19772
    }
19773
 
19774
    public getHistoricNonSerializedInventoryByScans_args deepCopy() {
19775
      return new getHistoricNonSerializedInventoryByScans_args(this);
19776
    }
19777
 
19778
    @Override
19779
    public void clear() {
19780
      setDateIsSet(false);
19781
      this.date = 0;
19782
    }
19783
 
19784
    public long getDate() {
19785
      return this.date;
19786
    }
19787
 
19788
    public void setDate(long date) {
19789
      this.date = date;
19790
      setDateIsSet(true);
19791
    }
19792
 
19793
    public void unsetDate() {
19794
      __isset_bit_vector.clear(__DATE_ISSET_ID);
19795
    }
19796
 
19797
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
19798
    public boolean isSetDate() {
19799
      return __isset_bit_vector.get(__DATE_ISSET_ID);
19800
    }
19801
 
19802
    public void setDateIsSet(boolean value) {
19803
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
19804
    }
19805
 
19806
    public void setFieldValue(_Fields field, Object value) {
19807
      switch (field) {
19808
      case DATE:
19809
        if (value == null) {
19810
          unsetDate();
19811
        } else {
19812
          setDate((Long)value);
19813
        }
19814
        break;
19815
 
19816
      }
19817
    }
19818
 
19819
    public Object getFieldValue(_Fields field) {
19820
      switch (field) {
19821
      case DATE:
19822
        return Long.valueOf(getDate());
19823
 
19824
      }
19825
      throw new IllegalStateException();
19826
    }
19827
 
19828
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19829
    public boolean isSet(_Fields field) {
19830
      if (field == null) {
19831
        throw new IllegalArgumentException();
19832
      }
19833
 
19834
      switch (field) {
19835
      case DATE:
19836
        return isSetDate();
19837
      }
19838
      throw new IllegalStateException();
19839
    }
19840
 
19841
    @Override
19842
    public boolean equals(Object that) {
19843
      if (that == null)
19844
        return false;
19845
      if (that instanceof getHistoricNonSerializedInventoryByScans_args)
19846
        return this.equals((getHistoricNonSerializedInventoryByScans_args)that);
19847
      return false;
19848
    }
19849
 
19850
    public boolean equals(getHistoricNonSerializedInventoryByScans_args that) {
19851
      if (that == null)
19852
        return false;
19853
 
19854
      boolean this_present_date = true;
19855
      boolean that_present_date = true;
19856
      if (this_present_date || that_present_date) {
19857
        if (!(this_present_date && that_present_date))
19858
          return false;
19859
        if (this.date != that.date)
19860
          return false;
19861
      }
19862
 
19863
      return true;
19864
    }
19865
 
19866
    @Override
19867
    public int hashCode() {
19868
      return 0;
19869
    }
19870
 
19871
    public int compareTo(getHistoricNonSerializedInventoryByScans_args other) {
19872
      if (!getClass().equals(other.getClass())) {
19873
        return getClass().getName().compareTo(other.getClass().getName());
19874
      }
19875
 
19876
      int lastComparison = 0;
19877
      getHistoricNonSerializedInventoryByScans_args typedOther = (getHistoricNonSerializedInventoryByScans_args)other;
19878
 
19879
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
19880
      if (lastComparison != 0) {
19881
        return lastComparison;
19882
      }
19883
      if (isSetDate()) {
19884
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
19885
        if (lastComparison != 0) {
19886
          return lastComparison;
19887
        }
19888
      }
19889
      return 0;
19890
    }
19891
 
19892
    public _Fields fieldForId(int fieldId) {
19893
      return _Fields.findByThriftId(fieldId);
19894
    }
19895
 
19896
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19897
      org.apache.thrift.protocol.TField field;
19898
      iprot.readStructBegin();
19899
      while (true)
19900
      {
19901
        field = iprot.readFieldBegin();
19902
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19903
          break;
19904
        }
19905
        switch (field.id) {
19906
          case 1: // DATE
19907
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19908
              this.date = iprot.readI64();
19909
              setDateIsSet(true);
19910
            } else { 
19911
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19912
            }
19913
            break;
19914
          default:
19915
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19916
        }
19917
        iprot.readFieldEnd();
19918
      }
19919
      iprot.readStructEnd();
19920
      validate();
19921
    }
19922
 
19923
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19924
      validate();
19925
 
19926
      oprot.writeStructBegin(STRUCT_DESC);
19927
      oprot.writeFieldBegin(DATE_FIELD_DESC);
19928
      oprot.writeI64(this.date);
19929
      oprot.writeFieldEnd();
19930
      oprot.writeFieldStop();
19931
      oprot.writeStructEnd();
19932
    }
19933
 
19934
    @Override
19935
    public String toString() {
19936
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_args(");
19937
      boolean first = true;
19938
 
19939
      sb.append("date:");
19940
      sb.append(this.date);
19941
      first = false;
19942
      sb.append(")");
19943
      return sb.toString();
19944
    }
19945
 
19946
    public void validate() throws org.apache.thrift.TException {
19947
      // check for required fields
19948
    }
19949
 
19950
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19951
      try {
19952
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19953
      } catch (org.apache.thrift.TException te) {
19954
        throw new java.io.IOException(te);
19955
      }
19956
    }
19957
 
19958
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19959
      try {
19960
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19961
        __isset_bit_vector = new BitSet(1);
19962
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19963
      } catch (org.apache.thrift.TException te) {
19964
        throw new java.io.IOException(te);
19965
      }
19966
    }
19967
 
19968
  }
19969
 
19970
  public static class getHistoricNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_result, getHistoricNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
19971
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_result");
19972
 
19973
    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);
19974
 
19975
    private List<InventoryAvailability> success; // required
19976
 
19977
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19978
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19979
      SUCCESS((short)0, "success");
19980
 
19981
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19982
 
19983
      static {
19984
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19985
          byName.put(field.getFieldName(), field);
19986
        }
19987
      }
19988
 
19989
      /**
19990
       * Find the _Fields constant that matches fieldId, or null if its not found.
19991
       */
19992
      public static _Fields findByThriftId(int fieldId) {
19993
        switch(fieldId) {
19994
          case 0: // SUCCESS
19995
            return SUCCESS;
19996
          default:
19997
            return null;
19998
        }
19999
      }
20000
 
20001
      /**
20002
       * Find the _Fields constant that matches fieldId, throwing an exception
20003
       * if it is not found.
20004
       */
20005
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20006
        _Fields fields = findByThriftId(fieldId);
20007
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20008
        return fields;
20009
      }
20010
 
20011
      /**
20012
       * Find the _Fields constant that matches name, or null if its not found.
20013
       */
20014
      public static _Fields findByName(String name) {
20015
        return byName.get(name);
20016
      }
20017
 
20018
      private final short _thriftId;
20019
      private final String _fieldName;
20020
 
20021
      _Fields(short thriftId, String fieldName) {
20022
        _thriftId = thriftId;
20023
        _fieldName = fieldName;
20024
      }
20025
 
20026
      public short getThriftFieldId() {
20027
        return _thriftId;
20028
      }
20029
 
20030
      public String getFieldName() {
20031
        return _fieldName;
20032
      }
20033
    }
20034
 
20035
    // isset id assignments
20036
 
20037
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20038
    static {
20039
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20040
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20041
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20042
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
20043
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20044
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_result.class, metaDataMap);
20045
    }
20046
 
20047
    public getHistoricNonSerializedInventoryByScans_result() {
20048
    }
20049
 
20050
    public getHistoricNonSerializedInventoryByScans_result(
20051
      List<InventoryAvailability> success)
20052
    {
20053
      this();
20054
      this.success = success;
20055
    }
20056
 
20057
    /**
20058
     * Performs a deep copy on <i>other</i>.
20059
     */
20060
    public getHistoricNonSerializedInventoryByScans_result(getHistoricNonSerializedInventoryByScans_result other) {
20061
      if (other.isSetSuccess()) {
20062
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
20063
        for (InventoryAvailability other_element : other.success) {
20064
          __this__success.add(new InventoryAvailability(other_element));
20065
        }
20066
        this.success = __this__success;
20067
      }
20068
    }
20069
 
20070
    public getHistoricNonSerializedInventoryByScans_result deepCopy() {
20071
      return new getHistoricNonSerializedInventoryByScans_result(this);
20072
    }
20073
 
20074
    @Override
20075
    public void clear() {
20076
      this.success = null;
20077
    }
20078
 
20079
    public int getSuccessSize() {
20080
      return (this.success == null) ? 0 : this.success.size();
20081
    }
20082
 
20083
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
20084
      return (this.success == null) ? null : this.success.iterator();
20085
    }
20086
 
20087
    public void addToSuccess(InventoryAvailability elem) {
20088
      if (this.success == null) {
20089
        this.success = new ArrayList<InventoryAvailability>();
20090
      }
20091
      this.success.add(elem);
20092
    }
20093
 
20094
    public List<InventoryAvailability> getSuccess() {
20095
      return this.success;
20096
    }
20097
 
20098
    public void setSuccess(List<InventoryAvailability> success) {
20099
      this.success = success;
20100
    }
20101
 
20102
    public void unsetSuccess() {
20103
      this.success = null;
20104
    }
20105
 
20106
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20107
    public boolean isSetSuccess() {
20108
      return this.success != null;
20109
    }
20110
 
20111
    public void setSuccessIsSet(boolean value) {
20112
      if (!value) {
20113
        this.success = null;
20114
      }
20115
    }
20116
 
20117
    public void setFieldValue(_Fields field, Object value) {
20118
      switch (field) {
20119
      case SUCCESS:
20120
        if (value == null) {
20121
          unsetSuccess();
20122
        } else {
20123
          setSuccess((List<InventoryAvailability>)value);
20124
        }
20125
        break;
20126
 
20127
      }
20128
    }
20129
 
20130
    public Object getFieldValue(_Fields field) {
20131
      switch (field) {
20132
      case SUCCESS:
20133
        return getSuccess();
20134
 
20135
      }
20136
      throw new IllegalStateException();
20137
    }
20138
 
20139
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20140
    public boolean isSet(_Fields field) {
20141
      if (field == null) {
20142
        throw new IllegalArgumentException();
20143
      }
20144
 
20145
      switch (field) {
20146
      case SUCCESS:
20147
        return isSetSuccess();
20148
      }
20149
      throw new IllegalStateException();
20150
    }
20151
 
20152
    @Override
20153
    public boolean equals(Object that) {
20154
      if (that == null)
20155
        return false;
20156
      if (that instanceof getHistoricNonSerializedInventoryByScans_result)
20157
        return this.equals((getHistoricNonSerializedInventoryByScans_result)that);
20158
      return false;
20159
    }
20160
 
20161
    public boolean equals(getHistoricNonSerializedInventoryByScans_result that) {
20162
      if (that == null)
20163
        return false;
20164
 
20165
      boolean this_present_success = true && this.isSetSuccess();
20166
      boolean that_present_success = true && that.isSetSuccess();
20167
      if (this_present_success || that_present_success) {
20168
        if (!(this_present_success && that_present_success))
20169
          return false;
20170
        if (!this.success.equals(that.success))
20171
          return false;
20172
      }
20173
 
20174
      return true;
20175
    }
20176
 
20177
    @Override
20178
    public int hashCode() {
20179
      return 0;
20180
    }
20181
 
20182
    public int compareTo(getHistoricNonSerializedInventoryByScans_result other) {
20183
      if (!getClass().equals(other.getClass())) {
20184
        return getClass().getName().compareTo(other.getClass().getName());
20185
      }
20186
 
20187
      int lastComparison = 0;
20188
      getHistoricNonSerializedInventoryByScans_result typedOther = (getHistoricNonSerializedInventoryByScans_result)other;
20189
 
20190
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20191
      if (lastComparison != 0) {
20192
        return lastComparison;
20193
      }
20194
      if (isSetSuccess()) {
20195
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20196
        if (lastComparison != 0) {
20197
          return lastComparison;
20198
        }
20199
      }
20200
      return 0;
20201
    }
20202
 
20203
    public _Fields fieldForId(int fieldId) {
20204
      return _Fields.findByThriftId(fieldId);
20205
    }
20206
 
20207
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20208
      org.apache.thrift.protocol.TField field;
20209
      iprot.readStructBegin();
20210
      while (true)
20211
      {
20212
        field = iprot.readFieldBegin();
20213
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20214
          break;
20215
        }
20216
        switch (field.id) {
20217
          case 0: // SUCCESS
20218
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20219
              {
7210 amar.kumar 20220
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
20221
                this.success = new ArrayList<InventoryAvailability>(_list56.size);
20222
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
6762 amar.kumar 20223
                {
7210 amar.kumar 20224
                  InventoryAvailability _elem58; // required
20225
                  _elem58 = new InventoryAvailability();
20226
                  _elem58.read(iprot);
20227
                  this.success.add(_elem58);
6762 amar.kumar 20228
                }
20229
                iprot.readListEnd();
20230
              }
20231
            } else { 
20232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20233
            }
20234
            break;
20235
          default:
20236
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20237
        }
20238
        iprot.readFieldEnd();
20239
      }
20240
      iprot.readStructEnd();
20241
      validate();
20242
    }
20243
 
20244
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20245
      oprot.writeStructBegin(STRUCT_DESC);
20246
 
20247
      if (this.isSetSuccess()) {
20248
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20249
        {
20250
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 20251
          for (InventoryAvailability _iter59 : this.success)
6762 amar.kumar 20252
          {
7210 amar.kumar 20253
            _iter59.write(oprot);
6762 amar.kumar 20254
          }
20255
          oprot.writeListEnd();
20256
        }
20257
        oprot.writeFieldEnd();
20258
      }
20259
      oprot.writeFieldStop();
20260
      oprot.writeStructEnd();
20261
    }
20262
 
20263
    @Override
20264
    public String toString() {
20265
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_result(");
20266
      boolean first = true;
20267
 
20268
      sb.append("success:");
20269
      if (this.success == null) {
20270
        sb.append("null");
20271
      } else {
20272
        sb.append(this.success);
20273
      }
20274
      first = false;
20275
      sb.append(")");
20276
      return sb.toString();
20277
    }
20278
 
20279
    public void validate() throws org.apache.thrift.TException {
20280
      // check for required fields
20281
    }
20282
 
20283
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20284
      try {
20285
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20286
      } catch (org.apache.thrift.TException te) {
20287
        throw new java.io.IOException(te);
20288
      }
20289
    }
20290
 
20291
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20292
      try {
20293
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20294
      } catch (org.apache.thrift.TException te) {
20295
        throw new java.io.IOException(te);
20296
      }
20297
    }
20298
 
20299
  }
20300
 
20301
  public static class scanForOursExternalSale_args implements org.apache.thrift.TBase<scanForOursExternalSale_args, scanForOursExternalSale_args._Fields>, java.io.Serializable, Cloneable   {
20302
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_args");
20303
 
20304
    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);
20305
    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);
20306
    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);
20307
    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);
20308
    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);
20309
    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);
20310
    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);
20311
 
20312
    private long itemId; // required
20313
    private String serialNumber; // required
20314
    private String itemNumber; // required
20315
    private String invoiceNumber; // required
20316
    private long warehouseId; // required
20317
    private double unitPrice; // required
20318
    private long orderId; // required
20319
 
20320
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20321
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20322
      ITEM_ID((short)1, "itemId"),
20323
      SERIAL_NUMBER((short)2, "serialNumber"),
20324
      ITEM_NUMBER((short)3, "itemNumber"),
20325
      INVOICE_NUMBER((short)4, "invoiceNumber"),
20326
      WAREHOUSE_ID((short)5, "warehouseId"),
20327
      UNIT_PRICE((short)6, "unitPrice"),
20328
      ORDER_ID((short)7, "orderId");
20329
 
20330
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20331
 
20332
      static {
20333
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20334
          byName.put(field.getFieldName(), field);
20335
        }
20336
      }
20337
 
20338
      /**
20339
       * Find the _Fields constant that matches fieldId, or null if its not found.
20340
       */
20341
      public static _Fields findByThriftId(int fieldId) {
20342
        switch(fieldId) {
20343
          case 1: // ITEM_ID
20344
            return ITEM_ID;
20345
          case 2: // SERIAL_NUMBER
20346
            return SERIAL_NUMBER;
20347
          case 3: // ITEM_NUMBER
20348
            return ITEM_NUMBER;
20349
          case 4: // INVOICE_NUMBER
20350
            return INVOICE_NUMBER;
20351
          case 5: // WAREHOUSE_ID
20352
            return WAREHOUSE_ID;
20353
          case 6: // UNIT_PRICE
20354
            return UNIT_PRICE;
20355
          case 7: // ORDER_ID
20356
            return ORDER_ID;
20357
          default:
20358
            return null;
20359
        }
20360
      }
20361
 
20362
      /**
20363
       * Find the _Fields constant that matches fieldId, throwing an exception
20364
       * if it is not found.
20365
       */
20366
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20367
        _Fields fields = findByThriftId(fieldId);
20368
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20369
        return fields;
20370
      }
20371
 
20372
      /**
20373
       * Find the _Fields constant that matches name, or null if its not found.
20374
       */
20375
      public static _Fields findByName(String name) {
20376
        return byName.get(name);
20377
      }
20378
 
20379
      private final short _thriftId;
20380
      private final String _fieldName;
20381
 
20382
      _Fields(short thriftId, String fieldName) {
20383
        _thriftId = thriftId;
20384
        _fieldName = fieldName;
20385
      }
20386
 
20387
      public short getThriftFieldId() {
20388
        return _thriftId;
20389
      }
20390
 
20391
      public String getFieldName() {
20392
        return _fieldName;
20393
      }
20394
    }
20395
 
20396
    // isset id assignments
20397
    private static final int __ITEMID_ISSET_ID = 0;
20398
    private static final int __WAREHOUSEID_ISSET_ID = 1;
20399
    private static final int __UNITPRICE_ISSET_ID = 2;
20400
    private static final int __ORDERID_ISSET_ID = 3;
20401
    private BitSet __isset_bit_vector = new BitSet(4);
20402
 
20403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20404
    static {
20405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20406
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20407
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20408
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20409
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20410
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20411
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20412
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20413
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20414
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20415
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20416
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20417
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
20418
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20419
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20420
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20421
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_args.class, metaDataMap);
20422
    }
20423
 
20424
    public scanForOursExternalSale_args() {
20425
    }
20426
 
20427
    public scanForOursExternalSale_args(
20428
      long itemId,
20429
      String serialNumber,
20430
      String itemNumber,
20431
      String invoiceNumber,
20432
      long warehouseId,
20433
      double unitPrice,
20434
      long orderId)
20435
    {
20436
      this();
20437
      this.itemId = itemId;
20438
      setItemIdIsSet(true);
20439
      this.serialNumber = serialNumber;
20440
      this.itemNumber = itemNumber;
20441
      this.invoiceNumber = invoiceNumber;
20442
      this.warehouseId = warehouseId;
20443
      setWarehouseIdIsSet(true);
20444
      this.unitPrice = unitPrice;
20445
      setUnitPriceIsSet(true);
20446
      this.orderId = orderId;
20447
      setOrderIdIsSet(true);
20448
    }
20449
 
20450
    /**
20451
     * Performs a deep copy on <i>other</i>.
20452
     */
20453
    public scanForOursExternalSale_args(scanForOursExternalSale_args other) {
20454
      __isset_bit_vector.clear();
20455
      __isset_bit_vector.or(other.__isset_bit_vector);
20456
      this.itemId = other.itemId;
20457
      if (other.isSetSerialNumber()) {
20458
        this.serialNumber = other.serialNumber;
20459
      }
20460
      if (other.isSetItemNumber()) {
20461
        this.itemNumber = other.itemNumber;
20462
      }
20463
      if (other.isSetInvoiceNumber()) {
20464
        this.invoiceNumber = other.invoiceNumber;
20465
      }
20466
      this.warehouseId = other.warehouseId;
20467
      this.unitPrice = other.unitPrice;
20468
      this.orderId = other.orderId;
20469
    }
20470
 
20471
    public scanForOursExternalSale_args deepCopy() {
20472
      return new scanForOursExternalSale_args(this);
20473
    }
20474
 
20475
    @Override
20476
    public void clear() {
20477
      setItemIdIsSet(false);
20478
      this.itemId = 0;
20479
      this.serialNumber = null;
20480
      this.itemNumber = null;
20481
      this.invoiceNumber = null;
20482
      setWarehouseIdIsSet(false);
20483
      this.warehouseId = 0;
20484
      setUnitPriceIsSet(false);
20485
      this.unitPrice = 0.0;
20486
      setOrderIdIsSet(false);
20487
      this.orderId = 0;
20488
    }
20489
 
20490
    public long getItemId() {
20491
      return this.itemId;
20492
    }
20493
 
20494
    public void setItemId(long itemId) {
20495
      this.itemId = itemId;
20496
      setItemIdIsSet(true);
20497
    }
20498
 
20499
    public void unsetItemId() {
20500
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
20501
    }
20502
 
20503
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
20504
    public boolean isSetItemId() {
20505
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
20506
    }
20507
 
20508
    public void setItemIdIsSet(boolean value) {
20509
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
20510
    }
20511
 
20512
    public String getSerialNumber() {
20513
      return this.serialNumber;
20514
    }
20515
 
20516
    public void setSerialNumber(String serialNumber) {
20517
      this.serialNumber = serialNumber;
20518
    }
20519
 
20520
    public void unsetSerialNumber() {
20521
      this.serialNumber = null;
20522
    }
20523
 
20524
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
20525
    public boolean isSetSerialNumber() {
20526
      return this.serialNumber != null;
20527
    }
20528
 
20529
    public void setSerialNumberIsSet(boolean value) {
20530
      if (!value) {
20531
        this.serialNumber = null;
20532
      }
20533
    }
20534
 
20535
    public String getItemNumber() {
20536
      return this.itemNumber;
20537
    }
20538
 
20539
    public void setItemNumber(String itemNumber) {
20540
      this.itemNumber = itemNumber;
20541
    }
20542
 
20543
    public void unsetItemNumber() {
20544
      this.itemNumber = null;
20545
    }
20546
 
20547
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
20548
    public boolean isSetItemNumber() {
20549
      return this.itemNumber != null;
20550
    }
20551
 
20552
    public void setItemNumberIsSet(boolean value) {
20553
      if (!value) {
20554
        this.itemNumber = null;
20555
      }
20556
    }
20557
 
20558
    public String getInvoiceNumber() {
20559
      return this.invoiceNumber;
20560
    }
20561
 
20562
    public void setInvoiceNumber(String invoiceNumber) {
20563
      this.invoiceNumber = invoiceNumber;
20564
    }
20565
 
20566
    public void unsetInvoiceNumber() {
20567
      this.invoiceNumber = null;
20568
    }
20569
 
20570
    /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
20571
    public boolean isSetInvoiceNumber() {
20572
      return this.invoiceNumber != null;
20573
    }
20574
 
20575
    public void setInvoiceNumberIsSet(boolean value) {
20576
      if (!value) {
20577
        this.invoiceNumber = null;
20578
      }
20579
    }
20580
 
20581
    public long getWarehouseId() {
20582
      return this.warehouseId;
20583
    }
20584
 
20585
    public void setWarehouseId(long warehouseId) {
20586
      this.warehouseId = warehouseId;
20587
      setWarehouseIdIsSet(true);
20588
    }
20589
 
20590
    public void unsetWarehouseId() {
20591
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
20592
    }
20593
 
20594
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
20595
    public boolean isSetWarehouseId() {
20596
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
20597
    }
20598
 
20599
    public void setWarehouseIdIsSet(boolean value) {
20600
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
20601
    }
20602
 
20603
    public double getUnitPrice() {
20604
      return this.unitPrice;
20605
    }
20606
 
20607
    public void setUnitPrice(double unitPrice) {
20608
      this.unitPrice = unitPrice;
20609
      setUnitPriceIsSet(true);
20610
    }
20611
 
20612
    public void unsetUnitPrice() {
20613
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
20614
    }
20615
 
20616
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
20617
    public boolean isSetUnitPrice() {
20618
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
20619
    }
20620
 
20621
    public void setUnitPriceIsSet(boolean value) {
20622
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
20623
    }
20624
 
20625
    public long getOrderId() {
20626
      return this.orderId;
20627
    }
20628
 
20629
    public void setOrderId(long orderId) {
20630
      this.orderId = orderId;
20631
      setOrderIdIsSet(true);
20632
    }
20633
 
20634
    public void unsetOrderId() {
20635
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
20636
    }
20637
 
20638
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
20639
    public boolean isSetOrderId() {
20640
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
20641
    }
20642
 
20643
    public void setOrderIdIsSet(boolean value) {
20644
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
20645
    }
20646
 
20647
    public void setFieldValue(_Fields field, Object value) {
20648
      switch (field) {
20649
      case ITEM_ID:
20650
        if (value == null) {
20651
          unsetItemId();
20652
        } else {
20653
          setItemId((Long)value);
20654
        }
20655
        break;
20656
 
20657
      case SERIAL_NUMBER:
20658
        if (value == null) {
20659
          unsetSerialNumber();
20660
        } else {
20661
          setSerialNumber((String)value);
20662
        }
20663
        break;
20664
 
20665
      case ITEM_NUMBER:
20666
        if (value == null) {
20667
          unsetItemNumber();
20668
        } else {
20669
          setItemNumber((String)value);
20670
        }
20671
        break;
20672
 
20673
      case INVOICE_NUMBER:
20674
        if (value == null) {
20675
          unsetInvoiceNumber();
20676
        } else {
20677
          setInvoiceNumber((String)value);
20678
        }
20679
        break;
20680
 
20681
      case WAREHOUSE_ID:
20682
        if (value == null) {
20683
          unsetWarehouseId();
20684
        } else {
20685
          setWarehouseId((Long)value);
20686
        }
20687
        break;
20688
 
20689
      case UNIT_PRICE:
20690
        if (value == null) {
20691
          unsetUnitPrice();
20692
        } else {
20693
          setUnitPrice((Double)value);
20694
        }
20695
        break;
20696
 
20697
      case ORDER_ID:
20698
        if (value == null) {
20699
          unsetOrderId();
20700
        } else {
20701
          setOrderId((Long)value);
20702
        }
20703
        break;
20704
 
20705
      }
20706
    }
20707
 
20708
    public Object getFieldValue(_Fields field) {
20709
      switch (field) {
20710
      case ITEM_ID:
20711
        return Long.valueOf(getItemId());
20712
 
20713
      case SERIAL_NUMBER:
20714
        return getSerialNumber();
20715
 
20716
      case ITEM_NUMBER:
20717
        return getItemNumber();
20718
 
20719
      case INVOICE_NUMBER:
20720
        return getInvoiceNumber();
20721
 
20722
      case WAREHOUSE_ID:
20723
        return Long.valueOf(getWarehouseId());
20724
 
20725
      case UNIT_PRICE:
20726
        return Double.valueOf(getUnitPrice());
20727
 
20728
      case ORDER_ID:
20729
        return Long.valueOf(getOrderId());
20730
 
20731
      }
20732
      throw new IllegalStateException();
20733
    }
20734
 
20735
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20736
    public boolean isSet(_Fields field) {
20737
      if (field == null) {
20738
        throw new IllegalArgumentException();
20739
      }
20740
 
20741
      switch (field) {
20742
      case ITEM_ID:
20743
        return isSetItemId();
20744
      case SERIAL_NUMBER:
20745
        return isSetSerialNumber();
20746
      case ITEM_NUMBER:
20747
        return isSetItemNumber();
20748
      case INVOICE_NUMBER:
20749
        return isSetInvoiceNumber();
20750
      case WAREHOUSE_ID:
20751
        return isSetWarehouseId();
20752
      case UNIT_PRICE:
20753
        return isSetUnitPrice();
20754
      case ORDER_ID:
20755
        return isSetOrderId();
20756
      }
20757
      throw new IllegalStateException();
20758
    }
20759
 
20760
    @Override
20761
    public boolean equals(Object that) {
20762
      if (that == null)
20763
        return false;
20764
      if (that instanceof scanForOursExternalSale_args)
20765
        return this.equals((scanForOursExternalSale_args)that);
20766
      return false;
20767
    }
20768
 
20769
    public boolean equals(scanForOursExternalSale_args that) {
20770
      if (that == null)
20771
        return false;
20772
 
20773
      boolean this_present_itemId = true;
20774
      boolean that_present_itemId = true;
20775
      if (this_present_itemId || that_present_itemId) {
20776
        if (!(this_present_itemId && that_present_itemId))
20777
          return false;
20778
        if (this.itemId != that.itemId)
20779
          return false;
20780
      }
20781
 
20782
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
20783
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
20784
      if (this_present_serialNumber || that_present_serialNumber) {
20785
        if (!(this_present_serialNumber && that_present_serialNumber))
20786
          return false;
20787
        if (!this.serialNumber.equals(that.serialNumber))
20788
          return false;
20789
      }
20790
 
20791
      boolean this_present_itemNumber = true && this.isSetItemNumber();
20792
      boolean that_present_itemNumber = true && that.isSetItemNumber();
20793
      if (this_present_itemNumber || that_present_itemNumber) {
20794
        if (!(this_present_itemNumber && that_present_itemNumber))
20795
          return false;
20796
        if (!this.itemNumber.equals(that.itemNumber))
20797
          return false;
20798
      }
20799
 
20800
      boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
20801
      boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
20802
      if (this_present_invoiceNumber || that_present_invoiceNumber) {
20803
        if (!(this_present_invoiceNumber && that_present_invoiceNumber))
20804
          return false;
20805
        if (!this.invoiceNumber.equals(that.invoiceNumber))
20806
          return false;
20807
      }
20808
 
20809
      boolean this_present_warehouseId = true;
20810
      boolean that_present_warehouseId = true;
20811
      if (this_present_warehouseId || that_present_warehouseId) {
20812
        if (!(this_present_warehouseId && that_present_warehouseId))
20813
          return false;
20814
        if (this.warehouseId != that.warehouseId)
20815
          return false;
20816
      }
20817
 
20818
      boolean this_present_unitPrice = true;
20819
      boolean that_present_unitPrice = true;
20820
      if (this_present_unitPrice || that_present_unitPrice) {
20821
        if (!(this_present_unitPrice && that_present_unitPrice))
20822
          return false;
20823
        if (this.unitPrice != that.unitPrice)
20824
          return false;
20825
      }
20826
 
20827
      boolean this_present_orderId = true;
20828
      boolean that_present_orderId = true;
20829
      if (this_present_orderId || that_present_orderId) {
20830
        if (!(this_present_orderId && that_present_orderId))
20831
          return false;
20832
        if (this.orderId != that.orderId)
20833
          return false;
20834
      }
20835
 
20836
      return true;
20837
    }
20838
 
20839
    @Override
20840
    public int hashCode() {
20841
      return 0;
20842
    }
20843
 
20844
    public int compareTo(scanForOursExternalSale_args other) {
20845
      if (!getClass().equals(other.getClass())) {
20846
        return getClass().getName().compareTo(other.getClass().getName());
20847
      }
20848
 
20849
      int lastComparison = 0;
20850
      scanForOursExternalSale_args typedOther = (scanForOursExternalSale_args)other;
20851
 
20852
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
20853
      if (lastComparison != 0) {
20854
        return lastComparison;
20855
      }
20856
      if (isSetItemId()) {
20857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
20858
        if (lastComparison != 0) {
20859
          return lastComparison;
20860
        }
20861
      }
20862
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
20863
      if (lastComparison != 0) {
20864
        return lastComparison;
20865
      }
20866
      if (isSetSerialNumber()) {
20867
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
20868
        if (lastComparison != 0) {
20869
          return lastComparison;
20870
        }
20871
      }
20872
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
20873
      if (lastComparison != 0) {
20874
        return lastComparison;
20875
      }
20876
      if (isSetItemNumber()) {
20877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
20878
        if (lastComparison != 0) {
20879
          return lastComparison;
20880
        }
20881
      }
20882
      lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
20883
      if (lastComparison != 0) {
20884
        return lastComparison;
20885
      }
20886
      if (isSetInvoiceNumber()) {
20887
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
20888
        if (lastComparison != 0) {
20889
          return lastComparison;
20890
        }
20891
      }
20892
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
20893
      if (lastComparison != 0) {
20894
        return lastComparison;
20895
      }
20896
      if (isSetWarehouseId()) {
20897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
20898
        if (lastComparison != 0) {
20899
          return lastComparison;
20900
        }
20901
      }
20902
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
20903
      if (lastComparison != 0) {
20904
        return lastComparison;
20905
      }
20906
      if (isSetUnitPrice()) {
20907
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
20908
        if (lastComparison != 0) {
20909
          return lastComparison;
20910
        }
20911
      }
20912
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
20913
      if (lastComparison != 0) {
20914
        return lastComparison;
20915
      }
20916
      if (isSetOrderId()) {
20917
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
20918
        if (lastComparison != 0) {
20919
          return lastComparison;
20920
        }
20921
      }
20922
      return 0;
20923
    }
20924
 
20925
    public _Fields fieldForId(int fieldId) {
20926
      return _Fields.findByThriftId(fieldId);
20927
    }
20928
 
20929
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20930
      org.apache.thrift.protocol.TField field;
20931
      iprot.readStructBegin();
20932
      while (true)
20933
      {
20934
        field = iprot.readFieldBegin();
20935
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20936
          break;
20937
        }
20938
        switch (field.id) {
20939
          case 1: // ITEM_ID
20940
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20941
              this.itemId = iprot.readI64();
20942
              setItemIdIsSet(true);
20943
            } else { 
20944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20945
            }
20946
            break;
20947
          case 2: // SERIAL_NUMBER
20948
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20949
              this.serialNumber = iprot.readString();
20950
            } else { 
20951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20952
            }
20953
            break;
20954
          case 3: // ITEM_NUMBER
20955
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20956
              this.itemNumber = iprot.readString();
20957
            } else { 
20958
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20959
            }
20960
            break;
20961
          case 4: // INVOICE_NUMBER
20962
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20963
              this.invoiceNumber = iprot.readString();
20964
            } else { 
20965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20966
            }
20967
            break;
20968
          case 5: // WAREHOUSE_ID
20969
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20970
              this.warehouseId = iprot.readI64();
20971
              setWarehouseIdIsSet(true);
20972
            } else { 
20973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20974
            }
20975
            break;
20976
          case 6: // UNIT_PRICE
20977
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
20978
              this.unitPrice = iprot.readDouble();
20979
              setUnitPriceIsSet(true);
20980
            } else { 
20981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20982
            }
20983
            break;
20984
          case 7: // ORDER_ID
20985
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20986
              this.orderId = iprot.readI64();
20987
              setOrderIdIsSet(true);
20988
            } else { 
20989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20990
            }
20991
            break;
20992
          default:
20993
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20994
        }
20995
        iprot.readFieldEnd();
20996
      }
20997
      iprot.readStructEnd();
20998
      validate();
20999
    }
21000
 
21001
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21002
      validate();
21003
 
21004
      oprot.writeStructBegin(STRUCT_DESC);
21005
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
21006
      oprot.writeI64(this.itemId);
21007
      oprot.writeFieldEnd();
21008
      if (this.serialNumber != null) {
21009
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
21010
        oprot.writeString(this.serialNumber);
21011
        oprot.writeFieldEnd();
21012
      }
21013
      if (this.itemNumber != null) {
21014
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
21015
        oprot.writeString(this.itemNumber);
21016
        oprot.writeFieldEnd();
21017
      }
21018
      if (this.invoiceNumber != null) {
21019
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
21020
        oprot.writeString(this.invoiceNumber);
21021
        oprot.writeFieldEnd();
21022
      }
21023
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
21024
      oprot.writeI64(this.warehouseId);
21025
      oprot.writeFieldEnd();
21026
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
21027
      oprot.writeDouble(this.unitPrice);
21028
      oprot.writeFieldEnd();
21029
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21030
      oprot.writeI64(this.orderId);
21031
      oprot.writeFieldEnd();
21032
      oprot.writeFieldStop();
21033
      oprot.writeStructEnd();
21034
    }
21035
 
21036
    @Override
21037
    public String toString() {
21038
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_args(");
21039
      boolean first = true;
21040
 
21041
      sb.append("itemId:");
21042
      sb.append(this.itemId);
21043
      first = false;
21044
      if (!first) sb.append(", ");
21045
      sb.append("serialNumber:");
21046
      if (this.serialNumber == null) {
21047
        sb.append("null");
21048
      } else {
21049
        sb.append(this.serialNumber);
21050
      }
21051
      first = false;
21052
      if (!first) sb.append(", ");
21053
      sb.append("itemNumber:");
21054
      if (this.itemNumber == null) {
21055
        sb.append("null");
21056
      } else {
21057
        sb.append(this.itemNumber);
21058
      }
21059
      first = false;
21060
      if (!first) sb.append(", ");
21061
      sb.append("invoiceNumber:");
21062
      if (this.invoiceNumber == null) {
21063
        sb.append("null");
21064
      } else {
21065
        sb.append(this.invoiceNumber);
21066
      }
21067
      first = false;
21068
      if (!first) sb.append(", ");
21069
      sb.append("warehouseId:");
21070
      sb.append(this.warehouseId);
21071
      first = false;
21072
      if (!first) sb.append(", ");
21073
      sb.append("unitPrice:");
21074
      sb.append(this.unitPrice);
21075
      first = false;
21076
      if (!first) sb.append(", ");
21077
      sb.append("orderId:");
21078
      sb.append(this.orderId);
21079
      first = false;
21080
      sb.append(")");
21081
      return sb.toString();
21082
    }
21083
 
21084
    public void validate() throws org.apache.thrift.TException {
21085
      // check for required fields
21086
    }
21087
 
21088
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21089
      try {
21090
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21091
      } catch (org.apache.thrift.TException te) {
21092
        throw new java.io.IOException(te);
21093
      }
21094
    }
21095
 
21096
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21097
      try {
21098
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21099
        __isset_bit_vector = new BitSet(1);
21100
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21101
      } catch (org.apache.thrift.TException te) {
21102
        throw new java.io.IOException(te);
21103
      }
21104
    }
21105
 
21106
  }
21107
 
21108
  public static class scanForOursExternalSale_result implements org.apache.thrift.TBase<scanForOursExternalSale_result, scanForOursExternalSale_result._Fields>, java.io.Serializable, Cloneable   {
21109
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_result");
21110
 
21111
    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);
21112
    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);
21113
 
21114
    private InventoryItem success; // required
21115
    private WarehouseServiceException ex; // required
21116
 
21117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21119
      SUCCESS((short)0, "success"),
21120
      EX((short)1, "ex");
21121
 
21122
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21123
 
21124
      static {
21125
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21126
          byName.put(field.getFieldName(), field);
21127
        }
21128
      }
21129
 
21130
      /**
21131
       * Find the _Fields constant that matches fieldId, or null if its not found.
21132
       */
21133
      public static _Fields findByThriftId(int fieldId) {
21134
        switch(fieldId) {
21135
          case 0: // SUCCESS
21136
            return SUCCESS;
21137
          case 1: // EX
21138
            return EX;
21139
          default:
21140
            return null;
21141
        }
21142
      }
21143
 
21144
      /**
21145
       * Find the _Fields constant that matches fieldId, throwing an exception
21146
       * if it is not found.
21147
       */
21148
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21149
        _Fields fields = findByThriftId(fieldId);
21150
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21151
        return fields;
21152
      }
21153
 
21154
      /**
21155
       * Find the _Fields constant that matches name, or null if its not found.
21156
       */
21157
      public static _Fields findByName(String name) {
21158
        return byName.get(name);
21159
      }
21160
 
21161
      private final short _thriftId;
21162
      private final String _fieldName;
21163
 
21164
      _Fields(short thriftId, String fieldName) {
21165
        _thriftId = thriftId;
21166
        _fieldName = fieldName;
21167
      }
21168
 
21169
      public short getThriftFieldId() {
21170
        return _thriftId;
21171
      }
21172
 
21173
      public String getFieldName() {
21174
        return _fieldName;
21175
      }
21176
    }
21177
 
21178
    // isset id assignments
21179
 
21180
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21181
    static {
21182
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21183
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21184
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
21185
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21186
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21187
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21188
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_result.class, metaDataMap);
21189
    }
21190
 
21191
    public scanForOursExternalSale_result() {
21192
    }
21193
 
21194
    public scanForOursExternalSale_result(
21195
      InventoryItem success,
21196
      WarehouseServiceException ex)
21197
    {
21198
      this();
21199
      this.success = success;
21200
      this.ex = ex;
21201
    }
21202
 
21203
    /**
21204
     * Performs a deep copy on <i>other</i>.
21205
     */
21206
    public scanForOursExternalSale_result(scanForOursExternalSale_result other) {
21207
      if (other.isSetSuccess()) {
21208
        this.success = new InventoryItem(other.success);
21209
      }
21210
      if (other.isSetEx()) {
21211
        this.ex = new WarehouseServiceException(other.ex);
21212
      }
21213
    }
21214
 
21215
    public scanForOursExternalSale_result deepCopy() {
21216
      return new scanForOursExternalSale_result(this);
21217
    }
21218
 
21219
    @Override
21220
    public void clear() {
21221
      this.success = null;
21222
      this.ex = null;
21223
    }
21224
 
21225
    public InventoryItem getSuccess() {
21226
      return this.success;
21227
    }
21228
 
21229
    public void setSuccess(InventoryItem success) {
21230
      this.success = success;
21231
    }
21232
 
21233
    public void unsetSuccess() {
21234
      this.success = null;
21235
    }
21236
 
21237
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21238
    public boolean isSetSuccess() {
21239
      return this.success != null;
21240
    }
21241
 
21242
    public void setSuccessIsSet(boolean value) {
21243
      if (!value) {
21244
        this.success = null;
21245
      }
21246
    }
21247
 
21248
    public WarehouseServiceException getEx() {
21249
      return this.ex;
21250
    }
21251
 
21252
    public void setEx(WarehouseServiceException ex) {
21253
      this.ex = ex;
21254
    }
21255
 
21256
    public void unsetEx() {
21257
      this.ex = null;
21258
    }
21259
 
21260
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
21261
    public boolean isSetEx() {
21262
      return this.ex != null;
21263
    }
21264
 
21265
    public void setExIsSet(boolean value) {
21266
      if (!value) {
21267
        this.ex = null;
21268
      }
21269
    }
21270
 
21271
    public void setFieldValue(_Fields field, Object value) {
21272
      switch (field) {
21273
      case SUCCESS:
21274
        if (value == null) {
21275
          unsetSuccess();
21276
        } else {
21277
          setSuccess((InventoryItem)value);
21278
        }
21279
        break;
21280
 
21281
      case EX:
21282
        if (value == null) {
21283
          unsetEx();
21284
        } else {
21285
          setEx((WarehouseServiceException)value);
21286
        }
21287
        break;
21288
 
21289
      }
21290
    }
21291
 
21292
    public Object getFieldValue(_Fields field) {
21293
      switch (field) {
21294
      case SUCCESS:
21295
        return getSuccess();
21296
 
21297
      case EX:
21298
        return getEx();
21299
 
21300
      }
21301
      throw new IllegalStateException();
21302
    }
21303
 
21304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21305
    public boolean isSet(_Fields field) {
21306
      if (field == null) {
21307
        throw new IllegalArgumentException();
21308
      }
21309
 
21310
      switch (field) {
21311
      case SUCCESS:
21312
        return isSetSuccess();
21313
      case EX:
21314
        return isSetEx();
21315
      }
21316
      throw new IllegalStateException();
21317
    }
21318
 
21319
    @Override
21320
    public boolean equals(Object that) {
21321
      if (that == null)
21322
        return false;
21323
      if (that instanceof scanForOursExternalSale_result)
21324
        return this.equals((scanForOursExternalSale_result)that);
21325
      return false;
21326
    }
21327
 
21328
    public boolean equals(scanForOursExternalSale_result that) {
21329
      if (that == null)
21330
        return false;
21331
 
21332
      boolean this_present_success = true && this.isSetSuccess();
21333
      boolean that_present_success = true && that.isSetSuccess();
21334
      if (this_present_success || that_present_success) {
21335
        if (!(this_present_success && that_present_success))
21336
          return false;
21337
        if (!this.success.equals(that.success))
21338
          return false;
21339
      }
21340
 
21341
      boolean this_present_ex = true && this.isSetEx();
21342
      boolean that_present_ex = true && that.isSetEx();
21343
      if (this_present_ex || that_present_ex) {
21344
        if (!(this_present_ex && that_present_ex))
21345
          return false;
21346
        if (!this.ex.equals(that.ex))
21347
          return false;
21348
      }
21349
 
21350
      return true;
21351
    }
21352
 
21353
    @Override
21354
    public int hashCode() {
21355
      return 0;
21356
    }
21357
 
21358
    public int compareTo(scanForOursExternalSale_result other) {
21359
      if (!getClass().equals(other.getClass())) {
21360
        return getClass().getName().compareTo(other.getClass().getName());
21361
      }
21362
 
21363
      int lastComparison = 0;
21364
      scanForOursExternalSale_result typedOther = (scanForOursExternalSale_result)other;
21365
 
21366
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21367
      if (lastComparison != 0) {
21368
        return lastComparison;
21369
      }
21370
      if (isSetSuccess()) {
21371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21372
        if (lastComparison != 0) {
21373
          return lastComparison;
21374
        }
21375
      }
21376
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
21377
      if (lastComparison != 0) {
21378
        return lastComparison;
21379
      }
21380
      if (isSetEx()) {
21381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21382
        if (lastComparison != 0) {
21383
          return lastComparison;
21384
        }
21385
      }
21386
      return 0;
21387
    }
21388
 
21389
    public _Fields fieldForId(int fieldId) {
21390
      return _Fields.findByThriftId(fieldId);
21391
    }
21392
 
21393
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21394
      org.apache.thrift.protocol.TField field;
21395
      iprot.readStructBegin();
21396
      while (true)
21397
      {
21398
        field = iprot.readFieldBegin();
21399
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21400
          break;
21401
        }
21402
        switch (field.id) {
21403
          case 0: // SUCCESS
21404
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21405
              this.success = new InventoryItem();
21406
              this.success.read(iprot);
21407
            } else { 
21408
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21409
            }
21410
            break;
21411
          case 1: // EX
21412
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21413
              this.ex = new WarehouseServiceException();
21414
              this.ex.read(iprot);
21415
            } else { 
21416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21417
            }
21418
            break;
21419
          default:
21420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21421
        }
21422
        iprot.readFieldEnd();
21423
      }
21424
      iprot.readStructEnd();
21425
      validate();
21426
    }
21427
 
21428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21429
      oprot.writeStructBegin(STRUCT_DESC);
21430
 
21431
      if (this.isSetSuccess()) {
21432
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21433
        this.success.write(oprot);
21434
        oprot.writeFieldEnd();
21435
      } else if (this.isSetEx()) {
21436
        oprot.writeFieldBegin(EX_FIELD_DESC);
21437
        this.ex.write(oprot);
21438
        oprot.writeFieldEnd();
21439
      }
21440
      oprot.writeFieldStop();
21441
      oprot.writeStructEnd();
21442
    }
21443
 
21444
    @Override
21445
    public String toString() {
21446
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_result(");
21447
      boolean first = true;
21448
 
21449
      sb.append("success:");
21450
      if (this.success == null) {
21451
        sb.append("null");
21452
      } else {
21453
        sb.append(this.success);
21454
      }
21455
      first = false;
21456
      if (!first) sb.append(", ");
21457
      sb.append("ex:");
21458
      if (this.ex == null) {
21459
        sb.append("null");
21460
      } else {
21461
        sb.append(this.ex);
21462
      }
21463
      first = false;
21464
      sb.append(")");
21465
      return sb.toString();
21466
    }
21467
 
21468
    public void validate() throws org.apache.thrift.TException {
21469
      // check for required fields
21470
    }
21471
 
21472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21473
      try {
21474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21475
      } catch (org.apache.thrift.TException te) {
21476
        throw new java.io.IOException(te);
21477
      }
21478
    }
21479
 
21480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21481
      try {
21482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21483
      } catch (org.apache.thrift.TException te) {
21484
        throw new java.io.IOException(te);
21485
      }
21486
    }
21487
 
21488
  }
21489
 
21490
  public static class scanForOursExternalSaleReturn_args implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_args, scanForOursExternalSaleReturn_args._Fields>, java.io.Serializable, Cloneable   {
21491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_args");
21492
 
21493
    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);
21494
    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);
21495
 
21496
    private long orderId; // required
21497
    private double unitPrice; // required
21498
 
21499
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21500
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21501
      ORDER_ID((short)1, "orderId"),
21502
      UNIT_PRICE((short)2, "unitPrice");
21503
 
21504
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21505
 
21506
      static {
21507
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21508
          byName.put(field.getFieldName(), field);
21509
        }
21510
      }
21511
 
21512
      /**
21513
       * Find the _Fields constant that matches fieldId, or null if its not found.
21514
       */
21515
      public static _Fields findByThriftId(int fieldId) {
21516
        switch(fieldId) {
21517
          case 1: // ORDER_ID
21518
            return ORDER_ID;
21519
          case 2: // UNIT_PRICE
21520
            return UNIT_PRICE;
21521
          default:
21522
            return null;
21523
        }
21524
      }
21525
 
21526
      /**
21527
       * Find the _Fields constant that matches fieldId, throwing an exception
21528
       * if it is not found.
21529
       */
21530
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21531
        _Fields fields = findByThriftId(fieldId);
21532
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21533
        return fields;
21534
      }
21535
 
21536
      /**
21537
       * Find the _Fields constant that matches name, or null if its not found.
21538
       */
21539
      public static _Fields findByName(String name) {
21540
        return byName.get(name);
21541
      }
21542
 
21543
      private final short _thriftId;
21544
      private final String _fieldName;
21545
 
21546
      _Fields(short thriftId, String fieldName) {
21547
        _thriftId = thriftId;
21548
        _fieldName = fieldName;
21549
      }
21550
 
21551
      public short getThriftFieldId() {
21552
        return _thriftId;
21553
      }
21554
 
21555
      public String getFieldName() {
21556
        return _fieldName;
21557
      }
21558
    }
21559
 
21560
    // isset id assignments
21561
    private static final int __ORDERID_ISSET_ID = 0;
21562
    private static final int __UNITPRICE_ISSET_ID = 1;
21563
    private BitSet __isset_bit_vector = new BitSet(2);
21564
 
21565
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21566
    static {
21567
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21568
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21569
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21570
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21571
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21572
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21573
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_args.class, metaDataMap);
21574
    }
21575
 
21576
    public scanForOursExternalSaleReturn_args() {
21577
    }
21578
 
21579
    public scanForOursExternalSaleReturn_args(
21580
      long orderId,
21581
      double unitPrice)
21582
    {
21583
      this();
21584
      this.orderId = orderId;
21585
      setOrderIdIsSet(true);
21586
      this.unitPrice = unitPrice;
21587
      setUnitPriceIsSet(true);
21588
    }
21589
 
21590
    /**
21591
     * Performs a deep copy on <i>other</i>.
21592
     */
21593
    public scanForOursExternalSaleReturn_args(scanForOursExternalSaleReturn_args other) {
21594
      __isset_bit_vector.clear();
21595
      __isset_bit_vector.or(other.__isset_bit_vector);
21596
      this.orderId = other.orderId;
21597
      this.unitPrice = other.unitPrice;
21598
    }
21599
 
21600
    public scanForOursExternalSaleReturn_args deepCopy() {
21601
      return new scanForOursExternalSaleReturn_args(this);
21602
    }
21603
 
21604
    @Override
21605
    public void clear() {
21606
      setOrderIdIsSet(false);
21607
      this.orderId = 0;
21608
      setUnitPriceIsSet(false);
21609
      this.unitPrice = 0.0;
21610
    }
21611
 
21612
    public long getOrderId() {
21613
      return this.orderId;
21614
    }
21615
 
21616
    public void setOrderId(long orderId) {
21617
      this.orderId = orderId;
21618
      setOrderIdIsSet(true);
21619
    }
21620
 
21621
    public void unsetOrderId() {
21622
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
21623
    }
21624
 
21625
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
21626
    public boolean isSetOrderId() {
21627
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
21628
    }
21629
 
21630
    public void setOrderIdIsSet(boolean value) {
21631
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
21632
    }
21633
 
21634
    public double getUnitPrice() {
21635
      return this.unitPrice;
21636
    }
21637
 
21638
    public void setUnitPrice(double unitPrice) {
21639
      this.unitPrice = unitPrice;
21640
      setUnitPriceIsSet(true);
21641
    }
21642
 
21643
    public void unsetUnitPrice() {
21644
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
21645
    }
21646
 
21647
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
21648
    public boolean isSetUnitPrice() {
21649
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
21650
    }
21651
 
21652
    public void setUnitPriceIsSet(boolean value) {
21653
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
21654
    }
21655
 
21656
    public void setFieldValue(_Fields field, Object value) {
21657
      switch (field) {
21658
      case ORDER_ID:
21659
        if (value == null) {
21660
          unsetOrderId();
21661
        } else {
21662
          setOrderId((Long)value);
21663
        }
21664
        break;
21665
 
21666
      case UNIT_PRICE:
21667
        if (value == null) {
21668
          unsetUnitPrice();
21669
        } else {
21670
          setUnitPrice((Double)value);
21671
        }
21672
        break;
21673
 
21674
      }
21675
    }
21676
 
21677
    public Object getFieldValue(_Fields field) {
21678
      switch (field) {
21679
      case ORDER_ID:
21680
        return Long.valueOf(getOrderId());
21681
 
21682
      case UNIT_PRICE:
21683
        return Double.valueOf(getUnitPrice());
21684
 
21685
      }
21686
      throw new IllegalStateException();
21687
    }
21688
 
21689
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21690
    public boolean isSet(_Fields field) {
21691
      if (field == null) {
21692
        throw new IllegalArgumentException();
21693
      }
21694
 
21695
      switch (field) {
21696
      case ORDER_ID:
21697
        return isSetOrderId();
21698
      case UNIT_PRICE:
21699
        return isSetUnitPrice();
21700
      }
21701
      throw new IllegalStateException();
21702
    }
21703
 
21704
    @Override
21705
    public boolean equals(Object that) {
21706
      if (that == null)
21707
        return false;
21708
      if (that instanceof scanForOursExternalSaleReturn_args)
21709
        return this.equals((scanForOursExternalSaleReturn_args)that);
21710
      return false;
21711
    }
21712
 
21713
    public boolean equals(scanForOursExternalSaleReturn_args that) {
21714
      if (that == null)
21715
        return false;
21716
 
21717
      boolean this_present_orderId = true;
21718
      boolean that_present_orderId = true;
21719
      if (this_present_orderId || that_present_orderId) {
21720
        if (!(this_present_orderId && that_present_orderId))
21721
          return false;
21722
        if (this.orderId != that.orderId)
21723
          return false;
21724
      }
21725
 
21726
      boolean this_present_unitPrice = true;
21727
      boolean that_present_unitPrice = true;
21728
      if (this_present_unitPrice || that_present_unitPrice) {
21729
        if (!(this_present_unitPrice && that_present_unitPrice))
21730
          return false;
21731
        if (this.unitPrice != that.unitPrice)
21732
          return false;
21733
      }
21734
 
21735
      return true;
21736
    }
21737
 
21738
    @Override
21739
    public int hashCode() {
21740
      return 0;
21741
    }
21742
 
21743
    public int compareTo(scanForOursExternalSaleReturn_args other) {
21744
      if (!getClass().equals(other.getClass())) {
21745
        return getClass().getName().compareTo(other.getClass().getName());
21746
      }
21747
 
21748
      int lastComparison = 0;
21749
      scanForOursExternalSaleReturn_args typedOther = (scanForOursExternalSaleReturn_args)other;
21750
 
21751
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
21752
      if (lastComparison != 0) {
21753
        return lastComparison;
21754
      }
21755
      if (isSetOrderId()) {
21756
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21757
        if (lastComparison != 0) {
21758
          return lastComparison;
21759
        }
21760
      }
21761
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
21762
      if (lastComparison != 0) {
21763
        return lastComparison;
21764
      }
21765
      if (isSetUnitPrice()) {
21766
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
21767
        if (lastComparison != 0) {
21768
          return lastComparison;
21769
        }
21770
      }
21771
      return 0;
21772
    }
21773
 
21774
    public _Fields fieldForId(int fieldId) {
21775
      return _Fields.findByThriftId(fieldId);
21776
    }
21777
 
21778
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21779
      org.apache.thrift.protocol.TField field;
21780
      iprot.readStructBegin();
21781
      while (true)
21782
      {
21783
        field = iprot.readFieldBegin();
21784
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21785
          break;
21786
        }
21787
        switch (field.id) {
21788
          case 1: // ORDER_ID
21789
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21790
              this.orderId = iprot.readI64();
21791
              setOrderIdIsSet(true);
21792
            } else { 
21793
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21794
            }
21795
            break;
21796
          case 2: // UNIT_PRICE
21797
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21798
              this.unitPrice = iprot.readDouble();
21799
              setUnitPriceIsSet(true);
21800
            } else { 
21801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21802
            }
21803
            break;
21804
          default:
21805
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21806
        }
21807
        iprot.readFieldEnd();
21808
      }
21809
      iprot.readStructEnd();
21810
      validate();
21811
    }
21812
 
21813
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21814
      validate();
21815
 
21816
      oprot.writeStructBegin(STRUCT_DESC);
21817
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21818
      oprot.writeI64(this.orderId);
21819
      oprot.writeFieldEnd();
21820
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
21821
      oprot.writeDouble(this.unitPrice);
21822
      oprot.writeFieldEnd();
21823
      oprot.writeFieldStop();
21824
      oprot.writeStructEnd();
21825
    }
21826
 
21827
    @Override
21828
    public String toString() {
21829
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_args(");
21830
      boolean first = true;
21831
 
21832
      sb.append("orderId:");
21833
      sb.append(this.orderId);
21834
      first = false;
21835
      if (!first) sb.append(", ");
21836
      sb.append("unitPrice:");
21837
      sb.append(this.unitPrice);
21838
      first = false;
21839
      sb.append(")");
21840
      return sb.toString();
21841
    }
21842
 
21843
    public void validate() throws org.apache.thrift.TException {
21844
      // check for required fields
21845
    }
21846
 
21847
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21848
      try {
21849
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21850
      } catch (org.apache.thrift.TException te) {
21851
        throw new java.io.IOException(te);
21852
      }
21853
    }
21854
 
21855
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21856
      try {
21857
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21858
      } catch (org.apache.thrift.TException te) {
21859
        throw new java.io.IOException(te);
21860
      }
21861
    }
21862
 
21863
  }
21864
 
21865
  public static class scanForOursExternalSaleReturn_result implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_result, scanForOursExternalSaleReturn_result._Fields>, java.io.Serializable, Cloneable   {
21866
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_result");
21867
 
7410 amar.kumar 21868
    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 21869
 
7410 amar.kumar 21870
    private WarehouseServiceException ex; // required
6762 amar.kumar 21871
 
21872
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21873
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7410 amar.kumar 21874
      EX((short)1, "ex");
6762 amar.kumar 21875
 
21876
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21877
 
21878
      static {
21879
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21880
          byName.put(field.getFieldName(), field);
21881
        }
21882
      }
21883
 
21884
      /**
21885
       * Find the _Fields constant that matches fieldId, or null if its not found.
21886
       */
21887
      public static _Fields findByThriftId(int fieldId) {
21888
        switch(fieldId) {
7410 amar.kumar 21889
          case 1: // EX
21890
            return EX;
6762 amar.kumar 21891
          default:
21892
            return null;
21893
        }
21894
      }
21895
 
21896
      /**
21897
       * Find the _Fields constant that matches fieldId, throwing an exception
21898
       * if it is not found.
21899
       */
21900
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21901
        _Fields fields = findByThriftId(fieldId);
21902
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21903
        return fields;
21904
      }
21905
 
21906
      /**
21907
       * Find the _Fields constant that matches name, or null if its not found.
21908
       */
21909
      public static _Fields findByName(String name) {
21910
        return byName.get(name);
21911
      }
21912
 
21913
      private final short _thriftId;
21914
      private final String _fieldName;
21915
 
21916
      _Fields(short thriftId, String fieldName) {
21917
        _thriftId = thriftId;
21918
        _fieldName = fieldName;
21919
      }
21920
 
21921
      public short getThriftFieldId() {
21922
        return _thriftId;
21923
      }
21924
 
21925
      public String getFieldName() {
21926
        return _fieldName;
21927
      }
21928
    }
7410 amar.kumar 21929
 
21930
    // isset id assignments
21931
 
6762 amar.kumar 21932
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21933
    static {
21934
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7410 amar.kumar 21935
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21936
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6762 amar.kumar 21937
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21938
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_result.class, metaDataMap);
21939
    }
21940
 
21941
    public scanForOursExternalSaleReturn_result() {
21942
    }
21943
 
7410 amar.kumar 21944
    public scanForOursExternalSaleReturn_result(
21945
      WarehouseServiceException ex)
21946
    {
21947
      this();
21948
      this.ex = ex;
21949
    }
21950
 
6762 amar.kumar 21951
    /**
21952
     * Performs a deep copy on <i>other</i>.
21953
     */
21954
    public scanForOursExternalSaleReturn_result(scanForOursExternalSaleReturn_result other) {
7410 amar.kumar 21955
      if (other.isSetEx()) {
21956
        this.ex = new WarehouseServiceException(other.ex);
21957
      }
6762 amar.kumar 21958
    }
21959
 
21960
    public scanForOursExternalSaleReturn_result deepCopy() {
21961
      return new scanForOursExternalSaleReturn_result(this);
21962
    }
21963
 
21964
    @Override
21965
    public void clear() {
7410 amar.kumar 21966
      this.ex = null;
6762 amar.kumar 21967
    }
21968
 
7410 amar.kumar 21969
    public WarehouseServiceException getEx() {
21970
      return this.ex;
21971
    }
21972
 
21973
    public void setEx(WarehouseServiceException ex) {
21974
      this.ex = ex;
21975
    }
21976
 
21977
    public void unsetEx() {
21978
      this.ex = null;
21979
    }
21980
 
21981
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
21982
    public boolean isSetEx() {
21983
      return this.ex != null;
21984
    }
21985
 
21986
    public void setExIsSet(boolean value) {
21987
      if (!value) {
21988
        this.ex = null;
21989
      }
21990
    }
21991
 
6762 amar.kumar 21992
    public void setFieldValue(_Fields field, Object value) {
21993
      switch (field) {
7410 amar.kumar 21994
      case EX:
21995
        if (value == null) {
21996
          unsetEx();
21997
        } else {
21998
          setEx((WarehouseServiceException)value);
21999
        }
22000
        break;
22001
 
6762 amar.kumar 22002
      }
22003
    }
22004
 
22005
    public Object getFieldValue(_Fields field) {
22006
      switch (field) {
7410 amar.kumar 22007
      case EX:
22008
        return getEx();
22009
 
6762 amar.kumar 22010
      }
22011
      throw new IllegalStateException();
22012
    }
22013
 
22014
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22015
    public boolean isSet(_Fields field) {
22016
      if (field == null) {
22017
        throw new IllegalArgumentException();
22018
      }
22019
 
22020
      switch (field) {
7410 amar.kumar 22021
      case EX:
22022
        return isSetEx();
6762 amar.kumar 22023
      }
22024
      throw new IllegalStateException();
22025
    }
22026
 
22027
    @Override
22028
    public boolean equals(Object that) {
22029
      if (that == null)
22030
        return false;
22031
      if (that instanceof scanForOursExternalSaleReturn_result)
22032
        return this.equals((scanForOursExternalSaleReturn_result)that);
22033
      return false;
22034
    }
22035
 
22036
    public boolean equals(scanForOursExternalSaleReturn_result that) {
22037
      if (that == null)
22038
        return false;
22039
 
7410 amar.kumar 22040
      boolean this_present_ex = true && this.isSetEx();
22041
      boolean that_present_ex = true && that.isSetEx();
22042
      if (this_present_ex || that_present_ex) {
22043
        if (!(this_present_ex && that_present_ex))
22044
          return false;
22045
        if (!this.ex.equals(that.ex))
22046
          return false;
22047
      }
22048
 
6762 amar.kumar 22049
      return true;
22050
    }
22051
 
22052
    @Override
22053
    public int hashCode() {
22054
      return 0;
22055
    }
22056
 
22057
    public int compareTo(scanForOursExternalSaleReturn_result other) {
22058
      if (!getClass().equals(other.getClass())) {
22059
        return getClass().getName().compareTo(other.getClass().getName());
22060
      }
22061
 
22062
      int lastComparison = 0;
22063
      scanForOursExternalSaleReturn_result typedOther = (scanForOursExternalSaleReturn_result)other;
22064
 
7410 amar.kumar 22065
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
22066
      if (lastComparison != 0) {
22067
        return lastComparison;
22068
      }
22069
      if (isSetEx()) {
22070
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
22071
        if (lastComparison != 0) {
22072
          return lastComparison;
22073
        }
22074
      }
6762 amar.kumar 22075
      return 0;
22076
    }
22077
 
22078
    public _Fields fieldForId(int fieldId) {
22079
      return _Fields.findByThriftId(fieldId);
22080
    }
22081
 
22082
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22083
      org.apache.thrift.protocol.TField field;
22084
      iprot.readStructBegin();
22085
      while (true)
22086
      {
22087
        field = iprot.readFieldBegin();
22088
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22089
          break;
22090
        }
22091
        switch (field.id) {
7410 amar.kumar 22092
          case 1: // EX
22093
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22094
              this.ex = new WarehouseServiceException();
22095
              this.ex.read(iprot);
22096
            } else { 
22097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22098
            }
22099
            break;
6762 amar.kumar 22100
          default:
22101
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22102
        }
22103
        iprot.readFieldEnd();
22104
      }
22105
      iprot.readStructEnd();
22106
      validate();
22107
    }
22108
 
22109
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22110
      oprot.writeStructBegin(STRUCT_DESC);
22111
 
7410 amar.kumar 22112
      if (this.isSetEx()) {
22113
        oprot.writeFieldBegin(EX_FIELD_DESC);
22114
        this.ex.write(oprot);
22115
        oprot.writeFieldEnd();
22116
      }
6762 amar.kumar 22117
      oprot.writeFieldStop();
22118
      oprot.writeStructEnd();
22119
    }
22120
 
22121
    @Override
22122
    public String toString() {
22123
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_result(");
22124
      boolean first = true;
22125
 
7410 amar.kumar 22126
      sb.append("ex:");
22127
      if (this.ex == null) {
22128
        sb.append("null");
22129
      } else {
22130
        sb.append(this.ex);
22131
      }
22132
      first = false;
6762 amar.kumar 22133
      sb.append(")");
22134
      return sb.toString();
22135
    }
22136
 
22137
    public void validate() throws org.apache.thrift.TException {
22138
      // check for required fields
22139
    }
22140
 
22141
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22142
      try {
22143
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22144
      } catch (org.apache.thrift.TException te) {
22145
        throw new java.io.IOException(te);
22146
      }
22147
    }
22148
 
22149
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22150
      try {
22151
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22152
      } catch (org.apache.thrift.TException te) {
22153
        throw new java.io.IOException(te);
22154
      }
22155
    }
22156
 
22157
  }
22158
 
6880 amar.kumar 22159
  public static class getMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_args, getMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
22160
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_args");
22161
 
22162
    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);
22163
    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);
22164
 
22165
    private long startDate; // required
22166
    private long endDate; // required
22167
 
22168
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22169
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22170
      START_DATE((short)1, "startDate"),
22171
      END_DATE((short)2, "endDate");
22172
 
22173
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22174
 
22175
      static {
22176
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22177
          byName.put(field.getFieldName(), field);
22178
        }
22179
      }
22180
 
22181
      /**
22182
       * Find the _Fields constant that matches fieldId, or null if its not found.
22183
       */
22184
      public static _Fields findByThriftId(int fieldId) {
22185
        switch(fieldId) {
22186
          case 1: // START_DATE
22187
            return START_DATE;
22188
          case 2: // END_DATE
22189
            return END_DATE;
22190
          default:
22191
            return null;
22192
        }
22193
      }
22194
 
22195
      /**
22196
       * Find the _Fields constant that matches fieldId, throwing an exception
22197
       * if it is not found.
22198
       */
22199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22200
        _Fields fields = findByThriftId(fieldId);
22201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22202
        return fields;
22203
      }
22204
 
22205
      /**
22206
       * Find the _Fields constant that matches name, or null if its not found.
22207
       */
22208
      public static _Fields findByName(String name) {
22209
        return byName.get(name);
22210
      }
22211
 
22212
      private final short _thriftId;
22213
      private final String _fieldName;
22214
 
22215
      _Fields(short thriftId, String fieldName) {
22216
        _thriftId = thriftId;
22217
        _fieldName = fieldName;
22218
      }
22219
 
22220
      public short getThriftFieldId() {
22221
        return _thriftId;
22222
      }
22223
 
22224
      public String getFieldName() {
22225
        return _fieldName;
22226
      }
22227
    }
22228
 
22229
    // isset id assignments
22230
    private static final int __STARTDATE_ISSET_ID = 0;
22231
    private static final int __ENDDATE_ISSET_ID = 1;
22232
    private BitSet __isset_bit_vector = new BitSet(2);
22233
 
22234
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22235
    static {
22236
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22237
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22239
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22241
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22242
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_args.class, metaDataMap);
22243
    }
22244
 
22245
    public getMovementNonSerializedInventoryByScans_args() {
22246
    }
22247
 
22248
    public getMovementNonSerializedInventoryByScans_args(
22249
      long startDate,
22250
      long endDate)
22251
    {
22252
      this();
22253
      this.startDate = startDate;
22254
      setStartDateIsSet(true);
22255
      this.endDate = endDate;
22256
      setEndDateIsSet(true);
22257
    }
22258
 
22259
    /**
22260
     * Performs a deep copy on <i>other</i>.
22261
     */
22262
    public getMovementNonSerializedInventoryByScans_args(getMovementNonSerializedInventoryByScans_args other) {
22263
      __isset_bit_vector.clear();
22264
      __isset_bit_vector.or(other.__isset_bit_vector);
22265
      this.startDate = other.startDate;
22266
      this.endDate = other.endDate;
22267
    }
22268
 
22269
    public getMovementNonSerializedInventoryByScans_args deepCopy() {
22270
      return new getMovementNonSerializedInventoryByScans_args(this);
22271
    }
22272
 
22273
    @Override
22274
    public void clear() {
22275
      setStartDateIsSet(false);
22276
      this.startDate = 0;
22277
      setEndDateIsSet(false);
22278
      this.endDate = 0;
22279
    }
22280
 
22281
    public long getStartDate() {
22282
      return this.startDate;
22283
    }
22284
 
22285
    public void setStartDate(long startDate) {
22286
      this.startDate = startDate;
22287
      setStartDateIsSet(true);
22288
    }
22289
 
22290
    public void unsetStartDate() {
22291
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
22292
    }
22293
 
22294
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
22295
    public boolean isSetStartDate() {
22296
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
22297
    }
22298
 
22299
    public void setStartDateIsSet(boolean value) {
22300
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
22301
    }
22302
 
22303
    public long getEndDate() {
22304
      return this.endDate;
22305
    }
22306
 
22307
    public void setEndDate(long endDate) {
22308
      this.endDate = endDate;
22309
      setEndDateIsSet(true);
22310
    }
22311
 
22312
    public void unsetEndDate() {
22313
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
22314
    }
22315
 
22316
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
22317
    public boolean isSetEndDate() {
22318
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
22319
    }
22320
 
22321
    public void setEndDateIsSet(boolean value) {
22322
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
22323
    }
22324
 
22325
    public void setFieldValue(_Fields field, Object value) {
22326
      switch (field) {
22327
      case START_DATE:
22328
        if (value == null) {
22329
          unsetStartDate();
22330
        } else {
22331
          setStartDate((Long)value);
22332
        }
22333
        break;
22334
 
22335
      case END_DATE:
22336
        if (value == null) {
22337
          unsetEndDate();
22338
        } else {
22339
          setEndDate((Long)value);
22340
        }
22341
        break;
22342
 
22343
      }
22344
    }
22345
 
22346
    public Object getFieldValue(_Fields field) {
22347
      switch (field) {
22348
      case START_DATE:
22349
        return Long.valueOf(getStartDate());
22350
 
22351
      case END_DATE:
22352
        return Long.valueOf(getEndDate());
22353
 
22354
      }
22355
      throw new IllegalStateException();
22356
    }
22357
 
22358
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22359
    public boolean isSet(_Fields field) {
22360
      if (field == null) {
22361
        throw new IllegalArgumentException();
22362
      }
22363
 
22364
      switch (field) {
22365
      case START_DATE:
22366
        return isSetStartDate();
22367
      case END_DATE:
22368
        return isSetEndDate();
22369
      }
22370
      throw new IllegalStateException();
22371
    }
22372
 
22373
    @Override
22374
    public boolean equals(Object that) {
22375
      if (that == null)
22376
        return false;
22377
      if (that instanceof getMovementNonSerializedInventoryByScans_args)
22378
        return this.equals((getMovementNonSerializedInventoryByScans_args)that);
22379
      return false;
22380
    }
22381
 
22382
    public boolean equals(getMovementNonSerializedInventoryByScans_args that) {
22383
      if (that == null)
22384
        return false;
22385
 
22386
      boolean this_present_startDate = true;
22387
      boolean that_present_startDate = true;
22388
      if (this_present_startDate || that_present_startDate) {
22389
        if (!(this_present_startDate && that_present_startDate))
22390
          return false;
22391
        if (this.startDate != that.startDate)
22392
          return false;
22393
      }
22394
 
22395
      boolean this_present_endDate = true;
22396
      boolean that_present_endDate = true;
22397
      if (this_present_endDate || that_present_endDate) {
22398
        if (!(this_present_endDate && that_present_endDate))
22399
          return false;
22400
        if (this.endDate != that.endDate)
22401
          return false;
22402
      }
22403
 
22404
      return true;
22405
    }
22406
 
22407
    @Override
22408
    public int hashCode() {
22409
      return 0;
22410
    }
22411
 
22412
    public int compareTo(getMovementNonSerializedInventoryByScans_args other) {
22413
      if (!getClass().equals(other.getClass())) {
22414
        return getClass().getName().compareTo(other.getClass().getName());
22415
      }
22416
 
22417
      int lastComparison = 0;
22418
      getMovementNonSerializedInventoryByScans_args typedOther = (getMovementNonSerializedInventoryByScans_args)other;
22419
 
22420
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
22421
      if (lastComparison != 0) {
22422
        return lastComparison;
22423
      }
22424
      if (isSetStartDate()) {
22425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
22426
        if (lastComparison != 0) {
22427
          return lastComparison;
22428
        }
22429
      }
22430
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
22431
      if (lastComparison != 0) {
22432
        return lastComparison;
22433
      }
22434
      if (isSetEndDate()) {
22435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
22436
        if (lastComparison != 0) {
22437
          return lastComparison;
22438
        }
22439
      }
22440
      return 0;
22441
    }
22442
 
22443
    public _Fields fieldForId(int fieldId) {
22444
      return _Fields.findByThriftId(fieldId);
22445
    }
22446
 
22447
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22448
      org.apache.thrift.protocol.TField field;
22449
      iprot.readStructBegin();
22450
      while (true)
22451
      {
22452
        field = iprot.readFieldBegin();
22453
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22454
          break;
22455
        }
22456
        switch (field.id) {
22457
          case 1: // START_DATE
22458
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22459
              this.startDate = iprot.readI64();
22460
              setStartDateIsSet(true);
22461
            } else { 
22462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22463
            }
22464
            break;
22465
          case 2: // END_DATE
22466
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22467
              this.endDate = iprot.readI64();
22468
              setEndDateIsSet(true);
22469
            } else { 
22470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22471
            }
22472
            break;
22473
          default:
22474
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22475
        }
22476
        iprot.readFieldEnd();
22477
      }
22478
      iprot.readStructEnd();
22479
      validate();
22480
    }
22481
 
22482
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22483
      validate();
22484
 
22485
      oprot.writeStructBegin(STRUCT_DESC);
22486
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
22487
      oprot.writeI64(this.startDate);
22488
      oprot.writeFieldEnd();
22489
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
22490
      oprot.writeI64(this.endDate);
22491
      oprot.writeFieldEnd();
22492
      oprot.writeFieldStop();
22493
      oprot.writeStructEnd();
22494
    }
22495
 
22496
    @Override
22497
    public String toString() {
22498
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_args(");
22499
      boolean first = true;
22500
 
22501
      sb.append("startDate:");
22502
      sb.append(this.startDate);
22503
      first = false;
22504
      if (!first) sb.append(", ");
22505
      sb.append("endDate:");
22506
      sb.append(this.endDate);
22507
      first = false;
22508
      sb.append(")");
22509
      return sb.toString();
22510
    }
22511
 
22512
    public void validate() throws org.apache.thrift.TException {
22513
      // check for required fields
22514
    }
22515
 
22516
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22517
      try {
22518
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22519
      } catch (org.apache.thrift.TException te) {
22520
        throw new java.io.IOException(te);
22521
      }
22522
    }
22523
 
22524
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22525
      try {
22526
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22527
        __isset_bit_vector = new BitSet(1);
22528
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22529
      } catch (org.apache.thrift.TException te) {
22530
        throw new java.io.IOException(te);
22531
      }
22532
    }
22533
 
22534
  }
22535
 
22536
  public static class getMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_result, getMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
22537
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_result");
22538
 
22539
    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);
22540
 
22541
    private List<InventoryMovement> success; // required
22542
 
22543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22545
      SUCCESS((short)0, "success");
22546
 
22547
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22548
 
22549
      static {
22550
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22551
          byName.put(field.getFieldName(), field);
22552
        }
22553
      }
22554
 
22555
      /**
22556
       * Find the _Fields constant that matches fieldId, or null if its not found.
22557
       */
22558
      public static _Fields findByThriftId(int fieldId) {
22559
        switch(fieldId) {
22560
          case 0: // SUCCESS
22561
            return SUCCESS;
22562
          default:
22563
            return null;
22564
        }
22565
      }
22566
 
22567
      /**
22568
       * Find the _Fields constant that matches fieldId, throwing an exception
22569
       * if it is not found.
22570
       */
22571
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22572
        _Fields fields = findByThriftId(fieldId);
22573
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22574
        return fields;
22575
      }
22576
 
22577
      /**
22578
       * Find the _Fields constant that matches name, or null if its not found.
22579
       */
22580
      public static _Fields findByName(String name) {
22581
        return byName.get(name);
22582
      }
22583
 
22584
      private final short _thriftId;
22585
      private final String _fieldName;
22586
 
22587
      _Fields(short thriftId, String fieldName) {
22588
        _thriftId = thriftId;
22589
        _fieldName = fieldName;
22590
      }
22591
 
22592
      public short getThriftFieldId() {
22593
        return _thriftId;
22594
      }
22595
 
22596
      public String getFieldName() {
22597
        return _fieldName;
22598
      }
22599
    }
22600
 
22601
    // isset id assignments
22602
 
22603
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22604
    static {
22605
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22606
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22607
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22608
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
22609
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22610
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_result.class, metaDataMap);
22611
    }
22612
 
22613
    public getMovementNonSerializedInventoryByScans_result() {
22614
    }
22615
 
22616
    public getMovementNonSerializedInventoryByScans_result(
22617
      List<InventoryMovement> success)
22618
    {
22619
      this();
22620
      this.success = success;
22621
    }
22622
 
22623
    /**
22624
     * Performs a deep copy on <i>other</i>.
22625
     */
22626
    public getMovementNonSerializedInventoryByScans_result(getMovementNonSerializedInventoryByScans_result other) {
22627
      if (other.isSetSuccess()) {
22628
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
22629
        for (InventoryMovement other_element : other.success) {
22630
          __this__success.add(new InventoryMovement(other_element));
22631
        }
22632
        this.success = __this__success;
22633
      }
22634
    }
22635
 
22636
    public getMovementNonSerializedInventoryByScans_result deepCopy() {
22637
      return new getMovementNonSerializedInventoryByScans_result(this);
22638
    }
22639
 
22640
    @Override
22641
    public void clear() {
22642
      this.success = null;
22643
    }
22644
 
22645
    public int getSuccessSize() {
22646
      return (this.success == null) ? 0 : this.success.size();
22647
    }
22648
 
22649
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
22650
      return (this.success == null) ? null : this.success.iterator();
22651
    }
22652
 
22653
    public void addToSuccess(InventoryMovement elem) {
22654
      if (this.success == null) {
22655
        this.success = new ArrayList<InventoryMovement>();
22656
      }
22657
      this.success.add(elem);
22658
    }
22659
 
22660
    public List<InventoryMovement> getSuccess() {
22661
      return this.success;
22662
    }
22663
 
22664
    public void setSuccess(List<InventoryMovement> success) {
22665
      this.success = success;
22666
    }
22667
 
22668
    public void unsetSuccess() {
22669
      this.success = null;
22670
    }
22671
 
22672
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22673
    public boolean isSetSuccess() {
22674
      return this.success != null;
22675
    }
22676
 
22677
    public void setSuccessIsSet(boolean value) {
22678
      if (!value) {
22679
        this.success = null;
22680
      }
22681
    }
22682
 
22683
    public void setFieldValue(_Fields field, Object value) {
22684
      switch (field) {
22685
      case SUCCESS:
22686
        if (value == null) {
22687
          unsetSuccess();
22688
        } else {
22689
          setSuccess((List<InventoryMovement>)value);
22690
        }
22691
        break;
22692
 
22693
      }
22694
    }
22695
 
22696
    public Object getFieldValue(_Fields field) {
22697
      switch (field) {
22698
      case SUCCESS:
22699
        return getSuccess();
22700
 
22701
      }
22702
      throw new IllegalStateException();
22703
    }
22704
 
22705
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22706
    public boolean isSet(_Fields field) {
22707
      if (field == null) {
22708
        throw new IllegalArgumentException();
22709
      }
22710
 
22711
      switch (field) {
22712
      case SUCCESS:
22713
        return isSetSuccess();
22714
      }
22715
      throw new IllegalStateException();
22716
    }
22717
 
22718
    @Override
22719
    public boolean equals(Object that) {
22720
      if (that == null)
22721
        return false;
22722
      if (that instanceof getMovementNonSerializedInventoryByScans_result)
22723
        return this.equals((getMovementNonSerializedInventoryByScans_result)that);
22724
      return false;
22725
    }
22726
 
22727
    public boolean equals(getMovementNonSerializedInventoryByScans_result that) {
22728
      if (that == null)
22729
        return false;
22730
 
22731
      boolean this_present_success = true && this.isSetSuccess();
22732
      boolean that_present_success = true && that.isSetSuccess();
22733
      if (this_present_success || that_present_success) {
22734
        if (!(this_present_success && that_present_success))
22735
          return false;
22736
        if (!this.success.equals(that.success))
22737
          return false;
22738
      }
22739
 
22740
      return true;
22741
    }
22742
 
22743
    @Override
22744
    public int hashCode() {
22745
      return 0;
22746
    }
22747
 
22748
    public int compareTo(getMovementNonSerializedInventoryByScans_result other) {
22749
      if (!getClass().equals(other.getClass())) {
22750
        return getClass().getName().compareTo(other.getClass().getName());
22751
      }
22752
 
22753
      int lastComparison = 0;
22754
      getMovementNonSerializedInventoryByScans_result typedOther = (getMovementNonSerializedInventoryByScans_result)other;
22755
 
22756
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22757
      if (lastComparison != 0) {
22758
        return lastComparison;
22759
      }
22760
      if (isSetSuccess()) {
22761
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22762
        if (lastComparison != 0) {
22763
          return lastComparison;
22764
        }
22765
      }
22766
      return 0;
22767
    }
22768
 
22769
    public _Fields fieldForId(int fieldId) {
22770
      return _Fields.findByThriftId(fieldId);
22771
    }
22772
 
22773
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22774
      org.apache.thrift.protocol.TField field;
22775
      iprot.readStructBegin();
22776
      while (true)
22777
      {
22778
        field = iprot.readFieldBegin();
22779
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22780
          break;
22781
        }
22782
        switch (field.id) {
22783
          case 0: // SUCCESS
22784
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22785
              {
7210 amar.kumar 22786
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
22787
                this.success = new ArrayList<InventoryMovement>(_list60.size);
22788
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
6880 amar.kumar 22789
                {
7210 amar.kumar 22790
                  InventoryMovement _elem62; // required
22791
                  _elem62 = new InventoryMovement();
22792
                  _elem62.read(iprot);
22793
                  this.success.add(_elem62);
6880 amar.kumar 22794
                }
22795
                iprot.readListEnd();
22796
              }
22797
            } else { 
22798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22799
            }
22800
            break;
22801
          default:
22802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22803
        }
22804
        iprot.readFieldEnd();
22805
      }
22806
      iprot.readStructEnd();
22807
      validate();
22808
    }
22809
 
22810
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22811
      oprot.writeStructBegin(STRUCT_DESC);
22812
 
22813
      if (this.isSetSuccess()) {
22814
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22815
        {
22816
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 22817
          for (InventoryMovement _iter63 : this.success)
6880 amar.kumar 22818
          {
7210 amar.kumar 22819
            _iter63.write(oprot);
6880 amar.kumar 22820
          }
22821
          oprot.writeListEnd();
22822
        }
22823
        oprot.writeFieldEnd();
22824
      }
22825
      oprot.writeFieldStop();
22826
      oprot.writeStructEnd();
22827
    }
22828
 
22829
    @Override
22830
    public String toString() {
22831
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_result(");
22832
      boolean first = true;
22833
 
22834
      sb.append("success:");
22835
      if (this.success == null) {
22836
        sb.append("null");
22837
      } else {
22838
        sb.append(this.success);
22839
      }
22840
      first = false;
22841
      sb.append(")");
22842
      return sb.toString();
22843
    }
22844
 
22845
    public void validate() throws org.apache.thrift.TException {
22846
      // check for required fields
22847
    }
22848
 
22849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22850
      try {
22851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22852
      } catch (org.apache.thrift.TException te) {
22853
        throw new java.io.IOException(te);
22854
      }
22855
    }
22856
 
22857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22858
      try {
22859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22860
      } catch (org.apache.thrift.TException te) {
22861
        throw new java.io.IOException(te);
22862
      }
22863
    }
22864
 
22865
  }
22866
 
22867
  public static class getMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_args, getMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
22868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_args");
22869
 
22870
    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);
22871
    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);
22872
 
22873
    private long startDate; // required
22874
    private long endDate; // required
22875
 
22876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22877
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22878
      START_DATE((short)1, "startDate"),
22879
      END_DATE((short)2, "endDate");
22880
 
22881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22882
 
22883
      static {
22884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22885
          byName.put(field.getFieldName(), field);
22886
        }
22887
      }
22888
 
22889
      /**
22890
       * Find the _Fields constant that matches fieldId, or null if its not found.
22891
       */
22892
      public static _Fields findByThriftId(int fieldId) {
22893
        switch(fieldId) {
22894
          case 1: // START_DATE
22895
            return START_DATE;
22896
          case 2: // END_DATE
22897
            return END_DATE;
22898
          default:
22899
            return null;
22900
        }
22901
      }
22902
 
22903
      /**
22904
       * Find the _Fields constant that matches fieldId, throwing an exception
22905
       * if it is not found.
22906
       */
22907
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22908
        _Fields fields = findByThriftId(fieldId);
22909
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22910
        return fields;
22911
      }
22912
 
22913
      /**
22914
       * Find the _Fields constant that matches name, or null if its not found.
22915
       */
22916
      public static _Fields findByName(String name) {
22917
        return byName.get(name);
22918
      }
22919
 
22920
      private final short _thriftId;
22921
      private final String _fieldName;
22922
 
22923
      _Fields(short thriftId, String fieldName) {
22924
        _thriftId = thriftId;
22925
        _fieldName = fieldName;
22926
      }
22927
 
22928
      public short getThriftFieldId() {
22929
        return _thriftId;
22930
      }
22931
 
22932
      public String getFieldName() {
22933
        return _fieldName;
22934
      }
22935
    }
22936
 
22937
    // isset id assignments
22938
    private static final int __STARTDATE_ISSET_ID = 0;
22939
    private static final int __ENDDATE_ISSET_ID = 1;
22940
    private BitSet __isset_bit_vector = new BitSet(2);
22941
 
22942
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22943
    static {
22944
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22945
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22947
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22948
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22949
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22950
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_args.class, metaDataMap);
22951
    }
22952
 
22953
    public getMovementSerializedInventoryByScans_args() {
22954
    }
22955
 
22956
    public getMovementSerializedInventoryByScans_args(
22957
      long startDate,
22958
      long endDate)
22959
    {
22960
      this();
22961
      this.startDate = startDate;
22962
      setStartDateIsSet(true);
22963
      this.endDate = endDate;
22964
      setEndDateIsSet(true);
22965
    }
22966
 
22967
    /**
22968
     * Performs a deep copy on <i>other</i>.
22969
     */
22970
    public getMovementSerializedInventoryByScans_args(getMovementSerializedInventoryByScans_args other) {
22971
      __isset_bit_vector.clear();
22972
      __isset_bit_vector.or(other.__isset_bit_vector);
22973
      this.startDate = other.startDate;
22974
      this.endDate = other.endDate;
22975
    }
22976
 
22977
    public getMovementSerializedInventoryByScans_args deepCopy() {
22978
      return new getMovementSerializedInventoryByScans_args(this);
22979
    }
22980
 
22981
    @Override
22982
    public void clear() {
22983
      setStartDateIsSet(false);
22984
      this.startDate = 0;
22985
      setEndDateIsSet(false);
22986
      this.endDate = 0;
22987
    }
22988
 
22989
    public long getStartDate() {
22990
      return this.startDate;
22991
    }
22992
 
22993
    public void setStartDate(long startDate) {
22994
      this.startDate = startDate;
22995
      setStartDateIsSet(true);
22996
    }
22997
 
22998
    public void unsetStartDate() {
22999
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
23000
    }
23001
 
23002
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
23003
    public boolean isSetStartDate() {
23004
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
23005
    }
23006
 
23007
    public void setStartDateIsSet(boolean value) {
23008
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
23009
    }
23010
 
23011
    public long getEndDate() {
23012
      return this.endDate;
23013
    }
23014
 
23015
    public void setEndDate(long endDate) {
23016
      this.endDate = endDate;
23017
      setEndDateIsSet(true);
23018
    }
23019
 
23020
    public void unsetEndDate() {
23021
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
23022
    }
23023
 
23024
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
23025
    public boolean isSetEndDate() {
23026
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
23027
    }
23028
 
23029
    public void setEndDateIsSet(boolean value) {
23030
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
23031
    }
23032
 
23033
    public void setFieldValue(_Fields field, Object value) {
23034
      switch (field) {
23035
      case START_DATE:
23036
        if (value == null) {
23037
          unsetStartDate();
23038
        } else {
23039
          setStartDate((Long)value);
23040
        }
23041
        break;
23042
 
23043
      case END_DATE:
23044
        if (value == null) {
23045
          unsetEndDate();
23046
        } else {
23047
          setEndDate((Long)value);
23048
        }
23049
        break;
23050
 
23051
      }
23052
    }
23053
 
23054
    public Object getFieldValue(_Fields field) {
23055
      switch (field) {
23056
      case START_DATE:
23057
        return Long.valueOf(getStartDate());
23058
 
23059
      case END_DATE:
23060
        return Long.valueOf(getEndDate());
23061
 
23062
      }
23063
      throw new IllegalStateException();
23064
    }
23065
 
23066
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23067
    public boolean isSet(_Fields field) {
23068
      if (field == null) {
23069
        throw new IllegalArgumentException();
23070
      }
23071
 
23072
      switch (field) {
23073
      case START_DATE:
23074
        return isSetStartDate();
23075
      case END_DATE:
23076
        return isSetEndDate();
23077
      }
23078
      throw new IllegalStateException();
23079
    }
23080
 
23081
    @Override
23082
    public boolean equals(Object that) {
23083
      if (that == null)
23084
        return false;
23085
      if (that instanceof getMovementSerializedInventoryByScans_args)
23086
        return this.equals((getMovementSerializedInventoryByScans_args)that);
23087
      return false;
23088
    }
23089
 
23090
    public boolean equals(getMovementSerializedInventoryByScans_args that) {
23091
      if (that == null)
23092
        return false;
23093
 
23094
      boolean this_present_startDate = true;
23095
      boolean that_present_startDate = true;
23096
      if (this_present_startDate || that_present_startDate) {
23097
        if (!(this_present_startDate && that_present_startDate))
23098
          return false;
23099
        if (this.startDate != that.startDate)
23100
          return false;
23101
      }
23102
 
23103
      boolean this_present_endDate = true;
23104
      boolean that_present_endDate = true;
23105
      if (this_present_endDate || that_present_endDate) {
23106
        if (!(this_present_endDate && that_present_endDate))
23107
          return false;
23108
        if (this.endDate != that.endDate)
23109
          return false;
23110
      }
23111
 
23112
      return true;
23113
    }
23114
 
23115
    @Override
23116
    public int hashCode() {
23117
      return 0;
23118
    }
23119
 
23120
    public int compareTo(getMovementSerializedInventoryByScans_args other) {
23121
      if (!getClass().equals(other.getClass())) {
23122
        return getClass().getName().compareTo(other.getClass().getName());
23123
      }
23124
 
23125
      int lastComparison = 0;
23126
      getMovementSerializedInventoryByScans_args typedOther = (getMovementSerializedInventoryByScans_args)other;
23127
 
23128
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
23129
      if (lastComparison != 0) {
23130
        return lastComparison;
23131
      }
23132
      if (isSetStartDate()) {
23133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
23134
        if (lastComparison != 0) {
23135
          return lastComparison;
23136
        }
23137
      }
23138
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
23139
      if (lastComparison != 0) {
23140
        return lastComparison;
23141
      }
23142
      if (isSetEndDate()) {
23143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
23144
        if (lastComparison != 0) {
23145
          return lastComparison;
23146
        }
23147
      }
23148
      return 0;
23149
    }
23150
 
23151
    public _Fields fieldForId(int fieldId) {
23152
      return _Fields.findByThriftId(fieldId);
23153
    }
23154
 
23155
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23156
      org.apache.thrift.protocol.TField field;
23157
      iprot.readStructBegin();
23158
      while (true)
23159
      {
23160
        field = iprot.readFieldBegin();
23161
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23162
          break;
23163
        }
23164
        switch (field.id) {
23165
          case 1: // START_DATE
23166
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23167
              this.startDate = iprot.readI64();
23168
              setStartDateIsSet(true);
23169
            } else { 
23170
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23171
            }
23172
            break;
23173
          case 2: // END_DATE
23174
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23175
              this.endDate = iprot.readI64();
23176
              setEndDateIsSet(true);
23177
            } else { 
23178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23179
            }
23180
            break;
23181
          default:
23182
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23183
        }
23184
        iprot.readFieldEnd();
23185
      }
23186
      iprot.readStructEnd();
23187
      validate();
23188
    }
23189
 
23190
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23191
      validate();
23192
 
23193
      oprot.writeStructBegin(STRUCT_DESC);
23194
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
23195
      oprot.writeI64(this.startDate);
23196
      oprot.writeFieldEnd();
23197
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
23198
      oprot.writeI64(this.endDate);
23199
      oprot.writeFieldEnd();
23200
      oprot.writeFieldStop();
23201
      oprot.writeStructEnd();
23202
    }
23203
 
23204
    @Override
23205
    public String toString() {
23206
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_args(");
23207
      boolean first = true;
23208
 
23209
      sb.append("startDate:");
23210
      sb.append(this.startDate);
23211
      first = false;
23212
      if (!first) sb.append(", ");
23213
      sb.append("endDate:");
23214
      sb.append(this.endDate);
23215
      first = false;
23216
      sb.append(")");
23217
      return sb.toString();
23218
    }
23219
 
23220
    public void validate() throws org.apache.thrift.TException {
23221
      // check for required fields
23222
    }
23223
 
23224
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23225
      try {
23226
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23227
      } catch (org.apache.thrift.TException te) {
23228
        throw new java.io.IOException(te);
23229
      }
23230
    }
23231
 
23232
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23233
      try {
23234
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23235
        __isset_bit_vector = new BitSet(1);
23236
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23237
      } catch (org.apache.thrift.TException te) {
23238
        throw new java.io.IOException(te);
23239
      }
23240
    }
23241
 
23242
  }
23243
 
23244
  public static class getMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_result, getMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
23245
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_result");
23246
 
23247
    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);
23248
 
23249
    private List<InventoryMovement> success; // required
23250
 
23251
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23252
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23253
      SUCCESS((short)0, "success");
23254
 
23255
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23256
 
23257
      static {
23258
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23259
          byName.put(field.getFieldName(), field);
23260
        }
23261
      }
23262
 
23263
      /**
23264
       * Find the _Fields constant that matches fieldId, or null if its not found.
23265
       */
23266
      public static _Fields findByThriftId(int fieldId) {
23267
        switch(fieldId) {
23268
          case 0: // SUCCESS
23269
            return SUCCESS;
23270
          default:
23271
            return null;
23272
        }
23273
      }
23274
 
23275
      /**
23276
       * Find the _Fields constant that matches fieldId, throwing an exception
23277
       * if it is not found.
23278
       */
23279
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23280
        _Fields fields = findByThriftId(fieldId);
23281
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23282
        return fields;
23283
      }
23284
 
23285
      /**
23286
       * Find the _Fields constant that matches name, or null if its not found.
23287
       */
23288
      public static _Fields findByName(String name) {
23289
        return byName.get(name);
23290
      }
23291
 
23292
      private final short _thriftId;
23293
      private final String _fieldName;
23294
 
23295
      _Fields(short thriftId, String fieldName) {
23296
        _thriftId = thriftId;
23297
        _fieldName = fieldName;
23298
      }
23299
 
23300
      public short getThriftFieldId() {
23301
        return _thriftId;
23302
      }
23303
 
23304
      public String getFieldName() {
23305
        return _fieldName;
23306
      }
23307
    }
23308
 
23309
    // isset id assignments
23310
 
23311
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23312
    static {
23313
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23314
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23315
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23316
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
23317
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23318
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_result.class, metaDataMap);
23319
    }
23320
 
23321
    public getMovementSerializedInventoryByScans_result() {
23322
    }
23323
 
23324
    public getMovementSerializedInventoryByScans_result(
23325
      List<InventoryMovement> success)
23326
    {
23327
      this();
23328
      this.success = success;
23329
    }
23330
 
23331
    /**
23332
     * Performs a deep copy on <i>other</i>.
23333
     */
23334
    public getMovementSerializedInventoryByScans_result(getMovementSerializedInventoryByScans_result other) {
23335
      if (other.isSetSuccess()) {
23336
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
23337
        for (InventoryMovement other_element : other.success) {
23338
          __this__success.add(new InventoryMovement(other_element));
23339
        }
23340
        this.success = __this__success;
23341
      }
23342
    }
23343
 
23344
    public getMovementSerializedInventoryByScans_result deepCopy() {
23345
      return new getMovementSerializedInventoryByScans_result(this);
23346
    }
23347
 
23348
    @Override
23349
    public void clear() {
23350
      this.success = null;
23351
    }
23352
 
23353
    public int getSuccessSize() {
23354
      return (this.success == null) ? 0 : this.success.size();
23355
    }
23356
 
23357
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
23358
      return (this.success == null) ? null : this.success.iterator();
23359
    }
23360
 
23361
    public void addToSuccess(InventoryMovement elem) {
23362
      if (this.success == null) {
23363
        this.success = new ArrayList<InventoryMovement>();
23364
      }
23365
      this.success.add(elem);
23366
    }
23367
 
23368
    public List<InventoryMovement> getSuccess() {
23369
      return this.success;
23370
    }
23371
 
23372
    public void setSuccess(List<InventoryMovement> success) {
23373
      this.success = success;
23374
    }
23375
 
23376
    public void unsetSuccess() {
23377
      this.success = null;
23378
    }
23379
 
23380
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23381
    public boolean isSetSuccess() {
23382
      return this.success != null;
23383
    }
23384
 
23385
    public void setSuccessIsSet(boolean value) {
23386
      if (!value) {
23387
        this.success = null;
23388
      }
23389
    }
23390
 
23391
    public void setFieldValue(_Fields field, Object value) {
23392
      switch (field) {
23393
      case SUCCESS:
23394
        if (value == null) {
23395
          unsetSuccess();
23396
        } else {
23397
          setSuccess((List<InventoryMovement>)value);
23398
        }
23399
        break;
23400
 
23401
      }
23402
    }
23403
 
23404
    public Object getFieldValue(_Fields field) {
23405
      switch (field) {
23406
      case SUCCESS:
23407
        return getSuccess();
23408
 
23409
      }
23410
      throw new IllegalStateException();
23411
    }
23412
 
23413
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23414
    public boolean isSet(_Fields field) {
23415
      if (field == null) {
23416
        throw new IllegalArgumentException();
23417
      }
23418
 
23419
      switch (field) {
23420
      case SUCCESS:
23421
        return isSetSuccess();
23422
      }
23423
      throw new IllegalStateException();
23424
    }
23425
 
23426
    @Override
23427
    public boolean equals(Object that) {
23428
      if (that == null)
23429
        return false;
23430
      if (that instanceof getMovementSerializedInventoryByScans_result)
23431
        return this.equals((getMovementSerializedInventoryByScans_result)that);
23432
      return false;
23433
    }
23434
 
23435
    public boolean equals(getMovementSerializedInventoryByScans_result that) {
23436
      if (that == null)
23437
        return false;
23438
 
23439
      boolean this_present_success = true && this.isSetSuccess();
23440
      boolean that_present_success = true && that.isSetSuccess();
23441
      if (this_present_success || that_present_success) {
23442
        if (!(this_present_success && that_present_success))
23443
          return false;
23444
        if (!this.success.equals(that.success))
23445
          return false;
23446
      }
23447
 
23448
      return true;
23449
    }
23450
 
23451
    @Override
23452
    public int hashCode() {
23453
      return 0;
23454
    }
23455
 
23456
    public int compareTo(getMovementSerializedInventoryByScans_result other) {
23457
      if (!getClass().equals(other.getClass())) {
23458
        return getClass().getName().compareTo(other.getClass().getName());
23459
      }
23460
 
23461
      int lastComparison = 0;
23462
      getMovementSerializedInventoryByScans_result typedOther = (getMovementSerializedInventoryByScans_result)other;
23463
 
23464
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23465
      if (lastComparison != 0) {
23466
        return lastComparison;
23467
      }
23468
      if (isSetSuccess()) {
23469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23470
        if (lastComparison != 0) {
23471
          return lastComparison;
23472
        }
23473
      }
23474
      return 0;
23475
    }
23476
 
23477
    public _Fields fieldForId(int fieldId) {
23478
      return _Fields.findByThriftId(fieldId);
23479
    }
23480
 
23481
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23482
      org.apache.thrift.protocol.TField field;
23483
      iprot.readStructBegin();
23484
      while (true)
23485
      {
23486
        field = iprot.readFieldBegin();
23487
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23488
          break;
23489
        }
23490
        switch (field.id) {
23491
          case 0: // SUCCESS
23492
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23493
              {
7210 amar.kumar 23494
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
23495
                this.success = new ArrayList<InventoryMovement>(_list64.size);
23496
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
6880 amar.kumar 23497
                {
7210 amar.kumar 23498
                  InventoryMovement _elem66; // required
23499
                  _elem66 = new InventoryMovement();
23500
                  _elem66.read(iprot);
23501
                  this.success.add(_elem66);
6880 amar.kumar 23502
                }
23503
                iprot.readListEnd();
23504
              }
23505
            } else { 
23506
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23507
            }
23508
            break;
23509
          default:
23510
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23511
        }
23512
        iprot.readFieldEnd();
23513
      }
23514
      iprot.readStructEnd();
23515
      validate();
23516
    }
23517
 
23518
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23519
      oprot.writeStructBegin(STRUCT_DESC);
23520
 
23521
      if (this.isSetSuccess()) {
23522
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23523
        {
23524
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 23525
          for (InventoryMovement _iter67 : this.success)
6880 amar.kumar 23526
          {
7210 amar.kumar 23527
            _iter67.write(oprot);
6880 amar.kumar 23528
          }
23529
          oprot.writeListEnd();
23530
        }
23531
        oprot.writeFieldEnd();
23532
      }
23533
      oprot.writeFieldStop();
23534
      oprot.writeStructEnd();
23535
    }
23536
 
23537
    @Override
23538
    public String toString() {
23539
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_result(");
23540
      boolean first = true;
23541
 
23542
      sb.append("success:");
23543
      if (this.success == null) {
23544
        sb.append("null");
23545
      } else {
23546
        sb.append(this.success);
23547
      }
23548
      first = false;
23549
      sb.append(")");
23550
      return sb.toString();
23551
    }
23552
 
23553
    public void validate() throws org.apache.thrift.TException {
23554
      // check for required fields
23555
    }
23556
 
23557
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23558
      try {
23559
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23560
      } catch (org.apache.thrift.TException te) {
23561
        throw new java.io.IOException(te);
23562
      }
23563
    }
23564
 
23565
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23566
      try {
23567
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23568
      } catch (org.apache.thrift.TException te) {
23569
        throw new java.io.IOException(te);
23570
      }
23571
    }
23572
 
23573
  }
23574
 
7216 amar.kumar 23575
  public static class getCompleteMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_args, getCompleteMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
23576
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_args");
23577
 
23578
    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);
23579
    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);
23580
 
23581
    private long startDate; // required
23582
    private long endDate; // required
23583
 
23584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23586
      START_DATE((short)1, "startDate"),
23587
      END_DATE((short)2, "endDate");
23588
 
23589
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23590
 
23591
      static {
23592
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23593
          byName.put(field.getFieldName(), field);
23594
        }
23595
      }
23596
 
23597
      /**
23598
       * Find the _Fields constant that matches fieldId, or null if its not found.
23599
       */
23600
      public static _Fields findByThriftId(int fieldId) {
23601
        switch(fieldId) {
23602
          case 1: // START_DATE
23603
            return START_DATE;
23604
          case 2: // END_DATE
23605
            return END_DATE;
23606
          default:
23607
            return null;
23608
        }
23609
      }
23610
 
23611
      /**
23612
       * Find the _Fields constant that matches fieldId, throwing an exception
23613
       * if it is not found.
23614
       */
23615
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23616
        _Fields fields = findByThriftId(fieldId);
23617
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23618
        return fields;
23619
      }
23620
 
23621
      /**
23622
       * Find the _Fields constant that matches name, or null if its not found.
23623
       */
23624
      public static _Fields findByName(String name) {
23625
        return byName.get(name);
23626
      }
23627
 
23628
      private final short _thriftId;
23629
      private final String _fieldName;
23630
 
23631
      _Fields(short thriftId, String fieldName) {
23632
        _thriftId = thriftId;
23633
        _fieldName = fieldName;
23634
      }
23635
 
23636
      public short getThriftFieldId() {
23637
        return _thriftId;
23638
      }
23639
 
23640
      public String getFieldName() {
23641
        return _fieldName;
23642
      }
23643
    }
23644
 
23645
    // isset id assignments
23646
    private static final int __STARTDATE_ISSET_ID = 0;
23647
    private static final int __ENDDATE_ISSET_ID = 1;
23648
    private BitSet __isset_bit_vector = new BitSet(2);
23649
 
23650
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23651
    static {
23652
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23653
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23655
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23656
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23657
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23658
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_args.class, metaDataMap);
23659
    }
23660
 
23661
    public getCompleteMovementSerializedInventoryByScans_args() {
23662
    }
23663
 
23664
    public getCompleteMovementSerializedInventoryByScans_args(
23665
      long startDate,
23666
      long endDate)
23667
    {
23668
      this();
23669
      this.startDate = startDate;
23670
      setStartDateIsSet(true);
23671
      this.endDate = endDate;
23672
      setEndDateIsSet(true);
23673
    }
23674
 
23675
    /**
23676
     * Performs a deep copy on <i>other</i>.
23677
     */
23678
    public getCompleteMovementSerializedInventoryByScans_args(getCompleteMovementSerializedInventoryByScans_args other) {
23679
      __isset_bit_vector.clear();
23680
      __isset_bit_vector.or(other.__isset_bit_vector);
23681
      this.startDate = other.startDate;
23682
      this.endDate = other.endDate;
23683
    }
23684
 
23685
    public getCompleteMovementSerializedInventoryByScans_args deepCopy() {
23686
      return new getCompleteMovementSerializedInventoryByScans_args(this);
23687
    }
23688
 
23689
    @Override
23690
    public void clear() {
23691
      setStartDateIsSet(false);
23692
      this.startDate = 0;
23693
      setEndDateIsSet(false);
23694
      this.endDate = 0;
23695
    }
23696
 
23697
    public long getStartDate() {
23698
      return this.startDate;
23699
    }
23700
 
23701
    public void setStartDate(long startDate) {
23702
      this.startDate = startDate;
23703
      setStartDateIsSet(true);
23704
    }
23705
 
23706
    public void unsetStartDate() {
23707
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
23708
    }
23709
 
23710
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
23711
    public boolean isSetStartDate() {
23712
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
23713
    }
23714
 
23715
    public void setStartDateIsSet(boolean value) {
23716
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
23717
    }
23718
 
23719
    public long getEndDate() {
23720
      return this.endDate;
23721
    }
23722
 
23723
    public void setEndDate(long endDate) {
23724
      this.endDate = endDate;
23725
      setEndDateIsSet(true);
23726
    }
23727
 
23728
    public void unsetEndDate() {
23729
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
23730
    }
23731
 
23732
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
23733
    public boolean isSetEndDate() {
23734
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
23735
    }
23736
 
23737
    public void setEndDateIsSet(boolean value) {
23738
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
23739
    }
23740
 
23741
    public void setFieldValue(_Fields field, Object value) {
23742
      switch (field) {
23743
      case START_DATE:
23744
        if (value == null) {
23745
          unsetStartDate();
23746
        } else {
23747
          setStartDate((Long)value);
23748
        }
23749
        break;
23750
 
23751
      case END_DATE:
23752
        if (value == null) {
23753
          unsetEndDate();
23754
        } else {
23755
          setEndDate((Long)value);
23756
        }
23757
        break;
23758
 
23759
      }
23760
    }
23761
 
23762
    public Object getFieldValue(_Fields field) {
23763
      switch (field) {
23764
      case START_DATE:
23765
        return Long.valueOf(getStartDate());
23766
 
23767
      case END_DATE:
23768
        return Long.valueOf(getEndDate());
23769
 
23770
      }
23771
      throw new IllegalStateException();
23772
    }
23773
 
23774
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23775
    public boolean isSet(_Fields field) {
23776
      if (field == null) {
23777
        throw new IllegalArgumentException();
23778
      }
23779
 
23780
      switch (field) {
23781
      case START_DATE:
23782
        return isSetStartDate();
23783
      case END_DATE:
23784
        return isSetEndDate();
23785
      }
23786
      throw new IllegalStateException();
23787
    }
23788
 
23789
    @Override
23790
    public boolean equals(Object that) {
23791
      if (that == null)
23792
        return false;
23793
      if (that instanceof getCompleteMovementSerializedInventoryByScans_args)
23794
        return this.equals((getCompleteMovementSerializedInventoryByScans_args)that);
23795
      return false;
23796
    }
23797
 
23798
    public boolean equals(getCompleteMovementSerializedInventoryByScans_args that) {
23799
      if (that == null)
23800
        return false;
23801
 
23802
      boolean this_present_startDate = true;
23803
      boolean that_present_startDate = true;
23804
      if (this_present_startDate || that_present_startDate) {
23805
        if (!(this_present_startDate && that_present_startDate))
23806
          return false;
23807
        if (this.startDate != that.startDate)
23808
          return false;
23809
      }
23810
 
23811
      boolean this_present_endDate = true;
23812
      boolean that_present_endDate = true;
23813
      if (this_present_endDate || that_present_endDate) {
23814
        if (!(this_present_endDate && that_present_endDate))
23815
          return false;
23816
        if (this.endDate != that.endDate)
23817
          return false;
23818
      }
23819
 
23820
      return true;
23821
    }
23822
 
23823
    @Override
23824
    public int hashCode() {
23825
      return 0;
23826
    }
23827
 
23828
    public int compareTo(getCompleteMovementSerializedInventoryByScans_args other) {
23829
      if (!getClass().equals(other.getClass())) {
23830
        return getClass().getName().compareTo(other.getClass().getName());
23831
      }
23832
 
23833
      int lastComparison = 0;
23834
      getCompleteMovementSerializedInventoryByScans_args typedOther = (getCompleteMovementSerializedInventoryByScans_args)other;
23835
 
23836
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
23837
      if (lastComparison != 0) {
23838
        return lastComparison;
23839
      }
23840
      if (isSetStartDate()) {
23841
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
23842
        if (lastComparison != 0) {
23843
          return lastComparison;
23844
        }
23845
      }
23846
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
23847
      if (lastComparison != 0) {
23848
        return lastComparison;
23849
      }
23850
      if (isSetEndDate()) {
23851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
23852
        if (lastComparison != 0) {
23853
          return lastComparison;
23854
        }
23855
      }
23856
      return 0;
23857
    }
23858
 
23859
    public _Fields fieldForId(int fieldId) {
23860
      return _Fields.findByThriftId(fieldId);
23861
    }
23862
 
23863
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23864
      org.apache.thrift.protocol.TField field;
23865
      iprot.readStructBegin();
23866
      while (true)
23867
      {
23868
        field = iprot.readFieldBegin();
23869
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23870
          break;
23871
        }
23872
        switch (field.id) {
23873
          case 1: // START_DATE
23874
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23875
              this.startDate = iprot.readI64();
23876
              setStartDateIsSet(true);
23877
            } else { 
23878
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23879
            }
23880
            break;
23881
          case 2: // END_DATE
23882
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23883
              this.endDate = iprot.readI64();
23884
              setEndDateIsSet(true);
23885
            } else { 
23886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23887
            }
23888
            break;
23889
          default:
23890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23891
        }
23892
        iprot.readFieldEnd();
23893
      }
23894
      iprot.readStructEnd();
23895
      validate();
23896
    }
23897
 
23898
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23899
      validate();
23900
 
23901
      oprot.writeStructBegin(STRUCT_DESC);
23902
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
23903
      oprot.writeI64(this.startDate);
23904
      oprot.writeFieldEnd();
23905
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
23906
      oprot.writeI64(this.endDate);
23907
      oprot.writeFieldEnd();
23908
      oprot.writeFieldStop();
23909
      oprot.writeStructEnd();
23910
    }
23911
 
23912
    @Override
23913
    public String toString() {
23914
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_args(");
23915
      boolean first = true;
23916
 
23917
      sb.append("startDate:");
23918
      sb.append(this.startDate);
23919
      first = false;
23920
      if (!first) sb.append(", ");
23921
      sb.append("endDate:");
23922
      sb.append(this.endDate);
23923
      first = false;
23924
      sb.append(")");
23925
      return sb.toString();
23926
    }
23927
 
23928
    public void validate() throws org.apache.thrift.TException {
23929
      // check for required fields
23930
    }
23931
 
23932
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23933
      try {
23934
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23935
      } catch (org.apache.thrift.TException te) {
23936
        throw new java.io.IOException(te);
23937
      }
23938
    }
23939
 
23940
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23941
      try {
23942
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23943
        __isset_bit_vector = new BitSet(1);
23944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23945
      } catch (org.apache.thrift.TException te) {
23946
        throw new java.io.IOException(te);
23947
      }
23948
    }
23949
 
23950
  }
23951
 
23952
  public static class getCompleteMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_result, getCompleteMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
23953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_result");
23954
 
23955
    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);
23956
 
23957
    private List<InventoryMovement> success; // required
23958
 
23959
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23960
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23961
      SUCCESS((short)0, "success");
23962
 
23963
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23964
 
23965
      static {
23966
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23967
          byName.put(field.getFieldName(), field);
23968
        }
23969
      }
23970
 
23971
      /**
23972
       * Find the _Fields constant that matches fieldId, or null if its not found.
23973
       */
23974
      public static _Fields findByThriftId(int fieldId) {
23975
        switch(fieldId) {
23976
          case 0: // SUCCESS
23977
            return SUCCESS;
23978
          default:
23979
            return null;
23980
        }
23981
      }
23982
 
23983
      /**
23984
       * Find the _Fields constant that matches fieldId, throwing an exception
23985
       * if it is not found.
23986
       */
23987
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23988
        _Fields fields = findByThriftId(fieldId);
23989
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23990
        return fields;
23991
      }
23992
 
23993
      /**
23994
       * Find the _Fields constant that matches name, or null if its not found.
23995
       */
23996
      public static _Fields findByName(String name) {
23997
        return byName.get(name);
23998
      }
23999
 
24000
      private final short _thriftId;
24001
      private final String _fieldName;
24002
 
24003
      _Fields(short thriftId, String fieldName) {
24004
        _thriftId = thriftId;
24005
        _fieldName = fieldName;
24006
      }
24007
 
24008
      public short getThriftFieldId() {
24009
        return _thriftId;
24010
      }
24011
 
24012
      public String getFieldName() {
24013
        return _fieldName;
24014
      }
24015
    }
24016
 
24017
    // isset id assignments
24018
 
24019
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24020
    static {
24021
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24022
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24023
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24024
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
24025
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24026
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_result.class, metaDataMap);
24027
    }
24028
 
24029
    public getCompleteMovementSerializedInventoryByScans_result() {
24030
    }
24031
 
24032
    public getCompleteMovementSerializedInventoryByScans_result(
24033
      List<InventoryMovement> success)
24034
    {
24035
      this();
24036
      this.success = success;
24037
    }
24038
 
24039
    /**
24040
     * Performs a deep copy on <i>other</i>.
24041
     */
24042
    public getCompleteMovementSerializedInventoryByScans_result(getCompleteMovementSerializedInventoryByScans_result other) {
24043
      if (other.isSetSuccess()) {
24044
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
24045
        for (InventoryMovement other_element : other.success) {
24046
          __this__success.add(new InventoryMovement(other_element));
24047
        }
24048
        this.success = __this__success;
24049
      }
24050
    }
24051
 
24052
    public getCompleteMovementSerializedInventoryByScans_result deepCopy() {
24053
      return new getCompleteMovementSerializedInventoryByScans_result(this);
24054
    }
24055
 
24056
    @Override
24057
    public void clear() {
24058
      this.success = null;
24059
    }
24060
 
24061
    public int getSuccessSize() {
24062
      return (this.success == null) ? 0 : this.success.size();
24063
    }
24064
 
24065
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
24066
      return (this.success == null) ? null : this.success.iterator();
24067
    }
24068
 
24069
    public void addToSuccess(InventoryMovement elem) {
24070
      if (this.success == null) {
24071
        this.success = new ArrayList<InventoryMovement>();
24072
      }
24073
      this.success.add(elem);
24074
    }
24075
 
24076
    public List<InventoryMovement> getSuccess() {
24077
      return this.success;
24078
    }
24079
 
24080
    public void setSuccess(List<InventoryMovement> success) {
24081
      this.success = success;
24082
    }
24083
 
24084
    public void unsetSuccess() {
24085
      this.success = null;
24086
    }
24087
 
24088
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24089
    public boolean isSetSuccess() {
24090
      return this.success != null;
24091
    }
24092
 
24093
    public void setSuccessIsSet(boolean value) {
24094
      if (!value) {
24095
        this.success = null;
24096
      }
24097
    }
24098
 
24099
    public void setFieldValue(_Fields field, Object value) {
24100
      switch (field) {
24101
      case SUCCESS:
24102
        if (value == null) {
24103
          unsetSuccess();
24104
        } else {
24105
          setSuccess((List<InventoryMovement>)value);
24106
        }
24107
        break;
24108
 
24109
      }
24110
    }
24111
 
24112
    public Object getFieldValue(_Fields field) {
24113
      switch (field) {
24114
      case SUCCESS:
24115
        return getSuccess();
24116
 
24117
      }
24118
      throw new IllegalStateException();
24119
    }
24120
 
24121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24122
    public boolean isSet(_Fields field) {
24123
      if (field == null) {
24124
        throw new IllegalArgumentException();
24125
      }
24126
 
24127
      switch (field) {
24128
      case SUCCESS:
24129
        return isSetSuccess();
24130
      }
24131
      throw new IllegalStateException();
24132
    }
24133
 
24134
    @Override
24135
    public boolean equals(Object that) {
24136
      if (that == null)
24137
        return false;
24138
      if (that instanceof getCompleteMovementSerializedInventoryByScans_result)
24139
        return this.equals((getCompleteMovementSerializedInventoryByScans_result)that);
24140
      return false;
24141
    }
24142
 
24143
    public boolean equals(getCompleteMovementSerializedInventoryByScans_result that) {
24144
      if (that == null)
24145
        return false;
24146
 
24147
      boolean this_present_success = true && this.isSetSuccess();
24148
      boolean that_present_success = true && that.isSetSuccess();
24149
      if (this_present_success || that_present_success) {
24150
        if (!(this_present_success && that_present_success))
24151
          return false;
24152
        if (!this.success.equals(that.success))
24153
          return false;
24154
      }
24155
 
24156
      return true;
24157
    }
24158
 
24159
    @Override
24160
    public int hashCode() {
24161
      return 0;
24162
    }
24163
 
24164
    public int compareTo(getCompleteMovementSerializedInventoryByScans_result other) {
24165
      if (!getClass().equals(other.getClass())) {
24166
        return getClass().getName().compareTo(other.getClass().getName());
24167
      }
24168
 
24169
      int lastComparison = 0;
24170
      getCompleteMovementSerializedInventoryByScans_result typedOther = (getCompleteMovementSerializedInventoryByScans_result)other;
24171
 
24172
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24173
      if (lastComparison != 0) {
24174
        return lastComparison;
24175
      }
24176
      if (isSetSuccess()) {
24177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24178
        if (lastComparison != 0) {
24179
          return lastComparison;
24180
        }
24181
      }
24182
      return 0;
24183
    }
24184
 
24185
    public _Fields fieldForId(int fieldId) {
24186
      return _Fields.findByThriftId(fieldId);
24187
    }
24188
 
24189
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24190
      org.apache.thrift.protocol.TField field;
24191
      iprot.readStructBegin();
24192
      while (true)
24193
      {
24194
        field = iprot.readFieldBegin();
24195
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24196
          break;
24197
        }
24198
        switch (field.id) {
24199
          case 0: // SUCCESS
24200
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24201
              {
24202
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
24203
                this.success = new ArrayList<InventoryMovement>(_list68.size);
24204
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
24205
                {
24206
                  InventoryMovement _elem70; // required
24207
                  _elem70 = new InventoryMovement();
24208
                  _elem70.read(iprot);
24209
                  this.success.add(_elem70);
24210
                }
24211
                iprot.readListEnd();
24212
              }
24213
            } else { 
24214
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24215
            }
24216
            break;
24217
          default:
24218
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24219
        }
24220
        iprot.readFieldEnd();
24221
      }
24222
      iprot.readStructEnd();
24223
      validate();
24224
    }
24225
 
24226
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24227
      oprot.writeStructBegin(STRUCT_DESC);
24228
 
24229
      if (this.isSetSuccess()) {
24230
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24231
        {
24232
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24233
          for (InventoryMovement _iter71 : this.success)
24234
          {
24235
            _iter71.write(oprot);
24236
          }
24237
          oprot.writeListEnd();
24238
        }
24239
        oprot.writeFieldEnd();
24240
      }
24241
      oprot.writeFieldStop();
24242
      oprot.writeStructEnd();
24243
    }
24244
 
24245
    @Override
24246
    public String toString() {
24247
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_result(");
24248
      boolean first = true;
24249
 
24250
      sb.append("success:");
24251
      if (this.success == null) {
24252
        sb.append("null");
24253
      } else {
24254
        sb.append(this.success);
24255
      }
24256
      first = false;
24257
      sb.append(")");
24258
      return sb.toString();
24259
    }
24260
 
24261
    public void validate() throws org.apache.thrift.TException {
24262
      // check for required fields
24263
    }
24264
 
24265
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24266
      try {
24267
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24268
      } catch (org.apache.thrift.TException te) {
24269
        throw new java.io.IOException(te);
24270
      }
24271
    }
24272
 
24273
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24274
      try {
24275
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24276
      } catch (org.apache.thrift.TException te) {
24277
        throw new java.io.IOException(te);
24278
      }
24279
    }
24280
 
24281
  }
24282
 
24283
  public static class getCompleteMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_args, getCompleteMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
24284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_args");
24285
 
24286
    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);
24287
    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);
24288
 
24289
    private long startDate; // required
24290
    private long endDate; // required
24291
 
24292
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24293
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24294
      START_DATE((short)1, "startDate"),
24295
      END_DATE((short)2, "endDate");
24296
 
24297
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24298
 
24299
      static {
24300
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24301
          byName.put(field.getFieldName(), field);
24302
        }
24303
      }
24304
 
24305
      /**
24306
       * Find the _Fields constant that matches fieldId, or null if its not found.
24307
       */
24308
      public static _Fields findByThriftId(int fieldId) {
24309
        switch(fieldId) {
24310
          case 1: // START_DATE
24311
            return START_DATE;
24312
          case 2: // END_DATE
24313
            return END_DATE;
24314
          default:
24315
            return null;
24316
        }
24317
      }
24318
 
24319
      /**
24320
       * Find the _Fields constant that matches fieldId, throwing an exception
24321
       * if it is not found.
24322
       */
24323
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24324
        _Fields fields = findByThriftId(fieldId);
24325
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24326
        return fields;
24327
      }
24328
 
24329
      /**
24330
       * Find the _Fields constant that matches name, or null if its not found.
24331
       */
24332
      public static _Fields findByName(String name) {
24333
        return byName.get(name);
24334
      }
24335
 
24336
      private final short _thriftId;
24337
      private final String _fieldName;
24338
 
24339
      _Fields(short thriftId, String fieldName) {
24340
        _thriftId = thriftId;
24341
        _fieldName = fieldName;
24342
      }
24343
 
24344
      public short getThriftFieldId() {
24345
        return _thriftId;
24346
      }
24347
 
24348
      public String getFieldName() {
24349
        return _fieldName;
24350
      }
24351
    }
24352
 
24353
    // isset id assignments
24354
    private static final int __STARTDATE_ISSET_ID = 0;
24355
    private static final int __ENDDATE_ISSET_ID = 1;
24356
    private BitSet __isset_bit_vector = new BitSet(2);
24357
 
24358
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24359
    static {
24360
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24361
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24363
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24364
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24365
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24366
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_args.class, metaDataMap);
24367
    }
24368
 
24369
    public getCompleteMovementNonSerializedInventoryByScans_args() {
24370
    }
24371
 
24372
    public getCompleteMovementNonSerializedInventoryByScans_args(
24373
      long startDate,
24374
      long endDate)
24375
    {
24376
      this();
24377
      this.startDate = startDate;
24378
      setStartDateIsSet(true);
24379
      this.endDate = endDate;
24380
      setEndDateIsSet(true);
24381
    }
24382
 
24383
    /**
24384
     * Performs a deep copy on <i>other</i>.
24385
     */
24386
    public getCompleteMovementNonSerializedInventoryByScans_args(getCompleteMovementNonSerializedInventoryByScans_args other) {
24387
      __isset_bit_vector.clear();
24388
      __isset_bit_vector.or(other.__isset_bit_vector);
24389
      this.startDate = other.startDate;
24390
      this.endDate = other.endDate;
24391
    }
24392
 
24393
    public getCompleteMovementNonSerializedInventoryByScans_args deepCopy() {
24394
      return new getCompleteMovementNonSerializedInventoryByScans_args(this);
24395
    }
24396
 
24397
    @Override
24398
    public void clear() {
24399
      setStartDateIsSet(false);
24400
      this.startDate = 0;
24401
      setEndDateIsSet(false);
24402
      this.endDate = 0;
24403
    }
24404
 
24405
    public long getStartDate() {
24406
      return this.startDate;
24407
    }
24408
 
24409
    public void setStartDate(long startDate) {
24410
      this.startDate = startDate;
24411
      setStartDateIsSet(true);
24412
    }
24413
 
24414
    public void unsetStartDate() {
24415
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
24416
    }
24417
 
24418
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
24419
    public boolean isSetStartDate() {
24420
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
24421
    }
24422
 
24423
    public void setStartDateIsSet(boolean value) {
24424
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
24425
    }
24426
 
24427
    public long getEndDate() {
24428
      return this.endDate;
24429
    }
24430
 
24431
    public void setEndDate(long endDate) {
24432
      this.endDate = endDate;
24433
      setEndDateIsSet(true);
24434
    }
24435
 
24436
    public void unsetEndDate() {
24437
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
24438
    }
24439
 
24440
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
24441
    public boolean isSetEndDate() {
24442
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
24443
    }
24444
 
24445
    public void setEndDateIsSet(boolean value) {
24446
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
24447
    }
24448
 
24449
    public void setFieldValue(_Fields field, Object value) {
24450
      switch (field) {
24451
      case START_DATE:
24452
        if (value == null) {
24453
          unsetStartDate();
24454
        } else {
24455
          setStartDate((Long)value);
24456
        }
24457
        break;
24458
 
24459
      case END_DATE:
24460
        if (value == null) {
24461
          unsetEndDate();
24462
        } else {
24463
          setEndDate((Long)value);
24464
        }
24465
        break;
24466
 
24467
      }
24468
    }
24469
 
24470
    public Object getFieldValue(_Fields field) {
24471
      switch (field) {
24472
      case START_DATE:
24473
        return Long.valueOf(getStartDate());
24474
 
24475
      case END_DATE:
24476
        return Long.valueOf(getEndDate());
24477
 
24478
      }
24479
      throw new IllegalStateException();
24480
    }
24481
 
24482
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24483
    public boolean isSet(_Fields field) {
24484
      if (field == null) {
24485
        throw new IllegalArgumentException();
24486
      }
24487
 
24488
      switch (field) {
24489
      case START_DATE:
24490
        return isSetStartDate();
24491
      case END_DATE:
24492
        return isSetEndDate();
24493
      }
24494
      throw new IllegalStateException();
24495
    }
24496
 
24497
    @Override
24498
    public boolean equals(Object that) {
24499
      if (that == null)
24500
        return false;
24501
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_args)
24502
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_args)that);
24503
      return false;
24504
    }
24505
 
24506
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_args that) {
24507
      if (that == null)
24508
        return false;
24509
 
24510
      boolean this_present_startDate = true;
24511
      boolean that_present_startDate = true;
24512
      if (this_present_startDate || that_present_startDate) {
24513
        if (!(this_present_startDate && that_present_startDate))
24514
          return false;
24515
        if (this.startDate != that.startDate)
24516
          return false;
24517
      }
24518
 
24519
      boolean this_present_endDate = true;
24520
      boolean that_present_endDate = true;
24521
      if (this_present_endDate || that_present_endDate) {
24522
        if (!(this_present_endDate && that_present_endDate))
24523
          return false;
24524
        if (this.endDate != that.endDate)
24525
          return false;
24526
      }
24527
 
24528
      return true;
24529
    }
24530
 
24531
    @Override
24532
    public int hashCode() {
24533
      return 0;
24534
    }
24535
 
24536
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_args other) {
24537
      if (!getClass().equals(other.getClass())) {
24538
        return getClass().getName().compareTo(other.getClass().getName());
24539
      }
24540
 
24541
      int lastComparison = 0;
24542
      getCompleteMovementNonSerializedInventoryByScans_args typedOther = (getCompleteMovementNonSerializedInventoryByScans_args)other;
24543
 
24544
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
24545
      if (lastComparison != 0) {
24546
        return lastComparison;
24547
      }
24548
      if (isSetStartDate()) {
24549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
24550
        if (lastComparison != 0) {
24551
          return lastComparison;
24552
        }
24553
      }
24554
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
24555
      if (lastComparison != 0) {
24556
        return lastComparison;
24557
      }
24558
      if (isSetEndDate()) {
24559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
24560
        if (lastComparison != 0) {
24561
          return lastComparison;
24562
        }
24563
      }
24564
      return 0;
24565
    }
24566
 
24567
    public _Fields fieldForId(int fieldId) {
24568
      return _Fields.findByThriftId(fieldId);
24569
    }
24570
 
24571
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24572
      org.apache.thrift.protocol.TField field;
24573
      iprot.readStructBegin();
24574
      while (true)
24575
      {
24576
        field = iprot.readFieldBegin();
24577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24578
          break;
24579
        }
24580
        switch (field.id) {
24581
          case 1: // START_DATE
24582
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24583
              this.startDate = iprot.readI64();
24584
              setStartDateIsSet(true);
24585
            } else { 
24586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24587
            }
24588
            break;
24589
          case 2: // END_DATE
24590
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24591
              this.endDate = iprot.readI64();
24592
              setEndDateIsSet(true);
24593
            } else { 
24594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24595
            }
24596
            break;
24597
          default:
24598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24599
        }
24600
        iprot.readFieldEnd();
24601
      }
24602
      iprot.readStructEnd();
24603
      validate();
24604
    }
24605
 
24606
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24607
      validate();
24608
 
24609
      oprot.writeStructBegin(STRUCT_DESC);
24610
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
24611
      oprot.writeI64(this.startDate);
24612
      oprot.writeFieldEnd();
24613
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
24614
      oprot.writeI64(this.endDate);
24615
      oprot.writeFieldEnd();
24616
      oprot.writeFieldStop();
24617
      oprot.writeStructEnd();
24618
    }
24619
 
24620
    @Override
24621
    public String toString() {
24622
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_args(");
24623
      boolean first = true;
24624
 
24625
      sb.append("startDate:");
24626
      sb.append(this.startDate);
24627
      first = false;
24628
      if (!first) sb.append(", ");
24629
      sb.append("endDate:");
24630
      sb.append(this.endDate);
24631
      first = false;
24632
      sb.append(")");
24633
      return sb.toString();
24634
    }
24635
 
24636
    public void validate() throws org.apache.thrift.TException {
24637
      // check for required fields
24638
    }
24639
 
24640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24641
      try {
24642
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24643
      } catch (org.apache.thrift.TException te) {
24644
        throw new java.io.IOException(te);
24645
      }
24646
    }
24647
 
24648
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24649
      try {
24650
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24651
        __isset_bit_vector = new BitSet(1);
24652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24653
      } catch (org.apache.thrift.TException te) {
24654
        throw new java.io.IOException(te);
24655
      }
24656
    }
24657
 
24658
  }
24659
 
24660
  public static class getCompleteMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_result, getCompleteMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
24661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_result");
24662
 
24663
    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);
24664
 
24665
    private List<InventoryMovement> success; // required
24666
 
24667
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24668
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24669
      SUCCESS((short)0, "success");
24670
 
24671
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24672
 
24673
      static {
24674
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24675
          byName.put(field.getFieldName(), field);
24676
        }
24677
      }
24678
 
24679
      /**
24680
       * Find the _Fields constant that matches fieldId, or null if its not found.
24681
       */
24682
      public static _Fields findByThriftId(int fieldId) {
24683
        switch(fieldId) {
24684
          case 0: // SUCCESS
24685
            return SUCCESS;
24686
          default:
24687
            return null;
24688
        }
24689
      }
24690
 
24691
      /**
24692
       * Find the _Fields constant that matches fieldId, throwing an exception
24693
       * if it is not found.
24694
       */
24695
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24696
        _Fields fields = findByThriftId(fieldId);
24697
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24698
        return fields;
24699
      }
24700
 
24701
      /**
24702
       * Find the _Fields constant that matches name, or null if its not found.
24703
       */
24704
      public static _Fields findByName(String name) {
24705
        return byName.get(name);
24706
      }
24707
 
24708
      private final short _thriftId;
24709
      private final String _fieldName;
24710
 
24711
      _Fields(short thriftId, String fieldName) {
24712
        _thriftId = thriftId;
24713
        _fieldName = fieldName;
24714
      }
24715
 
24716
      public short getThriftFieldId() {
24717
        return _thriftId;
24718
      }
24719
 
24720
      public String getFieldName() {
24721
        return _fieldName;
24722
      }
24723
    }
24724
 
24725
    // isset id assignments
24726
 
24727
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24728
    static {
24729
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24730
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24731
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24732
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
24733
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24734
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_result.class, metaDataMap);
24735
    }
24736
 
24737
    public getCompleteMovementNonSerializedInventoryByScans_result() {
24738
    }
24739
 
24740
    public getCompleteMovementNonSerializedInventoryByScans_result(
24741
      List<InventoryMovement> success)
24742
    {
24743
      this();
24744
      this.success = success;
24745
    }
24746
 
24747
    /**
24748
     * Performs a deep copy on <i>other</i>.
24749
     */
24750
    public getCompleteMovementNonSerializedInventoryByScans_result(getCompleteMovementNonSerializedInventoryByScans_result other) {
24751
      if (other.isSetSuccess()) {
24752
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
24753
        for (InventoryMovement other_element : other.success) {
24754
          __this__success.add(new InventoryMovement(other_element));
24755
        }
24756
        this.success = __this__success;
24757
      }
24758
    }
24759
 
24760
    public getCompleteMovementNonSerializedInventoryByScans_result deepCopy() {
24761
      return new getCompleteMovementNonSerializedInventoryByScans_result(this);
24762
    }
24763
 
24764
    @Override
24765
    public void clear() {
24766
      this.success = null;
24767
    }
24768
 
24769
    public int getSuccessSize() {
24770
      return (this.success == null) ? 0 : this.success.size();
24771
    }
24772
 
24773
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
24774
      return (this.success == null) ? null : this.success.iterator();
24775
    }
24776
 
24777
    public void addToSuccess(InventoryMovement elem) {
24778
      if (this.success == null) {
24779
        this.success = new ArrayList<InventoryMovement>();
24780
      }
24781
      this.success.add(elem);
24782
    }
24783
 
24784
    public List<InventoryMovement> getSuccess() {
24785
      return this.success;
24786
    }
24787
 
24788
    public void setSuccess(List<InventoryMovement> success) {
24789
      this.success = success;
24790
    }
24791
 
24792
    public void unsetSuccess() {
24793
      this.success = null;
24794
    }
24795
 
24796
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24797
    public boolean isSetSuccess() {
24798
      return this.success != null;
24799
    }
24800
 
24801
    public void setSuccessIsSet(boolean value) {
24802
      if (!value) {
24803
        this.success = null;
24804
      }
24805
    }
24806
 
24807
    public void setFieldValue(_Fields field, Object value) {
24808
      switch (field) {
24809
      case SUCCESS:
24810
        if (value == null) {
24811
          unsetSuccess();
24812
        } else {
24813
          setSuccess((List<InventoryMovement>)value);
24814
        }
24815
        break;
24816
 
24817
      }
24818
    }
24819
 
24820
    public Object getFieldValue(_Fields field) {
24821
      switch (field) {
24822
      case SUCCESS:
24823
        return getSuccess();
24824
 
24825
      }
24826
      throw new IllegalStateException();
24827
    }
24828
 
24829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24830
    public boolean isSet(_Fields field) {
24831
      if (field == null) {
24832
        throw new IllegalArgumentException();
24833
      }
24834
 
24835
      switch (field) {
24836
      case SUCCESS:
24837
        return isSetSuccess();
24838
      }
24839
      throw new IllegalStateException();
24840
    }
24841
 
24842
    @Override
24843
    public boolean equals(Object that) {
24844
      if (that == null)
24845
        return false;
24846
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_result)
24847
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_result)that);
24848
      return false;
24849
    }
24850
 
24851
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_result that) {
24852
      if (that == null)
24853
        return false;
24854
 
24855
      boolean this_present_success = true && this.isSetSuccess();
24856
      boolean that_present_success = true && that.isSetSuccess();
24857
      if (this_present_success || that_present_success) {
24858
        if (!(this_present_success && that_present_success))
24859
          return false;
24860
        if (!this.success.equals(that.success))
24861
          return false;
24862
      }
24863
 
24864
      return true;
24865
    }
24866
 
24867
    @Override
24868
    public int hashCode() {
24869
      return 0;
24870
    }
24871
 
24872
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_result other) {
24873
      if (!getClass().equals(other.getClass())) {
24874
        return getClass().getName().compareTo(other.getClass().getName());
24875
      }
24876
 
24877
      int lastComparison = 0;
24878
      getCompleteMovementNonSerializedInventoryByScans_result typedOther = (getCompleteMovementNonSerializedInventoryByScans_result)other;
24879
 
24880
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24881
      if (lastComparison != 0) {
24882
        return lastComparison;
24883
      }
24884
      if (isSetSuccess()) {
24885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24886
        if (lastComparison != 0) {
24887
          return lastComparison;
24888
        }
24889
      }
24890
      return 0;
24891
    }
24892
 
24893
    public _Fields fieldForId(int fieldId) {
24894
      return _Fields.findByThriftId(fieldId);
24895
    }
24896
 
24897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24898
      org.apache.thrift.protocol.TField field;
24899
      iprot.readStructBegin();
24900
      while (true)
24901
      {
24902
        field = iprot.readFieldBegin();
24903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24904
          break;
24905
        }
24906
        switch (field.id) {
24907
          case 0: // SUCCESS
24908
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24909
              {
24910
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
24911
                this.success = new ArrayList<InventoryMovement>(_list72.size);
24912
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
24913
                {
24914
                  InventoryMovement _elem74; // required
24915
                  _elem74 = new InventoryMovement();
24916
                  _elem74.read(iprot);
24917
                  this.success.add(_elem74);
24918
                }
24919
                iprot.readListEnd();
24920
              }
24921
            } else { 
24922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24923
            }
24924
            break;
24925
          default:
24926
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24927
        }
24928
        iprot.readFieldEnd();
24929
      }
24930
      iprot.readStructEnd();
24931
      validate();
24932
    }
24933
 
24934
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24935
      oprot.writeStructBegin(STRUCT_DESC);
24936
 
24937
      if (this.isSetSuccess()) {
24938
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24939
        {
24940
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24941
          for (InventoryMovement _iter75 : this.success)
24942
          {
24943
            _iter75.write(oprot);
24944
          }
24945
          oprot.writeListEnd();
24946
        }
24947
        oprot.writeFieldEnd();
24948
      }
24949
      oprot.writeFieldStop();
24950
      oprot.writeStructEnd();
24951
    }
24952
 
24953
    @Override
24954
    public String toString() {
24955
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_result(");
24956
      boolean first = true;
24957
 
24958
      sb.append("success:");
24959
      if (this.success == null) {
24960
        sb.append("null");
24961
      } else {
24962
        sb.append(this.success);
24963
      }
24964
      first = false;
24965
      sb.append(")");
24966
      return sb.toString();
24967
    }
24968
 
24969
    public void validate() throws org.apache.thrift.TException {
24970
      // check for required fields
24971
    }
24972
 
24973
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24974
      try {
24975
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24976
      } catch (org.apache.thrift.TException te) {
24977
        throw new java.io.IOException(te);
24978
      }
24979
    }
24980
 
24981
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24982
      try {
24983
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24984
      } catch (org.apache.thrift.TException te) {
24985
        throw new java.io.IOException(te);
24986
      }
24987
    }
24988
 
24989
  }
24990
 
7190 amar.kumar 24991
  public static class scanfreebie_args implements org.apache.thrift.TBase<scanfreebie_args, scanfreebie_args._Fields>, java.io.Serializable, Cloneable   {
24992
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_args");
24993
 
24994
    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);
24995
    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);
24996
    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);
24997
    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);
24998
 
24999
    private long orderId; // required
25000
    private long freebieItemId; // required
25001
    private long freebieWarehouseId; // required
25002
    private ScanType scanType; // required
25003
 
25004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25006
      ORDER_ID((short)1, "orderId"),
25007
      FREEBIE_ITEM_ID((short)2, "freebieItemId"),
25008
      FREEBIE_WAREHOUSE_ID((short)3, "freebieWarehouseId"),
25009
      /**
25010
       * 
25011
       * @see ScanType
25012
       */
25013
      SCAN_TYPE((short)4, "scanType");
25014
 
25015
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25016
 
25017
      static {
25018
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25019
          byName.put(field.getFieldName(), field);
25020
        }
25021
      }
25022
 
25023
      /**
25024
       * Find the _Fields constant that matches fieldId, or null if its not found.
25025
       */
25026
      public static _Fields findByThriftId(int fieldId) {
25027
        switch(fieldId) {
25028
          case 1: // ORDER_ID
25029
            return ORDER_ID;
25030
          case 2: // FREEBIE_ITEM_ID
25031
            return FREEBIE_ITEM_ID;
25032
          case 3: // FREEBIE_WAREHOUSE_ID
25033
            return FREEBIE_WAREHOUSE_ID;
25034
          case 4: // SCAN_TYPE
25035
            return SCAN_TYPE;
25036
          default:
25037
            return null;
25038
        }
25039
      }
25040
 
25041
      /**
25042
       * Find the _Fields constant that matches fieldId, throwing an exception
25043
       * if it is not found.
25044
       */
25045
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25046
        _Fields fields = findByThriftId(fieldId);
25047
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25048
        return fields;
25049
      }
25050
 
25051
      /**
25052
       * Find the _Fields constant that matches name, or null if its not found.
25053
       */
25054
      public static _Fields findByName(String name) {
25055
        return byName.get(name);
25056
      }
25057
 
25058
      private final short _thriftId;
25059
      private final String _fieldName;
25060
 
25061
      _Fields(short thriftId, String fieldName) {
25062
        _thriftId = thriftId;
25063
        _fieldName = fieldName;
25064
      }
25065
 
25066
      public short getThriftFieldId() {
25067
        return _thriftId;
25068
      }
25069
 
25070
      public String getFieldName() {
25071
        return _fieldName;
25072
      }
25073
    }
25074
 
25075
    // isset id assignments
25076
    private static final int __ORDERID_ISSET_ID = 0;
25077
    private static final int __FREEBIEITEMID_ISSET_ID = 1;
25078
    private static final int __FREEBIEWAREHOUSEID_ISSET_ID = 2;
25079
    private BitSet __isset_bit_vector = new BitSet(3);
25080
 
25081
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25082
    static {
25083
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25084
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25086
      tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25088
      tmpMap.put(_Fields.FREEBIE_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25090
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25091
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
25092
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25093
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_args.class, metaDataMap);
25094
    }
25095
 
25096
    public scanfreebie_args() {
25097
    }
25098
 
25099
    public scanfreebie_args(
25100
      long orderId,
25101
      long freebieItemId,
25102
      long freebieWarehouseId,
25103
      ScanType scanType)
25104
    {
25105
      this();
25106
      this.orderId = orderId;
25107
      setOrderIdIsSet(true);
25108
      this.freebieItemId = freebieItemId;
25109
      setFreebieItemIdIsSet(true);
25110
      this.freebieWarehouseId = freebieWarehouseId;
25111
      setFreebieWarehouseIdIsSet(true);
25112
      this.scanType = scanType;
25113
    }
25114
 
25115
    /**
25116
     * Performs a deep copy on <i>other</i>.
25117
     */
25118
    public scanfreebie_args(scanfreebie_args other) {
25119
      __isset_bit_vector.clear();
25120
      __isset_bit_vector.or(other.__isset_bit_vector);
25121
      this.orderId = other.orderId;
25122
      this.freebieItemId = other.freebieItemId;
25123
      this.freebieWarehouseId = other.freebieWarehouseId;
25124
      if (other.isSetScanType()) {
25125
        this.scanType = other.scanType;
25126
      }
25127
    }
25128
 
25129
    public scanfreebie_args deepCopy() {
25130
      return new scanfreebie_args(this);
25131
    }
25132
 
25133
    @Override
25134
    public void clear() {
25135
      setOrderIdIsSet(false);
25136
      this.orderId = 0;
25137
      setFreebieItemIdIsSet(false);
25138
      this.freebieItemId = 0;
25139
      setFreebieWarehouseIdIsSet(false);
25140
      this.freebieWarehouseId = 0;
25141
      this.scanType = null;
25142
    }
25143
 
25144
    public long getOrderId() {
25145
      return this.orderId;
25146
    }
25147
 
25148
    public void setOrderId(long orderId) {
25149
      this.orderId = orderId;
25150
      setOrderIdIsSet(true);
25151
    }
25152
 
25153
    public void unsetOrderId() {
25154
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
25155
    }
25156
 
25157
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
25158
    public boolean isSetOrderId() {
25159
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
25160
    }
25161
 
25162
    public void setOrderIdIsSet(boolean value) {
25163
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
25164
    }
25165
 
25166
    public long getFreebieItemId() {
25167
      return this.freebieItemId;
25168
    }
25169
 
25170
    public void setFreebieItemId(long freebieItemId) {
25171
      this.freebieItemId = freebieItemId;
25172
      setFreebieItemIdIsSet(true);
25173
    }
25174
 
25175
    public void unsetFreebieItemId() {
25176
      __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
25177
    }
25178
 
25179
    /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
25180
    public boolean isSetFreebieItemId() {
25181
      return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
25182
    }
25183
 
25184
    public void setFreebieItemIdIsSet(boolean value) {
25185
      __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
25186
    }
25187
 
25188
    public long getFreebieWarehouseId() {
25189
      return this.freebieWarehouseId;
25190
    }
25191
 
25192
    public void setFreebieWarehouseId(long freebieWarehouseId) {
25193
      this.freebieWarehouseId = freebieWarehouseId;
25194
      setFreebieWarehouseIdIsSet(true);
25195
    }
25196
 
25197
    public void unsetFreebieWarehouseId() {
25198
      __isset_bit_vector.clear(__FREEBIEWAREHOUSEID_ISSET_ID);
25199
    }
25200
 
25201
    /** Returns true if field freebieWarehouseId is set (has been assigned a value) and false otherwise */
25202
    public boolean isSetFreebieWarehouseId() {
25203
      return __isset_bit_vector.get(__FREEBIEWAREHOUSEID_ISSET_ID);
25204
    }
25205
 
25206
    public void setFreebieWarehouseIdIsSet(boolean value) {
25207
      __isset_bit_vector.set(__FREEBIEWAREHOUSEID_ISSET_ID, value);
25208
    }
25209
 
25210
    /**
25211
     * 
25212
     * @see ScanType
25213
     */
25214
    public ScanType getScanType() {
25215
      return this.scanType;
25216
    }
25217
 
25218
    /**
25219
     * 
25220
     * @see ScanType
25221
     */
25222
    public void setScanType(ScanType scanType) {
25223
      this.scanType = scanType;
25224
    }
25225
 
25226
    public void unsetScanType() {
25227
      this.scanType = null;
25228
    }
25229
 
25230
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
25231
    public boolean isSetScanType() {
25232
      return this.scanType != null;
25233
    }
25234
 
25235
    public void setScanTypeIsSet(boolean value) {
25236
      if (!value) {
25237
        this.scanType = null;
25238
      }
25239
    }
25240
 
25241
    public void setFieldValue(_Fields field, Object value) {
25242
      switch (field) {
25243
      case ORDER_ID:
25244
        if (value == null) {
25245
          unsetOrderId();
25246
        } else {
25247
          setOrderId((Long)value);
25248
        }
25249
        break;
25250
 
25251
      case FREEBIE_ITEM_ID:
25252
        if (value == null) {
25253
          unsetFreebieItemId();
25254
        } else {
25255
          setFreebieItemId((Long)value);
25256
        }
25257
        break;
25258
 
25259
      case FREEBIE_WAREHOUSE_ID:
25260
        if (value == null) {
25261
          unsetFreebieWarehouseId();
25262
        } else {
25263
          setFreebieWarehouseId((Long)value);
25264
        }
25265
        break;
25266
 
25267
      case SCAN_TYPE:
25268
        if (value == null) {
25269
          unsetScanType();
25270
        } else {
25271
          setScanType((ScanType)value);
25272
        }
25273
        break;
25274
 
25275
      }
25276
    }
25277
 
25278
    public Object getFieldValue(_Fields field) {
25279
      switch (field) {
25280
      case ORDER_ID:
25281
        return Long.valueOf(getOrderId());
25282
 
25283
      case FREEBIE_ITEM_ID:
25284
        return Long.valueOf(getFreebieItemId());
25285
 
25286
      case FREEBIE_WAREHOUSE_ID:
25287
        return Long.valueOf(getFreebieWarehouseId());
25288
 
25289
      case SCAN_TYPE:
25290
        return getScanType();
25291
 
25292
      }
25293
      throw new IllegalStateException();
25294
    }
25295
 
25296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25297
    public boolean isSet(_Fields field) {
25298
      if (field == null) {
25299
        throw new IllegalArgumentException();
25300
      }
25301
 
25302
      switch (field) {
25303
      case ORDER_ID:
25304
        return isSetOrderId();
25305
      case FREEBIE_ITEM_ID:
25306
        return isSetFreebieItemId();
25307
      case FREEBIE_WAREHOUSE_ID:
25308
        return isSetFreebieWarehouseId();
25309
      case SCAN_TYPE:
25310
        return isSetScanType();
25311
      }
25312
      throw new IllegalStateException();
25313
    }
25314
 
25315
    @Override
25316
    public boolean equals(Object that) {
25317
      if (that == null)
25318
        return false;
25319
      if (that instanceof scanfreebie_args)
25320
        return this.equals((scanfreebie_args)that);
25321
      return false;
25322
    }
25323
 
25324
    public boolean equals(scanfreebie_args that) {
25325
      if (that == null)
25326
        return false;
25327
 
25328
      boolean this_present_orderId = true;
25329
      boolean that_present_orderId = true;
25330
      if (this_present_orderId || that_present_orderId) {
25331
        if (!(this_present_orderId && that_present_orderId))
25332
          return false;
25333
        if (this.orderId != that.orderId)
25334
          return false;
25335
      }
25336
 
25337
      boolean this_present_freebieItemId = true;
25338
      boolean that_present_freebieItemId = true;
25339
      if (this_present_freebieItemId || that_present_freebieItemId) {
25340
        if (!(this_present_freebieItemId && that_present_freebieItemId))
25341
          return false;
25342
        if (this.freebieItemId != that.freebieItemId)
25343
          return false;
25344
      }
25345
 
25346
      boolean this_present_freebieWarehouseId = true;
25347
      boolean that_present_freebieWarehouseId = true;
25348
      if (this_present_freebieWarehouseId || that_present_freebieWarehouseId) {
25349
        if (!(this_present_freebieWarehouseId && that_present_freebieWarehouseId))
25350
          return false;
25351
        if (this.freebieWarehouseId != that.freebieWarehouseId)
25352
          return false;
25353
      }
25354
 
25355
      boolean this_present_scanType = true && this.isSetScanType();
25356
      boolean that_present_scanType = true && that.isSetScanType();
25357
      if (this_present_scanType || that_present_scanType) {
25358
        if (!(this_present_scanType && that_present_scanType))
25359
          return false;
25360
        if (!this.scanType.equals(that.scanType))
25361
          return false;
25362
      }
25363
 
25364
      return true;
25365
    }
25366
 
25367
    @Override
25368
    public int hashCode() {
25369
      return 0;
25370
    }
25371
 
25372
    public int compareTo(scanfreebie_args other) {
25373
      if (!getClass().equals(other.getClass())) {
25374
        return getClass().getName().compareTo(other.getClass().getName());
25375
      }
25376
 
25377
      int lastComparison = 0;
25378
      scanfreebie_args typedOther = (scanfreebie_args)other;
25379
 
25380
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
25381
      if (lastComparison != 0) {
25382
        return lastComparison;
25383
      }
25384
      if (isSetOrderId()) {
25385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
25386
        if (lastComparison != 0) {
25387
          return lastComparison;
25388
        }
25389
      }
25390
      lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
25391
      if (lastComparison != 0) {
25392
        return lastComparison;
25393
      }
25394
      if (isSetFreebieItemId()) {
25395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
25396
        if (lastComparison != 0) {
25397
          return lastComparison;
25398
        }
25399
      }
25400
      lastComparison = Boolean.valueOf(isSetFreebieWarehouseId()).compareTo(typedOther.isSetFreebieWarehouseId());
25401
      if (lastComparison != 0) {
25402
        return lastComparison;
25403
      }
25404
      if (isSetFreebieWarehouseId()) {
25405
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieWarehouseId, typedOther.freebieWarehouseId);
25406
        if (lastComparison != 0) {
25407
          return lastComparison;
25408
        }
25409
      }
25410
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
25411
      if (lastComparison != 0) {
25412
        return lastComparison;
25413
      }
25414
      if (isSetScanType()) {
25415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
25416
        if (lastComparison != 0) {
25417
          return lastComparison;
25418
        }
25419
      }
25420
      return 0;
25421
    }
25422
 
25423
    public _Fields fieldForId(int fieldId) {
25424
      return _Fields.findByThriftId(fieldId);
25425
    }
25426
 
25427
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25428
      org.apache.thrift.protocol.TField field;
25429
      iprot.readStructBegin();
25430
      while (true)
25431
      {
25432
        field = iprot.readFieldBegin();
25433
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25434
          break;
25435
        }
25436
        switch (field.id) {
25437
          case 1: // ORDER_ID
25438
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25439
              this.orderId = iprot.readI64();
25440
              setOrderIdIsSet(true);
25441
            } else { 
25442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25443
            }
25444
            break;
25445
          case 2: // FREEBIE_ITEM_ID
25446
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25447
              this.freebieItemId = iprot.readI64();
25448
              setFreebieItemIdIsSet(true);
25449
            } else { 
25450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25451
            }
25452
            break;
25453
          case 3: // FREEBIE_WAREHOUSE_ID
25454
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25455
              this.freebieWarehouseId = iprot.readI64();
25456
              setFreebieWarehouseIdIsSet(true);
25457
            } else { 
25458
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25459
            }
25460
            break;
25461
          case 4: // SCAN_TYPE
25462
            if (field.type == org.apache.thrift.protocol.TType.I32) {
25463
              this.scanType = ScanType.findByValue(iprot.readI32());
25464
            } else { 
25465
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25466
            }
25467
            break;
25468
          default:
25469
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25470
        }
25471
        iprot.readFieldEnd();
25472
      }
25473
      iprot.readStructEnd();
25474
      validate();
25475
    }
25476
 
25477
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25478
      validate();
25479
 
25480
      oprot.writeStructBegin(STRUCT_DESC);
25481
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
25482
      oprot.writeI64(this.orderId);
25483
      oprot.writeFieldEnd();
25484
      oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
25485
      oprot.writeI64(this.freebieItemId);
25486
      oprot.writeFieldEnd();
25487
      oprot.writeFieldBegin(FREEBIE_WAREHOUSE_ID_FIELD_DESC);
25488
      oprot.writeI64(this.freebieWarehouseId);
25489
      oprot.writeFieldEnd();
25490
      if (this.scanType != null) {
25491
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
25492
        oprot.writeI32(this.scanType.getValue());
25493
        oprot.writeFieldEnd();
25494
      }
25495
      oprot.writeFieldStop();
25496
      oprot.writeStructEnd();
25497
    }
25498
 
25499
    @Override
25500
    public String toString() {
25501
      StringBuilder sb = new StringBuilder("scanfreebie_args(");
25502
      boolean first = true;
25503
 
25504
      sb.append("orderId:");
25505
      sb.append(this.orderId);
25506
      first = false;
25507
      if (!first) sb.append(", ");
25508
      sb.append("freebieItemId:");
25509
      sb.append(this.freebieItemId);
25510
      first = false;
25511
      if (!first) sb.append(", ");
25512
      sb.append("freebieWarehouseId:");
25513
      sb.append(this.freebieWarehouseId);
25514
      first = false;
25515
      if (!first) sb.append(", ");
25516
      sb.append("scanType:");
25517
      if (this.scanType == null) {
25518
        sb.append("null");
25519
      } else {
25520
        sb.append(this.scanType);
25521
      }
25522
      first = false;
25523
      sb.append(")");
25524
      return sb.toString();
25525
    }
25526
 
25527
    public void validate() throws org.apache.thrift.TException {
25528
      // check for required fields
25529
    }
25530
 
25531
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25532
      try {
25533
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25534
      } catch (org.apache.thrift.TException te) {
25535
        throw new java.io.IOException(te);
25536
      }
25537
    }
25538
 
25539
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25540
      try {
25541
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25542
        __isset_bit_vector = new BitSet(1);
25543
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25544
      } catch (org.apache.thrift.TException te) {
25545
        throw new java.io.IOException(te);
25546
      }
25547
    }
25548
 
25549
  }
25550
 
25551
  public static class scanfreebie_result implements org.apache.thrift.TBase<scanfreebie_result, scanfreebie_result._Fields>, java.io.Serializable, Cloneable   {
25552
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_result");
25553
 
25554
    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);
25555
    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);
25556
 
25557
    private InventoryItem success; // required
25558
    private WarehouseServiceException wex; // required
25559
 
25560
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25561
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25562
      SUCCESS((short)0, "success"),
25563
      WEX((short)1, "wex");
25564
 
25565
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25566
 
25567
      static {
25568
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25569
          byName.put(field.getFieldName(), field);
25570
        }
25571
      }
25572
 
25573
      /**
25574
       * Find the _Fields constant that matches fieldId, or null if its not found.
25575
       */
25576
      public static _Fields findByThriftId(int fieldId) {
25577
        switch(fieldId) {
25578
          case 0: // SUCCESS
25579
            return SUCCESS;
25580
          case 1: // WEX
25581
            return WEX;
25582
          default:
25583
            return null;
25584
        }
25585
      }
25586
 
25587
      /**
25588
       * Find the _Fields constant that matches fieldId, throwing an exception
25589
       * if it is not found.
25590
       */
25591
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25592
        _Fields fields = findByThriftId(fieldId);
25593
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25594
        return fields;
25595
      }
25596
 
25597
      /**
25598
       * Find the _Fields constant that matches name, or null if its not found.
25599
       */
25600
      public static _Fields findByName(String name) {
25601
        return byName.get(name);
25602
      }
25603
 
25604
      private final short _thriftId;
25605
      private final String _fieldName;
25606
 
25607
      _Fields(short thriftId, String fieldName) {
25608
        _thriftId = thriftId;
25609
        _fieldName = fieldName;
25610
      }
25611
 
25612
      public short getThriftFieldId() {
25613
        return _thriftId;
25614
      }
25615
 
25616
      public String getFieldName() {
25617
        return _fieldName;
25618
      }
25619
    }
25620
 
25621
    // isset id assignments
25622
 
25623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25624
    static {
25625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25626
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25627
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
25628
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25629
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25630
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25631
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_result.class, metaDataMap);
25632
    }
25633
 
25634
    public scanfreebie_result() {
25635
    }
25636
 
25637
    public scanfreebie_result(
25638
      InventoryItem success,
25639
      WarehouseServiceException wex)
25640
    {
25641
      this();
25642
      this.success = success;
25643
      this.wex = wex;
25644
    }
25645
 
25646
    /**
25647
     * Performs a deep copy on <i>other</i>.
25648
     */
25649
    public scanfreebie_result(scanfreebie_result other) {
25650
      if (other.isSetSuccess()) {
25651
        this.success = new InventoryItem(other.success);
25652
      }
25653
      if (other.isSetWex()) {
25654
        this.wex = new WarehouseServiceException(other.wex);
25655
      }
25656
    }
25657
 
25658
    public scanfreebie_result deepCopy() {
25659
      return new scanfreebie_result(this);
25660
    }
25661
 
25662
    @Override
25663
    public void clear() {
25664
      this.success = null;
25665
      this.wex = null;
25666
    }
25667
 
25668
    public InventoryItem getSuccess() {
25669
      return this.success;
25670
    }
25671
 
25672
    public void setSuccess(InventoryItem success) {
25673
      this.success = success;
25674
    }
25675
 
25676
    public void unsetSuccess() {
25677
      this.success = null;
25678
    }
25679
 
25680
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25681
    public boolean isSetSuccess() {
25682
      return this.success != null;
25683
    }
25684
 
25685
    public void setSuccessIsSet(boolean value) {
25686
      if (!value) {
25687
        this.success = null;
25688
      }
25689
    }
25690
 
25691
    public WarehouseServiceException getWex() {
25692
      return this.wex;
25693
    }
25694
 
25695
    public void setWex(WarehouseServiceException wex) {
25696
      this.wex = wex;
25697
    }
25698
 
25699
    public void unsetWex() {
25700
      this.wex = null;
25701
    }
25702
 
25703
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
25704
    public boolean isSetWex() {
25705
      return this.wex != null;
25706
    }
25707
 
25708
    public void setWexIsSet(boolean value) {
25709
      if (!value) {
25710
        this.wex = null;
25711
      }
25712
    }
25713
 
25714
    public void setFieldValue(_Fields field, Object value) {
25715
      switch (field) {
25716
      case SUCCESS:
25717
        if (value == null) {
25718
          unsetSuccess();
25719
        } else {
25720
          setSuccess((InventoryItem)value);
25721
        }
25722
        break;
25723
 
25724
      case WEX:
25725
        if (value == null) {
25726
          unsetWex();
25727
        } else {
25728
          setWex((WarehouseServiceException)value);
25729
        }
25730
        break;
25731
 
25732
      }
25733
    }
25734
 
25735
    public Object getFieldValue(_Fields field) {
25736
      switch (field) {
25737
      case SUCCESS:
25738
        return getSuccess();
25739
 
25740
      case WEX:
25741
        return getWex();
25742
 
25743
      }
25744
      throw new IllegalStateException();
25745
    }
25746
 
25747
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25748
    public boolean isSet(_Fields field) {
25749
      if (field == null) {
25750
        throw new IllegalArgumentException();
25751
      }
25752
 
25753
      switch (field) {
25754
      case SUCCESS:
25755
        return isSetSuccess();
25756
      case WEX:
25757
        return isSetWex();
25758
      }
25759
      throw new IllegalStateException();
25760
    }
25761
 
25762
    @Override
25763
    public boolean equals(Object that) {
25764
      if (that == null)
25765
        return false;
25766
      if (that instanceof scanfreebie_result)
25767
        return this.equals((scanfreebie_result)that);
25768
      return false;
25769
    }
25770
 
25771
    public boolean equals(scanfreebie_result that) {
25772
      if (that == null)
25773
        return false;
25774
 
25775
      boolean this_present_success = true && this.isSetSuccess();
25776
      boolean that_present_success = true && that.isSetSuccess();
25777
      if (this_present_success || that_present_success) {
25778
        if (!(this_present_success && that_present_success))
25779
          return false;
25780
        if (!this.success.equals(that.success))
25781
          return false;
25782
      }
25783
 
25784
      boolean this_present_wex = true && this.isSetWex();
25785
      boolean that_present_wex = true && that.isSetWex();
25786
      if (this_present_wex || that_present_wex) {
25787
        if (!(this_present_wex && that_present_wex))
25788
          return false;
25789
        if (!this.wex.equals(that.wex))
25790
          return false;
25791
      }
25792
 
25793
      return true;
25794
    }
25795
 
25796
    @Override
25797
    public int hashCode() {
25798
      return 0;
25799
    }
25800
 
25801
    public int compareTo(scanfreebie_result other) {
25802
      if (!getClass().equals(other.getClass())) {
25803
        return getClass().getName().compareTo(other.getClass().getName());
25804
      }
25805
 
25806
      int lastComparison = 0;
25807
      scanfreebie_result typedOther = (scanfreebie_result)other;
25808
 
25809
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25810
      if (lastComparison != 0) {
25811
        return lastComparison;
25812
      }
25813
      if (isSetSuccess()) {
25814
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25815
        if (lastComparison != 0) {
25816
          return lastComparison;
25817
        }
25818
      }
25819
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
25820
      if (lastComparison != 0) {
25821
        return lastComparison;
25822
      }
25823
      if (isSetWex()) {
25824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
25825
        if (lastComparison != 0) {
25826
          return lastComparison;
25827
        }
25828
      }
25829
      return 0;
25830
    }
25831
 
25832
    public _Fields fieldForId(int fieldId) {
25833
      return _Fields.findByThriftId(fieldId);
25834
    }
25835
 
25836
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25837
      org.apache.thrift.protocol.TField field;
25838
      iprot.readStructBegin();
25839
      while (true)
25840
      {
25841
        field = iprot.readFieldBegin();
25842
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25843
          break;
25844
        }
25845
        switch (field.id) {
25846
          case 0: // SUCCESS
25847
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25848
              this.success = new InventoryItem();
25849
              this.success.read(iprot);
25850
            } else { 
25851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25852
            }
25853
            break;
25854
          case 1: // WEX
25855
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25856
              this.wex = new WarehouseServiceException();
25857
              this.wex.read(iprot);
25858
            } else { 
25859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25860
            }
25861
            break;
25862
          default:
25863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25864
        }
25865
        iprot.readFieldEnd();
25866
      }
25867
      iprot.readStructEnd();
25868
      validate();
25869
    }
25870
 
25871
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25872
      oprot.writeStructBegin(STRUCT_DESC);
25873
 
25874
      if (this.isSetSuccess()) {
25875
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25876
        this.success.write(oprot);
25877
        oprot.writeFieldEnd();
25878
      } else if (this.isSetWex()) {
25879
        oprot.writeFieldBegin(WEX_FIELD_DESC);
25880
        this.wex.write(oprot);
25881
        oprot.writeFieldEnd();
25882
      }
25883
      oprot.writeFieldStop();
25884
      oprot.writeStructEnd();
25885
    }
25886
 
25887
    @Override
25888
    public String toString() {
25889
      StringBuilder sb = new StringBuilder("scanfreebie_result(");
25890
      boolean first = true;
25891
 
25892
      sb.append("success:");
25893
      if (this.success == null) {
25894
        sb.append("null");
25895
      } else {
25896
        sb.append(this.success);
25897
      }
25898
      first = false;
25899
      if (!first) sb.append(", ");
25900
      sb.append("wex:");
25901
      if (this.wex == null) {
25902
        sb.append("null");
25903
      } else {
25904
        sb.append(this.wex);
25905
      }
25906
      first = false;
25907
      sb.append(")");
25908
      return sb.toString();
25909
    }
25910
 
25911
    public void validate() throws org.apache.thrift.TException {
25912
      // check for required fields
25913
    }
25914
 
25915
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25916
      try {
25917
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25918
      } catch (org.apache.thrift.TException te) {
25919
        throw new java.io.IOException(te);
25920
      }
25921
    }
25922
 
25923
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25924
      try {
25925
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25926
      } catch (org.apache.thrift.TException te) {
25927
        throw new java.io.IOException(te);
25928
      }
25929
    }
25930
 
25931
  }
25932
 
7199 amar.kumar 25933
  public static class reshipfreebie_args implements org.apache.thrift.TBase<reshipfreebie_args, reshipfreebie_args._Fields>, java.io.Serializable, Cloneable   {
25934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_args");
25935
 
25936
    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);
25937
    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);
25938
    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);
25939
    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);
25940
 
25941
    private long oldOrderId; // required
25942
    private long newOrderId; // required
25943
    private long freebieItemId; // required
25944
    private ScanType scanType; // required
25945
 
25946
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25947
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25948
      OLD_ORDER_ID((short)1, "oldOrderId"),
25949
      NEW_ORDER_ID((short)2, "newOrderId"),
25950
      FREEBIE_ITEM_ID((short)3, "freebieItemId"),
25951
      /**
25952
       * 
25953
       * @see ScanType
25954
       */
25955
      SCAN_TYPE((short)4, "scanType");
25956
 
25957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25958
 
25959
      static {
25960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25961
          byName.put(field.getFieldName(), field);
25962
        }
25963
      }
25964
 
25965
      /**
25966
       * Find the _Fields constant that matches fieldId, or null if its not found.
25967
       */
25968
      public static _Fields findByThriftId(int fieldId) {
25969
        switch(fieldId) {
25970
          case 1: // OLD_ORDER_ID
25971
            return OLD_ORDER_ID;
25972
          case 2: // NEW_ORDER_ID
25973
            return NEW_ORDER_ID;
25974
          case 3: // FREEBIE_ITEM_ID
25975
            return FREEBIE_ITEM_ID;
25976
          case 4: // SCAN_TYPE
25977
            return SCAN_TYPE;
25978
          default:
25979
            return null;
25980
        }
25981
      }
25982
 
25983
      /**
25984
       * Find the _Fields constant that matches fieldId, throwing an exception
25985
       * if it is not found.
25986
       */
25987
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25988
        _Fields fields = findByThriftId(fieldId);
25989
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25990
        return fields;
25991
      }
25992
 
25993
      /**
25994
       * Find the _Fields constant that matches name, or null if its not found.
25995
       */
25996
      public static _Fields findByName(String name) {
25997
        return byName.get(name);
25998
      }
25999
 
26000
      private final short _thriftId;
26001
      private final String _fieldName;
26002
 
26003
      _Fields(short thriftId, String fieldName) {
26004
        _thriftId = thriftId;
26005
        _fieldName = fieldName;
26006
      }
26007
 
26008
      public short getThriftFieldId() {
26009
        return _thriftId;
26010
      }
26011
 
26012
      public String getFieldName() {
26013
        return _fieldName;
26014
      }
26015
    }
26016
 
26017
    // isset id assignments
26018
    private static final int __OLDORDERID_ISSET_ID = 0;
26019
    private static final int __NEWORDERID_ISSET_ID = 1;
26020
    private static final int __FREEBIEITEMID_ISSET_ID = 2;
26021
    private BitSet __isset_bit_vector = new BitSet(3);
26022
 
26023
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26024
    static {
26025
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26026
      tmpMap.put(_Fields.OLD_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("oldOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26027
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26028
      tmpMap.put(_Fields.NEW_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26030
      tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26031
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26032
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26033
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
26034
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26035
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_args.class, metaDataMap);
26036
    }
26037
 
26038
    public reshipfreebie_args() {
26039
    }
26040
 
26041
    public reshipfreebie_args(
26042
      long oldOrderId,
26043
      long newOrderId,
26044
      long freebieItemId,
26045
      ScanType scanType)
26046
    {
26047
      this();
26048
      this.oldOrderId = oldOrderId;
26049
      setOldOrderIdIsSet(true);
26050
      this.newOrderId = newOrderId;
26051
      setNewOrderIdIsSet(true);
26052
      this.freebieItemId = freebieItemId;
26053
      setFreebieItemIdIsSet(true);
26054
      this.scanType = scanType;
26055
    }
26056
 
26057
    /**
26058
     * Performs a deep copy on <i>other</i>.
26059
     */
26060
    public reshipfreebie_args(reshipfreebie_args other) {
26061
      __isset_bit_vector.clear();
26062
      __isset_bit_vector.or(other.__isset_bit_vector);
26063
      this.oldOrderId = other.oldOrderId;
26064
      this.newOrderId = other.newOrderId;
26065
      this.freebieItemId = other.freebieItemId;
26066
      if (other.isSetScanType()) {
26067
        this.scanType = other.scanType;
26068
      }
26069
    }
26070
 
26071
    public reshipfreebie_args deepCopy() {
26072
      return new reshipfreebie_args(this);
26073
    }
26074
 
26075
    @Override
26076
    public void clear() {
26077
      setOldOrderIdIsSet(false);
26078
      this.oldOrderId = 0;
26079
      setNewOrderIdIsSet(false);
26080
      this.newOrderId = 0;
26081
      setFreebieItemIdIsSet(false);
26082
      this.freebieItemId = 0;
26083
      this.scanType = null;
26084
    }
26085
 
26086
    public long getOldOrderId() {
26087
      return this.oldOrderId;
26088
    }
26089
 
26090
    public void setOldOrderId(long oldOrderId) {
26091
      this.oldOrderId = oldOrderId;
26092
      setOldOrderIdIsSet(true);
26093
    }
26094
 
26095
    public void unsetOldOrderId() {
26096
      __isset_bit_vector.clear(__OLDORDERID_ISSET_ID);
26097
    }
26098
 
26099
    /** Returns true if field oldOrderId is set (has been assigned a value) and false otherwise */
26100
    public boolean isSetOldOrderId() {
26101
      return __isset_bit_vector.get(__OLDORDERID_ISSET_ID);
26102
    }
26103
 
26104
    public void setOldOrderIdIsSet(boolean value) {
26105
      __isset_bit_vector.set(__OLDORDERID_ISSET_ID, value);
26106
    }
26107
 
26108
    public long getNewOrderId() {
26109
      return this.newOrderId;
26110
    }
26111
 
26112
    public void setNewOrderId(long newOrderId) {
26113
      this.newOrderId = newOrderId;
26114
      setNewOrderIdIsSet(true);
26115
    }
26116
 
26117
    public void unsetNewOrderId() {
26118
      __isset_bit_vector.clear(__NEWORDERID_ISSET_ID);
26119
    }
26120
 
26121
    /** Returns true if field newOrderId is set (has been assigned a value) and false otherwise */
26122
    public boolean isSetNewOrderId() {
26123
      return __isset_bit_vector.get(__NEWORDERID_ISSET_ID);
26124
    }
26125
 
26126
    public void setNewOrderIdIsSet(boolean value) {
26127
      __isset_bit_vector.set(__NEWORDERID_ISSET_ID, value);
26128
    }
26129
 
26130
    public long getFreebieItemId() {
26131
      return this.freebieItemId;
26132
    }
26133
 
26134
    public void setFreebieItemId(long freebieItemId) {
26135
      this.freebieItemId = freebieItemId;
26136
      setFreebieItemIdIsSet(true);
26137
    }
26138
 
26139
    public void unsetFreebieItemId() {
26140
      __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
26141
    }
26142
 
26143
    /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
26144
    public boolean isSetFreebieItemId() {
26145
      return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
26146
    }
26147
 
26148
    public void setFreebieItemIdIsSet(boolean value) {
26149
      __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
26150
    }
26151
 
26152
    /**
26153
     * 
26154
     * @see ScanType
26155
     */
26156
    public ScanType getScanType() {
26157
      return this.scanType;
26158
    }
26159
 
26160
    /**
26161
     * 
26162
     * @see ScanType
26163
     */
26164
    public void setScanType(ScanType scanType) {
26165
      this.scanType = scanType;
26166
    }
26167
 
26168
    public void unsetScanType() {
26169
      this.scanType = null;
26170
    }
26171
 
26172
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
26173
    public boolean isSetScanType() {
26174
      return this.scanType != null;
26175
    }
26176
 
26177
    public void setScanTypeIsSet(boolean value) {
26178
      if (!value) {
26179
        this.scanType = null;
26180
      }
26181
    }
26182
 
26183
    public void setFieldValue(_Fields field, Object value) {
26184
      switch (field) {
26185
      case OLD_ORDER_ID:
26186
        if (value == null) {
26187
          unsetOldOrderId();
26188
        } else {
26189
          setOldOrderId((Long)value);
26190
        }
26191
        break;
26192
 
26193
      case NEW_ORDER_ID:
26194
        if (value == null) {
26195
          unsetNewOrderId();
26196
        } else {
26197
          setNewOrderId((Long)value);
26198
        }
26199
        break;
26200
 
26201
      case FREEBIE_ITEM_ID:
26202
        if (value == null) {
26203
          unsetFreebieItemId();
26204
        } else {
26205
          setFreebieItemId((Long)value);
26206
        }
26207
        break;
26208
 
26209
      case SCAN_TYPE:
26210
        if (value == null) {
26211
          unsetScanType();
26212
        } else {
26213
          setScanType((ScanType)value);
26214
        }
26215
        break;
26216
 
26217
      }
26218
    }
26219
 
26220
    public Object getFieldValue(_Fields field) {
26221
      switch (field) {
26222
      case OLD_ORDER_ID:
26223
        return Long.valueOf(getOldOrderId());
26224
 
26225
      case NEW_ORDER_ID:
26226
        return Long.valueOf(getNewOrderId());
26227
 
26228
      case FREEBIE_ITEM_ID:
26229
        return Long.valueOf(getFreebieItemId());
26230
 
26231
      case SCAN_TYPE:
26232
        return getScanType();
26233
 
26234
      }
26235
      throw new IllegalStateException();
26236
    }
26237
 
26238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26239
    public boolean isSet(_Fields field) {
26240
      if (field == null) {
26241
        throw new IllegalArgumentException();
26242
      }
26243
 
26244
      switch (field) {
26245
      case OLD_ORDER_ID:
26246
        return isSetOldOrderId();
26247
      case NEW_ORDER_ID:
26248
        return isSetNewOrderId();
26249
      case FREEBIE_ITEM_ID:
26250
        return isSetFreebieItemId();
26251
      case SCAN_TYPE:
26252
        return isSetScanType();
26253
      }
26254
      throw new IllegalStateException();
26255
    }
26256
 
26257
    @Override
26258
    public boolean equals(Object that) {
26259
      if (that == null)
26260
        return false;
26261
      if (that instanceof reshipfreebie_args)
26262
        return this.equals((reshipfreebie_args)that);
26263
      return false;
26264
    }
26265
 
26266
    public boolean equals(reshipfreebie_args that) {
26267
      if (that == null)
26268
        return false;
26269
 
26270
      boolean this_present_oldOrderId = true;
26271
      boolean that_present_oldOrderId = true;
26272
      if (this_present_oldOrderId || that_present_oldOrderId) {
26273
        if (!(this_present_oldOrderId && that_present_oldOrderId))
26274
          return false;
26275
        if (this.oldOrderId != that.oldOrderId)
26276
          return false;
26277
      }
26278
 
26279
      boolean this_present_newOrderId = true;
26280
      boolean that_present_newOrderId = true;
26281
      if (this_present_newOrderId || that_present_newOrderId) {
26282
        if (!(this_present_newOrderId && that_present_newOrderId))
26283
          return false;
26284
        if (this.newOrderId != that.newOrderId)
26285
          return false;
26286
      }
26287
 
26288
      boolean this_present_freebieItemId = true;
26289
      boolean that_present_freebieItemId = true;
26290
      if (this_present_freebieItemId || that_present_freebieItemId) {
26291
        if (!(this_present_freebieItemId && that_present_freebieItemId))
26292
          return false;
26293
        if (this.freebieItemId != that.freebieItemId)
26294
          return false;
26295
      }
26296
 
26297
      boolean this_present_scanType = true && this.isSetScanType();
26298
      boolean that_present_scanType = true && that.isSetScanType();
26299
      if (this_present_scanType || that_present_scanType) {
26300
        if (!(this_present_scanType && that_present_scanType))
26301
          return false;
26302
        if (!this.scanType.equals(that.scanType))
26303
          return false;
26304
      }
26305
 
26306
      return true;
26307
    }
26308
 
26309
    @Override
26310
    public int hashCode() {
26311
      return 0;
26312
    }
26313
 
26314
    public int compareTo(reshipfreebie_args other) {
26315
      if (!getClass().equals(other.getClass())) {
26316
        return getClass().getName().compareTo(other.getClass().getName());
26317
      }
26318
 
26319
      int lastComparison = 0;
26320
      reshipfreebie_args typedOther = (reshipfreebie_args)other;
26321
 
26322
      lastComparison = Boolean.valueOf(isSetOldOrderId()).compareTo(typedOther.isSetOldOrderId());
26323
      if (lastComparison != 0) {
26324
        return lastComparison;
26325
      }
26326
      if (isSetOldOrderId()) {
26327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldOrderId, typedOther.oldOrderId);
26328
        if (lastComparison != 0) {
26329
          return lastComparison;
26330
        }
26331
      }
26332
      lastComparison = Boolean.valueOf(isSetNewOrderId()).compareTo(typedOther.isSetNewOrderId());
26333
      if (lastComparison != 0) {
26334
        return lastComparison;
26335
      }
26336
      if (isSetNewOrderId()) {
26337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOrderId, typedOther.newOrderId);
26338
        if (lastComparison != 0) {
26339
          return lastComparison;
26340
        }
26341
      }
26342
      lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
26343
      if (lastComparison != 0) {
26344
        return lastComparison;
26345
      }
26346
      if (isSetFreebieItemId()) {
26347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
26348
        if (lastComparison != 0) {
26349
          return lastComparison;
26350
        }
26351
      }
26352
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
26353
      if (lastComparison != 0) {
26354
        return lastComparison;
26355
      }
26356
      if (isSetScanType()) {
26357
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
26358
        if (lastComparison != 0) {
26359
          return lastComparison;
26360
        }
26361
      }
26362
      return 0;
26363
    }
26364
 
26365
    public _Fields fieldForId(int fieldId) {
26366
      return _Fields.findByThriftId(fieldId);
26367
    }
26368
 
26369
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26370
      org.apache.thrift.protocol.TField field;
26371
      iprot.readStructBegin();
26372
      while (true)
26373
      {
26374
        field = iprot.readFieldBegin();
26375
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26376
          break;
26377
        }
26378
        switch (field.id) {
26379
          case 1: // OLD_ORDER_ID
26380
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26381
              this.oldOrderId = iprot.readI64();
26382
              setOldOrderIdIsSet(true);
26383
            } else { 
26384
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26385
            }
26386
            break;
26387
          case 2: // NEW_ORDER_ID
26388
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26389
              this.newOrderId = iprot.readI64();
26390
              setNewOrderIdIsSet(true);
26391
            } else { 
26392
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26393
            }
26394
            break;
26395
          case 3: // FREEBIE_ITEM_ID
26396
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26397
              this.freebieItemId = iprot.readI64();
26398
              setFreebieItemIdIsSet(true);
26399
            } else { 
26400
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26401
            }
26402
            break;
26403
          case 4: // SCAN_TYPE
26404
            if (field.type == org.apache.thrift.protocol.TType.I32) {
26405
              this.scanType = ScanType.findByValue(iprot.readI32());
26406
            } else { 
26407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26408
            }
26409
            break;
26410
          default:
26411
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26412
        }
26413
        iprot.readFieldEnd();
26414
      }
26415
      iprot.readStructEnd();
26416
      validate();
26417
    }
26418
 
26419
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26420
      validate();
26421
 
26422
      oprot.writeStructBegin(STRUCT_DESC);
26423
      oprot.writeFieldBegin(OLD_ORDER_ID_FIELD_DESC);
26424
      oprot.writeI64(this.oldOrderId);
26425
      oprot.writeFieldEnd();
26426
      oprot.writeFieldBegin(NEW_ORDER_ID_FIELD_DESC);
26427
      oprot.writeI64(this.newOrderId);
26428
      oprot.writeFieldEnd();
26429
      oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
26430
      oprot.writeI64(this.freebieItemId);
26431
      oprot.writeFieldEnd();
26432
      if (this.scanType != null) {
26433
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
26434
        oprot.writeI32(this.scanType.getValue());
26435
        oprot.writeFieldEnd();
26436
      }
26437
      oprot.writeFieldStop();
26438
      oprot.writeStructEnd();
26439
    }
26440
 
26441
    @Override
26442
    public String toString() {
26443
      StringBuilder sb = new StringBuilder("reshipfreebie_args(");
26444
      boolean first = true;
26445
 
26446
      sb.append("oldOrderId:");
26447
      sb.append(this.oldOrderId);
26448
      first = false;
26449
      if (!first) sb.append(", ");
26450
      sb.append("newOrderId:");
26451
      sb.append(this.newOrderId);
26452
      first = false;
26453
      if (!first) sb.append(", ");
26454
      sb.append("freebieItemId:");
26455
      sb.append(this.freebieItemId);
26456
      first = false;
26457
      if (!first) sb.append(", ");
26458
      sb.append("scanType:");
26459
      if (this.scanType == null) {
26460
        sb.append("null");
26461
      } else {
26462
        sb.append(this.scanType);
26463
      }
26464
      first = false;
26465
      sb.append(")");
26466
      return sb.toString();
26467
    }
26468
 
26469
    public void validate() throws org.apache.thrift.TException {
26470
      // check for required fields
26471
    }
26472
 
26473
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26474
      try {
26475
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26476
      } catch (org.apache.thrift.TException te) {
26477
        throw new java.io.IOException(te);
26478
      }
26479
    }
26480
 
26481
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26482
      try {
26483
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26484
        __isset_bit_vector = new BitSet(1);
26485
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26486
      } catch (org.apache.thrift.TException te) {
26487
        throw new java.io.IOException(te);
26488
      }
26489
    }
26490
 
26491
  }
26492
 
26493
  public static class reshipfreebie_result implements org.apache.thrift.TBase<reshipfreebie_result, reshipfreebie_result._Fields>, java.io.Serializable, Cloneable   {
26494
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_result");
26495
 
26496
    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);
26497
 
26498
    private WarehouseServiceException wex; // required
26499
 
26500
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26501
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26502
      WEX((short)1, "wex");
26503
 
26504
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26505
 
26506
      static {
26507
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26508
          byName.put(field.getFieldName(), field);
26509
        }
26510
      }
26511
 
26512
      /**
26513
       * Find the _Fields constant that matches fieldId, or null if its not found.
26514
       */
26515
      public static _Fields findByThriftId(int fieldId) {
26516
        switch(fieldId) {
26517
          case 1: // WEX
26518
            return WEX;
26519
          default:
26520
            return null;
26521
        }
26522
      }
26523
 
26524
      /**
26525
       * Find the _Fields constant that matches fieldId, throwing an exception
26526
       * if it is not found.
26527
       */
26528
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26529
        _Fields fields = findByThriftId(fieldId);
26530
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26531
        return fields;
26532
      }
26533
 
26534
      /**
26535
       * Find the _Fields constant that matches name, or null if its not found.
26536
       */
26537
      public static _Fields findByName(String name) {
26538
        return byName.get(name);
26539
      }
26540
 
26541
      private final short _thriftId;
26542
      private final String _fieldName;
26543
 
26544
      _Fields(short thriftId, String fieldName) {
26545
        _thriftId = thriftId;
26546
        _fieldName = fieldName;
26547
      }
26548
 
26549
      public short getThriftFieldId() {
26550
        return _thriftId;
26551
      }
26552
 
26553
      public String getFieldName() {
26554
        return _fieldName;
26555
      }
26556
    }
26557
 
26558
    // isset id assignments
26559
 
26560
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26561
    static {
26562
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26563
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26564
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26565
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26566
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_result.class, metaDataMap);
26567
    }
26568
 
26569
    public reshipfreebie_result() {
26570
    }
26571
 
26572
    public reshipfreebie_result(
26573
      WarehouseServiceException wex)
26574
    {
26575
      this();
26576
      this.wex = wex;
26577
    }
26578
 
26579
    /**
26580
     * Performs a deep copy on <i>other</i>.
26581
     */
26582
    public reshipfreebie_result(reshipfreebie_result other) {
26583
      if (other.isSetWex()) {
26584
        this.wex = new WarehouseServiceException(other.wex);
26585
      }
26586
    }
26587
 
26588
    public reshipfreebie_result deepCopy() {
26589
      return new reshipfreebie_result(this);
26590
    }
26591
 
26592
    @Override
26593
    public void clear() {
26594
      this.wex = null;
26595
    }
26596
 
26597
    public WarehouseServiceException getWex() {
26598
      return this.wex;
26599
    }
26600
 
26601
    public void setWex(WarehouseServiceException wex) {
26602
      this.wex = wex;
26603
    }
26604
 
26605
    public void unsetWex() {
26606
      this.wex = null;
26607
    }
26608
 
26609
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
26610
    public boolean isSetWex() {
26611
      return this.wex != null;
26612
    }
26613
 
26614
    public void setWexIsSet(boolean value) {
26615
      if (!value) {
26616
        this.wex = null;
26617
      }
26618
    }
26619
 
26620
    public void setFieldValue(_Fields field, Object value) {
26621
      switch (field) {
26622
      case WEX:
26623
        if (value == null) {
26624
          unsetWex();
26625
        } else {
26626
          setWex((WarehouseServiceException)value);
26627
        }
26628
        break;
26629
 
26630
      }
26631
    }
26632
 
26633
    public Object getFieldValue(_Fields field) {
26634
      switch (field) {
26635
      case WEX:
26636
        return getWex();
26637
 
26638
      }
26639
      throw new IllegalStateException();
26640
    }
26641
 
26642
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26643
    public boolean isSet(_Fields field) {
26644
      if (field == null) {
26645
        throw new IllegalArgumentException();
26646
      }
26647
 
26648
      switch (field) {
26649
      case WEX:
26650
        return isSetWex();
26651
      }
26652
      throw new IllegalStateException();
26653
    }
26654
 
26655
    @Override
26656
    public boolean equals(Object that) {
26657
      if (that == null)
26658
        return false;
26659
      if (that instanceof reshipfreebie_result)
26660
        return this.equals((reshipfreebie_result)that);
26661
      return false;
26662
    }
26663
 
26664
    public boolean equals(reshipfreebie_result that) {
26665
      if (that == null)
26666
        return false;
26667
 
26668
      boolean this_present_wex = true && this.isSetWex();
26669
      boolean that_present_wex = true && that.isSetWex();
26670
      if (this_present_wex || that_present_wex) {
26671
        if (!(this_present_wex && that_present_wex))
26672
          return false;
26673
        if (!this.wex.equals(that.wex))
26674
          return false;
26675
      }
26676
 
26677
      return true;
26678
    }
26679
 
26680
    @Override
26681
    public int hashCode() {
26682
      return 0;
26683
    }
26684
 
26685
    public int compareTo(reshipfreebie_result other) {
26686
      if (!getClass().equals(other.getClass())) {
26687
        return getClass().getName().compareTo(other.getClass().getName());
26688
      }
26689
 
26690
      int lastComparison = 0;
26691
      reshipfreebie_result typedOther = (reshipfreebie_result)other;
26692
 
26693
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
26694
      if (lastComparison != 0) {
26695
        return lastComparison;
26696
      }
26697
      if (isSetWex()) {
26698
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
26699
        if (lastComparison != 0) {
26700
          return lastComparison;
26701
        }
26702
      }
26703
      return 0;
26704
    }
26705
 
26706
    public _Fields fieldForId(int fieldId) {
26707
      return _Fields.findByThriftId(fieldId);
26708
    }
26709
 
26710
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26711
      org.apache.thrift.protocol.TField field;
26712
      iprot.readStructBegin();
26713
      while (true)
26714
      {
26715
        field = iprot.readFieldBegin();
26716
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26717
          break;
26718
        }
26719
        switch (field.id) {
26720
          case 1: // WEX
26721
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26722
              this.wex = new WarehouseServiceException();
26723
              this.wex.read(iprot);
26724
            } else { 
26725
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26726
            }
26727
            break;
26728
          default:
26729
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26730
        }
26731
        iprot.readFieldEnd();
26732
      }
26733
      iprot.readStructEnd();
26734
      validate();
26735
    }
26736
 
26737
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26738
      oprot.writeStructBegin(STRUCT_DESC);
26739
 
26740
      if (this.isSetWex()) {
26741
        oprot.writeFieldBegin(WEX_FIELD_DESC);
26742
        this.wex.write(oprot);
26743
        oprot.writeFieldEnd();
26744
      }
26745
      oprot.writeFieldStop();
26746
      oprot.writeStructEnd();
26747
    }
26748
 
26749
    @Override
26750
    public String toString() {
26751
      StringBuilder sb = new StringBuilder("reshipfreebie_result(");
26752
      boolean first = true;
26753
 
26754
      sb.append("wex:");
26755
      if (this.wex == null) {
26756
        sb.append("null");
26757
      } else {
26758
        sb.append(this.wex);
26759
      }
26760
      first = false;
26761
      sb.append(")");
26762
      return sb.toString();
26763
    }
26764
 
26765
    public void validate() throws org.apache.thrift.TException {
26766
      // check for required fields
26767
    }
26768
 
26769
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26770
      try {
26771
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26772
      } catch (org.apache.thrift.TException te) {
26773
        throw new java.io.IOException(te);
26774
      }
26775
    }
26776
 
26777
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26778
      try {
26779
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26780
      } catch (org.apache.thrift.TException te) {
26781
        throw new java.io.IOException(te);
26782
      }
26783
    }
26784
 
26785
  }
26786
 
7410 amar.kumar 26787
  public static class isItemTransferAllowed_args implements org.apache.thrift.TBase<isItemTransferAllowed_args, isItemTransferAllowed_args._Fields>, java.io.Serializable, Cloneable   {
26788
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_args");
26789
 
26790
    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);
26791
    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);
26792
 
26793
    private long warehouseId; // required
26794
    private long transferWarehouseId; // required
26795
 
26796
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26797
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26798
      WAREHOUSE_ID((short)1, "warehouseId"),
26799
      TRANSFER_WAREHOUSE_ID((short)2, "transferWarehouseId");
26800
 
26801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26802
 
26803
      static {
26804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26805
          byName.put(field.getFieldName(), field);
26806
        }
26807
      }
26808
 
26809
      /**
26810
       * Find the _Fields constant that matches fieldId, or null if its not found.
26811
       */
26812
      public static _Fields findByThriftId(int fieldId) {
26813
        switch(fieldId) {
26814
          case 1: // WAREHOUSE_ID
26815
            return WAREHOUSE_ID;
26816
          case 2: // TRANSFER_WAREHOUSE_ID
26817
            return TRANSFER_WAREHOUSE_ID;
26818
          default:
26819
            return null;
26820
        }
26821
      }
26822
 
26823
      /**
26824
       * Find the _Fields constant that matches fieldId, throwing an exception
26825
       * if it is not found.
26826
       */
26827
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26828
        _Fields fields = findByThriftId(fieldId);
26829
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26830
        return fields;
26831
      }
26832
 
26833
      /**
26834
       * Find the _Fields constant that matches name, or null if its not found.
26835
       */
26836
      public static _Fields findByName(String name) {
26837
        return byName.get(name);
26838
      }
26839
 
26840
      private final short _thriftId;
26841
      private final String _fieldName;
26842
 
26843
      _Fields(short thriftId, String fieldName) {
26844
        _thriftId = thriftId;
26845
        _fieldName = fieldName;
26846
      }
26847
 
26848
      public short getThriftFieldId() {
26849
        return _thriftId;
26850
      }
26851
 
26852
      public String getFieldName() {
26853
        return _fieldName;
26854
      }
26855
    }
26856
 
26857
    // isset id assignments
26858
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26859
    private static final int __TRANSFERWAREHOUSEID_ISSET_ID = 1;
26860
    private BitSet __isset_bit_vector = new BitSet(2);
26861
 
26862
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26863
    static {
26864
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26865
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26866
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26867
      tmpMap.put(_Fields.TRANSFER_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("transferWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26869
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26870
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_args.class, metaDataMap);
26871
    }
26872
 
26873
    public isItemTransferAllowed_args() {
26874
    }
26875
 
26876
    public isItemTransferAllowed_args(
26877
      long warehouseId,
26878
      long transferWarehouseId)
26879
    {
26880
      this();
26881
      this.warehouseId = warehouseId;
26882
      setWarehouseIdIsSet(true);
26883
      this.transferWarehouseId = transferWarehouseId;
26884
      setTransferWarehouseIdIsSet(true);
26885
    }
26886
 
26887
    /**
26888
     * Performs a deep copy on <i>other</i>.
26889
     */
26890
    public isItemTransferAllowed_args(isItemTransferAllowed_args other) {
26891
      __isset_bit_vector.clear();
26892
      __isset_bit_vector.or(other.__isset_bit_vector);
26893
      this.warehouseId = other.warehouseId;
26894
      this.transferWarehouseId = other.transferWarehouseId;
26895
    }
26896
 
26897
    public isItemTransferAllowed_args deepCopy() {
26898
      return new isItemTransferAllowed_args(this);
26899
    }
26900
 
26901
    @Override
26902
    public void clear() {
26903
      setWarehouseIdIsSet(false);
26904
      this.warehouseId = 0;
26905
      setTransferWarehouseIdIsSet(false);
26906
      this.transferWarehouseId = 0;
26907
    }
26908
 
26909
    public long getWarehouseId() {
26910
      return this.warehouseId;
26911
    }
26912
 
26913
    public void setWarehouseId(long warehouseId) {
26914
      this.warehouseId = warehouseId;
26915
      setWarehouseIdIsSet(true);
26916
    }
26917
 
26918
    public void unsetWarehouseId() {
26919
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26920
    }
26921
 
26922
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26923
    public boolean isSetWarehouseId() {
26924
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26925
    }
26926
 
26927
    public void setWarehouseIdIsSet(boolean value) {
26928
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26929
    }
26930
 
26931
    public long getTransferWarehouseId() {
26932
      return this.transferWarehouseId;
26933
    }
26934
 
26935
    public void setTransferWarehouseId(long transferWarehouseId) {
26936
      this.transferWarehouseId = transferWarehouseId;
26937
      setTransferWarehouseIdIsSet(true);
26938
    }
26939
 
26940
    public void unsetTransferWarehouseId() {
26941
      __isset_bit_vector.clear(__TRANSFERWAREHOUSEID_ISSET_ID);
26942
    }
26943
 
26944
    /** Returns true if field transferWarehouseId is set (has been assigned a value) and false otherwise */
26945
    public boolean isSetTransferWarehouseId() {
26946
      return __isset_bit_vector.get(__TRANSFERWAREHOUSEID_ISSET_ID);
26947
    }
26948
 
26949
    public void setTransferWarehouseIdIsSet(boolean value) {
26950
      __isset_bit_vector.set(__TRANSFERWAREHOUSEID_ISSET_ID, value);
26951
    }
26952
 
26953
    public void setFieldValue(_Fields field, Object value) {
26954
      switch (field) {
26955
      case WAREHOUSE_ID:
26956
        if (value == null) {
26957
          unsetWarehouseId();
26958
        } else {
26959
          setWarehouseId((Long)value);
26960
        }
26961
        break;
26962
 
26963
      case TRANSFER_WAREHOUSE_ID:
26964
        if (value == null) {
26965
          unsetTransferWarehouseId();
26966
        } else {
26967
          setTransferWarehouseId((Long)value);
26968
        }
26969
        break;
26970
 
26971
      }
26972
    }
26973
 
26974
    public Object getFieldValue(_Fields field) {
26975
      switch (field) {
26976
      case WAREHOUSE_ID:
26977
        return Long.valueOf(getWarehouseId());
26978
 
26979
      case TRANSFER_WAREHOUSE_ID:
26980
        return Long.valueOf(getTransferWarehouseId());
26981
 
26982
      }
26983
      throw new IllegalStateException();
26984
    }
26985
 
26986
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26987
    public boolean isSet(_Fields field) {
26988
      if (field == null) {
26989
        throw new IllegalArgumentException();
26990
      }
26991
 
26992
      switch (field) {
26993
      case WAREHOUSE_ID:
26994
        return isSetWarehouseId();
26995
      case TRANSFER_WAREHOUSE_ID:
26996
        return isSetTransferWarehouseId();
26997
      }
26998
      throw new IllegalStateException();
26999
    }
27000
 
27001
    @Override
27002
    public boolean equals(Object that) {
27003
      if (that == null)
27004
        return false;
27005
      if (that instanceof isItemTransferAllowed_args)
27006
        return this.equals((isItemTransferAllowed_args)that);
27007
      return false;
27008
    }
27009
 
27010
    public boolean equals(isItemTransferAllowed_args that) {
27011
      if (that == null)
27012
        return false;
27013
 
27014
      boolean this_present_warehouseId = true;
27015
      boolean that_present_warehouseId = true;
27016
      if (this_present_warehouseId || that_present_warehouseId) {
27017
        if (!(this_present_warehouseId && that_present_warehouseId))
27018
          return false;
27019
        if (this.warehouseId != that.warehouseId)
27020
          return false;
27021
      }
27022
 
27023
      boolean this_present_transferWarehouseId = true;
27024
      boolean that_present_transferWarehouseId = true;
27025
      if (this_present_transferWarehouseId || that_present_transferWarehouseId) {
27026
        if (!(this_present_transferWarehouseId && that_present_transferWarehouseId))
27027
          return false;
27028
        if (this.transferWarehouseId != that.transferWarehouseId)
27029
          return false;
27030
      }
27031
 
27032
      return true;
27033
    }
27034
 
27035
    @Override
27036
    public int hashCode() {
27037
      return 0;
27038
    }
27039
 
27040
    public int compareTo(isItemTransferAllowed_args other) {
27041
      if (!getClass().equals(other.getClass())) {
27042
        return getClass().getName().compareTo(other.getClass().getName());
27043
      }
27044
 
27045
      int lastComparison = 0;
27046
      isItemTransferAllowed_args typedOther = (isItemTransferAllowed_args)other;
27047
 
27048
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27049
      if (lastComparison != 0) {
27050
        return lastComparison;
27051
      }
27052
      if (isSetWarehouseId()) {
27053
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
27054
        if (lastComparison != 0) {
27055
          return lastComparison;
27056
        }
27057
      }
27058
      lastComparison = Boolean.valueOf(isSetTransferWarehouseId()).compareTo(typedOther.isSetTransferWarehouseId());
27059
      if (lastComparison != 0) {
27060
        return lastComparison;
27061
      }
27062
      if (isSetTransferWarehouseId()) {
27063
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferWarehouseId, typedOther.transferWarehouseId);
27064
        if (lastComparison != 0) {
27065
          return lastComparison;
27066
        }
27067
      }
27068
      return 0;
27069
    }
27070
 
27071
    public _Fields fieldForId(int fieldId) {
27072
      return _Fields.findByThriftId(fieldId);
27073
    }
27074
 
27075
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27076
      org.apache.thrift.protocol.TField field;
27077
      iprot.readStructBegin();
27078
      while (true)
27079
      {
27080
        field = iprot.readFieldBegin();
27081
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27082
          break;
27083
        }
27084
        switch (field.id) {
27085
          case 1: // WAREHOUSE_ID
27086
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27087
              this.warehouseId = iprot.readI64();
27088
              setWarehouseIdIsSet(true);
27089
            } else { 
27090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27091
            }
27092
            break;
27093
          case 2: // TRANSFER_WAREHOUSE_ID
27094
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27095
              this.transferWarehouseId = iprot.readI64();
27096
              setTransferWarehouseIdIsSet(true);
27097
            } else { 
27098
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27099
            }
27100
            break;
27101
          default:
27102
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27103
        }
27104
        iprot.readFieldEnd();
27105
      }
27106
      iprot.readStructEnd();
27107
      validate();
27108
    }
27109
 
27110
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27111
      validate();
27112
 
27113
      oprot.writeStructBegin(STRUCT_DESC);
27114
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27115
      oprot.writeI64(this.warehouseId);
27116
      oprot.writeFieldEnd();
27117
      oprot.writeFieldBegin(TRANSFER_WAREHOUSE_ID_FIELD_DESC);
27118
      oprot.writeI64(this.transferWarehouseId);
27119
      oprot.writeFieldEnd();
27120
      oprot.writeFieldStop();
27121
      oprot.writeStructEnd();
27122
    }
27123
 
27124
    @Override
27125
    public String toString() {
27126
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_args(");
27127
      boolean first = true;
27128
 
27129
      sb.append("warehouseId:");
27130
      sb.append(this.warehouseId);
27131
      first = false;
27132
      if (!first) sb.append(", ");
27133
      sb.append("transferWarehouseId:");
27134
      sb.append(this.transferWarehouseId);
27135
      first = false;
27136
      sb.append(")");
27137
      return sb.toString();
27138
    }
27139
 
27140
    public void validate() throws org.apache.thrift.TException {
27141
      // check for required fields
27142
    }
27143
 
27144
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27145
      try {
27146
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27147
      } catch (org.apache.thrift.TException te) {
27148
        throw new java.io.IOException(te);
27149
      }
27150
    }
27151
 
27152
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27153
      try {
27154
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27155
        __isset_bit_vector = new BitSet(1);
27156
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27157
      } catch (org.apache.thrift.TException te) {
27158
        throw new java.io.IOException(te);
27159
      }
27160
    }
27161
 
27162
  }
27163
 
27164
  public static class isItemTransferAllowed_result implements org.apache.thrift.TBase<isItemTransferAllowed_result, isItemTransferAllowed_result._Fields>, java.io.Serializable, Cloneable   {
27165
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_result");
27166
 
27167
    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);
27168
 
27169
    private boolean success; // required
27170
 
27171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27172
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27173
      SUCCESS((short)0, "success");
27174
 
27175
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27176
 
27177
      static {
27178
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27179
          byName.put(field.getFieldName(), field);
27180
        }
27181
      }
27182
 
27183
      /**
27184
       * Find the _Fields constant that matches fieldId, or null if its not found.
27185
       */
27186
      public static _Fields findByThriftId(int fieldId) {
27187
        switch(fieldId) {
27188
          case 0: // SUCCESS
27189
            return SUCCESS;
27190
          default:
27191
            return null;
27192
        }
27193
      }
27194
 
27195
      /**
27196
       * Find the _Fields constant that matches fieldId, throwing an exception
27197
       * if it is not found.
27198
       */
27199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27200
        _Fields fields = findByThriftId(fieldId);
27201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27202
        return fields;
27203
      }
27204
 
27205
      /**
27206
       * Find the _Fields constant that matches name, or null if its not found.
27207
       */
27208
      public static _Fields findByName(String name) {
27209
        return byName.get(name);
27210
      }
27211
 
27212
      private final short _thriftId;
27213
      private final String _fieldName;
27214
 
27215
      _Fields(short thriftId, String fieldName) {
27216
        _thriftId = thriftId;
27217
        _fieldName = fieldName;
27218
      }
27219
 
27220
      public short getThriftFieldId() {
27221
        return _thriftId;
27222
      }
27223
 
27224
      public String getFieldName() {
27225
        return _fieldName;
27226
      }
27227
    }
27228
 
27229
    // isset id assignments
27230
    private static final int __SUCCESS_ISSET_ID = 0;
27231
    private BitSet __isset_bit_vector = new BitSet(1);
27232
 
27233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27234
    static {
27235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27236
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
27238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_result.class, metaDataMap);
27240
    }
27241
 
27242
    public isItemTransferAllowed_result() {
27243
    }
27244
 
27245
    public isItemTransferAllowed_result(
27246
      boolean success)
27247
    {
27248
      this();
27249
      this.success = success;
27250
      setSuccessIsSet(true);
27251
    }
27252
 
27253
    /**
27254
     * Performs a deep copy on <i>other</i>.
27255
     */
27256
    public isItemTransferAllowed_result(isItemTransferAllowed_result other) {
27257
      __isset_bit_vector.clear();
27258
      __isset_bit_vector.or(other.__isset_bit_vector);
27259
      this.success = other.success;
27260
    }
27261
 
27262
    public isItemTransferAllowed_result deepCopy() {
27263
      return new isItemTransferAllowed_result(this);
27264
    }
27265
 
27266
    @Override
27267
    public void clear() {
27268
      setSuccessIsSet(false);
27269
      this.success = false;
27270
    }
27271
 
27272
    public boolean isSuccess() {
27273
      return this.success;
27274
    }
27275
 
27276
    public void setSuccess(boolean success) {
27277
      this.success = success;
27278
      setSuccessIsSet(true);
27279
    }
27280
 
27281
    public void unsetSuccess() {
27282
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27283
    }
27284
 
27285
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27286
    public boolean isSetSuccess() {
27287
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27288
    }
27289
 
27290
    public void setSuccessIsSet(boolean value) {
27291
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27292
    }
27293
 
27294
    public void setFieldValue(_Fields field, Object value) {
27295
      switch (field) {
27296
      case SUCCESS:
27297
        if (value == null) {
27298
          unsetSuccess();
27299
        } else {
27300
          setSuccess((Boolean)value);
27301
        }
27302
        break;
27303
 
27304
      }
27305
    }
27306
 
27307
    public Object getFieldValue(_Fields field) {
27308
      switch (field) {
27309
      case SUCCESS:
27310
        return Boolean.valueOf(isSuccess());
27311
 
27312
      }
27313
      throw new IllegalStateException();
27314
    }
27315
 
27316
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27317
    public boolean isSet(_Fields field) {
27318
      if (field == null) {
27319
        throw new IllegalArgumentException();
27320
      }
27321
 
27322
      switch (field) {
27323
      case SUCCESS:
27324
        return isSetSuccess();
27325
      }
27326
      throw new IllegalStateException();
27327
    }
27328
 
27329
    @Override
27330
    public boolean equals(Object that) {
27331
      if (that == null)
27332
        return false;
27333
      if (that instanceof isItemTransferAllowed_result)
27334
        return this.equals((isItemTransferAllowed_result)that);
27335
      return false;
27336
    }
27337
 
27338
    public boolean equals(isItemTransferAllowed_result that) {
27339
      if (that == null)
27340
        return false;
27341
 
27342
      boolean this_present_success = true;
27343
      boolean that_present_success = true;
27344
      if (this_present_success || that_present_success) {
27345
        if (!(this_present_success && that_present_success))
27346
          return false;
27347
        if (this.success != that.success)
27348
          return false;
27349
      }
27350
 
27351
      return true;
27352
    }
27353
 
27354
    @Override
27355
    public int hashCode() {
27356
      return 0;
27357
    }
27358
 
27359
    public int compareTo(isItemTransferAllowed_result other) {
27360
      if (!getClass().equals(other.getClass())) {
27361
        return getClass().getName().compareTo(other.getClass().getName());
27362
      }
27363
 
27364
      int lastComparison = 0;
27365
      isItemTransferAllowed_result typedOther = (isItemTransferAllowed_result)other;
27366
 
27367
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27368
      if (lastComparison != 0) {
27369
        return lastComparison;
27370
      }
27371
      if (isSetSuccess()) {
27372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27373
        if (lastComparison != 0) {
27374
          return lastComparison;
27375
        }
27376
      }
27377
      return 0;
27378
    }
27379
 
27380
    public _Fields fieldForId(int fieldId) {
27381
      return _Fields.findByThriftId(fieldId);
27382
    }
27383
 
27384
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27385
      org.apache.thrift.protocol.TField field;
27386
      iprot.readStructBegin();
27387
      while (true)
27388
      {
27389
        field = iprot.readFieldBegin();
27390
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27391
          break;
27392
        }
27393
        switch (field.id) {
27394
          case 0: // SUCCESS
27395
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
27396
              this.success = iprot.readBool();
27397
              setSuccessIsSet(true);
27398
            } else { 
27399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27400
            }
27401
            break;
27402
          default:
27403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27404
        }
27405
        iprot.readFieldEnd();
27406
      }
27407
      iprot.readStructEnd();
27408
      validate();
27409
    }
27410
 
27411
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27412
      oprot.writeStructBegin(STRUCT_DESC);
27413
 
27414
      if (this.isSetSuccess()) {
27415
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27416
        oprot.writeBool(this.success);
27417
        oprot.writeFieldEnd();
27418
      }
27419
      oprot.writeFieldStop();
27420
      oprot.writeStructEnd();
27421
    }
27422
 
27423
    @Override
27424
    public String toString() {
27425
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_result(");
27426
      boolean first = true;
27427
 
27428
      sb.append("success:");
27429
      sb.append(this.success);
27430
      first = false;
27431
      sb.append(")");
27432
      return sb.toString();
27433
    }
27434
 
27435
    public void validate() throws org.apache.thrift.TException {
27436
      // check for required fields
27437
    }
27438
 
27439
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27440
      try {
27441
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27442
      } catch (org.apache.thrift.TException te) {
27443
        throw new java.io.IOException(te);
27444
      }
27445
    }
27446
 
27447
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27448
      try {
27449
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27450
      } catch (org.apache.thrift.TException te) {
27451
        throw new java.io.IOException(te);
27452
      }
27453
    }
27454
 
27455
  }
27456
 
27457
  public static class createTransferLot_args implements org.apache.thrift.TBase<createTransferLot_args, createTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
27458
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_args");
27459
 
27460
    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);
27461
    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);
27462
 
27463
    private long originWarehouseId; // required
27464
    private long destWarehouseId; // required
27465
 
27466
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27467
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27468
      ORIGIN_WAREHOUSE_ID((short)1, "originWarehouseId"),
27469
      DEST_WAREHOUSE_ID((short)2, "destWarehouseId");
27470
 
27471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27472
 
27473
      static {
27474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27475
          byName.put(field.getFieldName(), field);
27476
        }
27477
      }
27478
 
27479
      /**
27480
       * Find the _Fields constant that matches fieldId, or null if its not found.
27481
       */
27482
      public static _Fields findByThriftId(int fieldId) {
27483
        switch(fieldId) {
27484
          case 1: // ORIGIN_WAREHOUSE_ID
27485
            return ORIGIN_WAREHOUSE_ID;
27486
          case 2: // DEST_WAREHOUSE_ID
27487
            return DEST_WAREHOUSE_ID;
27488
          default:
27489
            return null;
27490
        }
27491
      }
27492
 
27493
      /**
27494
       * Find the _Fields constant that matches fieldId, throwing an exception
27495
       * if it is not found.
27496
       */
27497
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27498
        _Fields fields = findByThriftId(fieldId);
27499
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27500
        return fields;
27501
      }
27502
 
27503
      /**
27504
       * Find the _Fields constant that matches name, or null if its not found.
27505
       */
27506
      public static _Fields findByName(String name) {
27507
        return byName.get(name);
27508
      }
27509
 
27510
      private final short _thriftId;
27511
      private final String _fieldName;
27512
 
27513
      _Fields(short thriftId, String fieldName) {
27514
        _thriftId = thriftId;
27515
        _fieldName = fieldName;
27516
      }
27517
 
27518
      public short getThriftFieldId() {
27519
        return _thriftId;
27520
      }
27521
 
27522
      public String getFieldName() {
27523
        return _fieldName;
27524
      }
27525
    }
27526
 
27527
    // isset id assignments
27528
    private static final int __ORIGINWAREHOUSEID_ISSET_ID = 0;
27529
    private static final int __DESTWAREHOUSEID_ISSET_ID = 1;
27530
    private BitSet __isset_bit_vector = new BitSet(2);
27531
 
27532
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27533
    static {
27534
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27535
      tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27536
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27537
      tmpMap.put(_Fields.DEST_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27538
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27539
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27540
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_args.class, metaDataMap);
27541
    }
27542
 
27543
    public createTransferLot_args() {
27544
    }
27545
 
27546
    public createTransferLot_args(
27547
      long originWarehouseId,
27548
      long destWarehouseId)
27549
    {
27550
      this();
27551
      this.originWarehouseId = originWarehouseId;
27552
      setOriginWarehouseIdIsSet(true);
27553
      this.destWarehouseId = destWarehouseId;
27554
      setDestWarehouseIdIsSet(true);
27555
    }
27556
 
27557
    /**
27558
     * Performs a deep copy on <i>other</i>.
27559
     */
27560
    public createTransferLot_args(createTransferLot_args other) {
27561
      __isset_bit_vector.clear();
27562
      __isset_bit_vector.or(other.__isset_bit_vector);
27563
      this.originWarehouseId = other.originWarehouseId;
27564
      this.destWarehouseId = other.destWarehouseId;
27565
    }
27566
 
27567
    public createTransferLot_args deepCopy() {
27568
      return new createTransferLot_args(this);
27569
    }
27570
 
27571
    @Override
27572
    public void clear() {
27573
      setOriginWarehouseIdIsSet(false);
27574
      this.originWarehouseId = 0;
27575
      setDestWarehouseIdIsSet(false);
27576
      this.destWarehouseId = 0;
27577
    }
27578
 
27579
    public long getOriginWarehouseId() {
27580
      return this.originWarehouseId;
27581
    }
27582
 
27583
    public void setOriginWarehouseId(long originWarehouseId) {
27584
      this.originWarehouseId = originWarehouseId;
27585
      setOriginWarehouseIdIsSet(true);
27586
    }
27587
 
27588
    public void unsetOriginWarehouseId() {
27589
      __isset_bit_vector.clear(__ORIGINWAREHOUSEID_ISSET_ID);
27590
    }
27591
 
27592
    /** Returns true if field originWarehouseId is set (has been assigned a value) and false otherwise */
27593
    public boolean isSetOriginWarehouseId() {
27594
      return __isset_bit_vector.get(__ORIGINWAREHOUSEID_ISSET_ID);
27595
    }
27596
 
27597
    public void setOriginWarehouseIdIsSet(boolean value) {
27598
      __isset_bit_vector.set(__ORIGINWAREHOUSEID_ISSET_ID, value);
27599
    }
27600
 
27601
    public long getDestWarehouseId() {
27602
      return this.destWarehouseId;
27603
    }
27604
 
27605
    public void setDestWarehouseId(long destWarehouseId) {
27606
      this.destWarehouseId = destWarehouseId;
27607
      setDestWarehouseIdIsSet(true);
27608
    }
27609
 
27610
    public void unsetDestWarehouseId() {
27611
      __isset_bit_vector.clear(__DESTWAREHOUSEID_ISSET_ID);
27612
    }
27613
 
27614
    /** Returns true if field destWarehouseId is set (has been assigned a value) and false otherwise */
27615
    public boolean isSetDestWarehouseId() {
27616
      return __isset_bit_vector.get(__DESTWAREHOUSEID_ISSET_ID);
27617
    }
27618
 
27619
    public void setDestWarehouseIdIsSet(boolean value) {
27620
      __isset_bit_vector.set(__DESTWAREHOUSEID_ISSET_ID, value);
27621
    }
27622
 
27623
    public void setFieldValue(_Fields field, Object value) {
27624
      switch (field) {
27625
      case ORIGIN_WAREHOUSE_ID:
27626
        if (value == null) {
27627
          unsetOriginWarehouseId();
27628
        } else {
27629
          setOriginWarehouseId((Long)value);
27630
        }
27631
        break;
27632
 
27633
      case DEST_WAREHOUSE_ID:
27634
        if (value == null) {
27635
          unsetDestWarehouseId();
27636
        } else {
27637
          setDestWarehouseId((Long)value);
27638
        }
27639
        break;
27640
 
27641
      }
27642
    }
27643
 
27644
    public Object getFieldValue(_Fields field) {
27645
      switch (field) {
27646
      case ORIGIN_WAREHOUSE_ID:
27647
        return Long.valueOf(getOriginWarehouseId());
27648
 
27649
      case DEST_WAREHOUSE_ID:
27650
        return Long.valueOf(getDestWarehouseId());
27651
 
27652
      }
27653
      throw new IllegalStateException();
27654
    }
27655
 
27656
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27657
    public boolean isSet(_Fields field) {
27658
      if (field == null) {
27659
        throw new IllegalArgumentException();
27660
      }
27661
 
27662
      switch (field) {
27663
      case ORIGIN_WAREHOUSE_ID:
27664
        return isSetOriginWarehouseId();
27665
      case DEST_WAREHOUSE_ID:
27666
        return isSetDestWarehouseId();
27667
      }
27668
      throw new IllegalStateException();
27669
    }
27670
 
27671
    @Override
27672
    public boolean equals(Object that) {
27673
      if (that == null)
27674
        return false;
27675
      if (that instanceof createTransferLot_args)
27676
        return this.equals((createTransferLot_args)that);
27677
      return false;
27678
    }
27679
 
27680
    public boolean equals(createTransferLot_args that) {
27681
      if (that == null)
27682
        return false;
27683
 
27684
      boolean this_present_originWarehouseId = true;
27685
      boolean that_present_originWarehouseId = true;
27686
      if (this_present_originWarehouseId || that_present_originWarehouseId) {
27687
        if (!(this_present_originWarehouseId && that_present_originWarehouseId))
27688
          return false;
27689
        if (this.originWarehouseId != that.originWarehouseId)
27690
          return false;
27691
      }
27692
 
27693
      boolean this_present_destWarehouseId = true;
27694
      boolean that_present_destWarehouseId = true;
27695
      if (this_present_destWarehouseId || that_present_destWarehouseId) {
27696
        if (!(this_present_destWarehouseId && that_present_destWarehouseId))
27697
          return false;
27698
        if (this.destWarehouseId != that.destWarehouseId)
27699
          return false;
27700
      }
27701
 
27702
      return true;
27703
    }
27704
 
27705
    @Override
27706
    public int hashCode() {
27707
      return 0;
27708
    }
27709
 
27710
    public int compareTo(createTransferLot_args other) {
27711
      if (!getClass().equals(other.getClass())) {
27712
        return getClass().getName().compareTo(other.getClass().getName());
27713
      }
27714
 
27715
      int lastComparison = 0;
27716
      createTransferLot_args typedOther = (createTransferLot_args)other;
27717
 
27718
      lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
27719
      if (lastComparison != 0) {
27720
        return lastComparison;
27721
      }
27722
      if (isSetOriginWarehouseId()) {
27723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originWarehouseId, typedOther.originWarehouseId);
27724
        if (lastComparison != 0) {
27725
          return lastComparison;
27726
        }
27727
      }
27728
      lastComparison = Boolean.valueOf(isSetDestWarehouseId()).compareTo(typedOther.isSetDestWarehouseId());
27729
      if (lastComparison != 0) {
27730
        return lastComparison;
27731
      }
27732
      if (isSetDestWarehouseId()) {
27733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destWarehouseId, typedOther.destWarehouseId);
27734
        if (lastComparison != 0) {
27735
          return lastComparison;
27736
        }
27737
      }
27738
      return 0;
27739
    }
27740
 
27741
    public _Fields fieldForId(int fieldId) {
27742
      return _Fields.findByThriftId(fieldId);
27743
    }
27744
 
27745
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27746
      org.apache.thrift.protocol.TField field;
27747
      iprot.readStructBegin();
27748
      while (true)
27749
      {
27750
        field = iprot.readFieldBegin();
27751
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27752
          break;
27753
        }
27754
        switch (field.id) {
27755
          case 1: // ORIGIN_WAREHOUSE_ID
27756
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27757
              this.originWarehouseId = iprot.readI64();
27758
              setOriginWarehouseIdIsSet(true);
27759
            } else { 
27760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27761
            }
27762
            break;
27763
          case 2: // DEST_WAREHOUSE_ID
27764
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27765
              this.destWarehouseId = iprot.readI64();
27766
              setDestWarehouseIdIsSet(true);
27767
            } else { 
27768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27769
            }
27770
            break;
27771
          default:
27772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27773
        }
27774
        iprot.readFieldEnd();
27775
      }
27776
      iprot.readStructEnd();
27777
      validate();
27778
    }
27779
 
27780
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27781
      validate();
27782
 
27783
      oprot.writeStructBegin(STRUCT_DESC);
27784
      oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
27785
      oprot.writeI64(this.originWarehouseId);
27786
      oprot.writeFieldEnd();
27787
      oprot.writeFieldBegin(DEST_WAREHOUSE_ID_FIELD_DESC);
27788
      oprot.writeI64(this.destWarehouseId);
27789
      oprot.writeFieldEnd();
27790
      oprot.writeFieldStop();
27791
      oprot.writeStructEnd();
27792
    }
27793
 
27794
    @Override
27795
    public String toString() {
27796
      StringBuilder sb = new StringBuilder("createTransferLot_args(");
27797
      boolean first = true;
27798
 
27799
      sb.append("originWarehouseId:");
27800
      sb.append(this.originWarehouseId);
27801
      first = false;
27802
      if (!first) sb.append(", ");
27803
      sb.append("destWarehouseId:");
27804
      sb.append(this.destWarehouseId);
27805
      first = false;
27806
      sb.append(")");
27807
      return sb.toString();
27808
    }
27809
 
27810
    public void validate() throws org.apache.thrift.TException {
27811
      // check for required fields
27812
    }
27813
 
27814
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27815
      try {
27816
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27817
      } catch (org.apache.thrift.TException te) {
27818
        throw new java.io.IOException(te);
27819
      }
27820
    }
27821
 
27822
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27823
      try {
27824
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27825
        __isset_bit_vector = new BitSet(1);
27826
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27827
      } catch (org.apache.thrift.TException te) {
27828
        throw new java.io.IOException(te);
27829
      }
27830
    }
27831
 
27832
  }
27833
 
27834
  public static class createTransferLot_result implements org.apache.thrift.TBase<createTransferLot_result, createTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
27835
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_result");
27836
 
27837
    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);
27838
    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);
27839
 
27840
    private long success; // required
27841
    private WarehouseServiceException wex; // required
27842
 
27843
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27844
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27845
      SUCCESS((short)0, "success"),
27846
      WEX((short)1, "wex");
27847
 
27848
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27849
 
27850
      static {
27851
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27852
          byName.put(field.getFieldName(), field);
27853
        }
27854
      }
27855
 
27856
      /**
27857
       * Find the _Fields constant that matches fieldId, or null if its not found.
27858
       */
27859
      public static _Fields findByThriftId(int fieldId) {
27860
        switch(fieldId) {
27861
          case 0: // SUCCESS
27862
            return SUCCESS;
27863
          case 1: // WEX
27864
            return WEX;
27865
          default:
27866
            return null;
27867
        }
27868
      }
27869
 
27870
      /**
27871
       * Find the _Fields constant that matches fieldId, throwing an exception
27872
       * if it is not found.
27873
       */
27874
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27875
        _Fields fields = findByThriftId(fieldId);
27876
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27877
        return fields;
27878
      }
27879
 
27880
      /**
27881
       * Find the _Fields constant that matches name, or null if its not found.
27882
       */
27883
      public static _Fields findByName(String name) {
27884
        return byName.get(name);
27885
      }
27886
 
27887
      private final short _thriftId;
27888
      private final String _fieldName;
27889
 
27890
      _Fields(short thriftId, String fieldName) {
27891
        _thriftId = thriftId;
27892
        _fieldName = fieldName;
27893
      }
27894
 
27895
      public short getThriftFieldId() {
27896
        return _thriftId;
27897
      }
27898
 
27899
      public String getFieldName() {
27900
        return _fieldName;
27901
      }
27902
    }
27903
 
27904
    // isset id assignments
27905
    private static final int __SUCCESS_ISSET_ID = 0;
27906
    private BitSet __isset_bit_vector = new BitSet(1);
27907
 
27908
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27909
    static {
27910
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27911
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27912
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27913
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27914
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27915
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27916
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_result.class, metaDataMap);
27917
    }
27918
 
27919
    public createTransferLot_result() {
27920
    }
27921
 
27922
    public createTransferLot_result(
27923
      long success,
27924
      WarehouseServiceException wex)
27925
    {
27926
      this();
27927
      this.success = success;
27928
      setSuccessIsSet(true);
27929
      this.wex = wex;
27930
    }
27931
 
27932
    /**
27933
     * Performs a deep copy on <i>other</i>.
27934
     */
27935
    public createTransferLot_result(createTransferLot_result other) {
27936
      __isset_bit_vector.clear();
27937
      __isset_bit_vector.or(other.__isset_bit_vector);
27938
      this.success = other.success;
27939
      if (other.isSetWex()) {
27940
        this.wex = new WarehouseServiceException(other.wex);
27941
      }
27942
    }
27943
 
27944
    public createTransferLot_result deepCopy() {
27945
      return new createTransferLot_result(this);
27946
    }
27947
 
27948
    @Override
27949
    public void clear() {
27950
      setSuccessIsSet(false);
27951
      this.success = 0;
27952
      this.wex = null;
27953
    }
27954
 
27955
    public long getSuccess() {
27956
      return this.success;
27957
    }
27958
 
27959
    public void setSuccess(long success) {
27960
      this.success = success;
27961
      setSuccessIsSet(true);
27962
    }
27963
 
27964
    public void unsetSuccess() {
27965
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27966
    }
27967
 
27968
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27969
    public boolean isSetSuccess() {
27970
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27971
    }
27972
 
27973
    public void setSuccessIsSet(boolean value) {
27974
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27975
    }
27976
 
27977
    public WarehouseServiceException getWex() {
27978
      return this.wex;
27979
    }
27980
 
27981
    public void setWex(WarehouseServiceException wex) {
27982
      this.wex = wex;
27983
    }
27984
 
27985
    public void unsetWex() {
27986
      this.wex = null;
27987
    }
27988
 
27989
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
27990
    public boolean isSetWex() {
27991
      return this.wex != null;
27992
    }
27993
 
27994
    public void setWexIsSet(boolean value) {
27995
      if (!value) {
27996
        this.wex = null;
27997
      }
27998
    }
27999
 
28000
    public void setFieldValue(_Fields field, Object value) {
28001
      switch (field) {
28002
      case SUCCESS:
28003
        if (value == null) {
28004
          unsetSuccess();
28005
        } else {
28006
          setSuccess((Long)value);
28007
        }
28008
        break;
28009
 
28010
      case WEX:
28011
        if (value == null) {
28012
          unsetWex();
28013
        } else {
28014
          setWex((WarehouseServiceException)value);
28015
        }
28016
        break;
28017
 
28018
      }
28019
    }
28020
 
28021
    public Object getFieldValue(_Fields field) {
28022
      switch (field) {
28023
      case SUCCESS:
28024
        return Long.valueOf(getSuccess());
28025
 
28026
      case WEX:
28027
        return getWex();
28028
 
28029
      }
28030
      throw new IllegalStateException();
28031
    }
28032
 
28033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28034
    public boolean isSet(_Fields field) {
28035
      if (field == null) {
28036
        throw new IllegalArgumentException();
28037
      }
28038
 
28039
      switch (field) {
28040
      case SUCCESS:
28041
        return isSetSuccess();
28042
      case WEX:
28043
        return isSetWex();
28044
      }
28045
      throw new IllegalStateException();
28046
    }
28047
 
28048
    @Override
28049
    public boolean equals(Object that) {
28050
      if (that == null)
28051
        return false;
28052
      if (that instanceof createTransferLot_result)
28053
        return this.equals((createTransferLot_result)that);
28054
      return false;
28055
    }
28056
 
28057
    public boolean equals(createTransferLot_result that) {
28058
      if (that == null)
28059
        return false;
28060
 
28061
      boolean this_present_success = true;
28062
      boolean that_present_success = true;
28063
      if (this_present_success || that_present_success) {
28064
        if (!(this_present_success && that_present_success))
28065
          return false;
28066
        if (this.success != that.success)
28067
          return false;
28068
      }
28069
 
28070
      boolean this_present_wex = true && this.isSetWex();
28071
      boolean that_present_wex = true && that.isSetWex();
28072
      if (this_present_wex || that_present_wex) {
28073
        if (!(this_present_wex && that_present_wex))
28074
          return false;
28075
        if (!this.wex.equals(that.wex))
28076
          return false;
28077
      }
28078
 
28079
      return true;
28080
    }
28081
 
28082
    @Override
28083
    public int hashCode() {
28084
      return 0;
28085
    }
28086
 
28087
    public int compareTo(createTransferLot_result other) {
28088
      if (!getClass().equals(other.getClass())) {
28089
        return getClass().getName().compareTo(other.getClass().getName());
28090
      }
28091
 
28092
      int lastComparison = 0;
28093
      createTransferLot_result typedOther = (createTransferLot_result)other;
28094
 
28095
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28096
      if (lastComparison != 0) {
28097
        return lastComparison;
28098
      }
28099
      if (isSetSuccess()) {
28100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28101
        if (lastComparison != 0) {
28102
          return lastComparison;
28103
        }
28104
      }
28105
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
28106
      if (lastComparison != 0) {
28107
        return lastComparison;
28108
      }
28109
      if (isSetWex()) {
28110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
28111
        if (lastComparison != 0) {
28112
          return lastComparison;
28113
        }
28114
      }
28115
      return 0;
28116
    }
28117
 
28118
    public _Fields fieldForId(int fieldId) {
28119
      return _Fields.findByThriftId(fieldId);
28120
    }
28121
 
28122
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28123
      org.apache.thrift.protocol.TField field;
28124
      iprot.readStructBegin();
28125
      while (true)
28126
      {
28127
        field = iprot.readFieldBegin();
28128
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28129
          break;
28130
        }
28131
        switch (field.id) {
28132
          case 0: // SUCCESS
28133
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28134
              this.success = iprot.readI64();
28135
              setSuccessIsSet(true);
28136
            } else { 
28137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28138
            }
28139
            break;
28140
          case 1: // WEX
28141
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28142
              this.wex = new WarehouseServiceException();
28143
              this.wex.read(iprot);
28144
            } else { 
28145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28146
            }
28147
            break;
28148
          default:
28149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28150
        }
28151
        iprot.readFieldEnd();
28152
      }
28153
      iprot.readStructEnd();
28154
      validate();
28155
    }
28156
 
28157
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28158
      oprot.writeStructBegin(STRUCT_DESC);
28159
 
28160
      if (this.isSetSuccess()) {
28161
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28162
        oprot.writeI64(this.success);
28163
        oprot.writeFieldEnd();
28164
      } else if (this.isSetWex()) {
28165
        oprot.writeFieldBegin(WEX_FIELD_DESC);
28166
        this.wex.write(oprot);
28167
        oprot.writeFieldEnd();
28168
      }
28169
      oprot.writeFieldStop();
28170
      oprot.writeStructEnd();
28171
    }
28172
 
28173
    @Override
28174
    public String toString() {
28175
      StringBuilder sb = new StringBuilder("createTransferLot_result(");
28176
      boolean first = true;
28177
 
28178
      sb.append("success:");
28179
      sb.append(this.success);
28180
      first = false;
28181
      if (!first) sb.append(", ");
28182
      sb.append("wex:");
28183
      if (this.wex == null) {
28184
        sb.append("null");
28185
      } else {
28186
        sb.append(this.wex);
28187
      }
28188
      first = false;
28189
      sb.append(")");
28190
      return sb.toString();
28191
    }
28192
 
28193
    public void validate() throws org.apache.thrift.TException {
28194
      // check for required fields
28195
    }
28196
 
28197
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28198
      try {
28199
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28200
      } catch (org.apache.thrift.TException te) {
28201
        throw new java.io.IOException(te);
28202
      }
28203
    }
28204
 
28205
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28206
      try {
28207
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28208
      } catch (org.apache.thrift.TException te) {
28209
        throw new java.io.IOException(te);
28210
      }
28211
    }
28212
 
28213
  }
28214
 
28215
  public static class getTransferLot_args implements org.apache.thrift.TBase<getTransferLot_args, getTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
28216
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_args");
28217
 
28218
    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);
28219
 
28220
    private long transferLotId; // required
28221
 
28222
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28223
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28224
      TRANSFER_LOT_ID((short)1, "transferLotId");
28225
 
28226
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28227
 
28228
      static {
28229
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28230
          byName.put(field.getFieldName(), field);
28231
        }
28232
      }
28233
 
28234
      /**
28235
       * Find the _Fields constant that matches fieldId, or null if its not found.
28236
       */
28237
      public static _Fields findByThriftId(int fieldId) {
28238
        switch(fieldId) {
28239
          case 1: // TRANSFER_LOT_ID
28240
            return TRANSFER_LOT_ID;
28241
          default:
28242
            return null;
28243
        }
28244
      }
28245
 
28246
      /**
28247
       * Find the _Fields constant that matches fieldId, throwing an exception
28248
       * if it is not found.
28249
       */
28250
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28251
        _Fields fields = findByThriftId(fieldId);
28252
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28253
        return fields;
28254
      }
28255
 
28256
      /**
28257
       * Find the _Fields constant that matches name, or null if its not found.
28258
       */
28259
      public static _Fields findByName(String name) {
28260
        return byName.get(name);
28261
      }
28262
 
28263
      private final short _thriftId;
28264
      private final String _fieldName;
28265
 
28266
      _Fields(short thriftId, String fieldName) {
28267
        _thriftId = thriftId;
28268
        _fieldName = fieldName;
28269
      }
28270
 
28271
      public short getThriftFieldId() {
28272
        return _thriftId;
28273
      }
28274
 
28275
      public String getFieldName() {
28276
        return _fieldName;
28277
      }
28278
    }
28279
 
28280
    // isset id assignments
28281
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
28282
    private BitSet __isset_bit_vector = new BitSet(1);
28283
 
28284
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28285
    static {
28286
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28287
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28288
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28289
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28290
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_args.class, metaDataMap);
28291
    }
28292
 
28293
    public getTransferLot_args() {
28294
    }
28295
 
28296
    public getTransferLot_args(
28297
      long transferLotId)
28298
    {
28299
      this();
28300
      this.transferLotId = transferLotId;
28301
      setTransferLotIdIsSet(true);
28302
    }
28303
 
28304
    /**
28305
     * Performs a deep copy on <i>other</i>.
28306
     */
28307
    public getTransferLot_args(getTransferLot_args other) {
28308
      __isset_bit_vector.clear();
28309
      __isset_bit_vector.or(other.__isset_bit_vector);
28310
      this.transferLotId = other.transferLotId;
28311
    }
28312
 
28313
    public getTransferLot_args deepCopy() {
28314
      return new getTransferLot_args(this);
28315
    }
28316
 
28317
    @Override
28318
    public void clear() {
28319
      setTransferLotIdIsSet(false);
28320
      this.transferLotId = 0;
28321
    }
28322
 
28323
    public long getTransferLotId() {
28324
      return this.transferLotId;
28325
    }
28326
 
28327
    public void setTransferLotId(long transferLotId) {
28328
      this.transferLotId = transferLotId;
28329
      setTransferLotIdIsSet(true);
28330
    }
28331
 
28332
    public void unsetTransferLotId() {
28333
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
28334
    }
28335
 
28336
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
28337
    public boolean isSetTransferLotId() {
28338
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
28339
    }
28340
 
28341
    public void setTransferLotIdIsSet(boolean value) {
28342
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
28343
    }
28344
 
28345
    public void setFieldValue(_Fields field, Object value) {
28346
      switch (field) {
28347
      case TRANSFER_LOT_ID:
28348
        if (value == null) {
28349
          unsetTransferLotId();
28350
        } else {
28351
          setTransferLotId((Long)value);
28352
        }
28353
        break;
28354
 
28355
      }
28356
    }
28357
 
28358
    public Object getFieldValue(_Fields field) {
28359
      switch (field) {
28360
      case TRANSFER_LOT_ID:
28361
        return Long.valueOf(getTransferLotId());
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 TRANSFER_LOT_ID:
28375
        return isSetTransferLotId();
28376
      }
28377
      throw new IllegalStateException();
28378
    }
28379
 
28380
    @Override
28381
    public boolean equals(Object that) {
28382
      if (that == null)
28383
        return false;
28384
      if (that instanceof getTransferLot_args)
28385
        return this.equals((getTransferLot_args)that);
28386
      return false;
28387
    }
28388
 
28389
    public boolean equals(getTransferLot_args that) {
28390
      if (that == null)
28391
        return false;
28392
 
28393
      boolean this_present_transferLotId = true;
28394
      boolean that_present_transferLotId = true;
28395
      if (this_present_transferLotId || that_present_transferLotId) {
28396
        if (!(this_present_transferLotId && that_present_transferLotId))
28397
          return false;
28398
        if (this.transferLotId != that.transferLotId)
28399
          return false;
28400
      }
28401
 
28402
      return true;
28403
    }
28404
 
28405
    @Override
28406
    public int hashCode() {
28407
      return 0;
28408
    }
28409
 
28410
    public int compareTo(getTransferLot_args other) {
28411
      if (!getClass().equals(other.getClass())) {
28412
        return getClass().getName().compareTo(other.getClass().getName());
28413
      }
28414
 
28415
      int lastComparison = 0;
28416
      getTransferLot_args typedOther = (getTransferLot_args)other;
28417
 
28418
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
28419
      if (lastComparison != 0) {
28420
        return lastComparison;
28421
      }
28422
      if (isSetTransferLotId()) {
28423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
28424
        if (lastComparison != 0) {
28425
          return lastComparison;
28426
        }
28427
      }
28428
      return 0;
28429
    }
28430
 
28431
    public _Fields fieldForId(int fieldId) {
28432
      return _Fields.findByThriftId(fieldId);
28433
    }
28434
 
28435
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28436
      org.apache.thrift.protocol.TField field;
28437
      iprot.readStructBegin();
28438
      while (true)
28439
      {
28440
        field = iprot.readFieldBegin();
28441
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28442
          break;
28443
        }
28444
        switch (field.id) {
28445
          case 1: // TRANSFER_LOT_ID
28446
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28447
              this.transferLotId = iprot.readI64();
28448
              setTransferLotIdIsSet(true);
28449
            } else { 
28450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28451
            }
28452
            break;
28453
          default:
28454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28455
        }
28456
        iprot.readFieldEnd();
28457
      }
28458
      iprot.readStructEnd();
28459
      validate();
28460
    }
28461
 
28462
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28463
      validate();
28464
 
28465
      oprot.writeStructBegin(STRUCT_DESC);
28466
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
28467
      oprot.writeI64(this.transferLotId);
28468
      oprot.writeFieldEnd();
28469
      oprot.writeFieldStop();
28470
      oprot.writeStructEnd();
28471
    }
28472
 
28473
    @Override
28474
    public String toString() {
28475
      StringBuilder sb = new StringBuilder("getTransferLot_args(");
28476
      boolean first = true;
28477
 
28478
      sb.append("transferLotId:");
28479
      sb.append(this.transferLotId);
28480
      first = false;
28481
      sb.append(")");
28482
      return sb.toString();
28483
    }
28484
 
28485
    public void validate() throws org.apache.thrift.TException {
28486
      // check for required fields
28487
    }
28488
 
28489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28490
      try {
28491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28492
      } catch (org.apache.thrift.TException te) {
28493
        throw new java.io.IOException(te);
28494
      }
28495
    }
28496
 
28497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28498
      try {
28499
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28500
        __isset_bit_vector = new BitSet(1);
28501
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28502
      } catch (org.apache.thrift.TException te) {
28503
        throw new java.io.IOException(te);
28504
      }
28505
    }
28506
 
28507
  }
28508
 
28509
  public static class getTransferLot_result implements org.apache.thrift.TBase<getTransferLot_result, getTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
28510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_result");
28511
 
28512
    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);
28513
    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);
28514
 
28515
    private TransferLot success; // required
28516
    private WarehouseServiceException wex; // required
28517
 
28518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28520
      SUCCESS((short)0, "success"),
28521
      WEX((short)1, "wex");
28522
 
28523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28524
 
28525
      static {
28526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28527
          byName.put(field.getFieldName(), field);
28528
        }
28529
      }
28530
 
28531
      /**
28532
       * Find the _Fields constant that matches fieldId, or null if its not found.
28533
       */
28534
      public static _Fields findByThriftId(int fieldId) {
28535
        switch(fieldId) {
28536
          case 0: // SUCCESS
28537
            return SUCCESS;
28538
          case 1: // WEX
28539
            return WEX;
28540
          default:
28541
            return null;
28542
        }
28543
      }
28544
 
28545
      /**
28546
       * Find the _Fields constant that matches fieldId, throwing an exception
28547
       * if it is not found.
28548
       */
28549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28550
        _Fields fields = findByThriftId(fieldId);
28551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28552
        return fields;
28553
      }
28554
 
28555
      /**
28556
       * Find the _Fields constant that matches name, or null if its not found.
28557
       */
28558
      public static _Fields findByName(String name) {
28559
        return byName.get(name);
28560
      }
28561
 
28562
      private final short _thriftId;
28563
      private final String _fieldName;
28564
 
28565
      _Fields(short thriftId, String fieldName) {
28566
        _thriftId = thriftId;
28567
        _fieldName = fieldName;
28568
      }
28569
 
28570
      public short getThriftFieldId() {
28571
        return _thriftId;
28572
      }
28573
 
28574
      public String getFieldName() {
28575
        return _fieldName;
28576
      }
28577
    }
28578
 
28579
    // isset id assignments
28580
 
28581
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28582
    static {
28583
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28584
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28585
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class)));
28586
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_result.class, metaDataMap);
28590
    }
28591
 
28592
    public getTransferLot_result() {
28593
    }
28594
 
28595
    public getTransferLot_result(
28596
      TransferLot success,
28597
      WarehouseServiceException wex)
28598
    {
28599
      this();
28600
      this.success = success;
28601
      this.wex = wex;
28602
    }
28603
 
28604
    /**
28605
     * Performs a deep copy on <i>other</i>.
28606
     */
28607
    public getTransferLot_result(getTransferLot_result other) {
28608
      if (other.isSetSuccess()) {
28609
        this.success = new TransferLot(other.success);
28610
      }
28611
      if (other.isSetWex()) {
28612
        this.wex = new WarehouseServiceException(other.wex);
28613
      }
28614
    }
28615
 
28616
    public getTransferLot_result deepCopy() {
28617
      return new getTransferLot_result(this);
28618
    }
28619
 
28620
    @Override
28621
    public void clear() {
28622
      this.success = null;
28623
      this.wex = null;
28624
    }
28625
 
28626
    public TransferLot getSuccess() {
28627
      return this.success;
28628
    }
28629
 
28630
    public void setSuccess(TransferLot success) {
28631
      this.success = success;
28632
    }
28633
 
28634
    public void unsetSuccess() {
28635
      this.success = null;
28636
    }
28637
 
28638
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28639
    public boolean isSetSuccess() {
28640
      return this.success != null;
28641
    }
28642
 
28643
    public void setSuccessIsSet(boolean value) {
28644
      if (!value) {
28645
        this.success = null;
28646
      }
28647
    }
28648
 
28649
    public WarehouseServiceException getWex() {
28650
      return this.wex;
28651
    }
28652
 
28653
    public void setWex(WarehouseServiceException wex) {
28654
      this.wex = wex;
28655
    }
28656
 
28657
    public void unsetWex() {
28658
      this.wex = null;
28659
    }
28660
 
28661
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
28662
    public boolean isSetWex() {
28663
      return this.wex != null;
28664
    }
28665
 
28666
    public void setWexIsSet(boolean value) {
28667
      if (!value) {
28668
        this.wex = null;
28669
      }
28670
    }
28671
 
28672
    public void setFieldValue(_Fields field, Object value) {
28673
      switch (field) {
28674
      case SUCCESS:
28675
        if (value == null) {
28676
          unsetSuccess();
28677
        } else {
28678
          setSuccess((TransferLot)value);
28679
        }
28680
        break;
28681
 
28682
      case WEX:
28683
        if (value == null) {
28684
          unsetWex();
28685
        } else {
28686
          setWex((WarehouseServiceException)value);
28687
        }
28688
        break;
28689
 
28690
      }
28691
    }
28692
 
28693
    public Object getFieldValue(_Fields field) {
28694
      switch (field) {
28695
      case SUCCESS:
28696
        return getSuccess();
28697
 
28698
      case WEX:
28699
        return getWex();
28700
 
28701
      }
28702
      throw new IllegalStateException();
28703
    }
28704
 
28705
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28706
    public boolean isSet(_Fields field) {
28707
      if (field == null) {
28708
        throw new IllegalArgumentException();
28709
      }
28710
 
28711
      switch (field) {
28712
      case SUCCESS:
28713
        return isSetSuccess();
28714
      case WEX:
28715
        return isSetWex();
28716
      }
28717
      throw new IllegalStateException();
28718
    }
28719
 
28720
    @Override
28721
    public boolean equals(Object that) {
28722
      if (that == null)
28723
        return false;
28724
      if (that instanceof getTransferLot_result)
28725
        return this.equals((getTransferLot_result)that);
28726
      return false;
28727
    }
28728
 
28729
    public boolean equals(getTransferLot_result that) {
28730
      if (that == null)
28731
        return false;
28732
 
28733
      boolean this_present_success = true && this.isSetSuccess();
28734
      boolean that_present_success = true && that.isSetSuccess();
28735
      if (this_present_success || that_present_success) {
28736
        if (!(this_present_success && that_present_success))
28737
          return false;
28738
        if (!this.success.equals(that.success))
28739
          return false;
28740
      }
28741
 
28742
      boolean this_present_wex = true && this.isSetWex();
28743
      boolean that_present_wex = true && that.isSetWex();
28744
      if (this_present_wex || that_present_wex) {
28745
        if (!(this_present_wex && that_present_wex))
28746
          return false;
28747
        if (!this.wex.equals(that.wex))
28748
          return false;
28749
      }
28750
 
28751
      return true;
28752
    }
28753
 
28754
    @Override
28755
    public int hashCode() {
28756
      return 0;
28757
    }
28758
 
28759
    public int compareTo(getTransferLot_result other) {
28760
      if (!getClass().equals(other.getClass())) {
28761
        return getClass().getName().compareTo(other.getClass().getName());
28762
      }
28763
 
28764
      int lastComparison = 0;
28765
      getTransferLot_result typedOther = (getTransferLot_result)other;
28766
 
28767
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28768
      if (lastComparison != 0) {
28769
        return lastComparison;
28770
      }
28771
      if (isSetSuccess()) {
28772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28773
        if (lastComparison != 0) {
28774
          return lastComparison;
28775
        }
28776
      }
28777
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
28778
      if (lastComparison != 0) {
28779
        return lastComparison;
28780
      }
28781
      if (isSetWex()) {
28782
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
28783
        if (lastComparison != 0) {
28784
          return lastComparison;
28785
        }
28786
      }
28787
      return 0;
28788
    }
28789
 
28790
    public _Fields fieldForId(int fieldId) {
28791
      return _Fields.findByThriftId(fieldId);
28792
    }
28793
 
28794
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28795
      org.apache.thrift.protocol.TField field;
28796
      iprot.readStructBegin();
28797
      while (true)
28798
      {
28799
        field = iprot.readFieldBegin();
28800
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28801
          break;
28802
        }
28803
        switch (field.id) {
28804
          case 0: // SUCCESS
28805
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28806
              this.success = new TransferLot();
28807
              this.success.read(iprot);
28808
            } else { 
28809
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28810
            }
28811
            break;
28812
          case 1: // WEX
28813
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28814
              this.wex = new WarehouseServiceException();
28815
              this.wex.read(iprot);
28816
            } else { 
28817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28818
            }
28819
            break;
28820
          default:
28821
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28822
        }
28823
        iprot.readFieldEnd();
28824
      }
28825
      iprot.readStructEnd();
28826
      validate();
28827
    }
28828
 
28829
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28830
      oprot.writeStructBegin(STRUCT_DESC);
28831
 
28832
      if (this.isSetSuccess()) {
28833
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28834
        this.success.write(oprot);
28835
        oprot.writeFieldEnd();
28836
      } else if (this.isSetWex()) {
28837
        oprot.writeFieldBegin(WEX_FIELD_DESC);
28838
        this.wex.write(oprot);
28839
        oprot.writeFieldEnd();
28840
      }
28841
      oprot.writeFieldStop();
28842
      oprot.writeStructEnd();
28843
    }
28844
 
28845
    @Override
28846
    public String toString() {
28847
      StringBuilder sb = new StringBuilder("getTransferLot_result(");
28848
      boolean first = true;
28849
 
28850
      sb.append("success:");
28851
      if (this.success == null) {
28852
        sb.append("null");
28853
      } else {
28854
        sb.append(this.success);
28855
      }
28856
      first = false;
28857
      if (!first) sb.append(", ");
28858
      sb.append("wex:");
28859
      if (this.wex == null) {
28860
        sb.append("null");
28861
      } else {
28862
        sb.append(this.wex);
28863
      }
28864
      first = false;
28865
      sb.append(")");
28866
      return sb.toString();
28867
    }
28868
 
28869
    public void validate() throws org.apache.thrift.TException {
28870
      // check for required fields
28871
    }
28872
 
28873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28874
      try {
28875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28876
      } catch (org.apache.thrift.TException te) {
28877
        throw new java.io.IOException(te);
28878
      }
28879
    }
28880
 
28881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28882
      try {
28883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28884
      } catch (org.apache.thrift.TException te) {
28885
        throw new java.io.IOException(te);
28886
      }
28887
    }
28888
 
28889
  }
28890
 
28891
  public static class markTransferLotAsReceived_args implements org.apache.thrift.TBase<markTransferLotAsReceived_args, markTransferLotAsReceived_args._Fields>, java.io.Serializable, Cloneable   {
28892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_args");
28893
 
28894
    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);
28895
    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);
28896
 
28897
    private long id; // required
28898
    private String remoteTransferRefNumber; // required
28899
 
28900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28902
      ID((short)1, "id"),
28903
      REMOTE_TRANSFER_REF_NUMBER((short)2, "remoteTransferRefNumber");
28904
 
28905
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28906
 
28907
      static {
28908
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28909
          byName.put(field.getFieldName(), field);
28910
        }
28911
      }
28912
 
28913
      /**
28914
       * Find the _Fields constant that matches fieldId, or null if its not found.
28915
       */
28916
      public static _Fields findByThriftId(int fieldId) {
28917
        switch(fieldId) {
28918
          case 1: // ID
28919
            return ID;
28920
          case 2: // REMOTE_TRANSFER_REF_NUMBER
28921
            return REMOTE_TRANSFER_REF_NUMBER;
28922
          default:
28923
            return null;
28924
        }
28925
      }
28926
 
28927
      /**
28928
       * Find the _Fields constant that matches fieldId, throwing an exception
28929
       * if it is not found.
28930
       */
28931
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28932
        _Fields fields = findByThriftId(fieldId);
28933
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28934
        return fields;
28935
      }
28936
 
28937
      /**
28938
       * Find the _Fields constant that matches name, or null if its not found.
28939
       */
28940
      public static _Fields findByName(String name) {
28941
        return byName.get(name);
28942
      }
28943
 
28944
      private final short _thriftId;
28945
      private final String _fieldName;
28946
 
28947
      _Fields(short thriftId, String fieldName) {
28948
        _thriftId = thriftId;
28949
        _fieldName = fieldName;
28950
      }
28951
 
28952
      public short getThriftFieldId() {
28953
        return _thriftId;
28954
      }
28955
 
28956
      public String getFieldName() {
28957
        return _fieldName;
28958
      }
28959
    }
28960
 
28961
    // isset id assignments
28962
    private static final int __ID_ISSET_ID = 0;
28963
    private BitSet __isset_bit_vector = new BitSet(1);
28964
 
28965
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28966
    static {
28967
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28968
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28969
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28970
      tmpMap.put(_Fields.REMOTE_TRANSFER_REF_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("remoteTransferRefNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28971
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28972
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28973
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_args.class, metaDataMap);
28974
    }
28975
 
28976
    public markTransferLotAsReceived_args() {
28977
    }
28978
 
28979
    public markTransferLotAsReceived_args(
28980
      long id,
28981
      String remoteTransferRefNumber)
28982
    {
28983
      this();
28984
      this.id = id;
28985
      setIdIsSet(true);
28986
      this.remoteTransferRefNumber = remoteTransferRefNumber;
28987
    }
28988
 
28989
    /**
28990
     * Performs a deep copy on <i>other</i>.
28991
     */
28992
    public markTransferLotAsReceived_args(markTransferLotAsReceived_args other) {
28993
      __isset_bit_vector.clear();
28994
      __isset_bit_vector.or(other.__isset_bit_vector);
28995
      this.id = other.id;
28996
      if (other.isSetRemoteTransferRefNumber()) {
28997
        this.remoteTransferRefNumber = other.remoteTransferRefNumber;
28998
      }
28999
    }
29000
 
29001
    public markTransferLotAsReceived_args deepCopy() {
29002
      return new markTransferLotAsReceived_args(this);
29003
    }
29004
 
29005
    @Override
29006
    public void clear() {
29007
      setIdIsSet(false);
29008
      this.id = 0;
29009
      this.remoteTransferRefNumber = null;
29010
    }
29011
 
29012
    public long getId() {
29013
      return this.id;
29014
    }
29015
 
29016
    public void setId(long id) {
29017
      this.id = id;
29018
      setIdIsSet(true);
29019
    }
29020
 
29021
    public void unsetId() {
29022
      __isset_bit_vector.clear(__ID_ISSET_ID);
29023
    }
29024
 
29025
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
29026
    public boolean isSetId() {
29027
      return __isset_bit_vector.get(__ID_ISSET_ID);
29028
    }
29029
 
29030
    public void setIdIsSet(boolean value) {
29031
      __isset_bit_vector.set(__ID_ISSET_ID, value);
29032
    }
29033
 
29034
    public String getRemoteTransferRefNumber() {
29035
      return this.remoteTransferRefNumber;
29036
    }
29037
 
29038
    public void setRemoteTransferRefNumber(String remoteTransferRefNumber) {
29039
      this.remoteTransferRefNumber = remoteTransferRefNumber;
29040
    }
29041
 
29042
    public void unsetRemoteTransferRefNumber() {
29043
      this.remoteTransferRefNumber = null;
29044
    }
29045
 
29046
    /** Returns true if field remoteTransferRefNumber is set (has been assigned a value) and false otherwise */
29047
    public boolean isSetRemoteTransferRefNumber() {
29048
      return this.remoteTransferRefNumber != null;
29049
    }
29050
 
29051
    public void setRemoteTransferRefNumberIsSet(boolean value) {
29052
      if (!value) {
29053
        this.remoteTransferRefNumber = null;
29054
      }
29055
    }
29056
 
29057
    public void setFieldValue(_Fields field, Object value) {
29058
      switch (field) {
29059
      case ID:
29060
        if (value == null) {
29061
          unsetId();
29062
        } else {
29063
          setId((Long)value);
29064
        }
29065
        break;
29066
 
29067
      case REMOTE_TRANSFER_REF_NUMBER:
29068
        if (value == null) {
29069
          unsetRemoteTransferRefNumber();
29070
        } else {
29071
          setRemoteTransferRefNumber((String)value);
29072
        }
29073
        break;
29074
 
29075
      }
29076
    }
29077
 
29078
    public Object getFieldValue(_Fields field) {
29079
      switch (field) {
29080
      case ID:
29081
        return Long.valueOf(getId());
29082
 
29083
      case REMOTE_TRANSFER_REF_NUMBER:
29084
        return getRemoteTransferRefNumber();
29085
 
29086
      }
29087
      throw new IllegalStateException();
29088
    }
29089
 
29090
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29091
    public boolean isSet(_Fields field) {
29092
      if (field == null) {
29093
        throw new IllegalArgumentException();
29094
      }
29095
 
29096
      switch (field) {
29097
      case ID:
29098
        return isSetId();
29099
      case REMOTE_TRANSFER_REF_NUMBER:
29100
        return isSetRemoteTransferRefNumber();
29101
      }
29102
      throw new IllegalStateException();
29103
    }
29104
 
29105
    @Override
29106
    public boolean equals(Object that) {
29107
      if (that == null)
29108
        return false;
29109
      if (that instanceof markTransferLotAsReceived_args)
29110
        return this.equals((markTransferLotAsReceived_args)that);
29111
      return false;
29112
    }
29113
 
29114
    public boolean equals(markTransferLotAsReceived_args that) {
29115
      if (that == null)
29116
        return false;
29117
 
29118
      boolean this_present_id = true;
29119
      boolean that_present_id = true;
29120
      if (this_present_id || that_present_id) {
29121
        if (!(this_present_id && that_present_id))
29122
          return false;
29123
        if (this.id != that.id)
29124
          return false;
29125
      }
29126
 
29127
      boolean this_present_remoteTransferRefNumber = true && this.isSetRemoteTransferRefNumber();
29128
      boolean that_present_remoteTransferRefNumber = true && that.isSetRemoteTransferRefNumber();
29129
      if (this_present_remoteTransferRefNumber || that_present_remoteTransferRefNumber) {
29130
        if (!(this_present_remoteTransferRefNumber && that_present_remoteTransferRefNumber))
29131
          return false;
29132
        if (!this.remoteTransferRefNumber.equals(that.remoteTransferRefNumber))
29133
          return false;
29134
      }
29135
 
29136
      return true;
29137
    }
29138
 
29139
    @Override
29140
    public int hashCode() {
29141
      return 0;
29142
    }
29143
 
29144
    public int compareTo(markTransferLotAsReceived_args other) {
29145
      if (!getClass().equals(other.getClass())) {
29146
        return getClass().getName().compareTo(other.getClass().getName());
29147
      }
29148
 
29149
      int lastComparison = 0;
29150
      markTransferLotAsReceived_args typedOther = (markTransferLotAsReceived_args)other;
29151
 
29152
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
29153
      if (lastComparison != 0) {
29154
        return lastComparison;
29155
      }
29156
      if (isSetId()) {
29157
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
29158
        if (lastComparison != 0) {
29159
          return lastComparison;
29160
        }
29161
      }
29162
      lastComparison = Boolean.valueOf(isSetRemoteTransferRefNumber()).compareTo(typedOther.isSetRemoteTransferRefNumber());
29163
      if (lastComparison != 0) {
29164
        return lastComparison;
29165
      }
29166
      if (isSetRemoteTransferRefNumber()) {
29167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remoteTransferRefNumber, typedOther.remoteTransferRefNumber);
29168
        if (lastComparison != 0) {
29169
          return lastComparison;
29170
        }
29171
      }
29172
      return 0;
29173
    }
29174
 
29175
    public _Fields fieldForId(int fieldId) {
29176
      return _Fields.findByThriftId(fieldId);
29177
    }
29178
 
29179
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29180
      org.apache.thrift.protocol.TField field;
29181
      iprot.readStructBegin();
29182
      while (true)
29183
      {
29184
        field = iprot.readFieldBegin();
29185
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29186
          break;
29187
        }
29188
        switch (field.id) {
29189
          case 1: // ID
29190
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29191
              this.id = iprot.readI64();
29192
              setIdIsSet(true);
29193
            } else { 
29194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29195
            }
29196
            break;
29197
          case 2: // REMOTE_TRANSFER_REF_NUMBER
29198
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
29199
              this.remoteTransferRefNumber = iprot.readString();
29200
            } else { 
29201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29202
            }
29203
            break;
29204
          default:
29205
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29206
        }
29207
        iprot.readFieldEnd();
29208
      }
29209
      iprot.readStructEnd();
29210
      validate();
29211
    }
29212
 
29213
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29214
      validate();
29215
 
29216
      oprot.writeStructBegin(STRUCT_DESC);
29217
      oprot.writeFieldBegin(ID_FIELD_DESC);
29218
      oprot.writeI64(this.id);
29219
      oprot.writeFieldEnd();
29220
      if (this.remoteTransferRefNumber != null) {
29221
        oprot.writeFieldBegin(REMOTE_TRANSFER_REF_NUMBER_FIELD_DESC);
29222
        oprot.writeString(this.remoteTransferRefNumber);
29223
        oprot.writeFieldEnd();
29224
      }
29225
      oprot.writeFieldStop();
29226
      oprot.writeStructEnd();
29227
    }
29228
 
29229
    @Override
29230
    public String toString() {
29231
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_args(");
29232
      boolean first = true;
29233
 
29234
      sb.append("id:");
29235
      sb.append(this.id);
29236
      first = false;
29237
      if (!first) sb.append(", ");
29238
      sb.append("remoteTransferRefNumber:");
29239
      if (this.remoteTransferRefNumber == null) {
29240
        sb.append("null");
29241
      } else {
29242
        sb.append(this.remoteTransferRefNumber);
29243
      }
29244
      first = false;
29245
      sb.append(")");
29246
      return sb.toString();
29247
    }
29248
 
29249
    public void validate() throws org.apache.thrift.TException {
29250
      // check for required fields
29251
    }
29252
 
29253
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29254
      try {
29255
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29256
      } catch (org.apache.thrift.TException te) {
29257
        throw new java.io.IOException(te);
29258
      }
29259
    }
29260
 
29261
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29262
      try {
29263
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29264
        __isset_bit_vector = new BitSet(1);
29265
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29266
      } catch (org.apache.thrift.TException te) {
29267
        throw new java.io.IOException(te);
29268
      }
29269
    }
29270
 
29271
  }
29272
 
29273
  public static class markTransferLotAsReceived_result implements org.apache.thrift.TBase<markTransferLotAsReceived_result, markTransferLotAsReceived_result._Fields>, java.io.Serializable, Cloneable   {
29274
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_result");
29275
 
29276
    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);
29277
 
29278
    private WarehouseServiceException wex; // required
29279
 
29280
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29281
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29282
      WEX((short)1, "wex");
29283
 
29284
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29285
 
29286
      static {
29287
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29288
          byName.put(field.getFieldName(), field);
29289
        }
29290
      }
29291
 
29292
      /**
29293
       * Find the _Fields constant that matches fieldId, or null if its not found.
29294
       */
29295
      public static _Fields findByThriftId(int fieldId) {
29296
        switch(fieldId) {
29297
          case 1: // WEX
29298
            return WEX;
29299
          default:
29300
            return null;
29301
        }
29302
      }
29303
 
29304
      /**
29305
       * Find the _Fields constant that matches fieldId, throwing an exception
29306
       * if it is not found.
29307
       */
29308
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29309
        _Fields fields = findByThriftId(fieldId);
29310
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29311
        return fields;
29312
      }
29313
 
29314
      /**
29315
       * Find the _Fields constant that matches name, or null if its not found.
29316
       */
29317
      public static _Fields findByName(String name) {
29318
        return byName.get(name);
29319
      }
29320
 
29321
      private final short _thriftId;
29322
      private final String _fieldName;
29323
 
29324
      _Fields(short thriftId, String fieldName) {
29325
        _thriftId = thriftId;
29326
        _fieldName = fieldName;
29327
      }
29328
 
29329
      public short getThriftFieldId() {
29330
        return _thriftId;
29331
      }
29332
 
29333
      public String getFieldName() {
29334
        return _fieldName;
29335
      }
29336
    }
29337
 
29338
    // isset id assignments
29339
 
29340
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29341
    static {
29342
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29343
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29344
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29345
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29346
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_result.class, metaDataMap);
29347
    }
29348
 
29349
    public markTransferLotAsReceived_result() {
29350
    }
29351
 
29352
    public markTransferLotAsReceived_result(
29353
      WarehouseServiceException wex)
29354
    {
29355
      this();
29356
      this.wex = wex;
29357
    }
29358
 
29359
    /**
29360
     * Performs a deep copy on <i>other</i>.
29361
     */
29362
    public markTransferLotAsReceived_result(markTransferLotAsReceived_result other) {
29363
      if (other.isSetWex()) {
29364
        this.wex = new WarehouseServiceException(other.wex);
29365
      }
29366
    }
29367
 
29368
    public markTransferLotAsReceived_result deepCopy() {
29369
      return new markTransferLotAsReceived_result(this);
29370
    }
29371
 
29372
    @Override
29373
    public void clear() {
29374
      this.wex = null;
29375
    }
29376
 
29377
    public WarehouseServiceException getWex() {
29378
      return this.wex;
29379
    }
29380
 
29381
    public void setWex(WarehouseServiceException wex) {
29382
      this.wex = wex;
29383
    }
29384
 
29385
    public void unsetWex() {
29386
      this.wex = null;
29387
    }
29388
 
29389
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
29390
    public boolean isSetWex() {
29391
      return this.wex != null;
29392
    }
29393
 
29394
    public void setWexIsSet(boolean value) {
29395
      if (!value) {
29396
        this.wex = null;
29397
      }
29398
    }
29399
 
29400
    public void setFieldValue(_Fields field, Object value) {
29401
      switch (field) {
29402
      case WEX:
29403
        if (value == null) {
29404
          unsetWex();
29405
        } else {
29406
          setWex((WarehouseServiceException)value);
29407
        }
29408
        break;
29409
 
29410
      }
29411
    }
29412
 
29413
    public Object getFieldValue(_Fields field) {
29414
      switch (field) {
29415
      case WEX:
29416
        return getWex();
29417
 
29418
      }
29419
      throw new IllegalStateException();
29420
    }
29421
 
29422
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29423
    public boolean isSet(_Fields field) {
29424
      if (field == null) {
29425
        throw new IllegalArgumentException();
29426
      }
29427
 
29428
      switch (field) {
29429
      case WEX:
29430
        return isSetWex();
29431
      }
29432
      throw new IllegalStateException();
29433
    }
29434
 
29435
    @Override
29436
    public boolean equals(Object that) {
29437
      if (that == null)
29438
        return false;
29439
      if (that instanceof markTransferLotAsReceived_result)
29440
        return this.equals((markTransferLotAsReceived_result)that);
29441
      return false;
29442
    }
29443
 
29444
    public boolean equals(markTransferLotAsReceived_result that) {
29445
      if (that == null)
29446
        return false;
29447
 
29448
      boolean this_present_wex = true && this.isSetWex();
29449
      boolean that_present_wex = true && that.isSetWex();
29450
      if (this_present_wex || that_present_wex) {
29451
        if (!(this_present_wex && that_present_wex))
29452
          return false;
29453
        if (!this.wex.equals(that.wex))
29454
          return false;
29455
      }
29456
 
29457
      return true;
29458
    }
29459
 
29460
    @Override
29461
    public int hashCode() {
29462
      return 0;
29463
    }
29464
 
29465
    public int compareTo(markTransferLotAsReceived_result other) {
29466
      if (!getClass().equals(other.getClass())) {
29467
        return getClass().getName().compareTo(other.getClass().getName());
29468
      }
29469
 
29470
      int lastComparison = 0;
29471
      markTransferLotAsReceived_result typedOther = (markTransferLotAsReceived_result)other;
29472
 
29473
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
29474
      if (lastComparison != 0) {
29475
        return lastComparison;
29476
      }
29477
      if (isSetWex()) {
29478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
29479
        if (lastComparison != 0) {
29480
          return lastComparison;
29481
        }
29482
      }
29483
      return 0;
29484
    }
29485
 
29486
    public _Fields fieldForId(int fieldId) {
29487
      return _Fields.findByThriftId(fieldId);
29488
    }
29489
 
29490
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29491
      org.apache.thrift.protocol.TField field;
29492
      iprot.readStructBegin();
29493
      while (true)
29494
      {
29495
        field = iprot.readFieldBegin();
29496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29497
          break;
29498
        }
29499
        switch (field.id) {
29500
          case 1: // WEX
29501
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29502
              this.wex = new WarehouseServiceException();
29503
              this.wex.read(iprot);
29504
            } else { 
29505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29506
            }
29507
            break;
29508
          default:
29509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29510
        }
29511
        iprot.readFieldEnd();
29512
      }
29513
      iprot.readStructEnd();
29514
      validate();
29515
    }
29516
 
29517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29518
      oprot.writeStructBegin(STRUCT_DESC);
29519
 
29520
      if (this.isSetWex()) {
29521
        oprot.writeFieldBegin(WEX_FIELD_DESC);
29522
        this.wex.write(oprot);
29523
        oprot.writeFieldEnd();
29524
      }
29525
      oprot.writeFieldStop();
29526
      oprot.writeStructEnd();
29527
    }
29528
 
29529
    @Override
29530
    public String toString() {
29531
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_result(");
29532
      boolean first = true;
29533
 
29534
      sb.append("wex:");
29535
      if (this.wex == null) {
29536
        sb.append("null");
29537
      } else {
29538
        sb.append(this.wex);
29539
      }
29540
      first = false;
29541
      sb.append(")");
29542
      return sb.toString();
29543
    }
29544
 
29545
    public void validate() throws org.apache.thrift.TException {
29546
      // check for required fields
29547
    }
29548
 
29549
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29550
      try {
29551
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29552
      } catch (org.apache.thrift.TException te) {
29553
        throw new java.io.IOException(te);
29554
      }
29555
    }
29556
 
29557
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29558
      try {
29559
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29560
      } catch (org.apache.thrift.TException te) {
29561
        throw new java.io.IOException(te);
29562
      }
29563
    }
29564
 
29565
  }
29566
 
29567
  public static class getTransferLotsByDate_args implements org.apache.thrift.TBase<getTransferLotsByDate_args, getTransferLotsByDate_args._Fields>, java.io.Serializable, Cloneable   {
29568
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_args");
29569
 
29570
    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);
29571
    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);
29572
 
29573
    private long fromDate; // required
29574
    private long toDate; // required
29575
 
29576
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29577
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29578
      FROM_DATE((short)1, "fromDate"),
29579
      TO_DATE((short)2, "toDate");
29580
 
29581
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29582
 
29583
      static {
29584
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29585
          byName.put(field.getFieldName(), field);
29586
        }
29587
      }
29588
 
29589
      /**
29590
       * Find the _Fields constant that matches fieldId, or null if its not found.
29591
       */
29592
      public static _Fields findByThriftId(int fieldId) {
29593
        switch(fieldId) {
29594
          case 1: // FROM_DATE
29595
            return FROM_DATE;
29596
          case 2: // TO_DATE
29597
            return TO_DATE;
29598
          default:
29599
            return null;
29600
        }
29601
      }
29602
 
29603
      /**
29604
       * Find the _Fields constant that matches fieldId, throwing an exception
29605
       * if it is not found.
29606
       */
29607
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29608
        _Fields fields = findByThriftId(fieldId);
29609
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29610
        return fields;
29611
      }
29612
 
29613
      /**
29614
       * Find the _Fields constant that matches name, or null if its not found.
29615
       */
29616
      public static _Fields findByName(String name) {
29617
        return byName.get(name);
29618
      }
29619
 
29620
      private final short _thriftId;
29621
      private final String _fieldName;
29622
 
29623
      _Fields(short thriftId, String fieldName) {
29624
        _thriftId = thriftId;
29625
        _fieldName = fieldName;
29626
      }
29627
 
29628
      public short getThriftFieldId() {
29629
        return _thriftId;
29630
      }
29631
 
29632
      public String getFieldName() {
29633
        return _fieldName;
29634
      }
29635
    }
29636
 
29637
    // isset id assignments
29638
    private static final int __FROMDATE_ISSET_ID = 0;
29639
    private static final int __TODATE_ISSET_ID = 1;
29640
    private BitSet __isset_bit_vector = new BitSet(2);
29641
 
29642
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29643
    static {
29644
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29645
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29646
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29647
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_args.class, metaDataMap);
29651
    }
29652
 
29653
    public getTransferLotsByDate_args() {
29654
    }
29655
 
29656
    public getTransferLotsByDate_args(
29657
      long fromDate,
29658
      long toDate)
29659
    {
29660
      this();
29661
      this.fromDate = fromDate;
29662
      setFromDateIsSet(true);
29663
      this.toDate = toDate;
29664
      setToDateIsSet(true);
29665
    }
29666
 
29667
    /**
29668
     * Performs a deep copy on <i>other</i>.
29669
     */
29670
    public getTransferLotsByDate_args(getTransferLotsByDate_args other) {
29671
      __isset_bit_vector.clear();
29672
      __isset_bit_vector.or(other.__isset_bit_vector);
29673
      this.fromDate = other.fromDate;
29674
      this.toDate = other.toDate;
29675
    }
29676
 
29677
    public getTransferLotsByDate_args deepCopy() {
29678
      return new getTransferLotsByDate_args(this);
29679
    }
29680
 
29681
    @Override
29682
    public void clear() {
29683
      setFromDateIsSet(false);
29684
      this.fromDate = 0;
29685
      setToDateIsSet(false);
29686
      this.toDate = 0;
29687
    }
29688
 
29689
    public long getFromDate() {
29690
      return this.fromDate;
29691
    }
29692
 
29693
    public void setFromDate(long fromDate) {
29694
      this.fromDate = fromDate;
29695
      setFromDateIsSet(true);
29696
    }
29697
 
29698
    public void unsetFromDate() {
29699
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
29700
    }
29701
 
29702
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
29703
    public boolean isSetFromDate() {
29704
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
29705
    }
29706
 
29707
    public void setFromDateIsSet(boolean value) {
29708
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
29709
    }
29710
 
29711
    public long getToDate() {
29712
      return this.toDate;
29713
    }
29714
 
29715
    public void setToDate(long toDate) {
29716
      this.toDate = toDate;
29717
      setToDateIsSet(true);
29718
    }
29719
 
29720
    public void unsetToDate() {
29721
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
29722
    }
29723
 
29724
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
29725
    public boolean isSetToDate() {
29726
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
29727
    }
29728
 
29729
    public void setToDateIsSet(boolean value) {
29730
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
29731
    }
29732
 
29733
    public void setFieldValue(_Fields field, Object value) {
29734
      switch (field) {
29735
      case FROM_DATE:
29736
        if (value == null) {
29737
          unsetFromDate();
29738
        } else {
29739
          setFromDate((Long)value);
29740
        }
29741
        break;
29742
 
29743
      case TO_DATE:
29744
        if (value == null) {
29745
          unsetToDate();
29746
        } else {
29747
          setToDate((Long)value);
29748
        }
29749
        break;
29750
 
29751
      }
29752
    }
29753
 
29754
    public Object getFieldValue(_Fields field) {
29755
      switch (field) {
29756
      case FROM_DATE:
29757
        return Long.valueOf(getFromDate());
29758
 
29759
      case TO_DATE:
29760
        return Long.valueOf(getToDate());
29761
 
29762
      }
29763
      throw new IllegalStateException();
29764
    }
29765
 
29766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29767
    public boolean isSet(_Fields field) {
29768
      if (field == null) {
29769
        throw new IllegalArgumentException();
29770
      }
29771
 
29772
      switch (field) {
29773
      case FROM_DATE:
29774
        return isSetFromDate();
29775
      case TO_DATE:
29776
        return isSetToDate();
29777
      }
29778
      throw new IllegalStateException();
29779
    }
29780
 
29781
    @Override
29782
    public boolean equals(Object that) {
29783
      if (that == null)
29784
        return false;
29785
      if (that instanceof getTransferLotsByDate_args)
29786
        return this.equals((getTransferLotsByDate_args)that);
29787
      return false;
29788
    }
29789
 
29790
    public boolean equals(getTransferLotsByDate_args that) {
29791
      if (that == null)
29792
        return false;
29793
 
29794
      boolean this_present_fromDate = true;
29795
      boolean that_present_fromDate = true;
29796
      if (this_present_fromDate || that_present_fromDate) {
29797
        if (!(this_present_fromDate && that_present_fromDate))
29798
          return false;
29799
        if (this.fromDate != that.fromDate)
29800
          return false;
29801
      }
29802
 
29803
      boolean this_present_toDate = true;
29804
      boolean that_present_toDate = true;
29805
      if (this_present_toDate || that_present_toDate) {
29806
        if (!(this_present_toDate && that_present_toDate))
29807
          return false;
29808
        if (this.toDate != that.toDate)
29809
          return false;
29810
      }
29811
 
29812
      return true;
29813
    }
29814
 
29815
    @Override
29816
    public int hashCode() {
29817
      return 0;
29818
    }
29819
 
29820
    public int compareTo(getTransferLotsByDate_args other) {
29821
      if (!getClass().equals(other.getClass())) {
29822
        return getClass().getName().compareTo(other.getClass().getName());
29823
      }
29824
 
29825
      int lastComparison = 0;
29826
      getTransferLotsByDate_args typedOther = (getTransferLotsByDate_args)other;
29827
 
29828
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
29829
      if (lastComparison != 0) {
29830
        return lastComparison;
29831
      }
29832
      if (isSetFromDate()) {
29833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
29834
        if (lastComparison != 0) {
29835
          return lastComparison;
29836
        }
29837
      }
29838
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
29839
      if (lastComparison != 0) {
29840
        return lastComparison;
29841
      }
29842
      if (isSetToDate()) {
29843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
29844
        if (lastComparison != 0) {
29845
          return lastComparison;
29846
        }
29847
      }
29848
      return 0;
29849
    }
29850
 
29851
    public _Fields fieldForId(int fieldId) {
29852
      return _Fields.findByThriftId(fieldId);
29853
    }
29854
 
29855
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29856
      org.apache.thrift.protocol.TField field;
29857
      iprot.readStructBegin();
29858
      while (true)
29859
      {
29860
        field = iprot.readFieldBegin();
29861
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29862
          break;
29863
        }
29864
        switch (field.id) {
29865
          case 1: // FROM_DATE
29866
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29867
              this.fromDate = iprot.readI64();
29868
              setFromDateIsSet(true);
29869
            } else { 
29870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29871
            }
29872
            break;
29873
          case 2: // TO_DATE
29874
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29875
              this.toDate = iprot.readI64();
29876
              setToDateIsSet(true);
29877
            } else { 
29878
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29879
            }
29880
            break;
29881
          default:
29882
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29883
        }
29884
        iprot.readFieldEnd();
29885
      }
29886
      iprot.readStructEnd();
29887
      validate();
29888
    }
29889
 
29890
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29891
      validate();
29892
 
29893
      oprot.writeStructBegin(STRUCT_DESC);
29894
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
29895
      oprot.writeI64(this.fromDate);
29896
      oprot.writeFieldEnd();
29897
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
29898
      oprot.writeI64(this.toDate);
29899
      oprot.writeFieldEnd();
29900
      oprot.writeFieldStop();
29901
      oprot.writeStructEnd();
29902
    }
29903
 
29904
    @Override
29905
    public String toString() {
29906
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_args(");
29907
      boolean first = true;
29908
 
29909
      sb.append("fromDate:");
29910
      sb.append(this.fromDate);
29911
      first = false;
29912
      if (!first) sb.append(", ");
29913
      sb.append("toDate:");
29914
      sb.append(this.toDate);
29915
      first = false;
29916
      sb.append(")");
29917
      return sb.toString();
29918
    }
29919
 
29920
    public void validate() throws org.apache.thrift.TException {
29921
      // check for required fields
29922
    }
29923
 
29924
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29925
      try {
29926
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29927
      } catch (org.apache.thrift.TException te) {
29928
        throw new java.io.IOException(te);
29929
      }
29930
    }
29931
 
29932
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29933
      try {
29934
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29935
        __isset_bit_vector = new BitSet(1);
29936
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29937
      } catch (org.apache.thrift.TException te) {
29938
        throw new java.io.IOException(te);
29939
      }
29940
    }
29941
 
29942
  }
29943
 
29944
  public static class getTransferLotsByDate_result implements org.apache.thrift.TBase<getTransferLotsByDate_result, getTransferLotsByDate_result._Fields>, java.io.Serializable, Cloneable   {
29945
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_result");
29946
 
29947
    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);
29948
    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);
29949
 
29950
    private List<TransferLot> success; // required
29951
    private WarehouseServiceException wex; // required
29952
 
29953
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29954
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29955
      SUCCESS((short)0, "success"),
29956
      WEX((short)1, "wex");
29957
 
29958
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29959
 
29960
      static {
29961
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29962
          byName.put(field.getFieldName(), field);
29963
        }
29964
      }
29965
 
29966
      /**
29967
       * Find the _Fields constant that matches fieldId, or null if its not found.
29968
       */
29969
      public static _Fields findByThriftId(int fieldId) {
29970
        switch(fieldId) {
29971
          case 0: // SUCCESS
29972
            return SUCCESS;
29973
          case 1: // WEX
29974
            return WEX;
29975
          default:
29976
            return null;
29977
        }
29978
      }
29979
 
29980
      /**
29981
       * Find the _Fields constant that matches fieldId, throwing an exception
29982
       * if it is not found.
29983
       */
29984
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29985
        _Fields fields = findByThriftId(fieldId);
29986
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29987
        return fields;
29988
      }
29989
 
29990
      /**
29991
       * Find the _Fields constant that matches name, or null if its not found.
29992
       */
29993
      public static _Fields findByName(String name) {
29994
        return byName.get(name);
29995
      }
29996
 
29997
      private final short _thriftId;
29998
      private final String _fieldName;
29999
 
30000
      _Fields(short thriftId, String fieldName) {
30001
        _thriftId = thriftId;
30002
        _fieldName = fieldName;
30003
      }
30004
 
30005
      public short getThriftFieldId() {
30006
        return _thriftId;
30007
      }
30008
 
30009
      public String getFieldName() {
30010
        return _fieldName;
30011
      }
30012
    }
30013
 
30014
    // isset id assignments
30015
 
30016
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30017
    static {
30018
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30019
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30020
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30021
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class))));
30022
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30023
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30024
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30025
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_result.class, metaDataMap);
30026
    }
30027
 
30028
    public getTransferLotsByDate_result() {
30029
    }
30030
 
30031
    public getTransferLotsByDate_result(
30032
      List<TransferLot> success,
30033
      WarehouseServiceException wex)
30034
    {
30035
      this();
30036
      this.success = success;
30037
      this.wex = wex;
30038
    }
30039
 
30040
    /**
30041
     * Performs a deep copy on <i>other</i>.
30042
     */
30043
    public getTransferLotsByDate_result(getTransferLotsByDate_result other) {
30044
      if (other.isSetSuccess()) {
30045
        List<TransferLot> __this__success = new ArrayList<TransferLot>();
30046
        for (TransferLot other_element : other.success) {
30047
          __this__success.add(new TransferLot(other_element));
30048
        }
30049
        this.success = __this__success;
30050
      }
30051
      if (other.isSetWex()) {
30052
        this.wex = new WarehouseServiceException(other.wex);
30053
      }
30054
    }
30055
 
30056
    public getTransferLotsByDate_result deepCopy() {
30057
      return new getTransferLotsByDate_result(this);
30058
    }
30059
 
30060
    @Override
30061
    public void clear() {
30062
      this.success = null;
30063
      this.wex = null;
30064
    }
30065
 
30066
    public int getSuccessSize() {
30067
      return (this.success == null) ? 0 : this.success.size();
30068
    }
30069
 
30070
    public java.util.Iterator<TransferLot> getSuccessIterator() {
30071
      return (this.success == null) ? null : this.success.iterator();
30072
    }
30073
 
30074
    public void addToSuccess(TransferLot elem) {
30075
      if (this.success == null) {
30076
        this.success = new ArrayList<TransferLot>();
30077
      }
30078
      this.success.add(elem);
30079
    }
30080
 
30081
    public List<TransferLot> getSuccess() {
30082
      return this.success;
30083
    }
30084
 
30085
    public void setSuccess(List<TransferLot> success) {
30086
      this.success = success;
30087
    }
30088
 
30089
    public void unsetSuccess() {
30090
      this.success = null;
30091
    }
30092
 
30093
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30094
    public boolean isSetSuccess() {
30095
      return this.success != null;
30096
    }
30097
 
30098
    public void setSuccessIsSet(boolean value) {
30099
      if (!value) {
30100
        this.success = null;
30101
      }
30102
    }
30103
 
30104
    public WarehouseServiceException getWex() {
30105
      return this.wex;
30106
    }
30107
 
30108
    public void setWex(WarehouseServiceException wex) {
30109
      this.wex = wex;
30110
    }
30111
 
30112
    public void unsetWex() {
30113
      this.wex = null;
30114
    }
30115
 
30116
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
30117
    public boolean isSetWex() {
30118
      return this.wex != null;
30119
    }
30120
 
30121
    public void setWexIsSet(boolean value) {
30122
      if (!value) {
30123
        this.wex = null;
30124
      }
30125
    }
30126
 
30127
    public void setFieldValue(_Fields field, Object value) {
30128
      switch (field) {
30129
      case SUCCESS:
30130
        if (value == null) {
30131
          unsetSuccess();
30132
        } else {
30133
          setSuccess((List<TransferLot>)value);
30134
        }
30135
        break;
30136
 
30137
      case WEX:
30138
        if (value == null) {
30139
          unsetWex();
30140
        } else {
30141
          setWex((WarehouseServiceException)value);
30142
        }
30143
        break;
30144
 
30145
      }
30146
    }
30147
 
30148
    public Object getFieldValue(_Fields field) {
30149
      switch (field) {
30150
      case SUCCESS:
30151
        return getSuccess();
30152
 
30153
      case WEX:
30154
        return getWex();
30155
 
30156
      }
30157
      throw new IllegalStateException();
30158
    }
30159
 
30160
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30161
    public boolean isSet(_Fields field) {
30162
      if (field == null) {
30163
        throw new IllegalArgumentException();
30164
      }
30165
 
30166
      switch (field) {
30167
      case SUCCESS:
30168
        return isSetSuccess();
30169
      case WEX:
30170
        return isSetWex();
30171
      }
30172
      throw new IllegalStateException();
30173
    }
30174
 
30175
    @Override
30176
    public boolean equals(Object that) {
30177
      if (that == null)
30178
        return false;
30179
      if (that instanceof getTransferLotsByDate_result)
30180
        return this.equals((getTransferLotsByDate_result)that);
30181
      return false;
30182
    }
30183
 
30184
    public boolean equals(getTransferLotsByDate_result that) {
30185
      if (that == null)
30186
        return false;
30187
 
30188
      boolean this_present_success = true && this.isSetSuccess();
30189
      boolean that_present_success = true && that.isSetSuccess();
30190
      if (this_present_success || that_present_success) {
30191
        if (!(this_present_success && that_present_success))
30192
          return false;
30193
        if (!this.success.equals(that.success))
30194
          return false;
30195
      }
30196
 
30197
      boolean this_present_wex = true && this.isSetWex();
30198
      boolean that_present_wex = true && that.isSetWex();
30199
      if (this_present_wex || that_present_wex) {
30200
        if (!(this_present_wex && that_present_wex))
30201
          return false;
30202
        if (!this.wex.equals(that.wex))
30203
          return false;
30204
      }
30205
 
30206
      return true;
30207
    }
30208
 
30209
    @Override
30210
    public int hashCode() {
30211
      return 0;
30212
    }
30213
 
30214
    public int compareTo(getTransferLotsByDate_result other) {
30215
      if (!getClass().equals(other.getClass())) {
30216
        return getClass().getName().compareTo(other.getClass().getName());
30217
      }
30218
 
30219
      int lastComparison = 0;
30220
      getTransferLotsByDate_result typedOther = (getTransferLotsByDate_result)other;
30221
 
30222
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30223
      if (lastComparison != 0) {
30224
        return lastComparison;
30225
      }
30226
      if (isSetSuccess()) {
30227
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30228
        if (lastComparison != 0) {
30229
          return lastComparison;
30230
        }
30231
      }
30232
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
30233
      if (lastComparison != 0) {
30234
        return lastComparison;
30235
      }
30236
      if (isSetWex()) {
30237
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
30238
        if (lastComparison != 0) {
30239
          return lastComparison;
30240
        }
30241
      }
30242
      return 0;
30243
    }
30244
 
30245
    public _Fields fieldForId(int fieldId) {
30246
      return _Fields.findByThriftId(fieldId);
30247
    }
30248
 
30249
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30250
      org.apache.thrift.protocol.TField field;
30251
      iprot.readStructBegin();
30252
      while (true)
30253
      {
30254
        field = iprot.readFieldBegin();
30255
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30256
          break;
30257
        }
30258
        switch (field.id) {
30259
          case 0: // SUCCESS
30260
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30261
              {
30262
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
30263
                this.success = new ArrayList<TransferLot>(_list76.size);
30264
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
30265
                {
30266
                  TransferLot _elem78; // required
30267
                  _elem78 = new TransferLot();
30268
                  _elem78.read(iprot);
30269
                  this.success.add(_elem78);
30270
                }
30271
                iprot.readListEnd();
30272
              }
30273
            } else { 
30274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30275
            }
30276
            break;
30277
          case 1: // WEX
30278
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30279
              this.wex = new WarehouseServiceException();
30280
              this.wex.read(iprot);
30281
            } else { 
30282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30283
            }
30284
            break;
30285
          default:
30286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30287
        }
30288
        iprot.readFieldEnd();
30289
      }
30290
      iprot.readStructEnd();
30291
      validate();
30292
    }
30293
 
30294
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30295
      oprot.writeStructBegin(STRUCT_DESC);
30296
 
30297
      if (this.isSetSuccess()) {
30298
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30299
        {
30300
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30301
          for (TransferLot _iter79 : this.success)
30302
          {
30303
            _iter79.write(oprot);
30304
          }
30305
          oprot.writeListEnd();
30306
        }
30307
        oprot.writeFieldEnd();
30308
      } else if (this.isSetWex()) {
30309
        oprot.writeFieldBegin(WEX_FIELD_DESC);
30310
        this.wex.write(oprot);
30311
        oprot.writeFieldEnd();
30312
      }
30313
      oprot.writeFieldStop();
30314
      oprot.writeStructEnd();
30315
    }
30316
 
30317
    @Override
30318
    public String toString() {
30319
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_result(");
30320
      boolean first = true;
30321
 
30322
      sb.append("success:");
30323
      if (this.success == null) {
30324
        sb.append("null");
30325
      } else {
30326
        sb.append(this.success);
30327
      }
30328
      first = false;
30329
      if (!first) sb.append(", ");
30330
      sb.append("wex:");
30331
      if (this.wex == null) {
30332
        sb.append("null");
30333
      } else {
30334
        sb.append(this.wex);
30335
      }
30336
      first = false;
30337
      sb.append(")");
30338
      return sb.toString();
30339
    }
30340
 
30341
    public void validate() throws org.apache.thrift.TException {
30342
      // check for required fields
30343
    }
30344
 
30345
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30346
      try {
30347
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30348
      } catch (org.apache.thrift.TException te) {
30349
        throw new java.io.IOException(te);
30350
      }
30351
    }
30352
 
30353
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30354
      try {
30355
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30356
      } catch (org.apache.thrift.TException te) {
30357
        throw new java.io.IOException(te);
30358
      }
30359
    }
30360
 
30361
  }
30362
 
30363
  public static class getAllowedDestinationWarehousesForTransfer_args implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_args, getAllowedDestinationWarehousesForTransfer_args._Fields>, java.io.Serializable, Cloneable   {
30364
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_args");
30365
 
30366
    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);
30367
 
30368
    private long warehouseId; // required
30369
 
30370
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30371
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30372
      WAREHOUSE_ID((short)1, "warehouseId");
30373
 
30374
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30375
 
30376
      static {
30377
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30378
          byName.put(field.getFieldName(), field);
30379
        }
30380
      }
30381
 
30382
      /**
30383
       * Find the _Fields constant that matches fieldId, or null if its not found.
30384
       */
30385
      public static _Fields findByThriftId(int fieldId) {
30386
        switch(fieldId) {
30387
          case 1: // WAREHOUSE_ID
30388
            return WAREHOUSE_ID;
30389
          default:
30390
            return null;
30391
        }
30392
      }
30393
 
30394
      /**
30395
       * Find the _Fields constant that matches fieldId, throwing an exception
30396
       * if it is not found.
30397
       */
30398
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30399
        _Fields fields = findByThriftId(fieldId);
30400
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30401
        return fields;
30402
      }
30403
 
30404
      /**
30405
       * Find the _Fields constant that matches name, or null if its not found.
30406
       */
30407
      public static _Fields findByName(String name) {
30408
        return byName.get(name);
30409
      }
30410
 
30411
      private final short _thriftId;
30412
      private final String _fieldName;
30413
 
30414
      _Fields(short thriftId, String fieldName) {
30415
        _thriftId = thriftId;
30416
        _fieldName = fieldName;
30417
      }
30418
 
30419
      public short getThriftFieldId() {
30420
        return _thriftId;
30421
      }
30422
 
30423
      public String getFieldName() {
30424
        return _fieldName;
30425
      }
30426
    }
30427
 
30428
    // isset id assignments
30429
    private static final int __WAREHOUSEID_ISSET_ID = 0;
30430
    private BitSet __isset_bit_vector = new BitSet(1);
30431
 
30432
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30433
    static {
30434
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30435
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30437
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30438
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_args.class, metaDataMap);
30439
    }
30440
 
30441
    public getAllowedDestinationWarehousesForTransfer_args() {
30442
    }
30443
 
30444
    public getAllowedDestinationWarehousesForTransfer_args(
30445
      long warehouseId)
30446
    {
30447
      this();
30448
      this.warehouseId = warehouseId;
30449
      setWarehouseIdIsSet(true);
30450
    }
30451
 
30452
    /**
30453
     * Performs a deep copy on <i>other</i>.
30454
     */
30455
    public getAllowedDestinationWarehousesForTransfer_args(getAllowedDestinationWarehousesForTransfer_args other) {
30456
      __isset_bit_vector.clear();
30457
      __isset_bit_vector.or(other.__isset_bit_vector);
30458
      this.warehouseId = other.warehouseId;
30459
    }
30460
 
30461
    public getAllowedDestinationWarehousesForTransfer_args deepCopy() {
30462
      return new getAllowedDestinationWarehousesForTransfer_args(this);
30463
    }
30464
 
30465
    @Override
30466
    public void clear() {
30467
      setWarehouseIdIsSet(false);
30468
      this.warehouseId = 0;
30469
    }
30470
 
30471
    public long getWarehouseId() {
30472
      return this.warehouseId;
30473
    }
30474
 
30475
    public void setWarehouseId(long warehouseId) {
30476
      this.warehouseId = warehouseId;
30477
      setWarehouseIdIsSet(true);
30478
    }
30479
 
30480
    public void unsetWarehouseId() {
30481
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
30482
    }
30483
 
30484
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
30485
    public boolean isSetWarehouseId() {
30486
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
30487
    }
30488
 
30489
    public void setWarehouseIdIsSet(boolean value) {
30490
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
30491
    }
30492
 
30493
    public void setFieldValue(_Fields field, Object value) {
30494
      switch (field) {
30495
      case WAREHOUSE_ID:
30496
        if (value == null) {
30497
          unsetWarehouseId();
30498
        } else {
30499
          setWarehouseId((Long)value);
30500
        }
30501
        break;
30502
 
30503
      }
30504
    }
30505
 
30506
    public Object getFieldValue(_Fields field) {
30507
      switch (field) {
30508
      case WAREHOUSE_ID:
30509
        return Long.valueOf(getWarehouseId());
30510
 
30511
      }
30512
      throw new IllegalStateException();
30513
    }
30514
 
30515
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30516
    public boolean isSet(_Fields field) {
30517
      if (field == null) {
30518
        throw new IllegalArgumentException();
30519
      }
30520
 
30521
      switch (field) {
30522
      case WAREHOUSE_ID:
30523
        return isSetWarehouseId();
30524
      }
30525
      throw new IllegalStateException();
30526
    }
30527
 
30528
    @Override
30529
    public boolean equals(Object that) {
30530
      if (that == null)
30531
        return false;
30532
      if (that instanceof getAllowedDestinationWarehousesForTransfer_args)
30533
        return this.equals((getAllowedDestinationWarehousesForTransfer_args)that);
30534
      return false;
30535
    }
30536
 
30537
    public boolean equals(getAllowedDestinationWarehousesForTransfer_args that) {
30538
      if (that == null)
30539
        return false;
30540
 
30541
      boolean this_present_warehouseId = true;
30542
      boolean that_present_warehouseId = true;
30543
      if (this_present_warehouseId || that_present_warehouseId) {
30544
        if (!(this_present_warehouseId && that_present_warehouseId))
30545
          return false;
30546
        if (this.warehouseId != that.warehouseId)
30547
          return false;
30548
      }
30549
 
30550
      return true;
30551
    }
30552
 
30553
    @Override
30554
    public int hashCode() {
30555
      return 0;
30556
    }
30557
 
30558
    public int compareTo(getAllowedDestinationWarehousesForTransfer_args other) {
30559
      if (!getClass().equals(other.getClass())) {
30560
        return getClass().getName().compareTo(other.getClass().getName());
30561
      }
30562
 
30563
      int lastComparison = 0;
30564
      getAllowedDestinationWarehousesForTransfer_args typedOther = (getAllowedDestinationWarehousesForTransfer_args)other;
30565
 
30566
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
30567
      if (lastComparison != 0) {
30568
        return lastComparison;
30569
      }
30570
      if (isSetWarehouseId()) {
30571
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
30572
        if (lastComparison != 0) {
30573
          return lastComparison;
30574
        }
30575
      }
30576
      return 0;
30577
    }
30578
 
30579
    public _Fields fieldForId(int fieldId) {
30580
      return _Fields.findByThriftId(fieldId);
30581
    }
30582
 
30583
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30584
      org.apache.thrift.protocol.TField field;
30585
      iprot.readStructBegin();
30586
      while (true)
30587
      {
30588
        field = iprot.readFieldBegin();
30589
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30590
          break;
30591
        }
30592
        switch (field.id) {
30593
          case 1: // WAREHOUSE_ID
30594
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30595
              this.warehouseId = iprot.readI64();
30596
              setWarehouseIdIsSet(true);
30597
            } else { 
30598
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30599
            }
30600
            break;
30601
          default:
30602
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30603
        }
30604
        iprot.readFieldEnd();
30605
      }
30606
      iprot.readStructEnd();
30607
      validate();
30608
    }
30609
 
30610
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30611
      validate();
30612
 
30613
      oprot.writeStructBegin(STRUCT_DESC);
30614
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
30615
      oprot.writeI64(this.warehouseId);
30616
      oprot.writeFieldEnd();
30617
      oprot.writeFieldStop();
30618
      oprot.writeStructEnd();
30619
    }
30620
 
30621
    @Override
30622
    public String toString() {
30623
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_args(");
30624
      boolean first = true;
30625
 
30626
      sb.append("warehouseId:");
30627
      sb.append(this.warehouseId);
30628
      first = false;
30629
      sb.append(")");
30630
      return sb.toString();
30631
    }
30632
 
30633
    public void validate() throws org.apache.thrift.TException {
30634
      // check for required fields
30635
    }
30636
 
30637
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30638
      try {
30639
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30640
      } catch (org.apache.thrift.TException te) {
30641
        throw new java.io.IOException(te);
30642
      }
30643
    }
30644
 
30645
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30646
      try {
30647
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30648
        __isset_bit_vector = new BitSet(1);
30649
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30650
      } catch (org.apache.thrift.TException te) {
30651
        throw new java.io.IOException(te);
30652
      }
30653
    }
30654
 
30655
  }
30656
 
30657
  public static class getAllowedDestinationWarehousesForTransfer_result implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_result, getAllowedDestinationWarehousesForTransfer_result._Fields>, java.io.Serializable, Cloneable   {
30658
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_result");
30659
 
30660
    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);
30661
 
30662
    private List<Long> success; // required
30663
 
30664
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30665
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30666
      SUCCESS((short)0, "success");
30667
 
30668
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30669
 
30670
      static {
30671
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30672
          byName.put(field.getFieldName(), field);
30673
        }
30674
      }
30675
 
30676
      /**
30677
       * Find the _Fields constant that matches fieldId, or null if its not found.
30678
       */
30679
      public static _Fields findByThriftId(int fieldId) {
30680
        switch(fieldId) {
30681
          case 0: // SUCCESS
30682
            return SUCCESS;
30683
          default:
30684
            return null;
30685
        }
30686
      }
30687
 
30688
      /**
30689
       * Find the _Fields constant that matches fieldId, throwing an exception
30690
       * if it is not found.
30691
       */
30692
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30693
        _Fields fields = findByThriftId(fieldId);
30694
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30695
        return fields;
30696
      }
30697
 
30698
      /**
30699
       * Find the _Fields constant that matches name, or null if its not found.
30700
       */
30701
      public static _Fields findByName(String name) {
30702
        return byName.get(name);
30703
      }
30704
 
30705
      private final short _thriftId;
30706
      private final String _fieldName;
30707
 
30708
      _Fields(short thriftId, String fieldName) {
30709
        _thriftId = thriftId;
30710
        _fieldName = fieldName;
30711
      }
30712
 
30713
      public short getThriftFieldId() {
30714
        return _thriftId;
30715
      }
30716
 
30717
      public String getFieldName() {
30718
        return _fieldName;
30719
      }
30720
    }
30721
 
30722
    // isset id assignments
30723
 
30724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30725
    static {
30726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30727
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30728
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30729
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30730
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30731
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_result.class, metaDataMap);
30732
    }
30733
 
30734
    public getAllowedDestinationWarehousesForTransfer_result() {
30735
    }
30736
 
30737
    public getAllowedDestinationWarehousesForTransfer_result(
30738
      List<Long> success)
30739
    {
30740
      this();
30741
      this.success = success;
30742
    }
30743
 
30744
    /**
30745
     * Performs a deep copy on <i>other</i>.
30746
     */
30747
    public getAllowedDestinationWarehousesForTransfer_result(getAllowedDestinationWarehousesForTransfer_result other) {
30748
      if (other.isSetSuccess()) {
30749
        List<Long> __this__success = new ArrayList<Long>();
30750
        for (Long other_element : other.success) {
30751
          __this__success.add(other_element);
30752
        }
30753
        this.success = __this__success;
30754
      }
30755
    }
30756
 
30757
    public getAllowedDestinationWarehousesForTransfer_result deepCopy() {
30758
      return new getAllowedDestinationWarehousesForTransfer_result(this);
30759
    }
30760
 
30761
    @Override
30762
    public void clear() {
30763
      this.success = null;
30764
    }
30765
 
30766
    public int getSuccessSize() {
30767
      return (this.success == null) ? 0 : this.success.size();
30768
    }
30769
 
30770
    public java.util.Iterator<Long> getSuccessIterator() {
30771
      return (this.success == null) ? null : this.success.iterator();
30772
    }
30773
 
30774
    public void addToSuccess(long elem) {
30775
      if (this.success == null) {
30776
        this.success = new ArrayList<Long>();
30777
      }
30778
      this.success.add(elem);
30779
    }
30780
 
30781
    public List<Long> getSuccess() {
30782
      return this.success;
30783
    }
30784
 
30785
    public void setSuccess(List<Long> success) {
30786
      this.success = success;
30787
    }
30788
 
30789
    public void unsetSuccess() {
30790
      this.success = null;
30791
    }
30792
 
30793
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30794
    public boolean isSetSuccess() {
30795
      return this.success != null;
30796
    }
30797
 
30798
    public void setSuccessIsSet(boolean value) {
30799
      if (!value) {
30800
        this.success = null;
30801
      }
30802
    }
30803
 
30804
    public void setFieldValue(_Fields field, Object value) {
30805
      switch (field) {
30806
      case SUCCESS:
30807
        if (value == null) {
30808
          unsetSuccess();
30809
        } else {
30810
          setSuccess((List<Long>)value);
30811
        }
30812
        break;
30813
 
30814
      }
30815
    }
30816
 
30817
    public Object getFieldValue(_Fields field) {
30818
      switch (field) {
30819
      case SUCCESS:
30820
        return getSuccess();
30821
 
30822
      }
30823
      throw new IllegalStateException();
30824
    }
30825
 
30826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30827
    public boolean isSet(_Fields field) {
30828
      if (field == null) {
30829
        throw new IllegalArgumentException();
30830
      }
30831
 
30832
      switch (field) {
30833
      case SUCCESS:
30834
        return isSetSuccess();
30835
      }
30836
      throw new IllegalStateException();
30837
    }
30838
 
30839
    @Override
30840
    public boolean equals(Object that) {
30841
      if (that == null)
30842
        return false;
30843
      if (that instanceof getAllowedDestinationWarehousesForTransfer_result)
30844
        return this.equals((getAllowedDestinationWarehousesForTransfer_result)that);
30845
      return false;
30846
    }
30847
 
30848
    public boolean equals(getAllowedDestinationWarehousesForTransfer_result that) {
30849
      if (that == null)
30850
        return false;
30851
 
30852
      boolean this_present_success = true && this.isSetSuccess();
30853
      boolean that_present_success = true && that.isSetSuccess();
30854
      if (this_present_success || that_present_success) {
30855
        if (!(this_present_success && that_present_success))
30856
          return false;
30857
        if (!this.success.equals(that.success))
30858
          return false;
30859
      }
30860
 
30861
      return true;
30862
    }
30863
 
30864
    @Override
30865
    public int hashCode() {
30866
      return 0;
30867
    }
30868
 
30869
    public int compareTo(getAllowedDestinationWarehousesForTransfer_result other) {
30870
      if (!getClass().equals(other.getClass())) {
30871
        return getClass().getName().compareTo(other.getClass().getName());
30872
      }
30873
 
30874
      int lastComparison = 0;
30875
      getAllowedDestinationWarehousesForTransfer_result typedOther = (getAllowedDestinationWarehousesForTransfer_result)other;
30876
 
30877
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30878
      if (lastComparison != 0) {
30879
        return lastComparison;
30880
      }
30881
      if (isSetSuccess()) {
30882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30883
        if (lastComparison != 0) {
30884
          return lastComparison;
30885
        }
30886
      }
30887
      return 0;
30888
    }
30889
 
30890
    public _Fields fieldForId(int fieldId) {
30891
      return _Fields.findByThriftId(fieldId);
30892
    }
30893
 
30894
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30895
      org.apache.thrift.protocol.TField field;
30896
      iprot.readStructBegin();
30897
      while (true)
30898
      {
30899
        field = iprot.readFieldBegin();
30900
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30901
          break;
30902
        }
30903
        switch (field.id) {
30904
          case 0: // SUCCESS
30905
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30906
              {
30907
                org.apache.thrift.protocol.TList _list80 = iprot.readListBegin();
30908
                this.success = new ArrayList<Long>(_list80.size);
30909
                for (int _i81 = 0; _i81 < _list80.size; ++_i81)
30910
                {
30911
                  long _elem82; // required
30912
                  _elem82 = iprot.readI64();
30913
                  this.success.add(_elem82);
30914
                }
30915
                iprot.readListEnd();
30916
              }
30917
            } else { 
30918
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30919
            }
30920
            break;
30921
          default:
30922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30923
        }
30924
        iprot.readFieldEnd();
30925
      }
30926
      iprot.readStructEnd();
30927
      validate();
30928
    }
30929
 
30930
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30931
      oprot.writeStructBegin(STRUCT_DESC);
30932
 
30933
      if (this.isSetSuccess()) {
30934
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30935
        {
30936
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
30937
          for (long _iter83 : this.success)
30938
          {
30939
            oprot.writeI64(_iter83);
30940
          }
30941
          oprot.writeListEnd();
30942
        }
30943
        oprot.writeFieldEnd();
30944
      }
30945
      oprot.writeFieldStop();
30946
      oprot.writeStructEnd();
30947
    }
30948
 
30949
    @Override
30950
    public String toString() {
30951
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_result(");
30952
      boolean first = true;
30953
 
30954
      sb.append("success:");
30955
      if (this.success == null) {
30956
        sb.append("null");
30957
      } else {
30958
        sb.append(this.success);
30959
      }
30960
      first = false;
30961
      sb.append(")");
30962
      return sb.toString();
30963
    }
30964
 
30965
    public void validate() throws org.apache.thrift.TException {
30966
      // check for required fields
30967
    }
30968
 
30969
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30970
      try {
30971
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30972
      } catch (org.apache.thrift.TException te) {
30973
        throw new java.io.IOException(te);
30974
      }
30975
    }
30976
 
30977
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30978
      try {
30979
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30980
      } catch (org.apache.thrift.TException te) {
30981
        throw new java.io.IOException(te);
30982
      }
30983
    }
30984
 
30985
  }
30986
 
30987
  public static class getItemsInTransferLot_args implements org.apache.thrift.TBase<getItemsInTransferLot_args, getItemsInTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
30988
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_args");
30989
 
30990
    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);
30991
 
30992
    private long transferLotId; // required
30993
 
30994
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30995
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30996
      TRANSFER_LOT_ID((short)1, "transferLotId");
30997
 
30998
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30999
 
31000
      static {
31001
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31002
          byName.put(field.getFieldName(), field);
31003
        }
31004
      }
31005
 
31006
      /**
31007
       * Find the _Fields constant that matches fieldId, or null if its not found.
31008
       */
31009
      public static _Fields findByThriftId(int fieldId) {
31010
        switch(fieldId) {
31011
          case 1: // TRANSFER_LOT_ID
31012
            return TRANSFER_LOT_ID;
31013
          default:
31014
            return null;
31015
        }
31016
      }
31017
 
31018
      /**
31019
       * Find the _Fields constant that matches fieldId, throwing an exception
31020
       * if it is not found.
31021
       */
31022
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31023
        _Fields fields = findByThriftId(fieldId);
31024
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31025
        return fields;
31026
      }
31027
 
31028
      /**
31029
       * Find the _Fields constant that matches name, or null if its not found.
31030
       */
31031
      public static _Fields findByName(String name) {
31032
        return byName.get(name);
31033
      }
31034
 
31035
      private final short _thriftId;
31036
      private final String _fieldName;
31037
 
31038
      _Fields(short thriftId, String fieldName) {
31039
        _thriftId = thriftId;
31040
        _fieldName = fieldName;
31041
      }
31042
 
31043
      public short getThriftFieldId() {
31044
        return _thriftId;
31045
      }
31046
 
31047
      public String getFieldName() {
31048
        return _fieldName;
31049
      }
31050
    }
31051
 
31052
    // isset id assignments
31053
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
31054
    private BitSet __isset_bit_vector = new BitSet(1);
31055
 
31056
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31057
    static {
31058
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31059
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31060
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31061
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31062
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInTransferLot_args.class, metaDataMap);
31063
    }
31064
 
31065
    public getItemsInTransferLot_args() {
31066
    }
31067
 
31068
    public getItemsInTransferLot_args(
31069
      long transferLotId)
31070
    {
31071
      this();
31072
      this.transferLotId = transferLotId;
31073
      setTransferLotIdIsSet(true);
31074
    }
31075
 
31076
    /**
31077
     * Performs a deep copy on <i>other</i>.
31078
     */
31079
    public getItemsInTransferLot_args(getItemsInTransferLot_args other) {
31080
      __isset_bit_vector.clear();
31081
      __isset_bit_vector.or(other.__isset_bit_vector);
31082
      this.transferLotId = other.transferLotId;
31083
    }
31084
 
31085
    public getItemsInTransferLot_args deepCopy() {
31086
      return new getItemsInTransferLot_args(this);
31087
    }
31088
 
31089
    @Override
31090
    public void clear() {
31091
      setTransferLotIdIsSet(false);
31092
      this.transferLotId = 0;
31093
    }
31094
 
31095
    public long getTransferLotId() {
31096
      return this.transferLotId;
31097
    }
31098
 
31099
    public void setTransferLotId(long transferLotId) {
31100
      this.transferLotId = transferLotId;
31101
      setTransferLotIdIsSet(true);
31102
    }
31103
 
31104
    public void unsetTransferLotId() {
31105
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
31106
    }
31107
 
31108
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
31109
    public boolean isSetTransferLotId() {
31110
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
31111
    }
31112
 
31113
    public void setTransferLotIdIsSet(boolean value) {
31114
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
31115
    }
31116
 
31117
    public void setFieldValue(_Fields field, Object value) {
31118
      switch (field) {
31119
      case TRANSFER_LOT_ID:
31120
        if (value == null) {
31121
          unsetTransferLotId();
31122
        } else {
31123
          setTransferLotId((Long)value);
31124
        }
31125
        break;
31126
 
31127
      }
31128
    }
31129
 
31130
    public Object getFieldValue(_Fields field) {
31131
      switch (field) {
31132
      case TRANSFER_LOT_ID:
31133
        return Long.valueOf(getTransferLotId());
31134
 
31135
      }
31136
      throw new IllegalStateException();
31137
    }
31138
 
31139
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31140
    public boolean isSet(_Fields field) {
31141
      if (field == null) {
31142
        throw new IllegalArgumentException();
31143
      }
31144
 
31145
      switch (field) {
31146
      case TRANSFER_LOT_ID:
31147
        return isSetTransferLotId();
31148
      }
31149
      throw new IllegalStateException();
31150
    }
31151
 
31152
    @Override
31153
    public boolean equals(Object that) {
31154
      if (that == null)
31155
        return false;
31156
      if (that instanceof getItemsInTransferLot_args)
31157
        return this.equals((getItemsInTransferLot_args)that);
31158
      return false;
31159
    }
31160
 
31161
    public boolean equals(getItemsInTransferLot_args that) {
31162
      if (that == null)
31163
        return false;
31164
 
31165
      boolean this_present_transferLotId = true;
31166
      boolean that_present_transferLotId = true;
31167
      if (this_present_transferLotId || that_present_transferLotId) {
31168
        if (!(this_present_transferLotId && that_present_transferLotId))
31169
          return false;
31170
        if (this.transferLotId != that.transferLotId)
31171
          return false;
31172
      }
31173
 
31174
      return true;
31175
    }
31176
 
31177
    @Override
31178
    public int hashCode() {
31179
      return 0;
31180
    }
31181
 
31182
    public int compareTo(getItemsInTransferLot_args other) {
31183
      if (!getClass().equals(other.getClass())) {
31184
        return getClass().getName().compareTo(other.getClass().getName());
31185
      }
31186
 
31187
      int lastComparison = 0;
31188
      getItemsInTransferLot_args typedOther = (getItemsInTransferLot_args)other;
31189
 
31190
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
31191
      if (lastComparison != 0) {
31192
        return lastComparison;
31193
      }
31194
      if (isSetTransferLotId()) {
31195
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
31196
        if (lastComparison != 0) {
31197
          return lastComparison;
31198
        }
31199
      }
31200
      return 0;
31201
    }
31202
 
31203
    public _Fields fieldForId(int fieldId) {
31204
      return _Fields.findByThriftId(fieldId);
31205
    }
31206
 
31207
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31208
      org.apache.thrift.protocol.TField field;
31209
      iprot.readStructBegin();
31210
      while (true)
31211
      {
31212
        field = iprot.readFieldBegin();
31213
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31214
          break;
31215
        }
31216
        switch (field.id) {
31217
          case 1: // TRANSFER_LOT_ID
31218
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31219
              this.transferLotId = iprot.readI64();
31220
              setTransferLotIdIsSet(true);
31221
            } else { 
31222
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31223
            }
31224
            break;
31225
          default:
31226
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31227
        }
31228
        iprot.readFieldEnd();
31229
      }
31230
      iprot.readStructEnd();
31231
      validate();
31232
    }
31233
 
31234
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31235
      validate();
31236
 
31237
      oprot.writeStructBegin(STRUCT_DESC);
31238
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
31239
      oprot.writeI64(this.transferLotId);
31240
      oprot.writeFieldEnd();
31241
      oprot.writeFieldStop();
31242
      oprot.writeStructEnd();
31243
    }
31244
 
31245
    @Override
31246
    public String toString() {
31247
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_args(");
31248
      boolean first = true;
31249
 
31250
      sb.append("transferLotId:");
31251
      sb.append(this.transferLotId);
31252
      first = false;
31253
      sb.append(")");
31254
      return sb.toString();
31255
    }
31256
 
31257
    public void validate() throws org.apache.thrift.TException {
31258
      // check for required fields
31259
    }
31260
 
31261
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31262
      try {
31263
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31264
      } catch (org.apache.thrift.TException te) {
31265
        throw new java.io.IOException(te);
31266
      }
31267
    }
31268
 
31269
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31270
      try {
31271
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31272
        __isset_bit_vector = new BitSet(1);
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 getItemsInTransferLot_result implements org.apache.thrift.TBase<getItemsInTransferLot_result, getItemsInTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
31282
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_result");
31283
 
31284
    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);
31285
 
31286
    private Map<Long,Long> success; // 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
      SUCCESS((short)0, "success");
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 0: // SUCCESS
31306
            return SUCCESS;
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
 
31348
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31349
    static {
31350
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31351
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31352
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
31353
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
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(getItemsInTransferLot_result.class, metaDataMap);
31357
    }
31358
 
31359
    public getItemsInTransferLot_result() {
31360
    }
31361
 
31362
    public getItemsInTransferLot_result(
31363
      Map<Long,Long> success)
31364
    {
31365
      this();
31366
      this.success = success;
31367
    }
31368
 
31369
    /**
31370
     * Performs a deep copy on <i>other</i>.
31371
     */
31372
    public getItemsInTransferLot_result(getItemsInTransferLot_result other) {
31373
      if (other.isSetSuccess()) {
31374
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
31375
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
31376
 
31377
          Long other_element_key = other_element.getKey();
31378
          Long other_element_value = other_element.getValue();
31379
 
31380
          Long __this__success_copy_key = other_element_key;
31381
 
31382
          Long __this__success_copy_value = other_element_value;
31383
 
31384
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
31385
        }
31386
        this.success = __this__success;
31387
      }
31388
    }
31389
 
31390
    public getItemsInTransferLot_result deepCopy() {
31391
      return new getItemsInTransferLot_result(this);
31392
    }
31393
 
31394
    @Override
31395
    public void clear() {
31396
      this.success = null;
31397
    }
31398
 
31399
    public int getSuccessSize() {
31400
      return (this.success == null) ? 0 : this.success.size();
31401
    }
31402
 
31403
    public void putToSuccess(long key, long val) {
31404
      if (this.success == null) {
31405
        this.success = new HashMap<Long,Long>();
31406
      }
31407
      this.success.put(key, val);
31408
    }
31409
 
31410
    public Map<Long,Long> getSuccess() {
31411
      return this.success;
31412
    }
31413
 
31414
    public void setSuccess(Map<Long,Long> success) {
31415
      this.success = success;
31416
    }
31417
 
31418
    public void unsetSuccess() {
31419
      this.success = null;
31420
    }
31421
 
31422
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31423
    public boolean isSetSuccess() {
31424
      return this.success != null;
31425
    }
31426
 
31427
    public void setSuccessIsSet(boolean value) {
31428
      if (!value) {
31429
        this.success = null;
31430
      }
31431
    }
31432
 
31433
    public void setFieldValue(_Fields field, Object value) {
31434
      switch (field) {
31435
      case SUCCESS:
31436
        if (value == null) {
31437
          unsetSuccess();
31438
        } else {
31439
          setSuccess((Map<Long,Long>)value);
31440
        }
31441
        break;
31442
 
31443
      }
31444
    }
31445
 
31446
    public Object getFieldValue(_Fields field) {
31447
      switch (field) {
31448
      case SUCCESS:
31449
        return getSuccess();
31450
 
31451
      }
31452
      throw new IllegalStateException();
31453
    }
31454
 
31455
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31456
    public boolean isSet(_Fields field) {
31457
      if (field == null) {
31458
        throw new IllegalArgumentException();
31459
      }
31460
 
31461
      switch (field) {
31462
      case SUCCESS:
31463
        return isSetSuccess();
31464
      }
31465
      throw new IllegalStateException();
31466
    }
31467
 
31468
    @Override
31469
    public boolean equals(Object that) {
31470
      if (that == null)
31471
        return false;
31472
      if (that instanceof getItemsInTransferLot_result)
31473
        return this.equals((getItemsInTransferLot_result)that);
31474
      return false;
31475
    }
31476
 
31477
    public boolean equals(getItemsInTransferLot_result that) {
31478
      if (that == null)
31479
        return false;
31480
 
31481
      boolean this_present_success = true && this.isSetSuccess();
31482
      boolean that_present_success = true && that.isSetSuccess();
31483
      if (this_present_success || that_present_success) {
31484
        if (!(this_present_success && that_present_success))
31485
          return false;
31486
        if (!this.success.equals(that.success))
31487
          return false;
31488
      }
31489
 
31490
      return true;
31491
    }
31492
 
31493
    @Override
31494
    public int hashCode() {
31495
      return 0;
31496
    }
31497
 
31498
    public int compareTo(getItemsInTransferLot_result other) {
31499
      if (!getClass().equals(other.getClass())) {
31500
        return getClass().getName().compareTo(other.getClass().getName());
31501
      }
31502
 
31503
      int lastComparison = 0;
31504
      getItemsInTransferLot_result typedOther = (getItemsInTransferLot_result)other;
31505
 
31506
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31507
      if (lastComparison != 0) {
31508
        return lastComparison;
31509
      }
31510
      if (isSetSuccess()) {
31511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31512
        if (lastComparison != 0) {
31513
          return lastComparison;
31514
        }
31515
      }
31516
      return 0;
31517
    }
31518
 
31519
    public _Fields fieldForId(int fieldId) {
31520
      return _Fields.findByThriftId(fieldId);
31521
    }
31522
 
31523
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31524
      org.apache.thrift.protocol.TField field;
31525
      iprot.readStructBegin();
31526
      while (true)
31527
      {
31528
        field = iprot.readFieldBegin();
31529
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31530
          break;
31531
        }
31532
        switch (field.id) {
31533
          case 0: // SUCCESS
31534
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31535
              {
31536
                org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin();
31537
                this.success = new HashMap<Long,Long>(2*_map84.size);
31538
                for (int _i85 = 0; _i85 < _map84.size; ++_i85)
31539
                {
31540
                  long _key86; // required
31541
                  long _val87; // required
31542
                  _key86 = iprot.readI64();
31543
                  _val87 = iprot.readI64();
31544
                  this.success.put(_key86, _val87);
31545
                }
31546
                iprot.readMapEnd();
31547
              }
31548
            } else { 
31549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31550
            }
31551
            break;
31552
          default:
31553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31554
        }
31555
        iprot.readFieldEnd();
31556
      }
31557
      iprot.readStructEnd();
31558
      validate();
31559
    }
31560
 
31561
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31562
      oprot.writeStructBegin(STRUCT_DESC);
31563
 
31564
      if (this.isSetSuccess()) {
31565
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31566
        {
31567
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
31568
          for (Map.Entry<Long, Long> _iter88 : this.success.entrySet())
31569
          {
31570
            oprot.writeI64(_iter88.getKey());
31571
            oprot.writeI64(_iter88.getValue());
31572
          }
31573
          oprot.writeMapEnd();
31574
        }
31575
        oprot.writeFieldEnd();
31576
      }
31577
      oprot.writeFieldStop();
31578
      oprot.writeStructEnd();
31579
    }
31580
 
31581
    @Override
31582
    public String toString() {
31583
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_result(");
31584
      boolean first = true;
31585
 
31586
      sb.append("success:");
31587
      if (this.success == null) {
31588
        sb.append("null");
31589
      } else {
31590
        sb.append(this.success);
31591
      }
31592
      first = false;
31593
      sb.append(")");
31594
      return sb.toString();
31595
    }
31596
 
31597
    public void validate() throws org.apache.thrift.TException {
31598
      // check for required fields
31599
    }
31600
 
31601
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31602
      try {
31603
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31604
      } catch (org.apache.thrift.TException te) {
31605
        throw new java.io.IOException(te);
31606
      }
31607
    }
31608
 
31609
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31610
      try {
31611
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31612
      } catch (org.apache.thrift.TException te) {
31613
        throw new java.io.IOException(te);
31614
      }
31615
    }
31616
 
31617
  }
31618
 
31619
  public static class markItemsAsReceivedForTransferLot_args implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_args, markItemsAsReceivedForTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
31620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_args");
31621
 
31622
    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);
31623
 
31624
    private long id; // required
31625
 
31626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31628
      ID((short)1, "id");
31629
 
31630
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31631
 
31632
      static {
31633
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31634
          byName.put(field.getFieldName(), field);
31635
        }
31636
      }
31637
 
31638
      /**
31639
       * Find the _Fields constant that matches fieldId, or null if its not found.
31640
       */
31641
      public static _Fields findByThriftId(int fieldId) {
31642
        switch(fieldId) {
31643
          case 1: // ID
31644
            return ID;
31645
          default:
31646
            return null;
31647
        }
31648
      }
31649
 
31650
      /**
31651
       * Find the _Fields constant that matches fieldId, throwing an exception
31652
       * if it is not found.
31653
       */
31654
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31655
        _Fields fields = findByThriftId(fieldId);
31656
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31657
        return fields;
31658
      }
31659
 
31660
      /**
31661
       * Find the _Fields constant that matches name, or null if its not found.
31662
       */
31663
      public static _Fields findByName(String name) {
31664
        return byName.get(name);
31665
      }
31666
 
31667
      private final short _thriftId;
31668
      private final String _fieldName;
31669
 
31670
      _Fields(short thriftId, String fieldName) {
31671
        _thriftId = thriftId;
31672
        _fieldName = fieldName;
31673
      }
31674
 
31675
      public short getThriftFieldId() {
31676
        return _thriftId;
31677
      }
31678
 
31679
      public String getFieldName() {
31680
        return _fieldName;
31681
      }
31682
    }
31683
 
31684
    // isset id assignments
31685
    private static final int __ID_ISSET_ID = 0;
31686
    private BitSet __isset_bit_vector = new BitSet(1);
31687
 
31688
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31689
    static {
31690
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31691
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_args.class, metaDataMap);
31695
    }
31696
 
31697
    public markItemsAsReceivedForTransferLot_args() {
31698
    }
31699
 
31700
    public markItemsAsReceivedForTransferLot_args(
31701
      long id)
31702
    {
31703
      this();
31704
      this.id = id;
31705
      setIdIsSet(true);
31706
    }
31707
 
31708
    /**
31709
     * Performs a deep copy on <i>other</i>.
31710
     */
31711
    public markItemsAsReceivedForTransferLot_args(markItemsAsReceivedForTransferLot_args other) {
31712
      __isset_bit_vector.clear();
31713
      __isset_bit_vector.or(other.__isset_bit_vector);
31714
      this.id = other.id;
31715
    }
31716
 
31717
    public markItemsAsReceivedForTransferLot_args deepCopy() {
31718
      return new markItemsAsReceivedForTransferLot_args(this);
31719
    }
31720
 
31721
    @Override
31722
    public void clear() {
31723
      setIdIsSet(false);
31724
      this.id = 0;
31725
    }
31726
 
31727
    public long getId() {
31728
      return this.id;
31729
    }
31730
 
31731
    public void setId(long id) {
31732
      this.id = id;
31733
      setIdIsSet(true);
31734
    }
31735
 
31736
    public void unsetId() {
31737
      __isset_bit_vector.clear(__ID_ISSET_ID);
31738
    }
31739
 
31740
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
31741
    public boolean isSetId() {
31742
      return __isset_bit_vector.get(__ID_ISSET_ID);
31743
    }
31744
 
31745
    public void setIdIsSet(boolean value) {
31746
      __isset_bit_vector.set(__ID_ISSET_ID, value);
31747
    }
31748
 
31749
    public void setFieldValue(_Fields field, Object value) {
31750
      switch (field) {
31751
      case ID:
31752
        if (value == null) {
31753
          unsetId();
31754
        } else {
31755
          setId((Long)value);
31756
        }
31757
        break;
31758
 
31759
      }
31760
    }
31761
 
31762
    public Object getFieldValue(_Fields field) {
31763
      switch (field) {
31764
      case ID:
31765
        return Long.valueOf(getId());
31766
 
31767
      }
31768
      throw new IllegalStateException();
31769
    }
31770
 
31771
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31772
    public boolean isSet(_Fields field) {
31773
      if (field == null) {
31774
        throw new IllegalArgumentException();
31775
      }
31776
 
31777
      switch (field) {
31778
      case ID:
31779
        return isSetId();
31780
      }
31781
      throw new IllegalStateException();
31782
    }
31783
 
31784
    @Override
31785
    public boolean equals(Object that) {
31786
      if (that == null)
31787
        return false;
31788
      if (that instanceof markItemsAsReceivedForTransferLot_args)
31789
        return this.equals((markItemsAsReceivedForTransferLot_args)that);
31790
      return false;
31791
    }
31792
 
31793
    public boolean equals(markItemsAsReceivedForTransferLot_args that) {
31794
      if (that == null)
31795
        return false;
31796
 
31797
      boolean this_present_id = true;
31798
      boolean that_present_id = true;
31799
      if (this_present_id || that_present_id) {
31800
        if (!(this_present_id && that_present_id))
31801
          return false;
31802
        if (this.id != that.id)
31803
          return false;
31804
      }
31805
 
31806
      return true;
31807
    }
31808
 
31809
    @Override
31810
    public int hashCode() {
31811
      return 0;
31812
    }
31813
 
31814
    public int compareTo(markItemsAsReceivedForTransferLot_args other) {
31815
      if (!getClass().equals(other.getClass())) {
31816
        return getClass().getName().compareTo(other.getClass().getName());
31817
      }
31818
 
31819
      int lastComparison = 0;
31820
      markItemsAsReceivedForTransferLot_args typedOther = (markItemsAsReceivedForTransferLot_args)other;
31821
 
31822
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
31823
      if (lastComparison != 0) {
31824
        return lastComparison;
31825
      }
31826
      if (isSetId()) {
31827
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
31828
        if (lastComparison != 0) {
31829
          return lastComparison;
31830
        }
31831
      }
31832
      return 0;
31833
    }
31834
 
31835
    public _Fields fieldForId(int fieldId) {
31836
      return _Fields.findByThriftId(fieldId);
31837
    }
31838
 
31839
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31840
      org.apache.thrift.protocol.TField field;
31841
      iprot.readStructBegin();
31842
      while (true)
31843
      {
31844
        field = iprot.readFieldBegin();
31845
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31846
          break;
31847
        }
31848
        switch (field.id) {
31849
          case 1: // ID
31850
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31851
              this.id = iprot.readI64();
31852
              setIdIsSet(true);
31853
            } else { 
31854
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31855
            }
31856
            break;
31857
          default:
31858
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31859
        }
31860
        iprot.readFieldEnd();
31861
      }
31862
      iprot.readStructEnd();
31863
      validate();
31864
    }
31865
 
31866
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31867
      validate();
31868
 
31869
      oprot.writeStructBegin(STRUCT_DESC);
31870
      oprot.writeFieldBegin(ID_FIELD_DESC);
31871
      oprot.writeI64(this.id);
31872
      oprot.writeFieldEnd();
31873
      oprot.writeFieldStop();
31874
      oprot.writeStructEnd();
31875
    }
31876
 
31877
    @Override
31878
    public String toString() {
31879
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_args(");
31880
      boolean first = true;
31881
 
31882
      sb.append("id:");
31883
      sb.append(this.id);
31884
      first = false;
31885
      sb.append(")");
31886
      return sb.toString();
31887
    }
31888
 
31889
    public void validate() throws org.apache.thrift.TException {
31890
      // check for required fields
31891
    }
31892
 
31893
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31894
      try {
31895
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31896
      } catch (org.apache.thrift.TException te) {
31897
        throw new java.io.IOException(te);
31898
      }
31899
    }
31900
 
31901
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31902
      try {
31903
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31904
        __isset_bit_vector = new BitSet(1);
31905
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31906
      } catch (org.apache.thrift.TException te) {
31907
        throw new java.io.IOException(te);
31908
      }
31909
    }
31910
 
31911
  }
31912
 
31913
  public static class markItemsAsReceivedForTransferLot_result implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_result, markItemsAsReceivedForTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
31914
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_result");
31915
 
31916
    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);
31917
 
31918
    private WarehouseServiceException wex; // required
31919
 
31920
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31921
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31922
      WEX((short)1, "wex");
31923
 
31924
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31925
 
31926
      static {
31927
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31928
          byName.put(field.getFieldName(), field);
31929
        }
31930
      }
31931
 
31932
      /**
31933
       * Find the _Fields constant that matches fieldId, or null if its not found.
31934
       */
31935
      public static _Fields findByThriftId(int fieldId) {
31936
        switch(fieldId) {
31937
          case 1: // WEX
31938
            return WEX;
31939
          default:
31940
            return null;
31941
        }
31942
      }
31943
 
31944
      /**
31945
       * Find the _Fields constant that matches fieldId, throwing an exception
31946
       * if it is not found.
31947
       */
31948
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31949
        _Fields fields = findByThriftId(fieldId);
31950
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31951
        return fields;
31952
      }
31953
 
31954
      /**
31955
       * Find the _Fields constant that matches name, or null if its not found.
31956
       */
31957
      public static _Fields findByName(String name) {
31958
        return byName.get(name);
31959
      }
31960
 
31961
      private final short _thriftId;
31962
      private final String _fieldName;
31963
 
31964
      _Fields(short thriftId, String fieldName) {
31965
        _thriftId = thriftId;
31966
        _fieldName = fieldName;
31967
      }
31968
 
31969
      public short getThriftFieldId() {
31970
        return _thriftId;
31971
      }
31972
 
31973
      public String getFieldName() {
31974
        return _fieldName;
31975
      }
31976
    }
31977
 
31978
    // isset id assignments
31979
 
31980
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31981
    static {
31982
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31983
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31984
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31985
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31986
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_result.class, metaDataMap);
31987
    }
31988
 
31989
    public markItemsAsReceivedForTransferLot_result() {
31990
    }
31991
 
31992
    public markItemsAsReceivedForTransferLot_result(
31993
      WarehouseServiceException wex)
31994
    {
31995
      this();
31996
      this.wex = wex;
31997
    }
31998
 
31999
    /**
32000
     * Performs a deep copy on <i>other</i>.
32001
     */
32002
    public markItemsAsReceivedForTransferLot_result(markItemsAsReceivedForTransferLot_result other) {
32003
      if (other.isSetWex()) {
32004
        this.wex = new WarehouseServiceException(other.wex);
32005
      }
32006
    }
32007
 
32008
    public markItemsAsReceivedForTransferLot_result deepCopy() {
32009
      return new markItemsAsReceivedForTransferLot_result(this);
32010
    }
32011
 
32012
    @Override
32013
    public void clear() {
32014
      this.wex = null;
32015
    }
32016
 
32017
    public WarehouseServiceException getWex() {
32018
      return this.wex;
32019
    }
32020
 
32021
    public void setWex(WarehouseServiceException wex) {
32022
      this.wex = wex;
32023
    }
32024
 
32025
    public void unsetWex() {
32026
      this.wex = null;
32027
    }
32028
 
32029
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
32030
    public boolean isSetWex() {
32031
      return this.wex != null;
32032
    }
32033
 
32034
    public void setWexIsSet(boolean value) {
32035
      if (!value) {
32036
        this.wex = null;
32037
      }
32038
    }
32039
 
32040
    public void setFieldValue(_Fields field, Object value) {
32041
      switch (field) {
32042
      case WEX:
32043
        if (value == null) {
32044
          unsetWex();
32045
        } else {
32046
          setWex((WarehouseServiceException)value);
32047
        }
32048
        break;
32049
 
32050
      }
32051
    }
32052
 
32053
    public Object getFieldValue(_Fields field) {
32054
      switch (field) {
32055
      case WEX:
32056
        return getWex();
32057
 
32058
      }
32059
      throw new IllegalStateException();
32060
    }
32061
 
32062
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32063
    public boolean isSet(_Fields field) {
32064
      if (field == null) {
32065
        throw new IllegalArgumentException();
32066
      }
32067
 
32068
      switch (field) {
32069
      case WEX:
32070
        return isSetWex();
32071
      }
32072
      throw new IllegalStateException();
32073
    }
32074
 
32075
    @Override
32076
    public boolean equals(Object that) {
32077
      if (that == null)
32078
        return false;
32079
      if (that instanceof markItemsAsReceivedForTransferLot_result)
32080
        return this.equals((markItemsAsReceivedForTransferLot_result)that);
32081
      return false;
32082
    }
32083
 
32084
    public boolean equals(markItemsAsReceivedForTransferLot_result that) {
32085
      if (that == null)
32086
        return false;
32087
 
32088
      boolean this_present_wex = true && this.isSetWex();
32089
      boolean that_present_wex = true && that.isSetWex();
32090
      if (this_present_wex || that_present_wex) {
32091
        if (!(this_present_wex && that_present_wex))
32092
          return false;
32093
        if (!this.wex.equals(that.wex))
32094
          return false;
32095
      }
32096
 
32097
      return true;
32098
    }
32099
 
32100
    @Override
32101
    public int hashCode() {
32102
      return 0;
32103
    }
32104
 
32105
    public int compareTo(markItemsAsReceivedForTransferLot_result other) {
32106
      if (!getClass().equals(other.getClass())) {
32107
        return getClass().getName().compareTo(other.getClass().getName());
32108
      }
32109
 
32110
      int lastComparison = 0;
32111
      markItemsAsReceivedForTransferLot_result typedOther = (markItemsAsReceivedForTransferLot_result)other;
32112
 
32113
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
32114
      if (lastComparison != 0) {
32115
        return lastComparison;
32116
      }
32117
      if (isSetWex()) {
32118
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
32119
        if (lastComparison != 0) {
32120
          return lastComparison;
32121
        }
32122
      }
32123
      return 0;
32124
    }
32125
 
32126
    public _Fields fieldForId(int fieldId) {
32127
      return _Fields.findByThriftId(fieldId);
32128
    }
32129
 
32130
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32131
      org.apache.thrift.protocol.TField field;
32132
      iprot.readStructBegin();
32133
      while (true)
32134
      {
32135
        field = iprot.readFieldBegin();
32136
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32137
          break;
32138
        }
32139
        switch (field.id) {
32140
          case 1: // WEX
32141
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32142
              this.wex = new WarehouseServiceException();
32143
              this.wex.read(iprot);
32144
            } else { 
32145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32146
            }
32147
            break;
32148
          default:
32149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32150
        }
32151
        iprot.readFieldEnd();
32152
      }
32153
      iprot.readStructEnd();
32154
      validate();
32155
    }
32156
 
32157
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32158
      oprot.writeStructBegin(STRUCT_DESC);
32159
 
32160
      if (this.isSetWex()) {
32161
        oprot.writeFieldBegin(WEX_FIELD_DESC);
32162
        this.wex.write(oprot);
32163
        oprot.writeFieldEnd();
32164
      }
32165
      oprot.writeFieldStop();
32166
      oprot.writeStructEnd();
32167
    }
32168
 
32169
    @Override
32170
    public String toString() {
32171
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_result(");
32172
      boolean first = true;
32173
 
32174
      sb.append("wex:");
32175
      if (this.wex == null) {
32176
        sb.append("null");
32177
      } else {
32178
        sb.append(this.wex);
32179
      }
32180
      first = false;
32181
      sb.append(")");
32182
      return sb.toString();
32183
    }
32184
 
32185
    public void validate() throws org.apache.thrift.TException {
32186
      // check for required fields
32187
    }
32188
 
32189
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32190
      try {
32191
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32192
      } catch (org.apache.thrift.TException te) {
32193
        throw new java.io.IOException(te);
32194
      }
32195
    }
32196
 
32197
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32198
      try {
32199
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32200
      } catch (org.apache.thrift.TException te) {
32201
        throw new java.io.IOException(te);
32202
      }
32203
    }
32204
 
32205
  }
32206
 
32207
  public static class updateTransferLotAfterItemReceive_args implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_args, updateTransferLotAfterItemReceive_args._Fields>, java.io.Serializable, Cloneable   {
32208
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_args");
32209
 
32210
    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);
32211
 
32212
    private long id; // required
32213
 
32214
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32215
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32216
      ID((short)1, "id");
32217
 
32218
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32219
 
32220
      static {
32221
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32222
          byName.put(field.getFieldName(), field);
32223
        }
32224
      }
32225
 
32226
      /**
32227
       * Find the _Fields constant that matches fieldId, or null if its not found.
32228
       */
32229
      public static _Fields findByThriftId(int fieldId) {
32230
        switch(fieldId) {
32231
          case 1: // ID
32232
            return ID;
32233
          default:
32234
            return null;
32235
        }
32236
      }
32237
 
32238
      /**
32239
       * Find the _Fields constant that matches fieldId, throwing an exception
32240
       * if it is not found.
32241
       */
32242
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32243
        _Fields fields = findByThriftId(fieldId);
32244
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32245
        return fields;
32246
      }
32247
 
32248
      /**
32249
       * Find the _Fields constant that matches name, or null if its not found.
32250
       */
32251
      public static _Fields findByName(String name) {
32252
        return byName.get(name);
32253
      }
32254
 
32255
      private final short _thriftId;
32256
      private final String _fieldName;
32257
 
32258
      _Fields(short thriftId, String fieldName) {
32259
        _thriftId = thriftId;
32260
        _fieldName = fieldName;
32261
      }
32262
 
32263
      public short getThriftFieldId() {
32264
        return _thriftId;
32265
      }
32266
 
32267
      public String getFieldName() {
32268
        return _fieldName;
32269
      }
32270
    }
32271
 
32272
    // isset id assignments
32273
    private static final int __ID_ISSET_ID = 0;
32274
    private BitSet __isset_bit_vector = new BitSet(1);
32275
 
32276
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32277
    static {
32278
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32279
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32280
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32281
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32282
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_args.class, metaDataMap);
32283
    }
32284
 
32285
    public updateTransferLotAfterItemReceive_args() {
32286
    }
32287
 
32288
    public updateTransferLotAfterItemReceive_args(
32289
      long id)
32290
    {
32291
      this();
32292
      this.id = id;
32293
      setIdIsSet(true);
32294
    }
32295
 
32296
    /**
32297
     * Performs a deep copy on <i>other</i>.
32298
     */
32299
    public updateTransferLotAfterItemReceive_args(updateTransferLotAfterItemReceive_args other) {
32300
      __isset_bit_vector.clear();
32301
      __isset_bit_vector.or(other.__isset_bit_vector);
32302
      this.id = other.id;
32303
    }
32304
 
32305
    public updateTransferLotAfterItemReceive_args deepCopy() {
32306
      return new updateTransferLotAfterItemReceive_args(this);
32307
    }
32308
 
32309
    @Override
32310
    public void clear() {
32311
      setIdIsSet(false);
32312
      this.id = 0;
32313
    }
32314
 
32315
    public long getId() {
32316
      return this.id;
32317
    }
32318
 
32319
    public void setId(long id) {
32320
      this.id = id;
32321
      setIdIsSet(true);
32322
    }
32323
 
32324
    public void unsetId() {
32325
      __isset_bit_vector.clear(__ID_ISSET_ID);
32326
    }
32327
 
32328
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
32329
    public boolean isSetId() {
32330
      return __isset_bit_vector.get(__ID_ISSET_ID);
32331
    }
32332
 
32333
    public void setIdIsSet(boolean value) {
32334
      __isset_bit_vector.set(__ID_ISSET_ID, value);
32335
    }
32336
 
32337
    public void setFieldValue(_Fields field, Object value) {
32338
      switch (field) {
32339
      case ID:
32340
        if (value == null) {
32341
          unsetId();
32342
        } else {
32343
          setId((Long)value);
32344
        }
32345
        break;
32346
 
32347
      }
32348
    }
32349
 
32350
    public Object getFieldValue(_Fields field) {
32351
      switch (field) {
32352
      case ID:
32353
        return Long.valueOf(getId());
32354
 
32355
      }
32356
      throw new IllegalStateException();
32357
    }
32358
 
32359
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32360
    public boolean isSet(_Fields field) {
32361
      if (field == null) {
32362
        throw new IllegalArgumentException();
32363
      }
32364
 
32365
      switch (field) {
32366
      case ID:
32367
        return isSetId();
32368
      }
32369
      throw new IllegalStateException();
32370
    }
32371
 
32372
    @Override
32373
    public boolean equals(Object that) {
32374
      if (that == null)
32375
        return false;
32376
      if (that instanceof updateTransferLotAfterItemReceive_args)
32377
        return this.equals((updateTransferLotAfterItemReceive_args)that);
32378
      return false;
32379
    }
32380
 
32381
    public boolean equals(updateTransferLotAfterItemReceive_args that) {
32382
      if (that == null)
32383
        return false;
32384
 
32385
      boolean this_present_id = true;
32386
      boolean that_present_id = true;
32387
      if (this_present_id || that_present_id) {
32388
        if (!(this_present_id && that_present_id))
32389
          return false;
32390
        if (this.id != that.id)
32391
          return false;
32392
      }
32393
 
32394
      return true;
32395
    }
32396
 
32397
    @Override
32398
    public int hashCode() {
32399
      return 0;
32400
    }
32401
 
32402
    public int compareTo(updateTransferLotAfterItemReceive_args other) {
32403
      if (!getClass().equals(other.getClass())) {
32404
        return getClass().getName().compareTo(other.getClass().getName());
32405
      }
32406
 
32407
      int lastComparison = 0;
32408
      updateTransferLotAfterItemReceive_args typedOther = (updateTransferLotAfterItemReceive_args)other;
32409
 
32410
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
32411
      if (lastComparison != 0) {
32412
        return lastComparison;
32413
      }
32414
      if (isSetId()) {
32415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
32416
        if (lastComparison != 0) {
32417
          return lastComparison;
32418
        }
32419
      }
32420
      return 0;
32421
    }
32422
 
32423
    public _Fields fieldForId(int fieldId) {
32424
      return _Fields.findByThriftId(fieldId);
32425
    }
32426
 
32427
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32428
      org.apache.thrift.protocol.TField field;
32429
      iprot.readStructBegin();
32430
      while (true)
32431
      {
32432
        field = iprot.readFieldBegin();
32433
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32434
          break;
32435
        }
32436
        switch (field.id) {
32437
          case 1: // ID
32438
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32439
              this.id = iprot.readI64();
32440
              setIdIsSet(true);
32441
            } else { 
32442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32443
            }
32444
            break;
32445
          default:
32446
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32447
        }
32448
        iprot.readFieldEnd();
32449
      }
32450
      iprot.readStructEnd();
32451
      validate();
32452
    }
32453
 
32454
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32455
      validate();
32456
 
32457
      oprot.writeStructBegin(STRUCT_DESC);
32458
      oprot.writeFieldBegin(ID_FIELD_DESC);
32459
      oprot.writeI64(this.id);
32460
      oprot.writeFieldEnd();
32461
      oprot.writeFieldStop();
32462
      oprot.writeStructEnd();
32463
    }
32464
 
32465
    @Override
32466
    public String toString() {
32467
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_args(");
32468
      boolean first = true;
32469
 
32470
      sb.append("id:");
32471
      sb.append(this.id);
32472
      first = false;
32473
      sb.append(")");
32474
      return sb.toString();
32475
    }
32476
 
32477
    public void validate() throws org.apache.thrift.TException {
32478
      // check for required fields
32479
    }
32480
 
32481
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32482
      try {
32483
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32484
      } catch (org.apache.thrift.TException te) {
32485
        throw new java.io.IOException(te);
32486
      }
32487
    }
32488
 
32489
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32490
      try {
32491
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32492
        __isset_bit_vector = new BitSet(1);
32493
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32494
      } catch (org.apache.thrift.TException te) {
32495
        throw new java.io.IOException(te);
32496
      }
32497
    }
32498
 
32499
  }
32500
 
32501
  public static class updateTransferLotAfterItemReceive_result implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_result, updateTransferLotAfterItemReceive_result._Fields>, java.io.Serializable, Cloneable   {
32502
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_result");
32503
 
32504
    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);
32505
    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);
32506
 
32507
    private TransferLotStatus success; // required
32508
    private WarehouseServiceException wex; // required
32509
 
32510
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32511
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32512
      /**
32513
       * 
32514
       * @see TransferLotStatus
32515
       */
32516
      SUCCESS((short)0, "success"),
32517
      WEX((short)1, "wex");
32518
 
32519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32520
 
32521
      static {
32522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32523
          byName.put(field.getFieldName(), field);
32524
        }
32525
      }
32526
 
32527
      /**
32528
       * Find the _Fields constant that matches fieldId, or null if its not found.
32529
       */
32530
      public static _Fields findByThriftId(int fieldId) {
32531
        switch(fieldId) {
32532
          case 0: // SUCCESS
32533
            return SUCCESS;
32534
          case 1: // WEX
32535
            return WEX;
32536
          default:
32537
            return null;
32538
        }
32539
      }
32540
 
32541
      /**
32542
       * Find the _Fields constant that matches fieldId, throwing an exception
32543
       * if it is not found.
32544
       */
32545
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32546
        _Fields fields = findByThriftId(fieldId);
32547
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32548
        return fields;
32549
      }
32550
 
32551
      /**
32552
       * Find the _Fields constant that matches name, or null if its not found.
32553
       */
32554
      public static _Fields findByName(String name) {
32555
        return byName.get(name);
32556
      }
32557
 
32558
      private final short _thriftId;
32559
      private final String _fieldName;
32560
 
32561
      _Fields(short thriftId, String fieldName) {
32562
        _thriftId = thriftId;
32563
        _fieldName = fieldName;
32564
      }
32565
 
32566
      public short getThriftFieldId() {
32567
        return _thriftId;
32568
      }
32569
 
32570
      public String getFieldName() {
32571
        return _fieldName;
32572
      }
32573
    }
32574
 
32575
    // isset id assignments
32576
 
32577
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32578
    static {
32579
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32580
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32581
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferLotStatus.class)));
32582
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32583
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32584
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32585
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_result.class, metaDataMap);
32586
    }
32587
 
32588
    public updateTransferLotAfterItemReceive_result() {
32589
    }
32590
 
32591
    public updateTransferLotAfterItemReceive_result(
32592
      TransferLotStatus success,
32593
      WarehouseServiceException wex)
32594
    {
32595
      this();
32596
      this.success = success;
32597
      this.wex = wex;
32598
    }
32599
 
32600
    /**
32601
     * Performs a deep copy on <i>other</i>.
32602
     */
32603
    public updateTransferLotAfterItemReceive_result(updateTransferLotAfterItemReceive_result other) {
32604
      if (other.isSetSuccess()) {
32605
        this.success = other.success;
32606
      }
32607
      if (other.isSetWex()) {
32608
        this.wex = new WarehouseServiceException(other.wex);
32609
      }
32610
    }
32611
 
32612
    public updateTransferLotAfterItemReceive_result deepCopy() {
32613
      return new updateTransferLotAfterItemReceive_result(this);
32614
    }
32615
 
32616
    @Override
32617
    public void clear() {
32618
      this.success = null;
32619
      this.wex = null;
32620
    }
32621
 
32622
    /**
32623
     * 
32624
     * @see TransferLotStatus
32625
     */
32626
    public TransferLotStatus getSuccess() {
32627
      return this.success;
32628
    }
32629
 
32630
    /**
32631
     * 
32632
     * @see TransferLotStatus
32633
     */
32634
    public void setSuccess(TransferLotStatus success) {
32635
      this.success = success;
32636
    }
32637
 
32638
    public void unsetSuccess() {
32639
      this.success = null;
32640
    }
32641
 
32642
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32643
    public boolean isSetSuccess() {
32644
      return this.success != null;
32645
    }
32646
 
32647
    public void setSuccessIsSet(boolean value) {
32648
      if (!value) {
32649
        this.success = null;
32650
      }
32651
    }
32652
 
32653
    public WarehouseServiceException getWex() {
32654
      return this.wex;
32655
    }
32656
 
32657
    public void setWex(WarehouseServiceException wex) {
32658
      this.wex = wex;
32659
    }
32660
 
32661
    public void unsetWex() {
32662
      this.wex = null;
32663
    }
32664
 
32665
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
32666
    public boolean isSetWex() {
32667
      return this.wex != null;
32668
    }
32669
 
32670
    public void setWexIsSet(boolean value) {
32671
      if (!value) {
32672
        this.wex = null;
32673
      }
32674
    }
32675
 
32676
    public void setFieldValue(_Fields field, Object value) {
32677
      switch (field) {
32678
      case SUCCESS:
32679
        if (value == null) {
32680
          unsetSuccess();
32681
        } else {
32682
          setSuccess((TransferLotStatus)value);
32683
        }
32684
        break;
32685
 
32686
      case WEX:
32687
        if (value == null) {
32688
          unsetWex();
32689
        } else {
32690
          setWex((WarehouseServiceException)value);
32691
        }
32692
        break;
32693
 
32694
      }
32695
    }
32696
 
32697
    public Object getFieldValue(_Fields field) {
32698
      switch (field) {
32699
      case SUCCESS:
32700
        return getSuccess();
32701
 
32702
      case WEX:
32703
        return getWex();
32704
 
32705
      }
32706
      throw new IllegalStateException();
32707
    }
32708
 
32709
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32710
    public boolean isSet(_Fields field) {
32711
      if (field == null) {
32712
        throw new IllegalArgumentException();
32713
      }
32714
 
32715
      switch (field) {
32716
      case SUCCESS:
32717
        return isSetSuccess();
32718
      case WEX:
32719
        return isSetWex();
32720
      }
32721
      throw new IllegalStateException();
32722
    }
32723
 
32724
    @Override
32725
    public boolean equals(Object that) {
32726
      if (that == null)
32727
        return false;
32728
      if (that instanceof updateTransferLotAfterItemReceive_result)
32729
        return this.equals((updateTransferLotAfterItemReceive_result)that);
32730
      return false;
32731
    }
32732
 
32733
    public boolean equals(updateTransferLotAfterItemReceive_result that) {
32734
      if (that == null)
32735
        return false;
32736
 
32737
      boolean this_present_success = true && this.isSetSuccess();
32738
      boolean that_present_success = true && that.isSetSuccess();
32739
      if (this_present_success || that_present_success) {
32740
        if (!(this_present_success && that_present_success))
32741
          return false;
32742
        if (!this.success.equals(that.success))
32743
          return false;
32744
      }
32745
 
32746
      boolean this_present_wex = true && this.isSetWex();
32747
      boolean that_present_wex = true && that.isSetWex();
32748
      if (this_present_wex || that_present_wex) {
32749
        if (!(this_present_wex && that_present_wex))
32750
          return false;
32751
        if (!this.wex.equals(that.wex))
32752
          return false;
32753
      }
32754
 
32755
      return true;
32756
    }
32757
 
32758
    @Override
32759
    public int hashCode() {
32760
      return 0;
32761
    }
32762
 
32763
    public int compareTo(updateTransferLotAfterItemReceive_result other) {
32764
      if (!getClass().equals(other.getClass())) {
32765
        return getClass().getName().compareTo(other.getClass().getName());
32766
      }
32767
 
32768
      int lastComparison = 0;
32769
      updateTransferLotAfterItemReceive_result typedOther = (updateTransferLotAfterItemReceive_result)other;
32770
 
32771
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32772
      if (lastComparison != 0) {
32773
        return lastComparison;
32774
      }
32775
      if (isSetSuccess()) {
32776
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32777
        if (lastComparison != 0) {
32778
          return lastComparison;
32779
        }
32780
      }
32781
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
32782
      if (lastComparison != 0) {
32783
        return lastComparison;
32784
      }
32785
      if (isSetWex()) {
32786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
32787
        if (lastComparison != 0) {
32788
          return lastComparison;
32789
        }
32790
      }
32791
      return 0;
32792
    }
32793
 
32794
    public _Fields fieldForId(int fieldId) {
32795
      return _Fields.findByThriftId(fieldId);
32796
    }
32797
 
32798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32799
      org.apache.thrift.protocol.TField field;
32800
      iprot.readStructBegin();
32801
      while (true)
32802
      {
32803
        field = iprot.readFieldBegin();
32804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32805
          break;
32806
        }
32807
        switch (field.id) {
32808
          case 0: // SUCCESS
32809
            if (field.type == org.apache.thrift.protocol.TType.I32) {
32810
              this.success = TransferLotStatus.findByValue(iprot.readI32());
32811
            } else { 
32812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32813
            }
32814
            break;
32815
          case 1: // WEX
32816
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32817
              this.wex = new WarehouseServiceException();
32818
              this.wex.read(iprot);
32819
            } else { 
32820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32821
            }
32822
            break;
32823
          default:
32824
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32825
        }
32826
        iprot.readFieldEnd();
32827
      }
32828
      iprot.readStructEnd();
32829
      validate();
32830
    }
32831
 
32832
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32833
      oprot.writeStructBegin(STRUCT_DESC);
32834
 
32835
      if (this.isSetSuccess()) {
32836
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32837
        oprot.writeI32(this.success.getValue());
32838
        oprot.writeFieldEnd();
32839
      } else if (this.isSetWex()) {
32840
        oprot.writeFieldBegin(WEX_FIELD_DESC);
32841
        this.wex.write(oprot);
32842
        oprot.writeFieldEnd();
32843
      }
32844
      oprot.writeFieldStop();
32845
      oprot.writeStructEnd();
32846
    }
32847
 
32848
    @Override
32849
    public String toString() {
32850
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_result(");
32851
      boolean first = true;
32852
 
32853
      sb.append("success:");
32854
      if (this.success == null) {
32855
        sb.append("null");
32856
      } else {
32857
        sb.append(this.success);
32858
      }
32859
      first = false;
32860
      if (!first) sb.append(", ");
32861
      sb.append("wex:");
32862
      if (this.wex == null) {
32863
        sb.append("null");
32864
      } else {
32865
        sb.append(this.wex);
32866
      }
32867
      first = false;
32868
      sb.append(")");
32869
      return sb.toString();
32870
    }
32871
 
32872
    public void validate() throws org.apache.thrift.TException {
32873
      // check for required fields
32874
    }
32875
 
32876
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32877
      try {
32878
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32879
      } catch (org.apache.thrift.TException te) {
32880
        throw new java.io.IOException(te);
32881
      }
32882
    }
32883
 
32884
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32885
      try {
32886
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32887
      } catch (org.apache.thrift.TException te) {
32888
        throw new java.io.IOException(te);
32889
      }
32890
    }
32891
 
32892
  }
32893
 
7453 amar.kumar 32894
  public static class scanForTransferOut_args implements org.apache.thrift.TBase<scanForTransferOut_args, scanForTransferOut_args._Fields>, java.io.Serializable, Cloneable   {
32895
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferOut_args");
7410 amar.kumar 32896
 
32897
    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);
32898
    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);
32899
    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);
32900
 
32901
    private List<InventoryItem> inventoryItems; // required
32902
    private ScanType type; // required
32903
    private long transferLotId; // required
32904
 
32905
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32906
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32907
      INVENTORY_ITEMS((short)1, "inventoryItems"),
32908
      /**
32909
       * 
32910
       * @see ScanType
32911
       */
32912
      TYPE((short)2, "type"),
32913
      TRANSFER_LOT_ID((short)3, "transferLotId");
32914
 
32915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32916
 
32917
      static {
32918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32919
          byName.put(field.getFieldName(), field);
32920
        }
32921
      }
32922
 
32923
      /**
32924
       * Find the _Fields constant that matches fieldId, or null if its not found.
32925
       */
32926
      public static _Fields findByThriftId(int fieldId) {
32927
        switch(fieldId) {
32928
          case 1: // INVENTORY_ITEMS
32929
            return INVENTORY_ITEMS;
32930
          case 2: // TYPE
32931
            return TYPE;
32932
          case 3: // TRANSFER_LOT_ID
32933
            return TRANSFER_LOT_ID;
32934
          default:
32935
            return null;
32936
        }
32937
      }
32938
 
32939
      /**
32940
       * Find the _Fields constant that matches fieldId, throwing an exception
32941
       * if it is not found.
32942
       */
32943
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32944
        _Fields fields = findByThriftId(fieldId);
32945
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32946
        return fields;
32947
      }
32948
 
32949
      /**
32950
       * Find the _Fields constant that matches name, or null if its not found.
32951
       */
32952
      public static _Fields findByName(String name) {
32953
        return byName.get(name);
32954
      }
32955
 
32956
      private final short _thriftId;
32957
      private final String _fieldName;
32958
 
32959
      _Fields(short thriftId, String fieldName) {
32960
        _thriftId = thriftId;
32961
        _fieldName = fieldName;
32962
      }
32963
 
32964
      public short getThriftFieldId() {
32965
        return _thriftId;
32966
      }
32967
 
32968
      public String getFieldName() {
32969
        return _fieldName;
32970
      }
32971
    }
32972
 
32973
    // isset id assignments
32974
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
32975
    private BitSet __isset_bit_vector = new BitSet(1);
32976
 
32977
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32978
    static {
32979
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32980
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32981
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32982
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
32983
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32984
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
32985
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32986
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32987
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7453 amar.kumar 32988
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferOut_args.class, metaDataMap);
7410 amar.kumar 32989
    }
32990
 
7453 amar.kumar 32991
    public scanForTransferOut_args() {
7410 amar.kumar 32992
    }
32993
 
7453 amar.kumar 32994
    public scanForTransferOut_args(
7410 amar.kumar 32995
      List<InventoryItem> inventoryItems,
32996
      ScanType type,
32997
      long transferLotId)
32998
    {
32999
      this();
33000
      this.inventoryItems = inventoryItems;
33001
      this.type = type;
33002
      this.transferLotId = transferLotId;
33003
      setTransferLotIdIsSet(true);
33004
    }
33005
 
33006
    /**
33007
     * Performs a deep copy on <i>other</i>.
33008
     */
7453 amar.kumar 33009
    public scanForTransferOut_args(scanForTransferOut_args other) {
7410 amar.kumar 33010
      __isset_bit_vector.clear();
33011
      __isset_bit_vector.or(other.__isset_bit_vector);
33012
      if (other.isSetInventoryItems()) {
33013
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
33014
        for (InventoryItem other_element : other.inventoryItems) {
33015
          __this__inventoryItems.add(new InventoryItem(other_element));
33016
        }
33017
        this.inventoryItems = __this__inventoryItems;
33018
      }
33019
      if (other.isSetType()) {
33020
        this.type = other.type;
33021
      }
33022
      this.transferLotId = other.transferLotId;
33023
    }
33024
 
7453 amar.kumar 33025
    public scanForTransferOut_args deepCopy() {
33026
      return new scanForTransferOut_args(this);
7410 amar.kumar 33027
    }
33028
 
33029
    @Override
33030
    public void clear() {
33031
      this.inventoryItems = null;
33032
      this.type = null;
33033
      setTransferLotIdIsSet(false);
33034
      this.transferLotId = 0;
33035
    }
33036
 
33037
    public int getInventoryItemsSize() {
33038
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
33039
    }
33040
 
33041
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
33042
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
33043
    }
33044
 
33045
    public void addToInventoryItems(InventoryItem elem) {
33046
      if (this.inventoryItems == null) {
33047
        this.inventoryItems = new ArrayList<InventoryItem>();
33048
      }
33049
      this.inventoryItems.add(elem);
33050
    }
33051
 
33052
    public List<InventoryItem> getInventoryItems() {
33053
      return this.inventoryItems;
33054
    }
33055
 
33056
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
33057
      this.inventoryItems = inventoryItems;
33058
    }
33059
 
33060
    public void unsetInventoryItems() {
33061
      this.inventoryItems = null;
33062
    }
33063
 
33064
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
33065
    public boolean isSetInventoryItems() {
33066
      return this.inventoryItems != null;
33067
    }
33068
 
33069
    public void setInventoryItemsIsSet(boolean value) {
33070
      if (!value) {
33071
        this.inventoryItems = null;
33072
      }
33073
    }
33074
 
33075
    /**
33076
     * 
33077
     * @see ScanType
33078
     */
33079
    public ScanType getType() {
33080
      return this.type;
33081
    }
33082
 
33083
    /**
33084
     * 
33085
     * @see ScanType
33086
     */
33087
    public void setType(ScanType type) {
33088
      this.type = type;
33089
    }
33090
 
33091
    public void unsetType() {
33092
      this.type = null;
33093
    }
33094
 
33095
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
33096
    public boolean isSetType() {
33097
      return this.type != null;
33098
    }
33099
 
33100
    public void setTypeIsSet(boolean value) {
33101
      if (!value) {
33102
        this.type = null;
33103
      }
33104
    }
33105
 
33106
    public long getTransferLotId() {
33107
      return this.transferLotId;
33108
    }
33109
 
33110
    public void setTransferLotId(long transferLotId) {
33111
      this.transferLotId = transferLotId;
33112
      setTransferLotIdIsSet(true);
33113
    }
33114
 
33115
    public void unsetTransferLotId() {
33116
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
33117
    }
33118
 
33119
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
33120
    public boolean isSetTransferLotId() {
33121
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
33122
    }
33123
 
33124
    public void setTransferLotIdIsSet(boolean value) {
33125
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
33126
    }
33127
 
33128
    public void setFieldValue(_Fields field, Object value) {
33129
      switch (field) {
33130
      case INVENTORY_ITEMS:
33131
        if (value == null) {
33132
          unsetInventoryItems();
33133
        } else {
33134
          setInventoryItems((List<InventoryItem>)value);
33135
        }
33136
        break;
33137
 
33138
      case TYPE:
33139
        if (value == null) {
33140
          unsetType();
33141
        } else {
33142
          setType((ScanType)value);
33143
        }
33144
        break;
33145
 
33146
      case TRANSFER_LOT_ID:
33147
        if (value == null) {
33148
          unsetTransferLotId();
33149
        } else {
33150
          setTransferLotId((Long)value);
33151
        }
33152
        break;
33153
 
33154
      }
33155
    }
33156
 
33157
    public Object getFieldValue(_Fields field) {
33158
      switch (field) {
33159
      case INVENTORY_ITEMS:
33160
        return getInventoryItems();
33161
 
33162
      case TYPE:
33163
        return getType();
33164
 
33165
      case TRANSFER_LOT_ID:
33166
        return Long.valueOf(getTransferLotId());
33167
 
33168
      }
33169
      throw new IllegalStateException();
33170
    }
33171
 
33172
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33173
    public boolean isSet(_Fields field) {
33174
      if (field == null) {
33175
        throw new IllegalArgumentException();
33176
      }
33177
 
33178
      switch (field) {
33179
      case INVENTORY_ITEMS:
33180
        return isSetInventoryItems();
33181
      case TYPE:
33182
        return isSetType();
33183
      case TRANSFER_LOT_ID:
33184
        return isSetTransferLotId();
33185
      }
33186
      throw new IllegalStateException();
33187
    }
33188
 
33189
    @Override
33190
    public boolean equals(Object that) {
33191
      if (that == null)
33192
        return false;
7453 amar.kumar 33193
      if (that instanceof scanForTransferOut_args)
33194
        return this.equals((scanForTransferOut_args)that);
7410 amar.kumar 33195
      return false;
33196
    }
33197
 
7453 amar.kumar 33198
    public boolean equals(scanForTransferOut_args that) {
7410 amar.kumar 33199
      if (that == null)
33200
        return false;
33201
 
33202
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
33203
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
33204
      if (this_present_inventoryItems || that_present_inventoryItems) {
33205
        if (!(this_present_inventoryItems && that_present_inventoryItems))
33206
          return false;
33207
        if (!this.inventoryItems.equals(that.inventoryItems))
33208
          return false;
33209
      }
33210
 
33211
      boolean this_present_type = true && this.isSetType();
33212
      boolean that_present_type = true && that.isSetType();
33213
      if (this_present_type || that_present_type) {
33214
        if (!(this_present_type && that_present_type))
33215
          return false;
33216
        if (!this.type.equals(that.type))
33217
          return false;
33218
      }
33219
 
33220
      boolean this_present_transferLotId = true;
33221
      boolean that_present_transferLotId = true;
33222
      if (this_present_transferLotId || that_present_transferLotId) {
33223
        if (!(this_present_transferLotId && that_present_transferLotId))
33224
          return false;
33225
        if (this.transferLotId != that.transferLotId)
33226
          return false;
33227
      }
33228
 
33229
      return true;
33230
    }
33231
 
33232
    @Override
33233
    public int hashCode() {
33234
      return 0;
33235
    }
33236
 
7453 amar.kumar 33237
    public int compareTo(scanForTransferOut_args other) {
7410 amar.kumar 33238
      if (!getClass().equals(other.getClass())) {
33239
        return getClass().getName().compareTo(other.getClass().getName());
33240
      }
33241
 
33242
      int lastComparison = 0;
7453 amar.kumar 33243
      scanForTransferOut_args typedOther = (scanForTransferOut_args)other;
7410 amar.kumar 33244
 
33245
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
33246
      if (lastComparison != 0) {
33247
        return lastComparison;
33248
      }
33249
      if (isSetInventoryItems()) {
33250
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
33251
        if (lastComparison != 0) {
33252
          return lastComparison;
33253
        }
33254
      }
33255
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
33256
      if (lastComparison != 0) {
33257
        return lastComparison;
33258
      }
33259
      if (isSetType()) {
33260
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
33261
        if (lastComparison != 0) {
33262
          return lastComparison;
33263
        }
33264
      }
33265
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
33266
      if (lastComparison != 0) {
33267
        return lastComparison;
33268
      }
33269
      if (isSetTransferLotId()) {
33270
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
33271
        if (lastComparison != 0) {
33272
          return lastComparison;
33273
        }
33274
      }
33275
      return 0;
33276
    }
33277
 
33278
    public _Fields fieldForId(int fieldId) {
33279
      return _Fields.findByThriftId(fieldId);
33280
    }
33281
 
33282
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33283
      org.apache.thrift.protocol.TField field;
33284
      iprot.readStructBegin();
33285
      while (true)
33286
      {
33287
        field = iprot.readFieldBegin();
33288
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33289
          break;
33290
        }
33291
        switch (field.id) {
33292
          case 1: // INVENTORY_ITEMS
33293
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33294
              {
33295
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
33296
                this.inventoryItems = new ArrayList<InventoryItem>(_list89.size);
33297
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
33298
                {
33299
                  InventoryItem _elem91; // required
33300
                  _elem91 = new InventoryItem();
33301
                  _elem91.read(iprot);
33302
                  this.inventoryItems.add(_elem91);
33303
                }
33304
                iprot.readListEnd();
33305
              }
33306
            } else { 
33307
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33308
            }
33309
            break;
33310
          case 2: // TYPE
33311
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33312
              this.type = ScanType.findByValue(iprot.readI32());
33313
            } else { 
33314
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33315
            }
33316
            break;
33317
          case 3: // TRANSFER_LOT_ID
33318
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33319
              this.transferLotId = iprot.readI64();
33320
              setTransferLotIdIsSet(true);
33321
            } else { 
33322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33323
            }
33324
            break;
33325
          default:
33326
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33327
        }
33328
        iprot.readFieldEnd();
33329
      }
33330
      iprot.readStructEnd();
33331
      validate();
33332
    }
33333
 
33334
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33335
      validate();
33336
 
33337
      oprot.writeStructBegin(STRUCT_DESC);
33338
      if (this.inventoryItems != null) {
33339
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
33340
        {
33341
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
33342
          for (InventoryItem _iter92 : this.inventoryItems)
33343
          {
33344
            _iter92.write(oprot);
33345
          }
33346
          oprot.writeListEnd();
33347
        }
33348
        oprot.writeFieldEnd();
33349
      }
33350
      if (this.type != null) {
33351
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
33352
        oprot.writeI32(this.type.getValue());
33353
        oprot.writeFieldEnd();
33354
      }
33355
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
33356
      oprot.writeI64(this.transferLotId);
33357
      oprot.writeFieldEnd();
33358
      oprot.writeFieldStop();
33359
      oprot.writeStructEnd();
33360
    }
33361
 
33362
    @Override
33363
    public String toString() {
7453 amar.kumar 33364
      StringBuilder sb = new StringBuilder("scanForTransferOut_args(");
7410 amar.kumar 33365
      boolean first = true;
33366
 
33367
      sb.append("inventoryItems:");
33368
      if (this.inventoryItems == null) {
33369
        sb.append("null");
33370
      } else {
33371
        sb.append(this.inventoryItems);
33372
      }
33373
      first = false;
33374
      if (!first) sb.append(", ");
33375
      sb.append("type:");
33376
      if (this.type == null) {
33377
        sb.append("null");
33378
      } else {
33379
        sb.append(this.type);
33380
      }
33381
      first = false;
33382
      if (!first) sb.append(", ");
33383
      sb.append("transferLotId:");
33384
      sb.append(this.transferLotId);
33385
      first = false;
33386
      sb.append(")");
33387
      return sb.toString();
33388
    }
33389
 
33390
    public void validate() throws org.apache.thrift.TException {
33391
      // check for required fields
33392
    }
33393
 
33394
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33395
      try {
33396
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33397
      } catch (org.apache.thrift.TException te) {
33398
        throw new java.io.IOException(te);
33399
      }
33400
    }
33401
 
33402
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33403
      try {
33404
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33405
        __isset_bit_vector = new BitSet(1);
33406
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33407
      } catch (org.apache.thrift.TException te) {
33408
        throw new java.io.IOException(te);
33409
      }
33410
    }
33411
 
33412
  }
33413
 
7453 amar.kumar 33414
  public static class scanForTransferOut_result implements org.apache.thrift.TBase<scanForTransferOut_result, scanForTransferOut_result._Fields>, java.io.Serializable, Cloneable   {
33415
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferOut_result");
7410 amar.kumar 33416
 
33417
    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);
33418
 
33419
    private WarehouseServiceException wex; // required
33420
 
33421
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33422
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33423
      WEX((short)1, "wex");
33424
 
33425
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33426
 
33427
      static {
33428
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33429
          byName.put(field.getFieldName(), field);
33430
        }
33431
      }
33432
 
33433
      /**
33434
       * Find the _Fields constant that matches fieldId, or null if its not found.
33435
       */
33436
      public static _Fields findByThriftId(int fieldId) {
33437
        switch(fieldId) {
33438
          case 1: // WEX
33439
            return WEX;
33440
          default:
33441
            return null;
33442
        }
33443
      }
33444
 
33445
      /**
33446
       * Find the _Fields constant that matches fieldId, throwing an exception
33447
       * if it is not found.
33448
       */
33449
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33450
        _Fields fields = findByThriftId(fieldId);
33451
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33452
        return fields;
33453
      }
33454
 
33455
      /**
33456
       * Find the _Fields constant that matches name, or null if its not found.
33457
       */
33458
      public static _Fields findByName(String name) {
33459
        return byName.get(name);
33460
      }
33461
 
33462
      private final short _thriftId;
33463
      private final String _fieldName;
33464
 
33465
      _Fields(short thriftId, String fieldName) {
33466
        _thriftId = thriftId;
33467
        _fieldName = fieldName;
33468
      }
33469
 
33470
      public short getThriftFieldId() {
33471
        return _thriftId;
33472
      }
33473
 
33474
      public String getFieldName() {
33475
        return _fieldName;
33476
      }
33477
    }
33478
 
33479
    // isset id assignments
33480
 
33481
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33482
    static {
33483
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33484
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33485
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33486
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7453 amar.kumar 33487
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferOut_result.class, metaDataMap);
7410 amar.kumar 33488
    }
33489
 
7453 amar.kumar 33490
    public scanForTransferOut_result() {
7410 amar.kumar 33491
    }
33492
 
7453 amar.kumar 33493
    public scanForTransferOut_result(
7410 amar.kumar 33494
      WarehouseServiceException wex)
33495
    {
33496
      this();
33497
      this.wex = wex;
33498
    }
33499
 
33500
    /**
33501
     * Performs a deep copy on <i>other</i>.
33502
     */
7453 amar.kumar 33503
    public scanForTransferOut_result(scanForTransferOut_result other) {
7410 amar.kumar 33504
      if (other.isSetWex()) {
33505
        this.wex = new WarehouseServiceException(other.wex);
33506
      }
33507
    }
33508
 
7453 amar.kumar 33509
    public scanForTransferOut_result deepCopy() {
33510
      return new scanForTransferOut_result(this);
7410 amar.kumar 33511
    }
33512
 
33513
    @Override
33514
    public void clear() {
33515
      this.wex = null;
33516
    }
33517
 
33518
    public WarehouseServiceException getWex() {
33519
      return this.wex;
33520
    }
33521
 
33522
    public void setWex(WarehouseServiceException wex) {
33523
      this.wex = wex;
33524
    }
33525
 
33526
    public void unsetWex() {
33527
      this.wex = null;
33528
    }
33529
 
33530
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
33531
    public boolean isSetWex() {
33532
      return this.wex != null;
33533
    }
33534
 
33535
    public void setWexIsSet(boolean value) {
33536
      if (!value) {
33537
        this.wex = null;
33538
      }
33539
    }
33540
 
33541
    public void setFieldValue(_Fields field, Object value) {
33542
      switch (field) {
33543
      case WEX:
33544
        if (value == null) {
33545
          unsetWex();
33546
        } else {
33547
          setWex((WarehouseServiceException)value);
33548
        }
33549
        break;
33550
 
33551
      }
33552
    }
33553
 
33554
    public Object getFieldValue(_Fields field) {
33555
      switch (field) {
33556
      case WEX:
33557
        return getWex();
33558
 
33559
      }
33560
      throw new IllegalStateException();
33561
    }
33562
 
33563
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33564
    public boolean isSet(_Fields field) {
33565
      if (field == null) {
33566
        throw new IllegalArgumentException();
33567
      }
33568
 
33569
      switch (field) {
33570
      case WEX:
33571
        return isSetWex();
33572
      }
33573
      throw new IllegalStateException();
33574
    }
33575
 
33576
    @Override
33577
    public boolean equals(Object that) {
33578
      if (that == null)
33579
        return false;
7453 amar.kumar 33580
      if (that instanceof scanForTransferOut_result)
33581
        return this.equals((scanForTransferOut_result)that);
7410 amar.kumar 33582
      return false;
33583
    }
33584
 
7453 amar.kumar 33585
    public boolean equals(scanForTransferOut_result that) {
7410 amar.kumar 33586
      if (that == null)
33587
        return false;
33588
 
33589
      boolean this_present_wex = true && this.isSetWex();
33590
      boolean that_present_wex = true && that.isSetWex();
33591
      if (this_present_wex || that_present_wex) {
33592
        if (!(this_present_wex && that_present_wex))
33593
          return false;
33594
        if (!this.wex.equals(that.wex))
33595
          return false;
33596
      }
33597
 
33598
      return true;
33599
    }
33600
 
33601
    @Override
33602
    public int hashCode() {
33603
      return 0;
33604
    }
33605
 
7453 amar.kumar 33606
    public int compareTo(scanForTransferOut_result other) {
7410 amar.kumar 33607
      if (!getClass().equals(other.getClass())) {
33608
        return getClass().getName().compareTo(other.getClass().getName());
33609
      }
33610
 
33611
      int lastComparison = 0;
7453 amar.kumar 33612
      scanForTransferOut_result typedOther = (scanForTransferOut_result)other;
7410 amar.kumar 33613
 
33614
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
33615
      if (lastComparison != 0) {
33616
        return lastComparison;
33617
      }
33618
      if (isSetWex()) {
33619
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
33620
        if (lastComparison != 0) {
33621
          return lastComparison;
33622
        }
33623
      }
33624
      return 0;
33625
    }
33626
 
33627
    public _Fields fieldForId(int fieldId) {
33628
      return _Fields.findByThriftId(fieldId);
33629
    }
33630
 
33631
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33632
      org.apache.thrift.protocol.TField field;
33633
      iprot.readStructBegin();
33634
      while (true)
33635
      {
33636
        field = iprot.readFieldBegin();
33637
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33638
          break;
33639
        }
33640
        switch (field.id) {
33641
          case 1: // WEX
33642
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33643
              this.wex = new WarehouseServiceException();
33644
              this.wex.read(iprot);
33645
            } else { 
33646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33647
            }
33648
            break;
33649
          default:
33650
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33651
        }
33652
        iprot.readFieldEnd();
33653
      }
33654
      iprot.readStructEnd();
33655
      validate();
33656
    }
33657
 
33658
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33659
      oprot.writeStructBegin(STRUCT_DESC);
33660
 
33661
      if (this.isSetWex()) {
33662
        oprot.writeFieldBegin(WEX_FIELD_DESC);
33663
        this.wex.write(oprot);
33664
        oprot.writeFieldEnd();
33665
      }
33666
      oprot.writeFieldStop();
33667
      oprot.writeStructEnd();
33668
    }
33669
 
33670
    @Override
33671
    public String toString() {
7453 amar.kumar 33672
      StringBuilder sb = new StringBuilder("scanForTransferOut_result(");
7410 amar.kumar 33673
      boolean first = true;
33674
 
33675
      sb.append("wex:");
33676
      if (this.wex == null) {
33677
        sb.append("null");
33678
      } else {
33679
        sb.append(this.wex);
33680
      }
33681
      first = false;
33682
      sb.append(")");
33683
      return sb.toString();
33684
    }
33685
 
33686
    public void validate() throws org.apache.thrift.TException {
33687
      // check for required fields
33688
    }
33689
 
33690
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33691
      try {
33692
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33693
      } catch (org.apache.thrift.TException te) {
33694
        throw new java.io.IOException(te);
33695
      }
33696
    }
33697
 
33698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33699
      try {
33700
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33701
      } catch (org.apache.thrift.TException te) {
33702
        throw new java.io.IOException(te);
33703
      }
33704
    }
33705
 
33706
  }
33707
 
7453 amar.kumar 33708
  public static class scanForTransferIn_args implements org.apache.thrift.TBase<scanForTransferIn_args, scanForTransferIn_args._Fields>, java.io.Serializable, Cloneable   {
33709
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferIn_args");
33710
 
33711
    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);
33712
    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);
33713
    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);
33714
 
33715
    private List<InventoryItem> inventoryItems; // required
33716
    private ScanType type; // required
33717
    private long transferLotId; // required
33718
 
33719
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33720
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33721
      INVENTORY_ITEMS((short)1, "inventoryItems"),
33722
      /**
33723
       * 
33724
       * @see ScanType
33725
       */
33726
      TYPE((short)2, "type"),
33727
      TRANSFER_LOT_ID((short)3, "transferLotId");
33728
 
33729
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33730
 
33731
      static {
33732
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33733
          byName.put(field.getFieldName(), field);
33734
        }
33735
      }
33736
 
33737
      /**
33738
       * Find the _Fields constant that matches fieldId, or null if its not found.
33739
       */
33740
      public static _Fields findByThriftId(int fieldId) {
33741
        switch(fieldId) {
33742
          case 1: // INVENTORY_ITEMS
33743
            return INVENTORY_ITEMS;
33744
          case 2: // TYPE
33745
            return TYPE;
33746
          case 3: // TRANSFER_LOT_ID
33747
            return TRANSFER_LOT_ID;
33748
          default:
33749
            return null;
33750
        }
33751
      }
33752
 
33753
      /**
33754
       * Find the _Fields constant that matches fieldId, throwing an exception
33755
       * if it is not found.
33756
       */
33757
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33758
        _Fields fields = findByThriftId(fieldId);
33759
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33760
        return fields;
33761
      }
33762
 
33763
      /**
33764
       * Find the _Fields constant that matches name, or null if its not found.
33765
       */
33766
      public static _Fields findByName(String name) {
33767
        return byName.get(name);
33768
      }
33769
 
33770
      private final short _thriftId;
33771
      private final String _fieldName;
33772
 
33773
      _Fields(short thriftId, String fieldName) {
33774
        _thriftId = thriftId;
33775
        _fieldName = fieldName;
33776
      }
33777
 
33778
      public short getThriftFieldId() {
33779
        return _thriftId;
33780
      }
33781
 
33782
      public String getFieldName() {
33783
        return _fieldName;
33784
      }
33785
    }
33786
 
33787
    // isset id assignments
33788
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
33789
    private BitSet __isset_bit_vector = new BitSet(1);
33790
 
33791
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33792
    static {
33793
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33794
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33795
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33796
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
33797
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33798
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
33799
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33800
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferIn_args.class, metaDataMap);
33803
    }
33804
 
33805
    public scanForTransferIn_args() {
33806
    }
33807
 
33808
    public scanForTransferIn_args(
33809
      List<InventoryItem> inventoryItems,
33810
      ScanType type,
33811
      long transferLotId)
33812
    {
33813
      this();
33814
      this.inventoryItems = inventoryItems;
33815
      this.type = type;
33816
      this.transferLotId = transferLotId;
33817
      setTransferLotIdIsSet(true);
33818
    }
33819
 
33820
    /**
33821
     * Performs a deep copy on <i>other</i>.
33822
     */
33823
    public scanForTransferIn_args(scanForTransferIn_args other) {
33824
      __isset_bit_vector.clear();
33825
      __isset_bit_vector.or(other.__isset_bit_vector);
33826
      if (other.isSetInventoryItems()) {
33827
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
33828
        for (InventoryItem other_element : other.inventoryItems) {
33829
          __this__inventoryItems.add(new InventoryItem(other_element));
33830
        }
33831
        this.inventoryItems = __this__inventoryItems;
33832
      }
33833
      if (other.isSetType()) {
33834
        this.type = other.type;
33835
      }
33836
      this.transferLotId = other.transferLotId;
33837
    }
33838
 
33839
    public scanForTransferIn_args deepCopy() {
33840
      return new scanForTransferIn_args(this);
33841
    }
33842
 
33843
    @Override
33844
    public void clear() {
33845
      this.inventoryItems = null;
33846
      this.type = null;
33847
      setTransferLotIdIsSet(false);
33848
      this.transferLotId = 0;
33849
    }
33850
 
33851
    public int getInventoryItemsSize() {
33852
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
33853
    }
33854
 
33855
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
33856
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
33857
    }
33858
 
33859
    public void addToInventoryItems(InventoryItem elem) {
33860
      if (this.inventoryItems == null) {
33861
        this.inventoryItems = new ArrayList<InventoryItem>();
33862
      }
33863
      this.inventoryItems.add(elem);
33864
    }
33865
 
33866
    public List<InventoryItem> getInventoryItems() {
33867
      return this.inventoryItems;
33868
    }
33869
 
33870
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
33871
      this.inventoryItems = inventoryItems;
33872
    }
33873
 
33874
    public void unsetInventoryItems() {
33875
      this.inventoryItems = null;
33876
    }
33877
 
33878
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
33879
    public boolean isSetInventoryItems() {
33880
      return this.inventoryItems != null;
33881
    }
33882
 
33883
    public void setInventoryItemsIsSet(boolean value) {
33884
      if (!value) {
33885
        this.inventoryItems = null;
33886
      }
33887
    }
33888
 
33889
    /**
33890
     * 
33891
     * @see ScanType
33892
     */
33893
    public ScanType getType() {
33894
      return this.type;
33895
    }
33896
 
33897
    /**
33898
     * 
33899
     * @see ScanType
33900
     */
33901
    public void setType(ScanType type) {
33902
      this.type = type;
33903
    }
33904
 
33905
    public void unsetType() {
33906
      this.type = null;
33907
    }
33908
 
33909
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
33910
    public boolean isSetType() {
33911
      return this.type != null;
33912
    }
33913
 
33914
    public void setTypeIsSet(boolean value) {
33915
      if (!value) {
33916
        this.type = null;
33917
      }
33918
    }
33919
 
33920
    public long getTransferLotId() {
33921
      return this.transferLotId;
33922
    }
33923
 
33924
    public void setTransferLotId(long transferLotId) {
33925
      this.transferLotId = transferLotId;
33926
      setTransferLotIdIsSet(true);
33927
    }
33928
 
33929
    public void unsetTransferLotId() {
33930
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
33931
    }
33932
 
33933
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
33934
    public boolean isSetTransferLotId() {
33935
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
33936
    }
33937
 
33938
    public void setTransferLotIdIsSet(boolean value) {
33939
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
33940
    }
33941
 
33942
    public void setFieldValue(_Fields field, Object value) {
33943
      switch (field) {
33944
      case INVENTORY_ITEMS:
33945
        if (value == null) {
33946
          unsetInventoryItems();
33947
        } else {
33948
          setInventoryItems((List<InventoryItem>)value);
33949
        }
33950
        break;
33951
 
33952
      case TYPE:
33953
        if (value == null) {
33954
          unsetType();
33955
        } else {
33956
          setType((ScanType)value);
33957
        }
33958
        break;
33959
 
33960
      case TRANSFER_LOT_ID:
33961
        if (value == null) {
33962
          unsetTransferLotId();
33963
        } else {
33964
          setTransferLotId((Long)value);
33965
        }
33966
        break;
33967
 
33968
      }
33969
    }
33970
 
33971
    public Object getFieldValue(_Fields field) {
33972
      switch (field) {
33973
      case INVENTORY_ITEMS:
33974
        return getInventoryItems();
33975
 
33976
      case TYPE:
33977
        return getType();
33978
 
33979
      case TRANSFER_LOT_ID:
33980
        return Long.valueOf(getTransferLotId());
33981
 
33982
      }
33983
      throw new IllegalStateException();
33984
    }
33985
 
33986
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33987
    public boolean isSet(_Fields field) {
33988
      if (field == null) {
33989
        throw new IllegalArgumentException();
33990
      }
33991
 
33992
      switch (field) {
33993
      case INVENTORY_ITEMS:
33994
        return isSetInventoryItems();
33995
      case TYPE:
33996
        return isSetType();
33997
      case TRANSFER_LOT_ID:
33998
        return isSetTransferLotId();
33999
      }
34000
      throw new IllegalStateException();
34001
    }
34002
 
34003
    @Override
34004
    public boolean equals(Object that) {
34005
      if (that == null)
34006
        return false;
34007
      if (that instanceof scanForTransferIn_args)
34008
        return this.equals((scanForTransferIn_args)that);
34009
      return false;
34010
    }
34011
 
34012
    public boolean equals(scanForTransferIn_args that) {
34013
      if (that == null)
34014
        return false;
34015
 
34016
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
34017
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
34018
      if (this_present_inventoryItems || that_present_inventoryItems) {
34019
        if (!(this_present_inventoryItems && that_present_inventoryItems))
34020
          return false;
34021
        if (!this.inventoryItems.equals(that.inventoryItems))
34022
          return false;
34023
      }
34024
 
34025
      boolean this_present_type = true && this.isSetType();
34026
      boolean that_present_type = true && that.isSetType();
34027
      if (this_present_type || that_present_type) {
34028
        if (!(this_present_type && that_present_type))
34029
          return false;
34030
        if (!this.type.equals(that.type))
34031
          return false;
34032
      }
34033
 
34034
      boolean this_present_transferLotId = true;
34035
      boolean that_present_transferLotId = true;
34036
      if (this_present_transferLotId || that_present_transferLotId) {
34037
        if (!(this_present_transferLotId && that_present_transferLotId))
34038
          return false;
34039
        if (this.transferLotId != that.transferLotId)
34040
          return false;
34041
      }
34042
 
34043
      return true;
34044
    }
34045
 
34046
    @Override
34047
    public int hashCode() {
34048
      return 0;
34049
    }
34050
 
34051
    public int compareTo(scanForTransferIn_args other) {
34052
      if (!getClass().equals(other.getClass())) {
34053
        return getClass().getName().compareTo(other.getClass().getName());
34054
      }
34055
 
34056
      int lastComparison = 0;
34057
      scanForTransferIn_args typedOther = (scanForTransferIn_args)other;
34058
 
34059
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
34060
      if (lastComparison != 0) {
34061
        return lastComparison;
34062
      }
34063
      if (isSetInventoryItems()) {
34064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
34065
        if (lastComparison != 0) {
34066
          return lastComparison;
34067
        }
34068
      }
34069
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
34070
      if (lastComparison != 0) {
34071
        return lastComparison;
34072
      }
34073
      if (isSetType()) {
34074
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
34075
        if (lastComparison != 0) {
34076
          return lastComparison;
34077
        }
34078
      }
34079
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
34080
      if (lastComparison != 0) {
34081
        return lastComparison;
34082
      }
34083
      if (isSetTransferLotId()) {
34084
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
34085
        if (lastComparison != 0) {
34086
          return lastComparison;
34087
        }
34088
      }
34089
      return 0;
34090
    }
34091
 
34092
    public _Fields fieldForId(int fieldId) {
34093
      return _Fields.findByThriftId(fieldId);
34094
    }
34095
 
34096
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34097
      org.apache.thrift.protocol.TField field;
34098
      iprot.readStructBegin();
34099
      while (true)
34100
      {
34101
        field = iprot.readFieldBegin();
34102
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34103
          break;
34104
        }
34105
        switch (field.id) {
34106
          case 1: // INVENTORY_ITEMS
34107
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34108
              {
34109
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
34110
                this.inventoryItems = new ArrayList<InventoryItem>(_list93.size);
34111
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
34112
                {
34113
                  InventoryItem _elem95; // required
34114
                  _elem95 = new InventoryItem();
34115
                  _elem95.read(iprot);
34116
                  this.inventoryItems.add(_elem95);
34117
                }
34118
                iprot.readListEnd();
34119
              }
34120
            } else { 
34121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34122
            }
34123
            break;
34124
          case 2: // TYPE
34125
            if (field.type == org.apache.thrift.protocol.TType.I32) {
34126
              this.type = ScanType.findByValue(iprot.readI32());
34127
            } else { 
34128
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34129
            }
34130
            break;
34131
          case 3: // TRANSFER_LOT_ID
34132
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34133
              this.transferLotId = iprot.readI64();
34134
              setTransferLotIdIsSet(true);
34135
            } else { 
34136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34137
            }
34138
            break;
34139
          default:
34140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34141
        }
34142
        iprot.readFieldEnd();
34143
      }
34144
      iprot.readStructEnd();
34145
      validate();
34146
    }
34147
 
34148
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34149
      validate();
34150
 
34151
      oprot.writeStructBegin(STRUCT_DESC);
34152
      if (this.inventoryItems != null) {
34153
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
34154
        {
34155
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
34156
          for (InventoryItem _iter96 : this.inventoryItems)
34157
          {
34158
            _iter96.write(oprot);
34159
          }
34160
          oprot.writeListEnd();
34161
        }
34162
        oprot.writeFieldEnd();
34163
      }
34164
      if (this.type != null) {
34165
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
34166
        oprot.writeI32(this.type.getValue());
34167
        oprot.writeFieldEnd();
34168
      }
34169
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
34170
      oprot.writeI64(this.transferLotId);
34171
      oprot.writeFieldEnd();
34172
      oprot.writeFieldStop();
34173
      oprot.writeStructEnd();
34174
    }
34175
 
34176
    @Override
34177
    public String toString() {
34178
      StringBuilder sb = new StringBuilder("scanForTransferIn_args(");
34179
      boolean first = true;
34180
 
34181
      sb.append("inventoryItems:");
34182
      if (this.inventoryItems == null) {
34183
        sb.append("null");
34184
      } else {
34185
        sb.append(this.inventoryItems);
34186
      }
34187
      first = false;
34188
      if (!first) sb.append(", ");
34189
      sb.append("type:");
34190
      if (this.type == null) {
34191
        sb.append("null");
34192
      } else {
34193
        sb.append(this.type);
34194
      }
34195
      first = false;
34196
      if (!first) sb.append(", ");
34197
      sb.append("transferLotId:");
34198
      sb.append(this.transferLotId);
34199
      first = false;
34200
      sb.append(")");
34201
      return sb.toString();
34202
    }
34203
 
34204
    public void validate() throws org.apache.thrift.TException {
34205
      // check for required fields
34206
    }
34207
 
34208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34209
      try {
34210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34211
      } catch (org.apache.thrift.TException te) {
34212
        throw new java.io.IOException(te);
34213
      }
34214
    }
34215
 
34216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34217
      try {
34218
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34219
        __isset_bit_vector = new BitSet(1);
34220
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34221
      } catch (org.apache.thrift.TException te) {
34222
        throw new java.io.IOException(te);
34223
      }
34224
    }
34225
 
34226
  }
34227
 
34228
  public static class scanForTransferIn_result implements org.apache.thrift.TBase<scanForTransferIn_result, scanForTransferIn_result._Fields>, java.io.Serializable, Cloneable   {
34229
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferIn_result");
34230
 
34231
    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);
34232
 
34233
    private WarehouseServiceException wex; // required
34234
 
34235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34237
      WEX((short)1, "wex");
34238
 
34239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34240
 
34241
      static {
34242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34243
          byName.put(field.getFieldName(), field);
34244
        }
34245
      }
34246
 
34247
      /**
34248
       * Find the _Fields constant that matches fieldId, or null if its not found.
34249
       */
34250
      public static _Fields findByThriftId(int fieldId) {
34251
        switch(fieldId) {
34252
          case 1: // WEX
34253
            return WEX;
34254
          default:
34255
            return null;
34256
        }
34257
      }
34258
 
34259
      /**
34260
       * Find the _Fields constant that matches fieldId, throwing an exception
34261
       * if it is not found.
34262
       */
34263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34264
        _Fields fields = findByThriftId(fieldId);
34265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34266
        return fields;
34267
      }
34268
 
34269
      /**
34270
       * Find the _Fields constant that matches name, or null if its not found.
34271
       */
34272
      public static _Fields findByName(String name) {
34273
        return byName.get(name);
34274
      }
34275
 
34276
      private final short _thriftId;
34277
      private final String _fieldName;
34278
 
34279
      _Fields(short thriftId, String fieldName) {
34280
        _thriftId = thriftId;
34281
        _fieldName = fieldName;
34282
      }
34283
 
34284
      public short getThriftFieldId() {
34285
        return _thriftId;
34286
      }
34287
 
34288
      public String getFieldName() {
34289
        return _fieldName;
34290
      }
34291
    }
34292
 
34293
    // isset id assignments
34294
 
34295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34296
    static {
34297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34298
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferIn_result.class, metaDataMap);
34302
    }
34303
 
34304
    public scanForTransferIn_result() {
34305
    }
34306
 
34307
    public scanForTransferIn_result(
34308
      WarehouseServiceException wex)
34309
    {
34310
      this();
34311
      this.wex = wex;
34312
    }
34313
 
34314
    /**
34315
     * Performs a deep copy on <i>other</i>.
34316
     */
34317
    public scanForTransferIn_result(scanForTransferIn_result other) {
34318
      if (other.isSetWex()) {
34319
        this.wex = new WarehouseServiceException(other.wex);
34320
      }
34321
    }
34322
 
34323
    public scanForTransferIn_result deepCopy() {
34324
      return new scanForTransferIn_result(this);
34325
    }
34326
 
34327
    @Override
34328
    public void clear() {
34329
      this.wex = null;
34330
    }
34331
 
34332
    public WarehouseServiceException getWex() {
34333
      return this.wex;
34334
    }
34335
 
34336
    public void setWex(WarehouseServiceException wex) {
34337
      this.wex = wex;
34338
    }
34339
 
34340
    public void unsetWex() {
34341
      this.wex = null;
34342
    }
34343
 
34344
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
34345
    public boolean isSetWex() {
34346
      return this.wex != null;
34347
    }
34348
 
34349
    public void setWexIsSet(boolean value) {
34350
      if (!value) {
34351
        this.wex = null;
34352
      }
34353
    }
34354
 
34355
    public void setFieldValue(_Fields field, Object value) {
34356
      switch (field) {
34357
      case WEX:
34358
        if (value == null) {
34359
          unsetWex();
34360
        } else {
34361
          setWex((WarehouseServiceException)value);
34362
        }
34363
        break;
34364
 
34365
      }
34366
    }
34367
 
34368
    public Object getFieldValue(_Fields field) {
34369
      switch (field) {
34370
      case WEX:
34371
        return getWex();
34372
 
34373
      }
34374
      throw new IllegalStateException();
34375
    }
34376
 
34377
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34378
    public boolean isSet(_Fields field) {
34379
      if (field == null) {
34380
        throw new IllegalArgumentException();
34381
      }
34382
 
34383
      switch (field) {
34384
      case WEX:
34385
        return isSetWex();
34386
      }
34387
      throw new IllegalStateException();
34388
    }
34389
 
34390
    @Override
34391
    public boolean equals(Object that) {
34392
      if (that == null)
34393
        return false;
34394
      if (that instanceof scanForTransferIn_result)
34395
        return this.equals((scanForTransferIn_result)that);
34396
      return false;
34397
    }
34398
 
34399
    public boolean equals(scanForTransferIn_result that) {
34400
      if (that == null)
34401
        return false;
34402
 
34403
      boolean this_present_wex = true && this.isSetWex();
34404
      boolean that_present_wex = true && that.isSetWex();
34405
      if (this_present_wex || that_present_wex) {
34406
        if (!(this_present_wex && that_present_wex))
34407
          return false;
34408
        if (!this.wex.equals(that.wex))
34409
          return false;
34410
      }
34411
 
34412
      return true;
34413
    }
34414
 
34415
    @Override
34416
    public int hashCode() {
34417
      return 0;
34418
    }
34419
 
34420
    public int compareTo(scanForTransferIn_result other) {
34421
      if (!getClass().equals(other.getClass())) {
34422
        return getClass().getName().compareTo(other.getClass().getName());
34423
      }
34424
 
34425
      int lastComparison = 0;
34426
      scanForTransferIn_result typedOther = (scanForTransferIn_result)other;
34427
 
34428
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
34429
      if (lastComparison != 0) {
34430
        return lastComparison;
34431
      }
34432
      if (isSetWex()) {
34433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
34434
        if (lastComparison != 0) {
34435
          return lastComparison;
34436
        }
34437
      }
34438
      return 0;
34439
    }
34440
 
34441
    public _Fields fieldForId(int fieldId) {
34442
      return _Fields.findByThriftId(fieldId);
34443
    }
34444
 
34445
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34446
      org.apache.thrift.protocol.TField field;
34447
      iprot.readStructBegin();
34448
      while (true)
34449
      {
34450
        field = iprot.readFieldBegin();
34451
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34452
          break;
34453
        }
34454
        switch (field.id) {
34455
          case 1: // WEX
34456
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34457
              this.wex = new WarehouseServiceException();
34458
              this.wex.read(iprot);
34459
            } else { 
34460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34461
            }
34462
            break;
34463
          default:
34464
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34465
        }
34466
        iprot.readFieldEnd();
34467
      }
34468
      iprot.readStructEnd();
34469
      validate();
34470
    }
34471
 
34472
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34473
      oprot.writeStructBegin(STRUCT_DESC);
34474
 
34475
      if (this.isSetWex()) {
34476
        oprot.writeFieldBegin(WEX_FIELD_DESC);
34477
        this.wex.write(oprot);
34478
        oprot.writeFieldEnd();
34479
      }
34480
      oprot.writeFieldStop();
34481
      oprot.writeStructEnd();
34482
    }
34483
 
34484
    @Override
34485
    public String toString() {
34486
      StringBuilder sb = new StringBuilder("scanForTransferIn_result(");
34487
      boolean first = true;
34488
 
34489
      sb.append("wex:");
34490
      if (this.wex == null) {
34491
        sb.append("null");
34492
      } else {
34493
        sb.append(this.wex);
34494
      }
34495
      first = false;
34496
      sb.append(")");
34497
      return sb.toString();
34498
    }
34499
 
34500
    public void validate() throws org.apache.thrift.TException {
34501
      // check for required fields
34502
    }
34503
 
34504
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34505
      try {
34506
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34507
      } catch (org.apache.thrift.TException te) {
34508
        throw new java.io.IOException(te);
34509
      }
34510
    }
34511
 
34512
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34513
      try {
34514
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34515
      } catch (org.apache.thrift.TException te) {
34516
        throw new java.io.IOException(te);
34517
      }
34518
    }
34519
 
34520
  }
34521
 
34522
  public static class scanForOursThirdPartyReceive_args implements org.apache.thrift.TBase<scanForOursThirdPartyReceive_args, scanForOursThirdPartyReceive_args._Fields>, java.io.Serializable, Cloneable   {
34523
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursThirdPartyReceive_args");
34524
 
34525
    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);
34526
    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)2);
34527
 
34528
    private List<InventoryItem> inventoryItems; // required
34529
    private long id; // required
34530
 
34531
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34532
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34533
      INVENTORY_ITEMS((short)1, "inventoryItems"),
34534
      ID((short)2, "id");
34535
 
34536
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34537
 
34538
      static {
34539
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34540
          byName.put(field.getFieldName(), field);
34541
        }
34542
      }
34543
 
34544
      /**
34545
       * Find the _Fields constant that matches fieldId, or null if its not found.
34546
       */
34547
      public static _Fields findByThriftId(int fieldId) {
34548
        switch(fieldId) {
34549
          case 1: // INVENTORY_ITEMS
34550
            return INVENTORY_ITEMS;
34551
          case 2: // ID
34552
            return ID;
34553
          default:
34554
            return null;
34555
        }
34556
      }
34557
 
34558
      /**
34559
       * Find the _Fields constant that matches fieldId, throwing an exception
34560
       * if it is not found.
34561
       */
34562
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34563
        _Fields fields = findByThriftId(fieldId);
34564
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34565
        return fields;
34566
      }
34567
 
34568
      /**
34569
       * Find the _Fields constant that matches name, or null if its not found.
34570
       */
34571
      public static _Fields findByName(String name) {
34572
        return byName.get(name);
34573
      }
34574
 
34575
      private final short _thriftId;
34576
      private final String _fieldName;
34577
 
34578
      _Fields(short thriftId, String fieldName) {
34579
        _thriftId = thriftId;
34580
        _fieldName = fieldName;
34581
      }
34582
 
34583
      public short getThriftFieldId() {
34584
        return _thriftId;
34585
      }
34586
 
34587
      public String getFieldName() {
34588
        return _fieldName;
34589
      }
34590
    }
34591
 
34592
    // isset id assignments
34593
    private static final int __ID_ISSET_ID = 0;
34594
    private BitSet __isset_bit_vector = new BitSet(1);
34595
 
34596
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34597
    static {
34598
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34599
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34600
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34601
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
34602
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34603
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34604
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34605
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursThirdPartyReceive_args.class, metaDataMap);
34606
    }
34607
 
34608
    public scanForOursThirdPartyReceive_args() {
34609
    }
34610
 
34611
    public scanForOursThirdPartyReceive_args(
34612
      List<InventoryItem> inventoryItems,
34613
      long id)
34614
    {
34615
      this();
34616
      this.inventoryItems = inventoryItems;
34617
      this.id = id;
34618
      setIdIsSet(true);
34619
    }
34620
 
34621
    /**
34622
     * Performs a deep copy on <i>other</i>.
34623
     */
34624
    public scanForOursThirdPartyReceive_args(scanForOursThirdPartyReceive_args other) {
34625
      __isset_bit_vector.clear();
34626
      __isset_bit_vector.or(other.__isset_bit_vector);
34627
      if (other.isSetInventoryItems()) {
34628
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
34629
        for (InventoryItem other_element : other.inventoryItems) {
34630
          __this__inventoryItems.add(new InventoryItem(other_element));
34631
        }
34632
        this.inventoryItems = __this__inventoryItems;
34633
      }
34634
      this.id = other.id;
34635
    }
34636
 
34637
    public scanForOursThirdPartyReceive_args deepCopy() {
34638
      return new scanForOursThirdPartyReceive_args(this);
34639
    }
34640
 
34641
    @Override
34642
    public void clear() {
34643
      this.inventoryItems = null;
34644
      setIdIsSet(false);
34645
      this.id = 0;
34646
    }
34647
 
34648
    public int getInventoryItemsSize() {
34649
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
34650
    }
34651
 
34652
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
34653
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
34654
    }
34655
 
34656
    public void addToInventoryItems(InventoryItem elem) {
34657
      if (this.inventoryItems == null) {
34658
        this.inventoryItems = new ArrayList<InventoryItem>();
34659
      }
34660
      this.inventoryItems.add(elem);
34661
    }
34662
 
34663
    public List<InventoryItem> getInventoryItems() {
34664
      return this.inventoryItems;
34665
    }
34666
 
34667
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
34668
      this.inventoryItems = inventoryItems;
34669
    }
34670
 
34671
    public void unsetInventoryItems() {
34672
      this.inventoryItems = null;
34673
    }
34674
 
34675
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
34676
    public boolean isSetInventoryItems() {
34677
      return this.inventoryItems != null;
34678
    }
34679
 
34680
    public void setInventoryItemsIsSet(boolean value) {
34681
      if (!value) {
34682
        this.inventoryItems = null;
34683
      }
34684
    }
34685
 
34686
    public long getId() {
34687
      return this.id;
34688
    }
34689
 
34690
    public void setId(long id) {
34691
      this.id = id;
34692
      setIdIsSet(true);
34693
    }
34694
 
34695
    public void unsetId() {
34696
      __isset_bit_vector.clear(__ID_ISSET_ID);
34697
    }
34698
 
34699
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
34700
    public boolean isSetId() {
34701
      return __isset_bit_vector.get(__ID_ISSET_ID);
34702
    }
34703
 
34704
    public void setIdIsSet(boolean value) {
34705
      __isset_bit_vector.set(__ID_ISSET_ID, value);
34706
    }
34707
 
34708
    public void setFieldValue(_Fields field, Object value) {
34709
      switch (field) {
34710
      case INVENTORY_ITEMS:
34711
        if (value == null) {
34712
          unsetInventoryItems();
34713
        } else {
34714
          setInventoryItems((List<InventoryItem>)value);
34715
        }
34716
        break;
34717
 
34718
      case ID:
34719
        if (value == null) {
34720
          unsetId();
34721
        } else {
34722
          setId((Long)value);
34723
        }
34724
        break;
34725
 
34726
      }
34727
    }
34728
 
34729
    public Object getFieldValue(_Fields field) {
34730
      switch (field) {
34731
      case INVENTORY_ITEMS:
34732
        return getInventoryItems();
34733
 
34734
      case ID:
34735
        return Long.valueOf(getId());
34736
 
34737
      }
34738
      throw new IllegalStateException();
34739
    }
34740
 
34741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34742
    public boolean isSet(_Fields field) {
34743
      if (field == null) {
34744
        throw new IllegalArgumentException();
34745
      }
34746
 
34747
      switch (field) {
34748
      case INVENTORY_ITEMS:
34749
        return isSetInventoryItems();
34750
      case ID:
34751
        return isSetId();
34752
      }
34753
      throw new IllegalStateException();
34754
    }
34755
 
34756
    @Override
34757
    public boolean equals(Object that) {
34758
      if (that == null)
34759
        return false;
34760
      if (that instanceof scanForOursThirdPartyReceive_args)
34761
        return this.equals((scanForOursThirdPartyReceive_args)that);
34762
      return false;
34763
    }
34764
 
34765
    public boolean equals(scanForOursThirdPartyReceive_args that) {
34766
      if (that == null)
34767
        return false;
34768
 
34769
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
34770
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
34771
      if (this_present_inventoryItems || that_present_inventoryItems) {
34772
        if (!(this_present_inventoryItems && that_present_inventoryItems))
34773
          return false;
34774
        if (!this.inventoryItems.equals(that.inventoryItems))
34775
          return false;
34776
      }
34777
 
34778
      boolean this_present_id = true;
34779
      boolean that_present_id = true;
34780
      if (this_present_id || that_present_id) {
34781
        if (!(this_present_id && that_present_id))
34782
          return false;
34783
        if (this.id != that.id)
34784
          return false;
34785
      }
34786
 
34787
      return true;
34788
    }
34789
 
34790
    @Override
34791
    public int hashCode() {
34792
      return 0;
34793
    }
34794
 
34795
    public int compareTo(scanForOursThirdPartyReceive_args other) {
34796
      if (!getClass().equals(other.getClass())) {
34797
        return getClass().getName().compareTo(other.getClass().getName());
34798
      }
34799
 
34800
      int lastComparison = 0;
34801
      scanForOursThirdPartyReceive_args typedOther = (scanForOursThirdPartyReceive_args)other;
34802
 
34803
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
34804
      if (lastComparison != 0) {
34805
        return lastComparison;
34806
      }
34807
      if (isSetInventoryItems()) {
34808
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
34809
        if (lastComparison != 0) {
34810
          return lastComparison;
34811
        }
34812
      }
34813
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
34814
      if (lastComparison != 0) {
34815
        return lastComparison;
34816
      }
34817
      if (isSetId()) {
34818
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
34819
        if (lastComparison != 0) {
34820
          return lastComparison;
34821
        }
34822
      }
34823
      return 0;
34824
    }
34825
 
34826
    public _Fields fieldForId(int fieldId) {
34827
      return _Fields.findByThriftId(fieldId);
34828
    }
34829
 
34830
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34831
      org.apache.thrift.protocol.TField field;
34832
      iprot.readStructBegin();
34833
      while (true)
34834
      {
34835
        field = iprot.readFieldBegin();
34836
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34837
          break;
34838
        }
34839
        switch (field.id) {
34840
          case 1: // INVENTORY_ITEMS
34841
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34842
              {
34843
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
34844
                this.inventoryItems = new ArrayList<InventoryItem>(_list97.size);
34845
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
34846
                {
34847
                  InventoryItem _elem99; // required
34848
                  _elem99 = new InventoryItem();
34849
                  _elem99.read(iprot);
34850
                  this.inventoryItems.add(_elem99);
34851
                }
34852
                iprot.readListEnd();
34853
              }
34854
            } else { 
34855
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34856
            }
34857
            break;
34858
          case 2: // ID
34859
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34860
              this.id = iprot.readI64();
34861
              setIdIsSet(true);
34862
            } else { 
34863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34864
            }
34865
            break;
34866
          default:
34867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34868
        }
34869
        iprot.readFieldEnd();
34870
      }
34871
      iprot.readStructEnd();
34872
      validate();
34873
    }
34874
 
34875
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34876
      validate();
34877
 
34878
      oprot.writeStructBegin(STRUCT_DESC);
34879
      if (this.inventoryItems != null) {
34880
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
34881
        {
34882
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
34883
          for (InventoryItem _iter100 : this.inventoryItems)
34884
          {
34885
            _iter100.write(oprot);
34886
          }
34887
          oprot.writeListEnd();
34888
        }
34889
        oprot.writeFieldEnd();
34890
      }
34891
      oprot.writeFieldBegin(ID_FIELD_DESC);
34892
      oprot.writeI64(this.id);
34893
      oprot.writeFieldEnd();
34894
      oprot.writeFieldStop();
34895
      oprot.writeStructEnd();
34896
    }
34897
 
34898
    @Override
34899
    public String toString() {
34900
      StringBuilder sb = new StringBuilder("scanForOursThirdPartyReceive_args(");
34901
      boolean first = true;
34902
 
34903
      sb.append("inventoryItems:");
34904
      if (this.inventoryItems == null) {
34905
        sb.append("null");
34906
      } else {
34907
        sb.append(this.inventoryItems);
34908
      }
34909
      first = false;
34910
      if (!first) sb.append(", ");
34911
      sb.append("id:");
34912
      sb.append(this.id);
34913
      first = false;
34914
      sb.append(")");
34915
      return sb.toString();
34916
    }
34917
 
34918
    public void validate() throws org.apache.thrift.TException {
34919
      // check for required fields
34920
    }
34921
 
34922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34923
      try {
34924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34925
      } catch (org.apache.thrift.TException te) {
34926
        throw new java.io.IOException(te);
34927
      }
34928
    }
34929
 
34930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34931
      try {
34932
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34933
        __isset_bit_vector = new BitSet(1);
34934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34935
      } catch (org.apache.thrift.TException te) {
34936
        throw new java.io.IOException(te);
34937
      }
34938
    }
34939
 
34940
  }
34941
 
34942
  public static class scanForOursThirdPartyReceive_result implements org.apache.thrift.TBase<scanForOursThirdPartyReceive_result, scanForOursThirdPartyReceive_result._Fields>, java.io.Serializable, Cloneable   {
34943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursThirdPartyReceive_result");
34944
 
34945
    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);
34946
 
34947
    private WarehouseServiceException wex; // required
34948
 
34949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34951
      WEX((short)1, "wex");
34952
 
34953
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34954
 
34955
      static {
34956
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34957
          byName.put(field.getFieldName(), field);
34958
        }
34959
      }
34960
 
34961
      /**
34962
       * Find the _Fields constant that matches fieldId, or null if its not found.
34963
       */
34964
      public static _Fields findByThriftId(int fieldId) {
34965
        switch(fieldId) {
34966
          case 1: // WEX
34967
            return WEX;
34968
          default:
34969
            return null;
34970
        }
34971
      }
34972
 
34973
      /**
34974
       * Find the _Fields constant that matches fieldId, throwing an exception
34975
       * if it is not found.
34976
       */
34977
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34978
        _Fields fields = findByThriftId(fieldId);
34979
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34980
        return fields;
34981
      }
34982
 
34983
      /**
34984
       * Find the _Fields constant that matches name, or null if its not found.
34985
       */
34986
      public static _Fields findByName(String name) {
34987
        return byName.get(name);
34988
      }
34989
 
34990
      private final short _thriftId;
34991
      private final String _fieldName;
34992
 
34993
      _Fields(short thriftId, String fieldName) {
34994
        _thriftId = thriftId;
34995
        _fieldName = fieldName;
34996
      }
34997
 
34998
      public short getThriftFieldId() {
34999
        return _thriftId;
35000
      }
35001
 
35002
      public String getFieldName() {
35003
        return _fieldName;
35004
      }
35005
    }
35006
 
35007
    // isset id assignments
35008
 
35009
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35010
    static {
35011
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35012
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35013
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35014
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35015
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursThirdPartyReceive_result.class, metaDataMap);
35016
    }
35017
 
35018
    public scanForOursThirdPartyReceive_result() {
35019
    }
35020
 
35021
    public scanForOursThirdPartyReceive_result(
35022
      WarehouseServiceException wex)
35023
    {
35024
      this();
35025
      this.wex = wex;
35026
    }
35027
 
35028
    /**
35029
     * Performs a deep copy on <i>other</i>.
35030
     */
35031
    public scanForOursThirdPartyReceive_result(scanForOursThirdPartyReceive_result other) {
35032
      if (other.isSetWex()) {
35033
        this.wex = new WarehouseServiceException(other.wex);
35034
      }
35035
    }
35036
 
35037
    public scanForOursThirdPartyReceive_result deepCopy() {
35038
      return new scanForOursThirdPartyReceive_result(this);
35039
    }
35040
 
35041
    @Override
35042
    public void clear() {
35043
      this.wex = null;
35044
    }
35045
 
35046
    public WarehouseServiceException getWex() {
35047
      return this.wex;
35048
    }
35049
 
35050
    public void setWex(WarehouseServiceException wex) {
35051
      this.wex = wex;
35052
    }
35053
 
35054
    public void unsetWex() {
35055
      this.wex = null;
35056
    }
35057
 
35058
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
35059
    public boolean isSetWex() {
35060
      return this.wex != null;
35061
    }
35062
 
35063
    public void setWexIsSet(boolean value) {
35064
      if (!value) {
35065
        this.wex = null;
35066
      }
35067
    }
35068
 
35069
    public void setFieldValue(_Fields field, Object value) {
35070
      switch (field) {
35071
      case WEX:
35072
        if (value == null) {
35073
          unsetWex();
35074
        } else {
35075
          setWex((WarehouseServiceException)value);
35076
        }
35077
        break;
35078
 
35079
      }
35080
    }
35081
 
35082
    public Object getFieldValue(_Fields field) {
35083
      switch (field) {
35084
      case WEX:
35085
        return getWex();
35086
 
35087
      }
35088
      throw new IllegalStateException();
35089
    }
35090
 
35091
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35092
    public boolean isSet(_Fields field) {
35093
      if (field == null) {
35094
        throw new IllegalArgumentException();
35095
      }
35096
 
35097
      switch (field) {
35098
      case WEX:
35099
        return isSetWex();
35100
      }
35101
      throw new IllegalStateException();
35102
    }
35103
 
35104
    @Override
35105
    public boolean equals(Object that) {
35106
      if (that == null)
35107
        return false;
35108
      if (that instanceof scanForOursThirdPartyReceive_result)
35109
        return this.equals((scanForOursThirdPartyReceive_result)that);
35110
      return false;
35111
    }
35112
 
35113
    public boolean equals(scanForOursThirdPartyReceive_result that) {
35114
      if (that == null)
35115
        return false;
35116
 
35117
      boolean this_present_wex = true && this.isSetWex();
35118
      boolean that_present_wex = true && that.isSetWex();
35119
      if (this_present_wex || that_present_wex) {
35120
        if (!(this_present_wex && that_present_wex))
35121
          return false;
35122
        if (!this.wex.equals(that.wex))
35123
          return false;
35124
      }
35125
 
35126
      return true;
35127
    }
35128
 
35129
    @Override
35130
    public int hashCode() {
35131
      return 0;
35132
    }
35133
 
35134
    public int compareTo(scanForOursThirdPartyReceive_result other) {
35135
      if (!getClass().equals(other.getClass())) {
35136
        return getClass().getName().compareTo(other.getClass().getName());
35137
      }
35138
 
35139
      int lastComparison = 0;
35140
      scanForOursThirdPartyReceive_result typedOther = (scanForOursThirdPartyReceive_result)other;
35141
 
35142
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
35143
      if (lastComparison != 0) {
35144
        return lastComparison;
35145
      }
35146
      if (isSetWex()) {
35147
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
35148
        if (lastComparison != 0) {
35149
          return lastComparison;
35150
        }
35151
      }
35152
      return 0;
35153
    }
35154
 
35155
    public _Fields fieldForId(int fieldId) {
35156
      return _Fields.findByThriftId(fieldId);
35157
    }
35158
 
35159
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35160
      org.apache.thrift.protocol.TField field;
35161
      iprot.readStructBegin();
35162
      while (true)
35163
      {
35164
        field = iprot.readFieldBegin();
35165
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35166
          break;
35167
        }
35168
        switch (field.id) {
35169
          case 1: // WEX
35170
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35171
              this.wex = new WarehouseServiceException();
35172
              this.wex.read(iprot);
35173
            } else { 
35174
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35175
            }
35176
            break;
35177
          default:
35178
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35179
        }
35180
        iprot.readFieldEnd();
35181
      }
35182
      iprot.readStructEnd();
35183
      validate();
35184
    }
35185
 
35186
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35187
      oprot.writeStructBegin(STRUCT_DESC);
35188
 
35189
      if (this.isSetWex()) {
35190
        oprot.writeFieldBegin(WEX_FIELD_DESC);
35191
        this.wex.write(oprot);
35192
        oprot.writeFieldEnd();
35193
      }
35194
      oprot.writeFieldStop();
35195
      oprot.writeStructEnd();
35196
    }
35197
 
35198
    @Override
35199
    public String toString() {
35200
      StringBuilder sb = new StringBuilder("scanForOursThirdPartyReceive_result(");
35201
      boolean first = true;
35202
 
35203
      sb.append("wex:");
35204
      if (this.wex == null) {
35205
        sb.append("null");
35206
      } else {
35207
        sb.append(this.wex);
35208
      }
35209
      first = false;
35210
      sb.append(")");
35211
      return sb.toString();
35212
    }
35213
 
35214
    public void validate() throws org.apache.thrift.TException {
35215
      // check for required fields
35216
    }
35217
 
35218
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35219
      try {
35220
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35221
      } catch (org.apache.thrift.TException te) {
35222
        throw new java.io.IOException(te);
35223
      }
35224
    }
35225
 
35226
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35227
      try {
35228
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35229
      } catch (org.apache.thrift.TException te) {
35230
        throw new java.io.IOException(te);
35231
      }
35232
    }
35233
 
35234
  }
35235
 
7574 amar.kumar 35236
  public static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args implements org.apache.thrift.TBase<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
35237
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args");
35238
 
35239
    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);
35240
    private static final org.apache.thrift.protocol.TField PHYSICAL_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("physicalWarehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
35241
 
35242
    private long itemId; // required
35243
    private long physicalWarehouseId; // required
35244
 
35245
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35246
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35247
      ITEM_ID((short)1, "itemId"),
35248
      PHYSICAL_WAREHOUSE_ID((short)2, "physicalWarehouseId");
35249
 
35250
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35251
 
35252
      static {
35253
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35254
          byName.put(field.getFieldName(), field);
35255
        }
35256
      }
35257
 
35258
      /**
35259
       * Find the _Fields constant that matches fieldId, or null if its not found.
35260
       */
35261
      public static _Fields findByThriftId(int fieldId) {
35262
        switch(fieldId) {
35263
          case 1: // ITEM_ID
35264
            return ITEM_ID;
35265
          case 2: // PHYSICAL_WAREHOUSE_ID
35266
            return PHYSICAL_WAREHOUSE_ID;
35267
          default:
35268
            return null;
35269
        }
35270
      }
35271
 
35272
      /**
35273
       * Find the _Fields constant that matches fieldId, throwing an exception
35274
       * if it is not found.
35275
       */
35276
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35277
        _Fields fields = findByThriftId(fieldId);
35278
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35279
        return fields;
35280
      }
35281
 
35282
      /**
35283
       * Find the _Fields constant that matches name, or null if its not found.
35284
       */
35285
      public static _Fields findByName(String name) {
35286
        return byName.get(name);
35287
      }
35288
 
35289
      private final short _thriftId;
35290
      private final String _fieldName;
35291
 
35292
      _Fields(short thriftId, String fieldName) {
35293
        _thriftId = thriftId;
35294
        _fieldName = fieldName;
35295
      }
35296
 
35297
      public short getThriftFieldId() {
35298
        return _thriftId;
35299
      }
35300
 
35301
      public String getFieldName() {
35302
        return _fieldName;
35303
      }
35304
    }
35305
 
35306
    // isset id assignments
35307
    private static final int __ITEMID_ISSET_ID = 0;
35308
    private static final int __PHYSICALWAREHOUSEID_ISSET_ID = 1;
35309
    private BitSet __isset_bit_vector = new BitSet(2);
35310
 
35311
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35312
    static {
35313
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35314
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35315
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35316
      tmpMap.put(_Fields.PHYSICAL_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("physicalWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35317
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35318
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35319
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args.class, metaDataMap);
35320
    }
35321
 
35322
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args() {
35323
    }
35324
 
35325
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(
35326
      long itemId,
35327
      long physicalWarehouseId)
35328
    {
35329
      this();
35330
      this.itemId = itemId;
35331
      setItemIdIsSet(true);
35332
      this.physicalWarehouseId = physicalWarehouseId;
35333
      setPhysicalWarehouseIdIsSet(true);
35334
    }
35335
 
35336
    /**
35337
     * Performs a deep copy on <i>other</i>.
35338
     */
35339
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args other) {
35340
      __isset_bit_vector.clear();
35341
      __isset_bit_vector.or(other.__isset_bit_vector);
35342
      this.itemId = other.itemId;
35343
      this.physicalWarehouseId = other.physicalWarehouseId;
35344
    }
35345
 
35346
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args deepCopy() {
35347
      return new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(this);
35348
    }
35349
 
35350
    @Override
35351
    public void clear() {
35352
      setItemIdIsSet(false);
35353
      this.itemId = 0;
35354
      setPhysicalWarehouseIdIsSet(false);
35355
      this.physicalWarehouseId = 0;
35356
    }
35357
 
35358
    public long getItemId() {
35359
      return this.itemId;
35360
    }
35361
 
35362
    public void setItemId(long itemId) {
35363
      this.itemId = itemId;
35364
      setItemIdIsSet(true);
35365
    }
35366
 
35367
    public void unsetItemId() {
35368
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
35369
    }
35370
 
35371
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
35372
    public boolean isSetItemId() {
35373
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
35374
    }
35375
 
35376
    public void setItemIdIsSet(boolean value) {
35377
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
35378
    }
35379
 
35380
    public long getPhysicalWarehouseId() {
35381
      return this.physicalWarehouseId;
35382
    }
35383
 
35384
    public void setPhysicalWarehouseId(long physicalWarehouseId) {
35385
      this.physicalWarehouseId = physicalWarehouseId;
35386
      setPhysicalWarehouseIdIsSet(true);
35387
    }
35388
 
35389
    public void unsetPhysicalWarehouseId() {
35390
      __isset_bit_vector.clear(__PHYSICALWAREHOUSEID_ISSET_ID);
35391
    }
35392
 
35393
    /** Returns true if field physicalWarehouseId is set (has been assigned a value) and false otherwise */
35394
    public boolean isSetPhysicalWarehouseId() {
35395
      return __isset_bit_vector.get(__PHYSICALWAREHOUSEID_ISSET_ID);
35396
    }
35397
 
35398
    public void setPhysicalWarehouseIdIsSet(boolean value) {
35399
      __isset_bit_vector.set(__PHYSICALWAREHOUSEID_ISSET_ID, value);
35400
    }
35401
 
35402
    public void setFieldValue(_Fields field, Object value) {
35403
      switch (field) {
35404
      case ITEM_ID:
35405
        if (value == null) {
35406
          unsetItemId();
35407
        } else {
35408
          setItemId((Long)value);
35409
        }
35410
        break;
35411
 
35412
      case PHYSICAL_WAREHOUSE_ID:
35413
        if (value == null) {
35414
          unsetPhysicalWarehouseId();
35415
        } else {
35416
          setPhysicalWarehouseId((Long)value);
35417
        }
35418
        break;
35419
 
35420
      }
35421
    }
35422
 
35423
    public Object getFieldValue(_Fields field) {
35424
      switch (field) {
35425
      case ITEM_ID:
35426
        return Long.valueOf(getItemId());
35427
 
35428
      case PHYSICAL_WAREHOUSE_ID:
35429
        return Long.valueOf(getPhysicalWarehouseId());
35430
 
35431
      }
35432
      throw new IllegalStateException();
35433
    }
35434
 
35435
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35436
    public boolean isSet(_Fields field) {
35437
      if (field == null) {
35438
        throw new IllegalArgumentException();
35439
      }
35440
 
35441
      switch (field) {
35442
      case ITEM_ID:
35443
        return isSetItemId();
35444
      case PHYSICAL_WAREHOUSE_ID:
35445
        return isSetPhysicalWarehouseId();
35446
      }
35447
      throw new IllegalStateException();
35448
    }
35449
 
35450
    @Override
35451
    public boolean equals(Object that) {
35452
      if (that == null)
35453
        return false;
35454
      if (that instanceof getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args)
35455
        return this.equals((getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args)that);
35456
      return false;
35457
    }
35458
 
35459
    public boolean equals(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args that) {
35460
      if (that == null)
35461
        return false;
35462
 
35463
      boolean this_present_itemId = true;
35464
      boolean that_present_itemId = true;
35465
      if (this_present_itemId || that_present_itemId) {
35466
        if (!(this_present_itemId && that_present_itemId))
35467
          return false;
35468
        if (this.itemId != that.itemId)
35469
          return false;
35470
      }
35471
 
35472
      boolean this_present_physicalWarehouseId = true;
35473
      boolean that_present_physicalWarehouseId = true;
35474
      if (this_present_physicalWarehouseId || that_present_physicalWarehouseId) {
35475
        if (!(this_present_physicalWarehouseId && that_present_physicalWarehouseId))
35476
          return false;
35477
        if (this.physicalWarehouseId != that.physicalWarehouseId)
35478
          return false;
35479
      }
35480
 
35481
      return true;
35482
    }
35483
 
35484
    @Override
35485
    public int hashCode() {
35486
      return 0;
35487
    }
35488
 
35489
    public int compareTo(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args other) {
35490
      if (!getClass().equals(other.getClass())) {
35491
        return getClass().getName().compareTo(other.getClass().getName());
35492
      }
35493
 
35494
      int lastComparison = 0;
35495
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args typedOther = (getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args)other;
35496
 
35497
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
35498
      if (lastComparison != 0) {
35499
        return lastComparison;
35500
      }
35501
      if (isSetItemId()) {
35502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
35503
        if (lastComparison != 0) {
35504
          return lastComparison;
35505
        }
35506
      }
35507
      lastComparison = Boolean.valueOf(isSetPhysicalWarehouseId()).compareTo(typedOther.isSetPhysicalWarehouseId());
35508
      if (lastComparison != 0) {
35509
        return lastComparison;
35510
      }
35511
      if (isSetPhysicalWarehouseId()) {
35512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.physicalWarehouseId, typedOther.physicalWarehouseId);
35513
        if (lastComparison != 0) {
35514
          return lastComparison;
35515
        }
35516
      }
35517
      return 0;
35518
    }
35519
 
35520
    public _Fields fieldForId(int fieldId) {
35521
      return _Fields.findByThriftId(fieldId);
35522
    }
35523
 
35524
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35525
      org.apache.thrift.protocol.TField field;
35526
      iprot.readStructBegin();
35527
      while (true)
35528
      {
35529
        field = iprot.readFieldBegin();
35530
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35531
          break;
35532
        }
35533
        switch (field.id) {
35534
          case 1: // ITEM_ID
35535
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35536
              this.itemId = iprot.readI64();
35537
              setItemIdIsSet(true);
35538
            } else { 
35539
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35540
            }
35541
            break;
35542
          case 2: // PHYSICAL_WAREHOUSE_ID
35543
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35544
              this.physicalWarehouseId = iprot.readI64();
35545
              setPhysicalWarehouseIdIsSet(true);
35546
            } else { 
35547
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35548
            }
35549
            break;
35550
          default:
35551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35552
        }
35553
        iprot.readFieldEnd();
35554
      }
35555
      iprot.readStructEnd();
35556
      validate();
35557
    }
35558
 
35559
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35560
      validate();
35561
 
35562
      oprot.writeStructBegin(STRUCT_DESC);
35563
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
35564
      oprot.writeI64(this.itemId);
35565
      oprot.writeFieldEnd();
35566
      oprot.writeFieldBegin(PHYSICAL_WAREHOUSE_ID_FIELD_DESC);
35567
      oprot.writeI64(this.physicalWarehouseId);
35568
      oprot.writeFieldEnd();
35569
      oprot.writeFieldStop();
35570
      oprot.writeStructEnd();
35571
    }
35572
 
35573
    @Override
35574
    public String toString() {
35575
      StringBuilder sb = new StringBuilder("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(");
35576
      boolean first = true;
35577
 
35578
      sb.append("itemId:");
35579
      sb.append(this.itemId);
35580
      first = false;
35581
      if (!first) sb.append(", ");
35582
      sb.append("physicalWarehouseId:");
35583
      sb.append(this.physicalWarehouseId);
35584
      first = false;
35585
      sb.append(")");
35586
      return sb.toString();
35587
    }
35588
 
35589
    public void validate() throws org.apache.thrift.TException {
35590
      // check for required fields
35591
    }
35592
 
35593
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35594
      try {
35595
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35596
      } catch (org.apache.thrift.TException te) {
35597
        throw new java.io.IOException(te);
35598
      }
35599
    }
35600
 
35601
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35602
      try {
35603
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35604
        __isset_bit_vector = new BitSet(1);
35605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35606
      } catch (org.apache.thrift.TException te) {
35607
        throw new java.io.IOException(te);
35608
      }
35609
    }
35610
 
35611
  }
35612
 
35613
  public static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result implements org.apache.thrift.TBase<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
35614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result");
35615
 
35616
    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);
35617
    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);
35618
 
35619
    private long success; // required
35620
    private WarehouseServiceException wex; // required
35621
 
35622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35624
      SUCCESS((short)0, "success"),
35625
      WEX((short)1, "wex");
35626
 
35627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35628
 
35629
      static {
35630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35631
          byName.put(field.getFieldName(), field);
35632
        }
35633
      }
35634
 
35635
      /**
35636
       * Find the _Fields constant that matches fieldId, or null if its not found.
35637
       */
35638
      public static _Fields findByThriftId(int fieldId) {
35639
        switch(fieldId) {
35640
          case 0: // SUCCESS
35641
            return SUCCESS;
35642
          case 1: // WEX
35643
            return WEX;
35644
          default:
35645
            return null;
35646
        }
35647
      }
35648
 
35649
      /**
35650
       * Find the _Fields constant that matches fieldId, throwing an exception
35651
       * if it is not found.
35652
       */
35653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35654
        _Fields fields = findByThriftId(fieldId);
35655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35656
        return fields;
35657
      }
35658
 
35659
      /**
35660
       * Find the _Fields constant that matches name, or null if its not found.
35661
       */
35662
      public static _Fields findByName(String name) {
35663
        return byName.get(name);
35664
      }
35665
 
35666
      private final short _thriftId;
35667
      private final String _fieldName;
35668
 
35669
      _Fields(short thriftId, String fieldName) {
35670
        _thriftId = thriftId;
35671
        _fieldName = fieldName;
35672
      }
35673
 
35674
      public short getThriftFieldId() {
35675
        return _thriftId;
35676
      }
35677
 
35678
      public String getFieldName() {
35679
        return _fieldName;
35680
      }
35681
    }
35682
 
35683
    // isset id assignments
35684
    private static final int __SUCCESS_ISSET_ID = 0;
35685
    private BitSet __isset_bit_vector = new BitSet(1);
35686
 
35687
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35688
    static {
35689
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35690
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35691
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35692
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35694
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35695
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result.class, metaDataMap);
35696
    }
35697
 
35698
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result() {
35699
    }
35700
 
35701
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(
35702
      long success,
35703
      WarehouseServiceException wex)
35704
    {
35705
      this();
35706
      this.success = success;
35707
      setSuccessIsSet(true);
35708
      this.wex = wex;
35709
    }
35710
 
35711
    /**
35712
     * Performs a deep copy on <i>other</i>.
35713
     */
35714
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result other) {
35715
      __isset_bit_vector.clear();
35716
      __isset_bit_vector.or(other.__isset_bit_vector);
35717
      this.success = other.success;
35718
      if (other.isSetWex()) {
35719
        this.wex = new WarehouseServiceException(other.wex);
35720
      }
35721
    }
35722
 
35723
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result deepCopy() {
35724
      return new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(this);
35725
    }
35726
 
35727
    @Override
35728
    public void clear() {
35729
      setSuccessIsSet(false);
35730
      this.success = 0;
35731
      this.wex = null;
35732
    }
35733
 
35734
    public long getSuccess() {
35735
      return this.success;
35736
    }
35737
 
35738
    public void setSuccess(long success) {
35739
      this.success = success;
35740
      setSuccessIsSet(true);
35741
    }
35742
 
35743
    public void unsetSuccess() {
35744
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35745
    }
35746
 
35747
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35748
    public boolean isSetSuccess() {
35749
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35750
    }
35751
 
35752
    public void setSuccessIsSet(boolean value) {
35753
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35754
    }
35755
 
35756
    public WarehouseServiceException getWex() {
35757
      return this.wex;
35758
    }
35759
 
35760
    public void setWex(WarehouseServiceException wex) {
35761
      this.wex = wex;
35762
    }
35763
 
35764
    public void unsetWex() {
35765
      this.wex = null;
35766
    }
35767
 
35768
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
35769
    public boolean isSetWex() {
35770
      return this.wex != null;
35771
    }
35772
 
35773
    public void setWexIsSet(boolean value) {
35774
      if (!value) {
35775
        this.wex = null;
35776
      }
35777
    }
35778
 
35779
    public void setFieldValue(_Fields field, Object value) {
35780
      switch (field) {
35781
      case SUCCESS:
35782
        if (value == null) {
35783
          unsetSuccess();
35784
        } else {
35785
          setSuccess((Long)value);
35786
        }
35787
        break;
35788
 
35789
      case WEX:
35790
        if (value == null) {
35791
          unsetWex();
35792
        } else {
35793
          setWex((WarehouseServiceException)value);
35794
        }
35795
        break;
35796
 
35797
      }
35798
    }
35799
 
35800
    public Object getFieldValue(_Fields field) {
35801
      switch (field) {
35802
      case SUCCESS:
35803
        return Long.valueOf(getSuccess());
35804
 
35805
      case WEX:
35806
        return getWex();
35807
 
35808
      }
35809
      throw new IllegalStateException();
35810
    }
35811
 
35812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35813
    public boolean isSet(_Fields field) {
35814
      if (field == null) {
35815
        throw new IllegalArgumentException();
35816
      }
35817
 
35818
      switch (field) {
35819
      case SUCCESS:
35820
        return isSetSuccess();
35821
      case WEX:
35822
        return isSetWex();
35823
      }
35824
      throw new IllegalStateException();
35825
    }
35826
 
35827
    @Override
35828
    public boolean equals(Object that) {
35829
      if (that == null)
35830
        return false;
35831
      if (that instanceof getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result)
35832
        return this.equals((getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result)that);
35833
      return false;
35834
    }
35835
 
35836
    public boolean equals(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result that) {
35837
      if (that == null)
35838
        return false;
35839
 
35840
      boolean this_present_success = true;
35841
      boolean that_present_success = true;
35842
      if (this_present_success || that_present_success) {
35843
        if (!(this_present_success && that_present_success))
35844
          return false;
35845
        if (this.success != that.success)
35846
          return false;
35847
      }
35848
 
35849
      boolean this_present_wex = true && this.isSetWex();
35850
      boolean that_present_wex = true && that.isSetWex();
35851
      if (this_present_wex || that_present_wex) {
35852
        if (!(this_present_wex && that_present_wex))
35853
          return false;
35854
        if (!this.wex.equals(that.wex))
35855
          return false;
35856
      }
35857
 
35858
      return true;
35859
    }
35860
 
35861
    @Override
35862
    public int hashCode() {
35863
      return 0;
35864
    }
35865
 
35866
    public int compareTo(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result other) {
35867
      if (!getClass().equals(other.getClass())) {
35868
        return getClass().getName().compareTo(other.getClass().getName());
35869
      }
35870
 
35871
      int lastComparison = 0;
35872
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result typedOther = (getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result)other;
35873
 
35874
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35875
      if (lastComparison != 0) {
35876
        return lastComparison;
35877
      }
35878
      if (isSetSuccess()) {
35879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35880
        if (lastComparison != 0) {
35881
          return lastComparison;
35882
        }
35883
      }
35884
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
35885
      if (lastComparison != 0) {
35886
        return lastComparison;
35887
      }
35888
      if (isSetWex()) {
35889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
35890
        if (lastComparison != 0) {
35891
          return lastComparison;
35892
        }
35893
      }
35894
      return 0;
35895
    }
35896
 
35897
    public _Fields fieldForId(int fieldId) {
35898
      return _Fields.findByThriftId(fieldId);
35899
    }
35900
 
35901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35902
      org.apache.thrift.protocol.TField field;
35903
      iprot.readStructBegin();
35904
      while (true)
35905
      {
35906
        field = iprot.readFieldBegin();
35907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35908
          break;
35909
        }
35910
        switch (field.id) {
35911
          case 0: // SUCCESS
35912
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35913
              this.success = iprot.readI64();
35914
              setSuccessIsSet(true);
35915
            } else { 
35916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35917
            }
35918
            break;
35919
          case 1: // WEX
35920
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35921
              this.wex = new WarehouseServiceException();
35922
              this.wex.read(iprot);
35923
            } else { 
35924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35925
            }
35926
            break;
35927
          default:
35928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35929
        }
35930
        iprot.readFieldEnd();
35931
      }
35932
      iprot.readStructEnd();
35933
      validate();
35934
    }
35935
 
35936
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35937
      oprot.writeStructBegin(STRUCT_DESC);
35938
 
35939
      if (this.isSetSuccess()) {
35940
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35941
        oprot.writeI64(this.success);
35942
        oprot.writeFieldEnd();
35943
      } else if (this.isSetWex()) {
35944
        oprot.writeFieldBegin(WEX_FIELD_DESC);
35945
        this.wex.write(oprot);
35946
        oprot.writeFieldEnd();
35947
      }
35948
      oprot.writeFieldStop();
35949
      oprot.writeStructEnd();
35950
    }
35951
 
35952
    @Override
35953
    public String toString() {
35954
      StringBuilder sb = new StringBuilder("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(");
35955
      boolean first = true;
35956
 
35957
      sb.append("success:");
35958
      sb.append(this.success);
35959
      first = false;
35960
      if (!first) sb.append(", ");
35961
      sb.append("wex:");
35962
      if (this.wex == null) {
35963
        sb.append("null");
35964
      } else {
35965
        sb.append(this.wex);
35966
      }
35967
      first = false;
35968
      sb.append(")");
35969
      return sb.toString();
35970
    }
35971
 
35972
    public void validate() throws org.apache.thrift.TException {
35973
      // check for required fields
35974
    }
35975
 
35976
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35977
      try {
35978
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35979
      } catch (org.apache.thrift.TException te) {
35980
        throw new java.io.IOException(te);
35981
      }
35982
    }
35983
 
35984
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35985
      try {
35986
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35987
      } catch (org.apache.thrift.TException te) {
35988
        throw new java.io.IOException(te);
35989
      }
35990
    }
35991
 
35992
  }
35993
 
7613 amar.kumar 35994
  public static class getInTransitInventory_args implements org.apache.thrift.TBase<getInTransitInventory_args, getInTransitInventory_args._Fields>, java.io.Serializable, Cloneable   {
35995
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInTransitInventory_args");
35996
 
35997
    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);
35998
 
35999
    private long originWarehouseId; // required
36000
 
36001
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36002
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36003
      ORIGIN_WAREHOUSE_ID((short)1, "originWarehouseId");
36004
 
36005
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36006
 
36007
      static {
36008
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36009
          byName.put(field.getFieldName(), field);
36010
        }
36011
      }
36012
 
36013
      /**
36014
       * Find the _Fields constant that matches fieldId, or null if its not found.
36015
       */
36016
      public static _Fields findByThriftId(int fieldId) {
36017
        switch(fieldId) {
36018
          case 1: // ORIGIN_WAREHOUSE_ID
36019
            return ORIGIN_WAREHOUSE_ID;
36020
          default:
36021
            return null;
36022
        }
36023
      }
36024
 
36025
      /**
36026
       * Find the _Fields constant that matches fieldId, throwing an exception
36027
       * if it is not found.
36028
       */
36029
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36030
        _Fields fields = findByThriftId(fieldId);
36031
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36032
        return fields;
36033
      }
36034
 
36035
      /**
36036
       * Find the _Fields constant that matches name, or null if its not found.
36037
       */
36038
      public static _Fields findByName(String name) {
36039
        return byName.get(name);
36040
      }
36041
 
36042
      private final short _thriftId;
36043
      private final String _fieldName;
36044
 
36045
      _Fields(short thriftId, String fieldName) {
36046
        _thriftId = thriftId;
36047
        _fieldName = fieldName;
36048
      }
36049
 
36050
      public short getThriftFieldId() {
36051
        return _thriftId;
36052
      }
36053
 
36054
      public String getFieldName() {
36055
        return _fieldName;
36056
      }
36057
    }
36058
 
36059
    // isset id assignments
36060
    private static final int __ORIGINWAREHOUSEID_ISSET_ID = 0;
36061
    private BitSet __isset_bit_vector = new BitSet(1);
36062
 
36063
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36064
    static {
36065
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36066
      tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36067
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36068
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36069
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInTransitInventory_args.class, metaDataMap);
36070
    }
36071
 
36072
    public getInTransitInventory_args() {
36073
    }
36074
 
36075
    public getInTransitInventory_args(
36076
      long originWarehouseId)
36077
    {
36078
      this();
36079
      this.originWarehouseId = originWarehouseId;
36080
      setOriginWarehouseIdIsSet(true);
36081
    }
36082
 
36083
    /**
36084
     * Performs a deep copy on <i>other</i>.
36085
     */
36086
    public getInTransitInventory_args(getInTransitInventory_args other) {
36087
      __isset_bit_vector.clear();
36088
      __isset_bit_vector.or(other.__isset_bit_vector);
36089
      this.originWarehouseId = other.originWarehouseId;
36090
    }
36091
 
36092
    public getInTransitInventory_args deepCopy() {
36093
      return new getInTransitInventory_args(this);
36094
    }
36095
 
36096
    @Override
36097
    public void clear() {
36098
      setOriginWarehouseIdIsSet(false);
36099
      this.originWarehouseId = 0;
36100
    }
36101
 
36102
    public long getOriginWarehouseId() {
36103
      return this.originWarehouseId;
36104
    }
36105
 
36106
    public void setOriginWarehouseId(long originWarehouseId) {
36107
      this.originWarehouseId = originWarehouseId;
36108
      setOriginWarehouseIdIsSet(true);
36109
    }
36110
 
36111
    public void unsetOriginWarehouseId() {
36112
      __isset_bit_vector.clear(__ORIGINWAREHOUSEID_ISSET_ID);
36113
    }
36114
 
36115
    /** Returns true if field originWarehouseId is set (has been assigned a value) and false otherwise */
36116
    public boolean isSetOriginWarehouseId() {
36117
      return __isset_bit_vector.get(__ORIGINWAREHOUSEID_ISSET_ID);
36118
    }
36119
 
36120
    public void setOriginWarehouseIdIsSet(boolean value) {
36121
      __isset_bit_vector.set(__ORIGINWAREHOUSEID_ISSET_ID, value);
36122
    }
36123
 
36124
    public void setFieldValue(_Fields field, Object value) {
36125
      switch (field) {
36126
      case ORIGIN_WAREHOUSE_ID:
36127
        if (value == null) {
36128
          unsetOriginWarehouseId();
36129
        } else {
36130
          setOriginWarehouseId((Long)value);
36131
        }
36132
        break;
36133
 
36134
      }
36135
    }
36136
 
36137
    public Object getFieldValue(_Fields field) {
36138
      switch (field) {
36139
      case ORIGIN_WAREHOUSE_ID:
36140
        return Long.valueOf(getOriginWarehouseId());
36141
 
36142
      }
36143
      throw new IllegalStateException();
36144
    }
36145
 
36146
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36147
    public boolean isSet(_Fields field) {
36148
      if (field == null) {
36149
        throw new IllegalArgumentException();
36150
      }
36151
 
36152
      switch (field) {
36153
      case ORIGIN_WAREHOUSE_ID:
36154
        return isSetOriginWarehouseId();
36155
      }
36156
      throw new IllegalStateException();
36157
    }
36158
 
36159
    @Override
36160
    public boolean equals(Object that) {
36161
      if (that == null)
36162
        return false;
36163
      if (that instanceof getInTransitInventory_args)
36164
        return this.equals((getInTransitInventory_args)that);
36165
      return false;
36166
    }
36167
 
36168
    public boolean equals(getInTransitInventory_args that) {
36169
      if (that == null)
36170
        return false;
36171
 
36172
      boolean this_present_originWarehouseId = true;
36173
      boolean that_present_originWarehouseId = true;
36174
      if (this_present_originWarehouseId || that_present_originWarehouseId) {
36175
        if (!(this_present_originWarehouseId && that_present_originWarehouseId))
36176
          return false;
36177
        if (this.originWarehouseId != that.originWarehouseId)
36178
          return false;
36179
      }
36180
 
36181
      return true;
36182
    }
36183
 
36184
    @Override
36185
    public int hashCode() {
36186
      return 0;
36187
    }
36188
 
36189
    public int compareTo(getInTransitInventory_args other) {
36190
      if (!getClass().equals(other.getClass())) {
36191
        return getClass().getName().compareTo(other.getClass().getName());
36192
      }
36193
 
36194
      int lastComparison = 0;
36195
      getInTransitInventory_args typedOther = (getInTransitInventory_args)other;
36196
 
36197
      lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
36198
      if (lastComparison != 0) {
36199
        return lastComparison;
36200
      }
36201
      if (isSetOriginWarehouseId()) {
36202
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originWarehouseId, typedOther.originWarehouseId);
36203
        if (lastComparison != 0) {
36204
          return lastComparison;
36205
        }
36206
      }
36207
      return 0;
36208
    }
36209
 
36210
    public _Fields fieldForId(int fieldId) {
36211
      return _Fields.findByThriftId(fieldId);
36212
    }
36213
 
36214
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36215
      org.apache.thrift.protocol.TField field;
36216
      iprot.readStructBegin();
36217
      while (true)
36218
      {
36219
        field = iprot.readFieldBegin();
36220
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36221
          break;
36222
        }
36223
        switch (field.id) {
36224
          case 1: // ORIGIN_WAREHOUSE_ID
36225
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36226
              this.originWarehouseId = iprot.readI64();
36227
              setOriginWarehouseIdIsSet(true);
36228
            } else { 
36229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36230
            }
36231
            break;
36232
          default:
36233
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36234
        }
36235
        iprot.readFieldEnd();
36236
      }
36237
      iprot.readStructEnd();
36238
      validate();
36239
    }
36240
 
36241
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36242
      validate();
36243
 
36244
      oprot.writeStructBegin(STRUCT_DESC);
36245
      oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
36246
      oprot.writeI64(this.originWarehouseId);
36247
      oprot.writeFieldEnd();
36248
      oprot.writeFieldStop();
36249
      oprot.writeStructEnd();
36250
    }
36251
 
36252
    @Override
36253
    public String toString() {
36254
      StringBuilder sb = new StringBuilder("getInTransitInventory_args(");
36255
      boolean first = true;
36256
 
36257
      sb.append("originWarehouseId:");
36258
      sb.append(this.originWarehouseId);
36259
      first = false;
36260
      sb.append(")");
36261
      return sb.toString();
36262
    }
36263
 
36264
    public void validate() throws org.apache.thrift.TException {
36265
      // check for required fields
36266
    }
36267
 
36268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36269
      try {
36270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36271
      } catch (org.apache.thrift.TException te) {
36272
        throw new java.io.IOException(te);
36273
      }
36274
    }
36275
 
36276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36277
      try {
36278
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36279
        __isset_bit_vector = new BitSet(1);
36280
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36281
      } catch (org.apache.thrift.TException te) {
36282
        throw new java.io.IOException(te);
36283
      }
36284
    }
36285
 
36286
  }
36287
 
36288
  public static class getInTransitInventory_result implements org.apache.thrift.TBase<getInTransitInventory_result, getInTransitInventory_result._Fields>, java.io.Serializable, Cloneable   {
36289
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInTransitInventory_result");
36290
 
36291
    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);
36292
 
36293
    private List<InTransitInventory> success; // required
36294
 
36295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36297
      SUCCESS((short)0, "success");
36298
 
36299
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36300
 
36301
      static {
36302
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36303
          byName.put(field.getFieldName(), field);
36304
        }
36305
      }
36306
 
36307
      /**
36308
       * Find the _Fields constant that matches fieldId, or null if its not found.
36309
       */
36310
      public static _Fields findByThriftId(int fieldId) {
36311
        switch(fieldId) {
36312
          case 0: // SUCCESS
36313
            return SUCCESS;
36314
          default:
36315
            return null;
36316
        }
36317
      }
36318
 
36319
      /**
36320
       * Find the _Fields constant that matches fieldId, throwing an exception
36321
       * if it is not found.
36322
       */
36323
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36324
        _Fields fields = findByThriftId(fieldId);
36325
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36326
        return fields;
36327
      }
36328
 
36329
      /**
36330
       * Find the _Fields constant that matches name, or null if its not found.
36331
       */
36332
      public static _Fields findByName(String name) {
36333
        return byName.get(name);
36334
      }
36335
 
36336
      private final short _thriftId;
36337
      private final String _fieldName;
36338
 
36339
      _Fields(short thriftId, String fieldName) {
36340
        _thriftId = thriftId;
36341
        _fieldName = fieldName;
36342
      }
36343
 
36344
      public short getThriftFieldId() {
36345
        return _thriftId;
36346
      }
36347
 
36348
      public String getFieldName() {
36349
        return _fieldName;
36350
      }
36351
    }
36352
 
36353
    // isset id assignments
36354
 
36355
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36356
    static {
36357
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36358
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36359
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
36360
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InTransitInventory.class))));
36361
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36362
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInTransitInventory_result.class, metaDataMap);
36363
    }
36364
 
36365
    public getInTransitInventory_result() {
36366
    }
36367
 
36368
    public getInTransitInventory_result(
36369
      List<InTransitInventory> success)
36370
    {
36371
      this();
36372
      this.success = success;
36373
    }
36374
 
36375
    /**
36376
     * Performs a deep copy on <i>other</i>.
36377
     */
36378
    public getInTransitInventory_result(getInTransitInventory_result other) {
36379
      if (other.isSetSuccess()) {
36380
        List<InTransitInventory> __this__success = new ArrayList<InTransitInventory>();
36381
        for (InTransitInventory other_element : other.success) {
36382
          __this__success.add(new InTransitInventory(other_element));
36383
        }
36384
        this.success = __this__success;
36385
      }
36386
    }
36387
 
36388
    public getInTransitInventory_result deepCopy() {
36389
      return new getInTransitInventory_result(this);
36390
    }
36391
 
36392
    @Override
36393
    public void clear() {
36394
      this.success = null;
36395
    }
36396
 
36397
    public int getSuccessSize() {
36398
      return (this.success == null) ? 0 : this.success.size();
36399
    }
36400
 
36401
    public java.util.Iterator<InTransitInventory> getSuccessIterator() {
36402
      return (this.success == null) ? null : this.success.iterator();
36403
    }
36404
 
36405
    public void addToSuccess(InTransitInventory elem) {
36406
      if (this.success == null) {
36407
        this.success = new ArrayList<InTransitInventory>();
36408
      }
36409
      this.success.add(elem);
36410
    }
36411
 
36412
    public List<InTransitInventory> getSuccess() {
36413
      return this.success;
36414
    }
36415
 
36416
    public void setSuccess(List<InTransitInventory> success) {
36417
      this.success = success;
36418
    }
36419
 
36420
    public void unsetSuccess() {
36421
      this.success = null;
36422
    }
36423
 
36424
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
36425
    public boolean isSetSuccess() {
36426
      return this.success != null;
36427
    }
36428
 
36429
    public void setSuccessIsSet(boolean value) {
36430
      if (!value) {
36431
        this.success = null;
36432
      }
36433
    }
36434
 
36435
    public void setFieldValue(_Fields field, Object value) {
36436
      switch (field) {
36437
      case SUCCESS:
36438
        if (value == null) {
36439
          unsetSuccess();
36440
        } else {
36441
          setSuccess((List<InTransitInventory>)value);
36442
        }
36443
        break;
36444
 
36445
      }
36446
    }
36447
 
36448
    public Object getFieldValue(_Fields field) {
36449
      switch (field) {
36450
      case SUCCESS:
36451
        return getSuccess();
36452
 
36453
      }
36454
      throw new IllegalStateException();
36455
    }
36456
 
36457
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36458
    public boolean isSet(_Fields field) {
36459
      if (field == null) {
36460
        throw new IllegalArgumentException();
36461
      }
36462
 
36463
      switch (field) {
36464
      case SUCCESS:
36465
        return isSetSuccess();
36466
      }
36467
      throw new IllegalStateException();
36468
    }
36469
 
36470
    @Override
36471
    public boolean equals(Object that) {
36472
      if (that == null)
36473
        return false;
36474
      if (that instanceof getInTransitInventory_result)
36475
        return this.equals((getInTransitInventory_result)that);
36476
      return false;
36477
    }
36478
 
36479
    public boolean equals(getInTransitInventory_result that) {
36480
      if (that == null)
36481
        return false;
36482
 
36483
      boolean this_present_success = true && this.isSetSuccess();
36484
      boolean that_present_success = true && that.isSetSuccess();
36485
      if (this_present_success || that_present_success) {
36486
        if (!(this_present_success && that_present_success))
36487
          return false;
36488
        if (!this.success.equals(that.success))
36489
          return false;
36490
      }
36491
 
36492
      return true;
36493
    }
36494
 
36495
    @Override
36496
    public int hashCode() {
36497
      return 0;
36498
    }
36499
 
36500
    public int compareTo(getInTransitInventory_result other) {
36501
      if (!getClass().equals(other.getClass())) {
36502
        return getClass().getName().compareTo(other.getClass().getName());
36503
      }
36504
 
36505
      int lastComparison = 0;
36506
      getInTransitInventory_result typedOther = (getInTransitInventory_result)other;
36507
 
36508
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
36509
      if (lastComparison != 0) {
36510
        return lastComparison;
36511
      }
36512
      if (isSetSuccess()) {
36513
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36514
        if (lastComparison != 0) {
36515
          return lastComparison;
36516
        }
36517
      }
36518
      return 0;
36519
    }
36520
 
36521
    public _Fields fieldForId(int fieldId) {
36522
      return _Fields.findByThriftId(fieldId);
36523
    }
36524
 
36525
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36526
      org.apache.thrift.protocol.TField field;
36527
      iprot.readStructBegin();
36528
      while (true)
36529
      {
36530
        field = iprot.readFieldBegin();
36531
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36532
          break;
36533
        }
36534
        switch (field.id) {
36535
          case 0: // SUCCESS
36536
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36537
              {
36538
                org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
36539
                this.success = new ArrayList<InTransitInventory>(_list101.size);
36540
                for (int _i102 = 0; _i102 < _list101.size; ++_i102)
36541
                {
36542
                  InTransitInventory _elem103; // required
36543
                  _elem103 = new InTransitInventory();
36544
                  _elem103.read(iprot);
36545
                  this.success.add(_elem103);
36546
                }
36547
                iprot.readListEnd();
36548
              }
36549
            } else { 
36550
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36551
            }
36552
            break;
36553
          default:
36554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36555
        }
36556
        iprot.readFieldEnd();
36557
      }
36558
      iprot.readStructEnd();
36559
      validate();
36560
    }
36561
 
36562
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36563
      oprot.writeStructBegin(STRUCT_DESC);
36564
 
36565
      if (this.isSetSuccess()) {
36566
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36567
        {
36568
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
36569
          for (InTransitInventory _iter104 : this.success)
36570
          {
36571
            _iter104.write(oprot);
36572
          }
36573
          oprot.writeListEnd();
36574
        }
36575
        oprot.writeFieldEnd();
36576
      }
36577
      oprot.writeFieldStop();
36578
      oprot.writeStructEnd();
36579
    }
36580
 
36581
    @Override
36582
    public String toString() {
36583
      StringBuilder sb = new StringBuilder("getInTransitInventory_result(");
36584
      boolean first = true;
36585
 
36586
      sb.append("success:");
36587
      if (this.success == null) {
36588
        sb.append("null");
36589
      } else {
36590
        sb.append(this.success);
36591
      }
36592
      first = false;
36593
      sb.append(")");
36594
      return sb.toString();
36595
    }
36596
 
36597
    public void validate() throws org.apache.thrift.TException {
36598
      // check for required fields
36599
    }
36600
 
36601
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36602
      try {
36603
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36604
      } catch (org.apache.thrift.TException te) {
36605
        throw new java.io.IOException(te);
36606
      }
36607
    }
36608
 
36609
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36610
      try {
36611
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36612
      } catch (org.apache.thrift.TException te) {
36613
        throw new java.io.IOException(te);
36614
      }
36615
    }
36616
 
36617
  }
36618
 
2820 chandransh 36619
}