Subversion Repositories SmartDukaan

Rev

Rev 7453 | Rev 7613 | 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
 
2820 chandransh 264
  }
265
 
3430 rajveer 266
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
267
 
4496 mandeep.dh 268
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 269
 
5530 mandeep.dh 270
    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 271
 
7410 amar.kumar 272
    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 273
 
5110 mandeep.dh 274
    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 275
 
5361 mandeep.dh 276
    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 277
 
278
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
279
 
4622 amit.gupta 280
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
281
 
5110 mandeep.dh 282
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
283
 
5185 mandeep.dh 284
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
285
 
286
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
287
 
5372 mandeep.dh 288
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
289
 
7210 amar.kumar 290
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException;
291
 
5496 mandeep.dh 292
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
293
 
5620 mandeep.dh 294
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
295
 
5711 mandeep.dh 296
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
297
 
6322 amar.kumar 298
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
299
 
7410 amar.kumar 300
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
6322 amar.kumar 301
 
6467 amar.kumar 302
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
303
 
6548 amar.kumar 304
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
305
 
306
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
307
 
6630 amar.kumar 308
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
309
 
6762 amar.kumar 310
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
311
 
312
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
313
 
314
    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;
315
 
316
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException;
317
 
6880 amar.kumar 318
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
319
 
320
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
321
 
7216 amar.kumar 322
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
323
 
324
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
325
 
7190 amar.kumar 326
    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;
327
 
7199 amar.kumar 328
    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;
329
 
7410 amar.kumar 330
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException;
331
 
332
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransferLot_call> resultHandler) throws org.apache.thrift.TException;
333
 
334
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLot_call> resultHandler) throws org.apache.thrift.TException;
335
 
336
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException;
337
 
338
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException;
339
 
340
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException;
341
 
342
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException;
343
 
344
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException;
345
 
346
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException;
347
 
7453 amar.kumar 348
    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 349
 
7453 amar.kumar 350
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException;
351
 
352
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException;
353
 
7574 amar.kumar 354
    public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException;
355
 
3430 rajveer 356
  }
357
 
3374 rajveer 358
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 359
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
360
      public Factory() {}
361
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
362
        return new Client(prot);
363
      }
364
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
365
        return new Client(iprot, oprot);
366
      }
367
    }
368
 
369
    public Client(org.apache.thrift.protocol.TProtocol prot)
2820 chandransh 370
    {
3430 rajveer 371
      super(prot, prot);
2820 chandransh 372
    }
373
 
3430 rajveer 374
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 375
      super(iprot, oprot);
2820 chandransh 376
    }
377
 
4541 mandeep.dh 378
    public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
2832 chandransh 379
    {
4496 mandeep.dh 380
      send_getInventoryItem(serialNumber);
381
      return recv_getInventoryItem();
2832 chandransh 382
    }
383
 
4496 mandeep.dh 384
    public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
2832 chandransh 385
    {
4496 mandeep.dh 386
      getInventoryItem_args args = new getInventoryItem_args();
387
      args.setSerialNumber(serialNumber);
388
      sendBase("getInventoryItem", args);
2832 chandransh 389
    }
390
 
4541 mandeep.dh 391
    public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
2832 chandransh 392
    {
4496 mandeep.dh 393
      getInventoryItem_result result = new getInventoryItem_result();
394
      receiveBase(result, "getInventoryItem");
2832 chandransh 395
      if (result.isSetSuccess()) {
396
        return result.success;
397
      }
4541 mandeep.dh 398
      if (result.wex != null) {
399
        throw result.wex;
400
      }
4496 mandeep.dh 401
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
402
    }
403
 
5530 mandeep.dh 404
    public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 405
    {
5530 mandeep.dh 406
      send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
5361 mandeep.dh 407
      return recv_getNonSeralizedInventoryItem();
4496 mandeep.dh 408
    }
409
 
5530 mandeep.dh 410
    public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
4496 mandeep.dh 411
    {
5361 mandeep.dh 412
      getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
5530 mandeep.dh 413
      args.setItemNumber(itemNumber);
4496 mandeep.dh 414
      args.setItemId(itemId);
5530 mandeep.dh 415
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 416
      sendBase("getNonSeralizedInventoryItem", args);
4496 mandeep.dh 417
    }
418
 
5361 mandeep.dh 419
    public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 420
    {
5361 mandeep.dh 421
      getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
422
      receiveBase(result, "getNonSeralizedInventoryItem");
4496 mandeep.dh 423
      if (result.isSetSuccess()) {
424
        return result.success;
2832 chandransh 425
      }
5361 mandeep.dh 426
      if (result.wex != null) {
427
        throw result.wex;
2820 chandransh 428
      }
5361 mandeep.dh 429
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
4496 mandeep.dh 430
    }
431
 
7410 amar.kumar 432
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
2820 chandransh 433
    {
7410 amar.kumar 434
      send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId);
4496 mandeep.dh 435
      recv_scan();
3383 chandransh 436
    }
437
 
7410 amar.kumar 438
    public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws org.apache.thrift.TException
3383 chandransh 439
    {
4496 mandeep.dh 440
      scan_args args = new scan_args();
5361 mandeep.dh 441
      args.setInventoryItem(inventoryItem);
4496 mandeep.dh 442
      args.setType(type);
443
      args.setQuantity(quantity);
5361 mandeep.dh 444
      args.setBillingWarehouseId(billingWarehouseId);
7410 amar.kumar 445
      args.setTransferLotId(transferLotId);
4496 mandeep.dh 446
      sendBase("scan", args);
3383 chandransh 447
    }
448
 
4496 mandeep.dh 449
    public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
3383 chandransh 450
    {
4496 mandeep.dh 451
      scan_result result = new scan_result();
452
      receiveBase(result, "scan");
453
      if (result.wex != null) {
454
        throw result.wex;
455
      }
456
      return;
457
    }
458
 
5110 mandeep.dh 459
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 460
    {
5110 mandeep.dh 461
      send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
4496 mandeep.dh 462
      return recv_scanSerializedItemForOrder();
463
    }
464
 
5110 mandeep.dh 465
    public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
4496 mandeep.dh 466
    {
467
      scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
4555 mandeep.dh 468
      args.setSerialNumber(serialNumber);
4496 mandeep.dh 469
      args.setType(type);
470
      args.setOrderId(orderId);
5110 mandeep.dh 471
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
472
      args.setQuantity(quantity);
473
      args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 474
      sendBase("scanSerializedItemForOrder", args);
475
    }
476
 
4555 mandeep.dh 477
    public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 478
    {
479
      scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
480
      receiveBase(result, "scanSerializedItemForOrder");
3383 chandransh 481
      if (result.isSetSuccess()) {
482
        return result.success;
483
      }
484
      if (result.wex != null) {
485
        throw result.wex;
486
      }
4496 mandeep.dh 487
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
3383 chandransh 488
    }
489
 
5361 mandeep.dh 490
    public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
3383 chandransh 491
    {
5361 mandeep.dh 492
      send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
493
      return recv_scanForOrder();
2820 chandransh 494
    }
495
 
5361 mandeep.dh 496
    public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
2820 chandransh 497
    {
4496 mandeep.dh 498
      scanForOrder_args args = new scanForOrder_args();
5361 mandeep.dh 499
      args.setInventoryItem(inventoryItem);
3430 rajveer 500
      args.setType(type);
4496 mandeep.dh 501
      args.setQuantity(quantity);
502
      args.setOrderId(orderId);
5110 mandeep.dh 503
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 504
      args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 505
      sendBase("scanForOrder", args);
2820 chandransh 506
    }
507
 
5361 mandeep.dh 508
    public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
2820 chandransh 509
    {
4496 mandeep.dh 510
      scanForOrder_result result = new scanForOrder_result();
511
      receiveBase(result, "scanForOrder");
5361 mandeep.dh 512
      if (result.isSetSuccess()) {
513
        return result.success;
514
      }
2820 chandransh 515
      if (result.wex != null) {
516
        throw result.wex;
517
      }
5361 mandeep.dh 518
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2820 chandransh 519
    }
520
 
4496 mandeep.dh 521
    public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
2820 chandransh 522
    {
4496 mandeep.dh 523
      send_createItemNumberMapping(itemNumber, itemId);
524
      recv_createItemNumberMapping();
2820 chandransh 525
    }
526
 
4496 mandeep.dh 527
    public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
2820 chandransh 528
    {
4496 mandeep.dh 529
      createItemNumberMapping_args args = new createItemNumberMapping_args();
3430 rajveer 530
      args.setItemNumber(itemNumber);
4496 mandeep.dh 531
      args.setItemId(itemId);
532
      sendBase("createItemNumberMapping", args);
2820 chandransh 533
    }
534
 
4496 mandeep.dh 535
    public void recv_createItemNumberMapping() throws org.apache.thrift.TException
2820 chandransh 536
    {
4496 mandeep.dh 537
      createItemNumberMapping_result result = new createItemNumberMapping_result();
538
      receiveBase(result, "createItemNumberMapping");
2820 chandransh 539
      return;
540
    }
541
 
4622 amit.gupta 542
    public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
543
    {
544
      send_getItemNumbers(itemId);
545
      return recv_getItemNumbers();
546
    }
547
 
548
    public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
549
    {
550
      getItemNumbers_args args = new getItemNumbers_args();
551
      args.setItemId(itemId);
552
      sendBase("getItemNumbers", args);
553
    }
554
 
555
    public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
556
    {
557
      getItemNumbers_result result = new getItemNumbers_result();
558
      receiveBase(result, "getItemNumbers");
559
      if (result.isSetSuccess()) {
560
        return result.success;
561
      }
562
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
563
    }
564
 
5110 mandeep.dh 565
    public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
566
    {
567
      send_getItemIds(itemNumber);
568
      return recv_getItemIds();
569
    }
570
 
571
    public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
572
    {
573
      getItemIds_args args = new getItemIds_args();
574
      args.setItemNumber(itemNumber);
575
      sendBase("getItemIds", args);
576
    }
577
 
578
    public List<Long> recv_getItemIds() throws org.apache.thrift.TException
579
    {
580
      getItemIds_result result = new getItemIds_result();
581
      receiveBase(result, "getItemIds");
582
      if (result.isSetSuccess()) {
583
        return result.success;
584
      }
585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
586
    }
587
 
5185 mandeep.dh 588
    public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
589
    {
590
      send_getInventoryItemsFromLastScanType(lastScanType);
591
      return recv_getInventoryItemsFromLastScanType();
592
    }
593
 
594
    public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
595
    {
596
      getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
597
      args.setLastScanType(lastScanType);
598
      sendBase("getInventoryItemsFromLastScanType", args);
599
    }
600
 
601
    public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
602
    {
603
      getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
604
      receiveBase(result, "getInventoryItemsFromLastScanType");
605
      if (result.isSetSuccess()) {
606
        return result.success;
607
      }
608
      if (result.wex != null) {
609
        throw result.wex;
610
      }
611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
612
    }
613
 
614
    public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
615
    {
616
      send_getInventoryItemFromId(inventoryItemId);
617
      return recv_getInventoryItemFromId();
618
    }
619
 
620
    public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
621
    {
622
      getInventoryItemFromId_args args = new getInventoryItemFromId_args();
623
      args.setInventoryItemId(inventoryItemId);
624
      sendBase("getInventoryItemFromId", args);
625
    }
626
 
627
    public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
628
    {
629
      getInventoryItemFromId_result result = new getInventoryItemFromId_result();
630
      receiveBase(result, "getInventoryItemFromId");
631
      if (result.isSetSuccess()) {
632
        return result.success;
633
      }
634
      if (result.wex != null) {
635
        throw result.wex;
636
      }
637
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
638
    }
639
 
5372 mandeep.dh 640
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
641
    {
642
      send_getPurchaseScans(startDate, endDate);
643
      return recv_getPurchaseScans();
644
    }
645
 
646
    public void send_getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
647
    {
648
      getPurchaseScans_args args = new getPurchaseScans_args();
649
      args.setStartDate(startDate);
650
      args.setEndDate(endDate);
651
      sendBase("getPurchaseScans", args);
652
    }
653
 
654
    public List<DetailedPurchaseScan> recv_getPurchaseScans() throws org.apache.thrift.TException
655
    {
656
      getPurchaseScans_result result = new getPurchaseScans_result();
657
      receiveBase(result, "getPurchaseScans");
658
      if (result.isSetSuccess()) {
659
        return result.success;
660
      }
661
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
662
    }
663
 
7210 amar.kumar 664
    public List<DetailedPurchaseScan> getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
665
    {
666
      send_getPurchaseScansByGrnDate(startDate, endDate);
667
      return recv_getPurchaseScansByGrnDate();
668
    }
669
 
670
    public void send_getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
671
    {
672
      getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
673
      args.setStartDate(startDate);
674
      args.setEndDate(endDate);
675
      sendBase("getPurchaseScansByGrnDate", args);
676
    }
677
 
678
    public List<DetailedPurchaseScan> recv_getPurchaseScansByGrnDate() throws org.apache.thrift.TException
679
    {
680
      getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
681
      receiveBase(result, "getPurchaseScansByGrnDate");
682
      if (result.isSetSuccess()) {
683
        return result.success;
684
      }
685
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
686
    }
687
 
5496 mandeep.dh 688
    public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
689
    {
690
      send_fetchScansPerInvoiceNumber(date);
691
      return recv_fetchScansPerInvoiceNumber();
692
    }
693
 
694
    public void send_fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
695
    {
696
      fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
697
      args.setDate(date);
698
      sendBase("fetchScansPerInvoiceNumber", args);
699
    }
700
 
701
    public List<InvoiceScan> recv_fetchScansPerInvoiceNumber() throws org.apache.thrift.TException
702
    {
703
      fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
704
      receiveBase(result, "fetchScansPerInvoiceNumber");
705
      if (result.isSetSuccess()) {
706
        return result.success;
707
      }
708
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
709
    }
710
 
5620 mandeep.dh 711
    public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException
712
    {
713
      send_getInventoryItemFromOrder(orderId);
714
      return recv_getInventoryItemFromOrder();
715
    }
716
 
717
    public void send_getInventoryItemFromOrder(long orderId) throws org.apache.thrift.TException
718
    {
719
      getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
720
      args.setOrderId(orderId);
721
      sendBase("getInventoryItemFromOrder", args);
722
    }
723
 
724
    public InventoryItem recv_getInventoryItemFromOrder() throws WarehouseServiceException, org.apache.thrift.TException
725
    {
726
      getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
727
      receiveBase(result, "getInventoryItemFromOrder");
728
      if (result.isSetSuccess()) {
729
        return result.success;
730
      }
731
      if (result.we != null) {
732
        throw result.we;
733
      }
734
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
735
    }
736
 
5711 mandeep.dh 737
    public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException
738
    {
739
      send_getInventoryAge();
740
      return recv_getInventoryAge();
741
    }
742
 
743
    public void send_getInventoryAge() throws org.apache.thrift.TException
744
    {
745
      getInventoryAge_args args = new getInventoryAge_args();
746
      sendBase("getInventoryAge", args);
747
    }
748
 
749
    public List<InventoryAge> recv_getInventoryAge() throws org.apache.thrift.TException
750
    {
751
      getInventoryAge_result result = new getInventoryAge_result();
752
      receiveBase(result, "getInventoryAge");
753
      if (result.isSetSuccess()) {
754
        return result.success;
755
      }
756
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
757
    }
758
 
6322 amar.kumar 759
    public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
760
    {
761
      send_getInventoryScansForItem(itemId, fromDate, toDate);
762
      return recv_getInventoryScansForItem();
763
    }
764
 
765
    public void send_getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
766
    {
767
      getInventoryScansForItem_args args = new getInventoryScansForItem_args();
768
      args.setItemId(itemId);
769
      args.setFromDate(fromDate);
770
      args.setToDate(toDate);
771
      sendBase("getInventoryScansForItem", args);
772
    }
773
 
774
    public List<Scan> recv_getInventoryScansForItem() throws org.apache.thrift.TException
775
    {
776
      getInventoryScansForItem_result result = new getInventoryScansForItem_result();
777
      receiveBase(result, "getInventoryScansForItem");
778
      if (result.isSetSuccess()) {
779
        return result.success;
780
      }
781
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
782
    }
783
 
7410 amar.kumar 784
    public List<Scan> getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
6322 amar.kumar 785
    {
786
      send_getScanRecordsForSerialNumber(serialNumber);
787
      return recv_getScanRecordsForSerialNumber();
788
    }
789
 
7410 amar.kumar 790
    public void send_getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
6322 amar.kumar 791
    {
792
      getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
793
      args.setSerialNumber(serialNumber);
794
      sendBase("getScanRecordsForSerialNumber", args);
795
    }
796
 
797
    public List<Scan> recv_getScanRecordsForSerialNumber() throws org.apache.thrift.TException
798
    {
799
      getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
800
      receiveBase(result, "getScanRecordsForSerialNumber");
801
      if (result.isSetSuccess()) {
802
        return result.success;
803
      }
804
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
805
    }
806
 
6467 amar.kumar 807
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
808
    {
809
      send_scanForPurchaseReturn(saleReturnItems, vendorId);
810
      recv_scanForPurchaseReturn();
811
    }
812
 
813
    public void send_scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws org.apache.thrift.TException
814
    {
815
      scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
816
      args.setSaleReturnItems(saleReturnItems);
817
      args.setVendorId(vendorId);
818
      sendBase("scanForPurchaseReturn", args);
819
    }
820
 
821
    public void recv_scanForPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
822
    {
823
      scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
824
      receiveBase(result, "scanForPurchaseReturn");
825
      if (result.ex != null) {
826
        throw result.ex;
827
      }
828
      return;
829
    }
830
 
6548 amar.kumar 831
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
832
    {
833
      send_scanForLostItem(lostItems, vendorId);
834
      recv_scanForLostItem();
835
    }
836
 
837
    public void send_scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws org.apache.thrift.TException
838
    {
839
      scanForLostItem_args args = new scanForLostItem_args();
840
      args.setLostItems(lostItems);
841
      args.setVendorId(vendorId);
842
      sendBase("scanForLostItem", args);
843
    }
844
 
845
    public void recv_scanForLostItem() throws WarehouseServiceException, org.apache.thrift.TException
846
    {
847
      scanForLostItem_result result = new scanForLostItem_result();
848
      receiveBase(result, "scanForLostItem");
849
      if (result.ex != null) {
850
        throw result.ex;
851
      }
852
      return;
853
    }
854
 
855
    public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
856
    {
857
      send_getCurrentSerializedInventoryByScans();
858
      return recv_getCurrentSerializedInventoryByScans();
859
    }
860
 
861
    public void send_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
862
    {
863
      getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
864
      sendBase("getCurrentSerializedInventoryByScans", args);
865
    }
866
 
867
    public List<InventoryAvailability> recv_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
868
    {
869
      getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
870
      receiveBase(result, "getCurrentSerializedInventoryByScans");
871
      if (result.isSetSuccess()) {
872
        return result.success;
873
      }
874
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
875
    }
876
 
6630 amar.kumar 877
    public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
878
    {
879
      send_getCurrentNonSerializedInventoryByScans();
880
      return recv_getCurrentNonSerializedInventoryByScans();
881
    }
882
 
883
    public void send_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
884
    {
885
      getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
886
      sendBase("getCurrentNonSerializedInventoryByScans", args);
887
    }
888
 
889
    public List<InventoryAvailability> recv_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
890
    {
891
      getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
892
      receiveBase(result, "getCurrentNonSerializedInventoryByScans");
893
      if (result.isSetSuccess()) {
894
        return result.success;
895
      }
896
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
897
    }
898
 
6762 amar.kumar 899
    public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
900
    {
901
      send_getHistoricSerializedInventoryByScans(date);
902
      return recv_getHistoricSerializedInventoryByScans();
903
    }
904
 
905
    public void send_getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
906
    {
907
      getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
908
      args.setDate(date);
909
      sendBase("getHistoricSerializedInventoryByScans", args);
910
    }
911
 
912
    public List<InventoryAvailability> recv_getHistoricSerializedInventoryByScans() throws org.apache.thrift.TException
913
    {
914
      getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
915
      receiveBase(result, "getHistoricSerializedInventoryByScans");
916
      if (result.isSetSuccess()) {
917
        return result.success;
918
      }
919
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
920
    }
921
 
922
    public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
923
    {
924
      send_getHistoricNonSerializedInventoryByScans(date);
925
      return recv_getHistoricNonSerializedInventoryByScans();
926
    }
927
 
928
    public void send_getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
929
    {
930
      getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
931
      args.setDate(date);
932
      sendBase("getHistoricNonSerializedInventoryByScans", args);
933
    }
934
 
935
    public List<InventoryAvailability> recv_getHistoricNonSerializedInventoryByScans() throws org.apache.thrift.TException
936
    {
937
      getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
938
      receiveBase(result, "getHistoricNonSerializedInventoryByScans");
939
      if (result.isSetSuccess()) {
940
        return result.success;
941
      }
942
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
943
    }
944
 
945
    public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException
946
    {
947
      send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId);
948
      return recv_scanForOursExternalSale();
949
    }
950
 
951
    public void send_scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws org.apache.thrift.TException
952
    {
953
      scanForOursExternalSale_args args = new scanForOursExternalSale_args();
954
      args.setItemId(itemId);
955
      args.setSerialNumber(serialNumber);
956
      args.setItemNumber(itemNumber);
957
      args.setInvoiceNumber(invoiceNumber);
958
      args.setWarehouseId(warehouseId);
959
      args.setUnitPrice(unitPrice);
960
      args.setOrderId(orderId);
961
      sendBase("scanForOursExternalSale", args);
962
    }
963
 
964
    public InventoryItem recv_scanForOursExternalSale() throws WarehouseServiceException, org.apache.thrift.TException
965
    {
966
      scanForOursExternalSale_result result = new scanForOursExternalSale_result();
967
      receiveBase(result, "scanForOursExternalSale");
968
      if (result.isSetSuccess()) {
969
        return result.success;
970
      }
971
      if (result.ex != null) {
972
        throw result.ex;
973
      }
974
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
975
    }
976
 
7410 amar.kumar 977
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws WarehouseServiceException, org.apache.thrift.TException
6762 amar.kumar 978
    {
979
      send_scanForOursExternalSaleReturn(orderId, unitPrice);
980
      recv_scanForOursExternalSaleReturn();
981
    }
982
 
983
    public void send_scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
984
    {
985
      scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
986
      args.setOrderId(orderId);
987
      args.setUnitPrice(unitPrice);
988
      sendBase("scanForOursExternalSaleReturn", args);
989
    }
990
 
7410 amar.kumar 991
    public void recv_scanForOursExternalSaleReturn() throws WarehouseServiceException, org.apache.thrift.TException
6762 amar.kumar 992
    {
993
      scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
994
      receiveBase(result, "scanForOursExternalSaleReturn");
7410 amar.kumar 995
      if (result.ex != null) {
996
        throw result.ex;
997
      }
6762 amar.kumar 998
      return;
999
    }
1000
 
6880 amar.kumar 1001
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1002
    {
1003
      send_getMovementNonSerializedInventoryByScans(startDate, endDate);
1004
      return recv_getMovementNonSerializedInventoryByScans();
1005
    }
1006
 
1007
    public void send_getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1008
    {
1009
      getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
1010
      args.setStartDate(startDate);
1011
      args.setEndDate(endDate);
1012
      sendBase("getMovementNonSerializedInventoryByScans", args);
1013
    }
1014
 
1015
    public List<InventoryMovement> recv_getMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
1016
    {
1017
      getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
1018
      receiveBase(result, "getMovementNonSerializedInventoryByScans");
1019
      if (result.isSetSuccess()) {
1020
        return result.success;
1021
      }
1022
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1023
    }
1024
 
1025
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1026
    {
1027
      send_getMovementSerializedInventoryByScans(startDate, endDate);
1028
      return recv_getMovementSerializedInventoryByScans();
1029
    }
1030
 
1031
    public void send_getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1032
    {
1033
      getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
1034
      args.setStartDate(startDate);
1035
      args.setEndDate(endDate);
1036
      sendBase("getMovementSerializedInventoryByScans", args);
1037
    }
1038
 
1039
    public List<InventoryMovement> recv_getMovementSerializedInventoryByScans() throws org.apache.thrift.TException
1040
    {
1041
      getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
1042
      receiveBase(result, "getMovementSerializedInventoryByScans");
1043
      if (result.isSetSuccess()) {
1044
        return result.success;
1045
      }
1046
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1047
    }
1048
 
7216 amar.kumar 1049
    public List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1050
    {
1051
      send_getCompleteMovementSerializedInventoryByScans(startDate, endDate);
1052
      return recv_getCompleteMovementSerializedInventoryByScans();
1053
    }
1054
 
1055
    public void send_getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1056
    {
1057
      getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
1058
      args.setStartDate(startDate);
1059
      args.setEndDate(endDate);
1060
      sendBase("getCompleteMovementSerializedInventoryByScans", args);
1061
    }
1062
 
1063
    public List<InventoryMovement> recv_getCompleteMovementSerializedInventoryByScans() throws org.apache.thrift.TException
1064
    {
1065
      getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
1066
      receiveBase(result, "getCompleteMovementSerializedInventoryByScans");
1067
      if (result.isSetSuccess()) {
1068
        return result.success;
1069
      }
1070
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1071
    }
1072
 
1073
    public List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1074
    {
1075
      send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate);
1076
      return recv_getCompleteMovementNonSerializedInventoryByScans();
1077
    }
1078
 
1079
    public void send_getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1080
    {
1081
      getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
1082
      args.setStartDate(startDate);
1083
      args.setEndDate(endDate);
1084
      sendBase("getCompleteMovementNonSerializedInventoryByScans", args);
1085
    }
1086
 
1087
    public List<InventoryMovement> recv_getCompleteMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
1088
    {
1089
      getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
1090
      receiveBase(result, "getCompleteMovementNonSerializedInventoryByScans");
1091
      if (result.isSetSuccess()) {
1092
        return result.success;
1093
      }
1094
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1095
    }
1096
 
7190 amar.kumar 1097
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
1098
    {
1099
      send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType);
1100
      return recv_scanfreebie();
1101
    }
1102
 
1103
    public void send_scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws org.apache.thrift.TException
1104
    {
1105
      scanfreebie_args args = new scanfreebie_args();
1106
      args.setOrderId(orderId);
1107
      args.setFreebieItemId(freebieItemId);
1108
      args.setFreebieWarehouseId(freebieWarehouseId);
1109
      args.setScanType(scanType);
1110
      sendBase("scanfreebie", args);
1111
    }
1112
 
1113
    public InventoryItem recv_scanfreebie() throws WarehouseServiceException, org.apache.thrift.TException
1114
    {
1115
      scanfreebie_result result = new scanfreebie_result();
1116
      receiveBase(result, "scanfreebie");
1117
      if (result.isSetSuccess()) {
1118
        return result.success;
1119
      }
1120
      if (result.wex != null) {
1121
        throw result.wex;
1122
      }
1123
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1124
    }
1125
 
7199 amar.kumar 1126
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
1127
    {
1128
      send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType);
1129
      recv_reshipfreebie();
1130
    }
1131
 
1132
    public void send_reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws org.apache.thrift.TException
1133
    {
1134
      reshipfreebie_args args = new reshipfreebie_args();
1135
      args.setOldOrderId(oldOrderId);
1136
      args.setNewOrderId(newOrderId);
1137
      args.setFreebieItemId(freebieItemId);
1138
      args.setScanType(scanType);
1139
      sendBase("reshipfreebie", args);
1140
    }
1141
 
1142
    public void recv_reshipfreebie() throws WarehouseServiceException, org.apache.thrift.TException
1143
    {
1144
      reshipfreebie_result result = new reshipfreebie_result();
1145
      receiveBase(result, "reshipfreebie");
1146
      if (result.wex != null) {
1147
        throw result.wex;
1148
      }
1149
      return;
1150
    }
1151
 
7410 amar.kumar 1152
    public boolean isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
1153
    {
1154
      send_isItemTransferAllowed(warehouseId, transferWarehouseId);
1155
      return recv_isItemTransferAllowed();
1156
    }
1157
 
1158
    public void send_isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
1159
    {
1160
      isItemTransferAllowed_args args = new isItemTransferAllowed_args();
1161
      args.setWarehouseId(warehouseId);
1162
      args.setTransferWarehouseId(transferWarehouseId);
1163
      sendBase("isItemTransferAllowed", args);
1164
    }
1165
 
1166
    public boolean recv_isItemTransferAllowed() throws org.apache.thrift.TException
1167
    {
1168
      isItemTransferAllowed_result result = new isItemTransferAllowed_result();
1169
      receiveBase(result, "isItemTransferAllowed");
1170
      if (result.isSetSuccess()) {
1171
        return result.success;
1172
      }
1173
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1174
    }
1175
 
1176
    public long createTransferLot(long originWarehouseId, long destWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
1177
    {
1178
      send_createTransferLot(originWarehouseId, destWarehouseId);
1179
      return recv_createTransferLot();
1180
    }
1181
 
1182
    public void send_createTransferLot(long originWarehouseId, long destWarehouseId) throws org.apache.thrift.TException
1183
    {
1184
      createTransferLot_args args = new createTransferLot_args();
1185
      args.setOriginWarehouseId(originWarehouseId);
1186
      args.setDestWarehouseId(destWarehouseId);
1187
      sendBase("createTransferLot", args);
1188
    }
1189
 
1190
    public long recv_createTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1191
    {
1192
      createTransferLot_result result = new createTransferLot_result();
1193
      receiveBase(result, "createTransferLot");
1194
      if (result.isSetSuccess()) {
1195
        return result.success;
1196
      }
1197
      if (result.wex != null) {
1198
        throw result.wex;
1199
      }
1200
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1201
    }
1202
 
1203
    public TransferLot getTransferLot(long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1204
    {
1205
      send_getTransferLot(transferLotId);
1206
      return recv_getTransferLot();
1207
    }
1208
 
1209
    public void send_getTransferLot(long transferLotId) throws org.apache.thrift.TException
1210
    {
1211
      getTransferLot_args args = new getTransferLot_args();
1212
      args.setTransferLotId(transferLotId);
1213
      sendBase("getTransferLot", args);
1214
    }
1215
 
1216
    public TransferLot recv_getTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1217
    {
1218
      getTransferLot_result result = new getTransferLot_result();
1219
      receiveBase(result, "getTransferLot");
1220
      if (result.isSetSuccess()) {
1221
        return result.success;
1222
      }
1223
      if (result.wex != null) {
1224
        throw result.wex;
1225
      }
1226
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1227
    }
1228
 
1229
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException
1230
    {
1231
      send_markTransferLotAsReceived(id, remoteTransferRefNumber);
1232
      recv_markTransferLotAsReceived();
1233
    }
1234
 
1235
    public void send_markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws org.apache.thrift.TException
1236
    {
1237
      markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
1238
      args.setId(id);
1239
      args.setRemoteTransferRefNumber(remoteTransferRefNumber);
1240
      sendBase("markTransferLotAsReceived", args);
1241
    }
1242
 
1243
    public void recv_markTransferLotAsReceived() throws WarehouseServiceException, org.apache.thrift.TException
1244
    {
1245
      markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
1246
      receiveBase(result, "markTransferLotAsReceived");
1247
      if (result.wex != null) {
1248
        throw result.wex;
1249
      }
1250
      return;
1251
    }
1252
 
1253
    public List<TransferLot> getTransferLotsByDate(long fromDate, long toDate) throws WarehouseServiceException, org.apache.thrift.TException
1254
    {
1255
      send_getTransferLotsByDate(fromDate, toDate);
1256
      return recv_getTransferLotsByDate();
1257
    }
1258
 
1259
    public void send_getTransferLotsByDate(long fromDate, long toDate) throws org.apache.thrift.TException
1260
    {
1261
      getTransferLotsByDate_args args = new getTransferLotsByDate_args();
1262
      args.setFromDate(fromDate);
1263
      args.setToDate(toDate);
1264
      sendBase("getTransferLotsByDate", args);
1265
    }
1266
 
1267
    public List<TransferLot> recv_getTransferLotsByDate() throws WarehouseServiceException, org.apache.thrift.TException
1268
    {
1269
      getTransferLotsByDate_result result = new getTransferLotsByDate_result();
1270
      receiveBase(result, "getTransferLotsByDate");
1271
      if (result.isSetSuccess()) {
1272
        return result.success;
1273
      }
1274
      if (result.wex != null) {
1275
        throw result.wex;
1276
      }
1277
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
1278
    }
1279
 
1280
    public List<Long> getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
1281
    {
1282
      send_getAllowedDestinationWarehousesForTransfer(warehouseId);
1283
      return recv_getAllowedDestinationWarehousesForTransfer();
1284
    }
1285
 
1286
    public void send_getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
1287
    {
1288
      getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
1289
      args.setWarehouseId(warehouseId);
1290
      sendBase("getAllowedDestinationWarehousesForTransfer", args);
1291
    }
1292
 
1293
    public List<Long> recv_getAllowedDestinationWarehousesForTransfer() throws org.apache.thrift.TException
1294
    {
1295
      getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
1296
      receiveBase(result, "getAllowedDestinationWarehousesForTransfer");
1297
      if (result.isSetSuccess()) {
1298
        return result.success;
1299
      }
1300
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
1301
    }
1302
 
1303
    public Map<Long,Long> getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
1304
    {
1305
      send_getItemsInTransferLot(transferLotId);
1306
      return recv_getItemsInTransferLot();
1307
    }
1308
 
1309
    public void send_getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
1310
    {
1311
      getItemsInTransferLot_args args = new getItemsInTransferLot_args();
1312
      args.setTransferLotId(transferLotId);
1313
      sendBase("getItemsInTransferLot", args);
1314
    }
1315
 
1316
    public Map<Long,Long> recv_getItemsInTransferLot() throws org.apache.thrift.TException
1317
    {
1318
      getItemsInTransferLot_result result = new getItemsInTransferLot_result();
1319
      receiveBase(result, "getItemsInTransferLot");
1320
      if (result.isSetSuccess()) {
1321
        return result.success;
1322
      }
1323
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
1324
    }
1325
 
1326
    public void markItemsAsReceivedForTransferLot(long id) throws WarehouseServiceException, org.apache.thrift.TException
1327
    {
1328
      send_markItemsAsReceivedForTransferLot(id);
1329
      recv_markItemsAsReceivedForTransferLot();
1330
    }
1331
 
1332
    public void send_markItemsAsReceivedForTransferLot(long id) throws org.apache.thrift.TException
1333
    {
1334
      markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
1335
      args.setId(id);
1336
      sendBase("markItemsAsReceivedForTransferLot", args);
1337
    }
1338
 
1339
    public void recv_markItemsAsReceivedForTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1340
    {
1341
      markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
1342
      receiveBase(result, "markItemsAsReceivedForTransferLot");
1343
      if (result.wex != null) {
1344
        throw result.wex;
1345
      }
1346
      return;
1347
    }
1348
 
1349
    public TransferLotStatus updateTransferLotAfterItemReceive(long id) throws WarehouseServiceException, org.apache.thrift.TException
1350
    {
1351
      send_updateTransferLotAfterItemReceive(id);
1352
      return recv_updateTransferLotAfterItemReceive();
1353
    }
1354
 
1355
    public void send_updateTransferLotAfterItemReceive(long id) throws org.apache.thrift.TException
1356
    {
1357
      updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
1358
      args.setId(id);
1359
      sendBase("updateTransferLotAfterItemReceive", args);
1360
    }
1361
 
1362
    public TransferLotStatus recv_updateTransferLotAfterItemReceive() throws WarehouseServiceException, org.apache.thrift.TException
1363
    {
1364
      updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
1365
      receiveBase(result, "updateTransferLotAfterItemReceive");
1366
      if (result.isSetSuccess()) {
1367
        return result.success;
1368
      }
1369
      if (result.wex != null) {
1370
        throw result.wex;
1371
      }
1372
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
1373
    }
1374
 
7453 amar.kumar 1375
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
7410 amar.kumar 1376
    {
7453 amar.kumar 1377
      send_scanForTransferOut(inventoryItems, type, transferLotId);
1378
      recv_scanForTransferOut();
7410 amar.kumar 1379
    }
1380
 
7453 amar.kumar 1381
    public void send_scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
7410 amar.kumar 1382
    {
7453 amar.kumar 1383
      scanForTransferOut_args args = new scanForTransferOut_args();
7410 amar.kumar 1384
      args.setInventoryItems(inventoryItems);
1385
      args.setType(type);
1386
      args.setTransferLotId(transferLotId);
7453 amar.kumar 1387
      sendBase("scanForTransferOut", args);
7410 amar.kumar 1388
    }
1389
 
7453 amar.kumar 1390
    public void recv_scanForTransferOut() throws WarehouseServiceException, org.apache.thrift.TException
7410 amar.kumar 1391
    {
7453 amar.kumar 1392
      scanForTransferOut_result result = new scanForTransferOut_result();
1393
      receiveBase(result, "scanForTransferOut");
7410 amar.kumar 1394
      if (result.wex != null) {
1395
        throw result.wex;
1396
      }
1397
      return;
1398
    }
1399
 
7453 amar.kumar 1400
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1401
    {
1402
      send_scanForTransferIn(inventoryItems, type, transferLotId);
1403
      recv_scanForTransferIn();
1404
    }
1405
 
1406
    public void send_scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
1407
    {
1408
      scanForTransferIn_args args = new scanForTransferIn_args();
1409
      args.setInventoryItems(inventoryItems);
1410
      args.setType(type);
1411
      args.setTransferLotId(transferLotId);
1412
      sendBase("scanForTransferIn", args);
1413
    }
1414
 
1415
    public void recv_scanForTransferIn() throws WarehouseServiceException, org.apache.thrift.TException
1416
    {
1417
      scanForTransferIn_result result = new scanForTransferIn_result();
1418
      receiveBase(result, "scanForTransferIn");
1419
      if (result.wex != null) {
1420
        throw result.wex;
1421
      }
1422
      return;
1423
    }
1424
 
1425
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException
1426
    {
1427
      send_scanForOursThirdPartyReceive(inventoryItems, id);
1428
      recv_scanForOursThirdPartyReceive();
1429
    }
1430
 
1431
    public void send_scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws org.apache.thrift.TException
1432
    {
1433
      scanForOursThirdPartyReceive_args args = new scanForOursThirdPartyReceive_args();
1434
      args.setInventoryItems(inventoryItems);
1435
      args.setId(id);
1436
      sendBase("scanForOursThirdPartyReceive", args);
1437
    }
1438
 
1439
    public void recv_scanForOursThirdPartyReceive() throws WarehouseServiceException, org.apache.thrift.TException
1440
    {
1441
      scanForOursThirdPartyReceive_result result = new scanForOursThirdPartyReceive_result();
1442
      receiveBase(result, "scanForOursThirdPartyReceive");
1443
      if (result.wex != null) {
1444
        throw result.wex;
1445
      }
1446
      return;
1447
    }
1448
 
7574 amar.kumar 1449
    public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
1450
    {
1451
      send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId);
1452
      return recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse();
1453
    }
1454
 
1455
    public void send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws org.apache.thrift.TException
1456
    {
1457
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args args = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args();
1458
      args.setItemId(itemId);
1459
      args.setPhysicalWarehouseId(physicalWarehouseId);
1460
      sendBase("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", args);
1461
    }
1462
 
1463
    public long recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse() throws WarehouseServiceException, org.apache.thrift.TException
1464
    {
1465
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result result = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result();
1466
      receiveBase(result, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse");
1467
      if (result.isSetSuccess()) {
1468
        return result.success;
1469
      }
1470
      if (result.wex != null) {
1471
        throw result.wex;
1472
      }
1473
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
1474
    }
1475
 
2820 chandransh 1476
  }
3430 rajveer 1477
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1478
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1479
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1480
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1481
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1482
        this.clientManager = clientManager;
1483
        this.protocolFactory = protocolFactory;
1484
      }
1485
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1486
        return new AsyncClient(protocolFactory, clientManager, transport);
1487
      }
2820 chandransh 1488
    }
1489
 
3430 rajveer 1490
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1491
      super(protocolFactory, clientManager, transport);
1492
    }
2820 chandransh 1493
 
4496 mandeep.dh 1494
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1495
      checkReady();
4496 mandeep.dh 1496
      getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1497
      this.___currentMethod = method_call;
1498
      ___manager.call(method_call);
1499
    }
1500
 
4496 mandeep.dh 1501
    public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
1502
      private String serialNumber;
1503
      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 1504
        super(client, protocolFactory, transport, resultHandler, false);
4496 mandeep.dh 1505
        this.serialNumber = serialNumber;
3430 rajveer 1506
      }
1507
 
1508
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4496 mandeep.dh 1509
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
1510
        getInventoryItem_args args = new getInventoryItem_args();
1511
        args.setSerialNumber(serialNumber);
3430 rajveer 1512
        args.write(prot);
1513
        prot.writeMessageEnd();
1514
      }
1515
 
4541 mandeep.dh 1516
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3430 rajveer 1517
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1518
          throw new IllegalStateException("Method call not finished!");
1519
        }
1520
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1521
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4496 mandeep.dh 1522
        return (new Client(prot)).recv_getInventoryItem();
3430 rajveer 1523
      }
1524
    }
1525
 
5530 mandeep.dh 1526
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1527
      checkReady();
5530 mandeep.dh 1528
      getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1529
      this.___currentMethod = method_call;
1530
      ___manager.call(method_call);
1531
    }
1532
 
5361 mandeep.dh 1533
    public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
5530 mandeep.dh 1534
      private String itemNumber;
4496 mandeep.dh 1535
      private long itemId;
5530 mandeep.dh 1536
      private long fulfilmentWarehouseId;
1537
      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 1538
        super(client, protocolFactory, transport, resultHandler, false);
5530 mandeep.dh 1539
        this.itemNumber = itemNumber;
4496 mandeep.dh 1540
        this.itemId = itemId;
5530 mandeep.dh 1541
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
3430 rajveer 1542
      }
1543
 
1544
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5361 mandeep.dh 1545
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
1546
        getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
5530 mandeep.dh 1547
        args.setItemNumber(itemNumber);
4496 mandeep.dh 1548
        args.setItemId(itemId);
5530 mandeep.dh 1549
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
3430 rajveer 1550
        args.write(prot);
1551
        prot.writeMessageEnd();
1552
      }
1553
 
5361 mandeep.dh 1554
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3430 rajveer 1555
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1556
          throw new IllegalStateException("Method call not finished!");
1557
        }
1558
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1559
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5361 mandeep.dh 1560
        return (new Client(prot)).recv_getNonSeralizedInventoryItem();
3430 rajveer 1561
      }
1562
    }
1563
 
7410 amar.kumar 1564
    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 1565
      checkReady();
7410 amar.kumar 1566
      scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1567
      this.___currentMethod = method_call;
1568
      ___manager.call(method_call);
1569
    }
1570
 
4496 mandeep.dh 1571
    public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
5361 mandeep.dh 1572
      private InventoryItem inventoryItem;
3430 rajveer 1573
      private ScanType type;
4496 mandeep.dh 1574
      private long quantity;
5361 mandeep.dh 1575
      private long billingWarehouseId;
7410 amar.kumar 1576
      private long transferLotId;
1577
      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 1578
        super(client, protocolFactory, transport, resultHandler, false);
5361 mandeep.dh 1579
        this.inventoryItem = inventoryItem;
3430 rajveer 1580
        this.type = type;
4496 mandeep.dh 1581
        this.quantity = quantity;
5361 mandeep.dh 1582
        this.billingWarehouseId = billingWarehouseId;
7410 amar.kumar 1583
        this.transferLotId = transferLotId;
3430 rajveer 1584
      }
1585
 
1586
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4496 mandeep.dh 1587
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
1588
        scan_args args = new scan_args();
5361 mandeep.dh 1589
        args.setInventoryItem(inventoryItem);
3430 rajveer 1590
        args.setType(type);
4496 mandeep.dh 1591
        args.setQuantity(quantity);
5361 mandeep.dh 1592
        args.setBillingWarehouseId(billingWarehouseId);
7410 amar.kumar 1593
        args.setTransferLotId(transferLotId);
3430 rajveer 1594
        args.write(prot);
1595
        prot.writeMessageEnd();
1596
      }
1597
 
1598
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1599
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1600
          throw new IllegalStateException("Method call not finished!");
1601
        }
1602
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1603
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4496 mandeep.dh 1604
        (new Client(prot)).recv_scan();
3430 rajveer 1605
      }
1606
    }
1607
 
5110 mandeep.dh 1608
    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 1609
      checkReady();
5110 mandeep.dh 1610
      scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
4496 mandeep.dh 1611
      this.___currentMethod = method_call;
1612
      ___manager.call(method_call);
1613
    }
1614
 
1615
    public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
4555 mandeep.dh 1616
      private String serialNumber;
4496 mandeep.dh 1617
      private ScanType type;
1618
      private long orderId;
5110 mandeep.dh 1619
      private long fulfilmentWarehouseId;
1620
      private double quantity;
1621
      private long billingWarehouseId;
1622
      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 1623
        super(client, protocolFactory, transport, resultHandler, false);
4555 mandeep.dh 1624
        this.serialNumber = serialNumber;
4496 mandeep.dh 1625
        this.type = type;
1626
        this.orderId = orderId;
5110 mandeep.dh 1627
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
1628
        this.quantity = quantity;
1629
        this.billingWarehouseId = billingWarehouseId;
4496 mandeep.dh 1630
      }
1631
 
1632
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1633
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1634
        scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
4555 mandeep.dh 1635
        args.setSerialNumber(serialNumber);
4496 mandeep.dh 1636
        args.setType(type);
1637
        args.setOrderId(orderId);
5110 mandeep.dh 1638
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
1639
        args.setQuantity(quantity);
1640
        args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 1641
        args.write(prot);
1642
        prot.writeMessageEnd();
1643
      }
1644
 
4555 mandeep.dh 1645
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
4496 mandeep.dh 1646
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1647
          throw new IllegalStateException("Method call not finished!");
1648
        }
1649
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1650
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1651
        return (new Client(prot)).recv_scanSerializedItemForOrder();
1652
      }
1653
    }
1654
 
5361 mandeep.dh 1655
    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 1656
      checkReady();
5361 mandeep.dh 1657
      scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
4496 mandeep.dh 1658
      this.___currentMethod = method_call;
1659
      ___manager.call(method_call);
1660
    }
1661
 
1662
    public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
5361 mandeep.dh 1663
      private InventoryItem inventoryItem;
4496 mandeep.dh 1664
      private ScanType type;
1665
      private long quantity;
1666
      private long orderId;
5110 mandeep.dh 1667
      private long fulfilmentWarehouseId;
5361 mandeep.dh 1668
      private long billingWarehouseId;
1669
      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 1670
        super(client, protocolFactory, transport, resultHandler, false);
5361 mandeep.dh 1671
        this.inventoryItem = inventoryItem;
4496 mandeep.dh 1672
        this.type = type;
1673
        this.quantity = quantity;
1674
        this.orderId = orderId;
5110 mandeep.dh 1675
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
5361 mandeep.dh 1676
        this.billingWarehouseId = billingWarehouseId;
4496 mandeep.dh 1677
      }
1678
 
1679
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1680
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1681
        scanForOrder_args args = new scanForOrder_args();
5361 mandeep.dh 1682
        args.setInventoryItem(inventoryItem);
4496 mandeep.dh 1683
        args.setType(type);
1684
        args.setQuantity(quantity);
1685
        args.setOrderId(orderId);
5110 mandeep.dh 1686
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 1687
        args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 1688
        args.write(prot);
1689
        prot.writeMessageEnd();
1690
      }
1691
 
5361 mandeep.dh 1692
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
4496 mandeep.dh 1693
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1694
          throw new IllegalStateException("Method call not finished!");
1695
        }
1696
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1697
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5361 mandeep.dh 1698
        return (new Client(prot)).recv_scanForOrder();
4496 mandeep.dh 1699
      }
1700
    }
1701
 
1702
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
1703
      checkReady();
1704
      createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
1705
      this.___currentMethod = method_call;
1706
      ___manager.call(method_call);
1707
    }
1708
 
1709
    public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
1710
      private String itemNumber;
1711
      private long itemId;
1712
      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 {
1713
        super(client, protocolFactory, transport, resultHandler, false);
1714
        this.itemNumber = itemNumber;
1715
        this.itemId = itemId;
1716
      }
1717
 
1718
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1719
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
1720
        createItemNumberMapping_args args = new createItemNumberMapping_args();
1721
        args.setItemNumber(itemNumber);
1722
        args.setItemId(itemId);
1723
        args.write(prot);
1724
        prot.writeMessageEnd();
1725
      }
1726
 
1727
      public void getResult() throws org.apache.thrift.TException {
1728
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1729
          throw new IllegalStateException("Method call not finished!");
1730
        }
1731
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1732
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1733
        (new Client(prot)).recv_createItemNumberMapping();
1734
      }
1735
    }
1736
 
4622 amit.gupta 1737
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
1738
      checkReady();
1739
      getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
1740
      this.___currentMethod = method_call;
1741
      ___manager.call(method_call);
1742
    }
1743
 
1744
    public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
1745
      private long itemId;
1746
      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 {
1747
        super(client, protocolFactory, transport, resultHandler, false);
1748
        this.itemId = itemId;
1749
      }
1750
 
1751
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1752
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
1753
        getItemNumbers_args args = new getItemNumbers_args();
1754
        args.setItemId(itemId);
1755
        args.write(prot);
1756
        prot.writeMessageEnd();
1757
      }
1758
 
1759
      public List<String> getResult() throws org.apache.thrift.TException {
1760
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1761
          throw new IllegalStateException("Method call not finished!");
1762
        }
1763
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1764
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1765
        return (new Client(prot)).recv_getItemNumbers();
1766
      }
1767
    }
1768
 
5110 mandeep.dh 1769
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
1770
      checkReady();
1771
      getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
1772
      this.___currentMethod = method_call;
1773
      ___manager.call(method_call);
1774
    }
1775
 
1776
    public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
1777
      private String itemNumber;
1778
      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 {
1779
        super(client, protocolFactory, transport, resultHandler, false);
1780
        this.itemNumber = itemNumber;
1781
      }
1782
 
1783
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1784
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
1785
        getItemIds_args args = new getItemIds_args();
1786
        args.setItemNumber(itemNumber);
1787
        args.write(prot);
1788
        prot.writeMessageEnd();
1789
      }
1790
 
1791
      public List<Long> getResult() throws org.apache.thrift.TException {
1792
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1793
          throw new IllegalStateException("Method call not finished!");
1794
        }
1795
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1796
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1797
        return (new Client(prot)).recv_getItemIds();
1798
      }
1799
    }
1800
 
5185 mandeep.dh 1801
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
1802
      checkReady();
1803
      getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
1804
      this.___currentMethod = method_call;
1805
      ___manager.call(method_call);
1806
    }
1807
 
1808
    public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
1809
      private ScanType lastScanType;
1810
      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 {
1811
        super(client, protocolFactory, transport, resultHandler, false);
1812
        this.lastScanType = lastScanType;
1813
      }
1814
 
1815
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1816
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1817
        getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
1818
        args.setLastScanType(lastScanType);
1819
        args.write(prot);
1820
        prot.writeMessageEnd();
1821
      }
1822
 
1823
      public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1824
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1825
          throw new IllegalStateException("Method call not finished!");
1826
        }
1827
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1828
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1829
        return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
1830
      }
1831
    }
1832
 
1833
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
1834
      checkReady();
1835
      getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
1836
      this.___currentMethod = method_call;
1837
      ___manager.call(method_call);
1838
    }
1839
 
1840
    public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
1841
      private long inventoryItemId;
1842
      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 {
1843
        super(client, protocolFactory, transport, resultHandler, false);
1844
        this.inventoryItemId = inventoryItemId;
1845
      }
1846
 
1847
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1848
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1849
        getInventoryItemFromId_args args = new getInventoryItemFromId_args();
1850
        args.setInventoryItemId(inventoryItemId);
1851
        args.write(prot);
1852
        prot.writeMessageEnd();
1853
      }
1854
 
1855
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1856
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1857
          throw new IllegalStateException("Method call not finished!");
1858
        }
1859
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1860
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1861
        return (new Client(prot)).recv_getInventoryItemFromId();
1862
      }
1863
    }
1864
 
5372 mandeep.dh 1865
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException {
1866
      checkReady();
1867
      getPurchaseScans_call method_call = new getPurchaseScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
1868
      this.___currentMethod = method_call;
1869
      ___manager.call(method_call);
1870
    }
1871
 
1872
    public static class getPurchaseScans_call extends org.apache.thrift.async.TAsyncMethodCall {
1873
      private long startDate;
1874
      private long endDate;
1875
      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 {
1876
        super(client, protocolFactory, transport, resultHandler, false);
1877
        this.startDate = startDate;
1878
        this.endDate = endDate;
1879
      }
1880
 
1881
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1882
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
1883
        getPurchaseScans_args args = new getPurchaseScans_args();
1884
        args.setStartDate(startDate);
1885
        args.setEndDate(endDate);
1886
        args.write(prot);
1887
        prot.writeMessageEnd();
1888
      }
1889
 
1890
      public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
1891
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1892
          throw new IllegalStateException("Method call not finished!");
1893
        }
1894
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1895
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1896
        return (new Client(prot)).recv_getPurchaseScans();
1897
      }
1898
    }
1899
 
7210 amar.kumar 1900
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException {
1901
      checkReady();
1902
      getPurchaseScansByGrnDate_call method_call = new getPurchaseScansByGrnDate_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
1903
      this.___currentMethod = method_call;
1904
      ___manager.call(method_call);
1905
    }
1906
 
1907
    public static class getPurchaseScansByGrnDate_call extends org.apache.thrift.async.TAsyncMethodCall {
1908
      private long startDate;
1909
      private long endDate;
1910
      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 {
1911
        super(client, protocolFactory, transport, resultHandler, false);
1912
        this.startDate = startDate;
1913
        this.endDate = endDate;
1914
      }
1915
 
1916
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1917
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScansByGrnDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1918
        getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
1919
        args.setStartDate(startDate);
1920
        args.setEndDate(endDate);
1921
        args.write(prot);
1922
        prot.writeMessageEnd();
1923
      }
1924
 
1925
      public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
1926
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1927
          throw new IllegalStateException("Method call not finished!");
1928
        }
1929
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1930
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1931
        return (new Client(prot)).recv_getPurchaseScansByGrnDate();
1932
      }
1933
    }
1934
 
5496 mandeep.dh 1935
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
1936
      checkReady();
1937
      fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
1938
      this.___currentMethod = method_call;
1939
      ___manager.call(method_call);
1940
    }
1941
 
1942
    public static class fetchScansPerInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
1943
      private long date;
1944
      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 {
1945
        super(client, protocolFactory, transport, resultHandler, false);
1946
        this.date = date;
1947
      }
1948
 
1949
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1950
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchScansPerInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
1951
        fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
1952
        args.setDate(date);
1953
        args.write(prot);
1954
        prot.writeMessageEnd();
1955
      }
1956
 
1957
      public List<InvoiceScan> getResult() throws org.apache.thrift.TException {
1958
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1959
          throw new IllegalStateException("Method call not finished!");
1960
        }
1961
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1962
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1963
        return (new Client(prot)).recv_fetchScansPerInvoiceNumber();
1964
      }
1965
    }
1966
 
5620 mandeep.dh 1967
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException {
1968
      checkReady();
1969
      getInventoryItemFromOrder_call method_call = new getInventoryItemFromOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
1970
      this.___currentMethod = method_call;
1971
      ___manager.call(method_call);
1972
    }
1973
 
1974
    public static class getInventoryItemFromOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1975
      private long orderId;
1976
      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 {
1977
        super(client, protocolFactory, transport, resultHandler, false);
1978
        this.orderId = orderId;
1979
      }
1980
 
1981
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1982
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1983
        getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
1984
        args.setOrderId(orderId);
1985
        args.write(prot);
1986
        prot.writeMessageEnd();
1987
      }
1988
 
1989
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1990
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1991
          throw new IllegalStateException("Method call not finished!");
1992
        }
1993
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1994
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1995
        return (new Client(prot)).recv_getInventoryItemFromOrder();
1996
      }
1997
    }
1998
 
5711 mandeep.dh 1999
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_call> resultHandler) throws org.apache.thrift.TException {
2000
      checkReady();
2001
      getInventoryAge_call method_call = new getInventoryAge_call(resultHandler, this, ___protocolFactory, ___transport);
2002
      this.___currentMethod = method_call;
2003
      ___manager.call(method_call);
2004
    }
2005
 
2006
    public static class getInventoryAge_call extends org.apache.thrift.async.TAsyncMethodCall {
2007
      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 {
2008
        super(client, protocolFactory, transport, resultHandler, false);
2009
      }
2010
 
2011
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2012
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryAge", org.apache.thrift.protocol.TMessageType.CALL, 0));
2013
        getInventoryAge_args args = new getInventoryAge_args();
2014
        args.write(prot);
2015
        prot.writeMessageEnd();
2016
      }
2017
 
2018
      public List<InventoryAge> getResult() throws org.apache.thrift.TException {
2019
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2020
          throw new IllegalStateException("Method call not finished!");
2021
        }
2022
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2023
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2024
        return (new Client(prot)).recv_getInventoryAge();
2025
      }
2026
    }
2027
 
6322 amar.kumar 2028
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException {
2029
      checkReady();
2030
      getInventoryScansForItem_call method_call = new getInventoryScansForItem_call(itemId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
2031
      this.___currentMethod = method_call;
2032
      ___manager.call(method_call);
2033
    }
2034
 
2035
    public static class getInventoryScansForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2036
      private long itemId;
2037
      private long fromDate;
2038
      private long toDate;
2039
      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 {
2040
        super(client, protocolFactory, transport, resultHandler, false);
2041
        this.itemId = itemId;
2042
        this.fromDate = fromDate;
2043
        this.toDate = toDate;
2044
      }
2045
 
2046
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2047
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryScansForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2048
        getInventoryScansForItem_args args = new getInventoryScansForItem_args();
2049
        args.setItemId(itemId);
2050
        args.setFromDate(fromDate);
2051
        args.setToDate(toDate);
2052
        args.write(prot);
2053
        prot.writeMessageEnd();
2054
      }
2055
 
2056
      public List<Scan> getResult() throws org.apache.thrift.TException {
2057
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2058
          throw new IllegalStateException("Method call not finished!");
2059
        }
2060
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2061
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2062
        return (new Client(prot)).recv_getInventoryScansForItem();
2063
      }
2064
    }
2065
 
7410 amar.kumar 2066
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
6322 amar.kumar 2067
      checkReady();
2068
      getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
2069
      this.___currentMethod = method_call;
2070
      ___manager.call(method_call);
2071
    }
2072
 
2073
    public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
7410 amar.kumar 2074
      private String serialNumber;
2075
      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 2076
        super(client, protocolFactory, transport, resultHandler, false);
2077
        this.serialNumber = serialNumber;
2078
      }
2079
 
2080
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2081
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanRecordsForSerialNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
2082
        getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
2083
        args.setSerialNumber(serialNumber);
2084
        args.write(prot);
2085
        prot.writeMessageEnd();
2086
      }
2087
 
2088
      public List<Scan> getResult() throws org.apache.thrift.TException {
2089
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2090
          throw new IllegalStateException("Method call not finished!");
2091
        }
2092
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2093
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2094
        return (new Client(prot)).recv_getScanRecordsForSerialNumber();
2095
      }
2096
    }
2097
 
6467 amar.kumar 2098
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
2099
      checkReady();
2100
      scanForPurchaseReturn_call method_call = new scanForPurchaseReturn_call(saleReturnItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2101
      this.___currentMethod = method_call;
2102
      ___manager.call(method_call);
2103
    }
2104
 
2105
    public static class scanForPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
2106
      private List<InventoryItem> saleReturnItems;
2107
      private long vendorId;
2108
      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 {
2109
        super(client, protocolFactory, transport, resultHandler, false);
2110
        this.saleReturnItems = saleReturnItems;
2111
        this.vendorId = vendorId;
2112
      }
2113
 
2114
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2115
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2116
        scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
2117
        args.setSaleReturnItems(saleReturnItems);
2118
        args.setVendorId(vendorId);
2119
        args.write(prot);
2120
        prot.writeMessageEnd();
2121
      }
2122
 
2123
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2124
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2125
          throw new IllegalStateException("Method call not finished!");
2126
        }
2127
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2128
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2129
        (new Client(prot)).recv_scanForPurchaseReturn();
2130
      }
2131
    }
2132
 
6548 amar.kumar 2133
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
2134
      checkReady();
2135
      scanForLostItem_call method_call = new scanForLostItem_call(lostItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2136
      this.___currentMethod = method_call;
2137
      ___manager.call(method_call);
2138
    }
2139
 
2140
    public static class scanForLostItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2141
      private List<InventoryItem> lostItems;
2142
      private long vendorId;
2143
      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 {
2144
        super(client, protocolFactory, transport, resultHandler, false);
2145
        this.lostItems = lostItems;
2146
        this.vendorId = vendorId;
2147
      }
2148
 
2149
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2150
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForLostItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2151
        scanForLostItem_args args = new scanForLostItem_args();
2152
        args.setLostItems(lostItems);
2153
        args.setVendorId(vendorId);
2154
        args.write(prot);
2155
        prot.writeMessageEnd();
2156
      }
2157
 
2158
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2159
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2160
          throw new IllegalStateException("Method call not finished!");
2161
        }
2162
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2163
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2164
        (new Client(prot)).recv_scanForLostItem();
2165
      }
2166
    }
2167
 
2168
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2169
      checkReady();
2170
      getCurrentSerializedInventoryByScans_call method_call = new getCurrentSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
2171
      this.___currentMethod = method_call;
2172
      ___manager.call(method_call);
2173
    }
2174
 
2175
    public static class getCurrentSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2176
      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 {
2177
        super(client, protocolFactory, transport, resultHandler, false);
2178
      }
2179
 
2180
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2181
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2182
        getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
2183
        args.write(prot);
2184
        prot.writeMessageEnd();
2185
      }
2186
 
2187
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2188
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2189
          throw new IllegalStateException("Method call not finished!");
2190
        }
2191
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2192
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2193
        return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
2194
      }
2195
    }
2196
 
6630 amar.kumar 2197
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2198
      checkReady();
2199
      getCurrentNonSerializedInventoryByScans_call method_call = new getCurrentNonSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
2200
      this.___currentMethod = method_call;
2201
      ___manager.call(method_call);
2202
    }
2203
 
2204
    public static class getCurrentNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2205
      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 {
2206
        super(client, protocolFactory, transport, resultHandler, false);
2207
      }
2208
 
2209
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2210
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2211
        getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
2212
        args.write(prot);
2213
        prot.writeMessageEnd();
2214
      }
2215
 
2216
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2217
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2218
          throw new IllegalStateException("Method call not finished!");
2219
        }
2220
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2221
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2222
        return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
2223
      }
2224
    }
2225
 
6762 amar.kumar 2226
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2227
      checkReady();
2228
      getHistoricSerializedInventoryByScans_call method_call = new getHistoricSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
2229
      this.___currentMethod = method_call;
2230
      ___manager.call(method_call);
2231
    }
2232
 
2233
    public static class getHistoricSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2234
      private long date;
2235
      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 {
2236
        super(client, protocolFactory, transport, resultHandler, false);
2237
        this.date = date;
2238
      }
2239
 
2240
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2241
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2242
        getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
2243
        args.setDate(date);
2244
        args.write(prot);
2245
        prot.writeMessageEnd();
2246
      }
2247
 
2248
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2249
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2250
          throw new IllegalStateException("Method call not finished!");
2251
        }
2252
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2253
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2254
        return (new Client(prot)).recv_getHistoricSerializedInventoryByScans();
2255
      }
2256
    }
2257
 
2258
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2259
      checkReady();
2260
      getHistoricNonSerializedInventoryByScans_call method_call = new getHistoricNonSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
2261
      this.___currentMethod = method_call;
2262
      ___manager.call(method_call);
2263
    }
2264
 
2265
    public static class getHistoricNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2266
      private long date;
2267
      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 {
2268
        super(client, protocolFactory, transport, resultHandler, false);
2269
        this.date = date;
2270
      }
2271
 
2272
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2273
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2274
        getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
2275
        args.setDate(date);
2276
        args.write(prot);
2277
        prot.writeMessageEnd();
2278
      }
2279
 
2280
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2281
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2282
          throw new IllegalStateException("Method call not finished!");
2283
        }
2284
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2285
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2286
        return (new Client(prot)).recv_getHistoricNonSerializedInventoryByScans();
2287
      }
2288
    }
2289
 
2290
    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 {
2291
      checkReady();
2292
      scanForOursExternalSale_call method_call = new scanForOursExternalSale_call(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId, resultHandler, this, ___protocolFactory, ___transport);
2293
      this.___currentMethod = method_call;
2294
      ___manager.call(method_call);
2295
    }
2296
 
2297
    public static class scanForOursExternalSale_call extends org.apache.thrift.async.TAsyncMethodCall {
2298
      private long itemId;
2299
      private String serialNumber;
2300
      private String itemNumber;
2301
      private String invoiceNumber;
2302
      private long warehouseId;
2303
      private double unitPrice;
2304
      private long orderId;
2305
      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 {
2306
        super(client, protocolFactory, transport, resultHandler, false);
2307
        this.itemId = itemId;
2308
        this.serialNumber = serialNumber;
2309
        this.itemNumber = itemNumber;
2310
        this.invoiceNumber = invoiceNumber;
2311
        this.warehouseId = warehouseId;
2312
        this.unitPrice = unitPrice;
2313
        this.orderId = orderId;
2314
      }
2315
 
2316
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2317
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
2318
        scanForOursExternalSale_args args = new scanForOursExternalSale_args();
2319
        args.setItemId(itemId);
2320
        args.setSerialNumber(serialNumber);
2321
        args.setItemNumber(itemNumber);
2322
        args.setInvoiceNumber(invoiceNumber);
2323
        args.setWarehouseId(warehouseId);
2324
        args.setUnitPrice(unitPrice);
2325
        args.setOrderId(orderId);
2326
        args.write(prot);
2327
        prot.writeMessageEnd();
2328
      }
2329
 
2330
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2331
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2332
          throw new IllegalStateException("Method call not finished!");
2333
        }
2334
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2335
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2336
        return (new Client(prot)).recv_scanForOursExternalSale();
2337
      }
2338
    }
2339
 
2340
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException {
2341
      checkReady();
2342
      scanForOursExternalSaleReturn_call method_call = new scanForOursExternalSaleReturn_call(orderId, unitPrice, resultHandler, this, ___protocolFactory, ___transport);
2343
      this.___currentMethod = method_call;
2344
      ___manager.call(method_call);
2345
    }
2346
 
2347
    public static class scanForOursExternalSaleReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
2348
      private long orderId;
2349
      private double unitPrice;
2350
      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 {
2351
        super(client, protocolFactory, transport, resultHandler, false);
2352
        this.orderId = orderId;
2353
        this.unitPrice = unitPrice;
2354
      }
2355
 
2356
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2357
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSaleReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2358
        scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
2359
        args.setOrderId(orderId);
2360
        args.setUnitPrice(unitPrice);
2361
        args.write(prot);
2362
        prot.writeMessageEnd();
2363
      }
2364
 
7410 amar.kumar 2365
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
6762 amar.kumar 2366
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2367
          throw new IllegalStateException("Method call not finished!");
2368
        }
2369
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2370
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2371
        (new Client(prot)).recv_scanForOursExternalSaleReturn();
2372
      }
2373
    }
2374
 
6880 amar.kumar 2375
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2376
      checkReady();
2377
      getMovementNonSerializedInventoryByScans_call method_call = new getMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2378
      this.___currentMethod = method_call;
2379
      ___manager.call(method_call);
2380
    }
2381
 
2382
    public static class getMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2383
      private long startDate;
2384
      private long endDate;
2385
      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 {
2386
        super(client, protocolFactory, transport, resultHandler, false);
2387
        this.startDate = startDate;
2388
        this.endDate = endDate;
2389
      }
2390
 
2391
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2392
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2393
        getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
2394
        args.setStartDate(startDate);
2395
        args.setEndDate(endDate);
2396
        args.write(prot);
2397
        prot.writeMessageEnd();
2398
      }
2399
 
2400
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2401
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2402
          throw new IllegalStateException("Method call not finished!");
2403
        }
2404
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2405
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2406
        return (new Client(prot)).recv_getMovementNonSerializedInventoryByScans();
2407
      }
2408
    }
2409
 
2410
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2411
      checkReady();
2412
      getMovementSerializedInventoryByScans_call method_call = new getMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2413
      this.___currentMethod = method_call;
2414
      ___manager.call(method_call);
2415
    }
2416
 
2417
    public static class getMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2418
      private long startDate;
2419
      private long endDate;
2420
      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 {
2421
        super(client, protocolFactory, transport, resultHandler, false);
2422
        this.startDate = startDate;
2423
        this.endDate = endDate;
2424
      }
2425
 
2426
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2427
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2428
        getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
2429
        args.setStartDate(startDate);
2430
        args.setEndDate(endDate);
2431
        args.write(prot);
2432
        prot.writeMessageEnd();
2433
      }
2434
 
2435
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2436
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2437
          throw new IllegalStateException("Method call not finished!");
2438
        }
2439
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2440
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2441
        return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
2442
      }
2443
    }
2444
 
7216 amar.kumar 2445
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2446
      checkReady();
2447
      getCompleteMovementSerializedInventoryByScans_call method_call = new getCompleteMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2448
      this.___currentMethod = method_call;
2449
      ___manager.call(method_call);
2450
    }
2451
 
2452
    public static class getCompleteMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2453
      private long startDate;
2454
      private long endDate;
2455
      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 {
2456
        super(client, protocolFactory, transport, resultHandler, false);
2457
        this.startDate = startDate;
2458
        this.endDate = endDate;
2459
      }
2460
 
2461
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2462
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2463
        getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
2464
        args.setStartDate(startDate);
2465
        args.setEndDate(endDate);
2466
        args.write(prot);
2467
        prot.writeMessageEnd();
2468
      }
2469
 
2470
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2471
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2472
          throw new IllegalStateException("Method call not finished!");
2473
        }
2474
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2475
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2476
        return (new Client(prot)).recv_getCompleteMovementSerializedInventoryByScans();
2477
      }
2478
    }
2479
 
2480
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2481
      checkReady();
2482
      getCompleteMovementNonSerializedInventoryByScans_call method_call = new getCompleteMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2483
      this.___currentMethod = method_call;
2484
      ___manager.call(method_call);
2485
    }
2486
 
2487
    public static class getCompleteMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2488
      private long startDate;
2489
      private long endDate;
2490
      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 {
2491
        super(client, protocolFactory, transport, resultHandler, false);
2492
        this.startDate = startDate;
2493
        this.endDate = endDate;
2494
      }
2495
 
2496
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2497
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2498
        getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
2499
        args.setStartDate(startDate);
2500
        args.setEndDate(endDate);
2501
        args.write(prot);
2502
        prot.writeMessageEnd();
2503
      }
2504
 
2505
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2506
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2507
          throw new IllegalStateException("Method call not finished!");
2508
        }
2509
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2510
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2511
        return (new Client(prot)).recv_getCompleteMovementNonSerializedInventoryByScans();
2512
      }
2513
    }
2514
 
7190 amar.kumar 2515
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<scanfreebie_call> resultHandler) throws org.apache.thrift.TException {
2516
      checkReady();
2517
      scanfreebie_call method_call = new scanfreebie_call(orderId, freebieItemId, freebieWarehouseId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2518
      this.___currentMethod = method_call;
2519
      ___manager.call(method_call);
2520
    }
2521
 
2522
    public static class scanfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
2523
      private long orderId;
2524
      private long freebieItemId;
2525
      private long freebieWarehouseId;
2526
      private ScanType scanType;
2527
      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 {
2528
        super(client, protocolFactory, transport, resultHandler, false);
2529
        this.orderId = orderId;
2530
        this.freebieItemId = freebieItemId;
2531
        this.freebieWarehouseId = freebieWarehouseId;
2532
        this.scanType = scanType;
2533
      }
2534
 
2535
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2536
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
2537
        scanfreebie_args args = new scanfreebie_args();
2538
        args.setOrderId(orderId);
2539
        args.setFreebieItemId(freebieItemId);
2540
        args.setFreebieWarehouseId(freebieWarehouseId);
2541
        args.setScanType(scanType);
2542
        args.write(prot);
2543
        prot.writeMessageEnd();
2544
      }
2545
 
2546
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2547
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2548
          throw new IllegalStateException("Method call not finished!");
2549
        }
2550
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2551
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2552
        return (new Client(prot)).recv_scanfreebie();
2553
      }
2554
    }
2555
 
7199 amar.kumar 2556
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<reshipfreebie_call> resultHandler) throws org.apache.thrift.TException {
2557
      checkReady();
2558
      reshipfreebie_call method_call = new reshipfreebie_call(oldOrderId, newOrderId, freebieItemId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2559
      this.___currentMethod = method_call;
2560
      ___manager.call(method_call);
2561
    }
2562
 
2563
    public static class reshipfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
2564
      private long oldOrderId;
2565
      private long newOrderId;
2566
      private long freebieItemId;
2567
      private ScanType scanType;
2568
      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 {
2569
        super(client, protocolFactory, transport, resultHandler, false);
2570
        this.oldOrderId = oldOrderId;
2571
        this.newOrderId = newOrderId;
2572
        this.freebieItemId = freebieItemId;
2573
        this.scanType = scanType;
2574
      }
2575
 
2576
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2577
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
2578
        reshipfreebie_args args = new reshipfreebie_args();
2579
        args.setOldOrderId(oldOrderId);
2580
        args.setNewOrderId(newOrderId);
2581
        args.setFreebieItemId(freebieItemId);
2582
        args.setScanType(scanType);
2583
        args.write(prot);
2584
        prot.writeMessageEnd();
2585
      }
2586
 
2587
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2588
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2589
          throw new IllegalStateException("Method call not finished!");
2590
        }
2591
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2592
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2593
        (new Client(prot)).recv_reshipfreebie();
2594
      }
2595
    }
2596
 
7410 amar.kumar 2597
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException {
2598
      checkReady();
2599
      isItemTransferAllowed_call method_call = new isItemTransferAllowed_call(warehouseId, transferWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2600
      this.___currentMethod = method_call;
2601
      ___manager.call(method_call);
2602
    }
2603
 
2604
    public static class isItemTransferAllowed_call extends org.apache.thrift.async.TAsyncMethodCall {
2605
      private long warehouseId;
2606
      private long transferWarehouseId;
2607
      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 {
2608
        super(client, protocolFactory, transport, resultHandler, false);
2609
        this.warehouseId = warehouseId;
2610
        this.transferWarehouseId = transferWarehouseId;
2611
      }
2612
 
2613
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2614
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isItemTransferAllowed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2615
        isItemTransferAllowed_args args = new isItemTransferAllowed_args();
2616
        args.setWarehouseId(warehouseId);
2617
        args.setTransferWarehouseId(transferWarehouseId);
2618
        args.write(prot);
2619
        prot.writeMessageEnd();
2620
      }
2621
 
2622
      public boolean getResult() throws org.apache.thrift.TException {
2623
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2624
          throw new IllegalStateException("Method call not finished!");
2625
        }
2626
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2627
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2628
        return (new Client(prot)).recv_isItemTransferAllowed();
2629
      }
2630
    }
2631
 
2632
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<createTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2633
      checkReady();
2634
      createTransferLot_call method_call = new createTransferLot_call(originWarehouseId, destWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2635
      this.___currentMethod = method_call;
2636
      ___manager.call(method_call);
2637
    }
2638
 
2639
    public static class createTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2640
      private long originWarehouseId;
2641
      private long destWarehouseId;
2642
      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 {
2643
        super(client, protocolFactory, transport, resultHandler, false);
2644
        this.originWarehouseId = originWarehouseId;
2645
        this.destWarehouseId = destWarehouseId;
2646
      }
2647
 
2648
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2649
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2650
        createTransferLot_args args = new createTransferLot_args();
2651
        args.setOriginWarehouseId(originWarehouseId);
2652
        args.setDestWarehouseId(destWarehouseId);
2653
        args.write(prot);
2654
        prot.writeMessageEnd();
2655
      }
2656
 
2657
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2658
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2659
          throw new IllegalStateException("Method call not finished!");
2660
        }
2661
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2662
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2663
        return (new Client(prot)).recv_createTransferLot();
2664
      }
2665
    }
2666
 
2667
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2668
      checkReady();
2669
      getTransferLot_call method_call = new getTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2670
      this.___currentMethod = method_call;
2671
      ___manager.call(method_call);
2672
    }
2673
 
2674
    public static class getTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2675
      private long transferLotId;
2676
      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 {
2677
        super(client, protocolFactory, transport, resultHandler, false);
2678
        this.transferLotId = transferLotId;
2679
      }
2680
 
2681
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2682
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2683
        getTransferLot_args args = new getTransferLot_args();
2684
        args.setTransferLotId(transferLotId);
2685
        args.write(prot);
2686
        prot.writeMessageEnd();
2687
      }
2688
 
2689
      public TransferLot getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2690
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2691
          throw new IllegalStateException("Method call not finished!");
2692
        }
2693
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2694
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2695
        return (new Client(prot)).recv_getTransferLot();
2696
      }
2697
    }
2698
 
2699
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException {
2700
      checkReady();
2701
      markTransferLotAsReceived_call method_call = new markTransferLotAsReceived_call(id, remoteTransferRefNumber, resultHandler, this, ___protocolFactory, ___transport);
2702
      this.___currentMethod = method_call;
2703
      ___manager.call(method_call);
2704
    }
2705
 
2706
    public static class markTransferLotAsReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
2707
      private long id;
2708
      private String remoteTransferRefNumber;
2709
      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 {
2710
        super(client, protocolFactory, transport, resultHandler, false);
2711
        this.id = id;
2712
        this.remoteTransferRefNumber = remoteTransferRefNumber;
2713
      }
2714
 
2715
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2716
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransferLotAsReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
2717
        markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
2718
        args.setId(id);
2719
        args.setRemoteTransferRefNumber(remoteTransferRefNumber);
2720
        args.write(prot);
2721
        prot.writeMessageEnd();
2722
      }
2723
 
2724
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2725
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2726
          throw new IllegalStateException("Method call not finished!");
2727
        }
2728
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2729
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2730
        (new Client(prot)).recv_markTransferLotAsReceived();
2731
      }
2732
    }
2733
 
2734
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException {
2735
      checkReady();
2736
      getTransferLotsByDate_call method_call = new getTransferLotsByDate_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
2737
      this.___currentMethod = method_call;
2738
      ___manager.call(method_call);
2739
    }
2740
 
2741
    public static class getTransferLotsByDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2742
      private long fromDate;
2743
      private long toDate;
2744
      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 {
2745
        super(client, protocolFactory, transport, resultHandler, false);
2746
        this.fromDate = fromDate;
2747
        this.toDate = toDate;
2748
      }
2749
 
2750
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2751
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLotsByDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2752
        getTransferLotsByDate_args args = new getTransferLotsByDate_args();
2753
        args.setFromDate(fromDate);
2754
        args.setToDate(toDate);
2755
        args.write(prot);
2756
        prot.writeMessageEnd();
2757
      }
2758
 
2759
      public List<TransferLot> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2760
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2761
          throw new IllegalStateException("Method call not finished!");
2762
        }
2763
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2764
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2765
        return (new Client(prot)).recv_getTransferLotsByDate();
2766
      }
2767
    }
2768
 
2769
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException {
2770
      checkReady();
2771
      getAllowedDestinationWarehousesForTransfer_call method_call = new getAllowedDestinationWarehousesForTransfer_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2772
      this.___currentMethod = method_call;
2773
      ___manager.call(method_call);
2774
    }
2775
 
2776
    public static class getAllowedDestinationWarehousesForTransfer_call extends org.apache.thrift.async.TAsyncMethodCall {
2777
      private long warehouseId;
2778
      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 {
2779
        super(client, protocolFactory, transport, resultHandler, false);
2780
        this.warehouseId = warehouseId;
2781
      }
2782
 
2783
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2784
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllowedDestinationWarehousesForTransfer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2785
        getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
2786
        args.setWarehouseId(warehouseId);
2787
        args.write(prot);
2788
        prot.writeMessageEnd();
2789
      }
2790
 
2791
      public List<Long> getResult() throws org.apache.thrift.TException {
2792
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2793
          throw new IllegalStateException("Method call not finished!");
2794
        }
2795
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2796
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2797
        return (new Client(prot)).recv_getAllowedDestinationWarehousesForTransfer();
2798
      }
2799
    }
2800
 
2801
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2802
      checkReady();
2803
      getItemsInTransferLot_call method_call = new getItemsInTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2804
      this.___currentMethod = method_call;
2805
      ___manager.call(method_call);
2806
    }
2807
 
2808
    public static class getItemsInTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2809
      private long transferLotId;
2810
      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 {
2811
        super(client, protocolFactory, transport, resultHandler, false);
2812
        this.transferLotId = transferLotId;
2813
      }
2814
 
2815
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2816
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsInTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2817
        getItemsInTransferLot_args args = new getItemsInTransferLot_args();
2818
        args.setTransferLotId(transferLotId);
2819
        args.write(prot);
2820
        prot.writeMessageEnd();
2821
      }
2822
 
2823
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
2824
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2825
          throw new IllegalStateException("Method call not finished!");
2826
        }
2827
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2828
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2829
        return (new Client(prot)).recv_getItemsInTransferLot();
2830
      }
2831
    }
2832
 
2833
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2834
      checkReady();
2835
      markItemsAsReceivedForTransferLot_call method_call = new markItemsAsReceivedForTransferLot_call(id, resultHandler, this, ___protocolFactory, ___transport);
2836
      this.___currentMethod = method_call;
2837
      ___manager.call(method_call);
2838
    }
2839
 
2840
    public static class markItemsAsReceivedForTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2841
      private long id;
2842
      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 {
2843
        super(client, protocolFactory, transport, resultHandler, false);
2844
        this.id = id;
2845
      }
2846
 
2847
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2848
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markItemsAsReceivedForTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2849
        markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
2850
        args.setId(id);
2851
        args.write(prot);
2852
        prot.writeMessageEnd();
2853
      }
2854
 
2855
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2856
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2857
          throw new IllegalStateException("Method call not finished!");
2858
        }
2859
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2860
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2861
        (new Client(prot)).recv_markItemsAsReceivedForTransferLot();
2862
      }
2863
    }
2864
 
2865
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException {
2866
      checkReady();
2867
      updateTransferLotAfterItemReceive_call method_call = new updateTransferLotAfterItemReceive_call(id, resultHandler, this, ___protocolFactory, ___transport);
2868
      this.___currentMethod = method_call;
2869
      ___manager.call(method_call);
2870
    }
2871
 
2872
    public static class updateTransferLotAfterItemReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
2873
      private long id;
2874
      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 {
2875
        super(client, protocolFactory, transport, resultHandler, false);
2876
        this.id = id;
2877
      }
2878
 
2879
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2880
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTransferLotAfterItemReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
2881
        updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
2882
        args.setId(id);
2883
        args.write(prot);
2884
        prot.writeMessageEnd();
2885
      }
2886
 
2887
      public TransferLotStatus getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2888
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2889
          throw new IllegalStateException("Method call not finished!");
2890
        }
2891
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2892
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2893
        return (new Client(prot)).recv_updateTransferLotAfterItemReceive();
2894
      }
2895
    }
2896
 
7453 amar.kumar 2897
    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 2898
      checkReady();
7453 amar.kumar 2899
      scanForTransferOut_call method_call = new scanForTransferOut_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
7410 amar.kumar 2900
      this.___currentMethod = method_call;
2901
      ___manager.call(method_call);
2902
    }
2903
 
7453 amar.kumar 2904
    public static class scanForTransferOut_call extends org.apache.thrift.async.TAsyncMethodCall {
7410 amar.kumar 2905
      private List<InventoryItem> inventoryItems;
2906
      private ScanType type;
2907
      private long transferLotId;
7453 amar.kumar 2908
      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 2909
        super(client, protocolFactory, transport, resultHandler, false);
2910
        this.inventoryItems = inventoryItems;
2911
        this.type = type;
2912
        this.transferLotId = transferLotId;
2913
      }
2914
 
2915
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7453 amar.kumar 2916
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransferOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
2917
        scanForTransferOut_args args = new scanForTransferOut_args();
7410 amar.kumar 2918
        args.setInventoryItems(inventoryItems);
2919
        args.setType(type);
2920
        args.setTransferLotId(transferLotId);
2921
        args.write(prot);
2922
        prot.writeMessageEnd();
2923
      }
2924
 
2925
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2926
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2927
          throw new IllegalStateException("Method call not finished!");
2928
        }
2929
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2930
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7453 amar.kumar 2931
        (new Client(prot)).recv_scanForTransferOut();
7410 amar.kumar 2932
      }
2933
    }
2934
 
7453 amar.kumar 2935
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException {
2936
      checkReady();
2937
      scanForTransferIn_call method_call = new scanForTransferIn_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2938
      this.___currentMethod = method_call;
2939
      ___manager.call(method_call);
2940
    }
2941
 
2942
    public static class scanForTransferIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2943
      private List<InventoryItem> inventoryItems;
2944
      private ScanType type;
2945
      private long transferLotId;
2946
      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 {
2947
        super(client, protocolFactory, transport, resultHandler, false);
2948
        this.inventoryItems = inventoryItems;
2949
        this.type = type;
2950
        this.transferLotId = transferLotId;
2951
      }
2952
 
2953
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2954
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransferIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2955
        scanForTransferIn_args args = new scanForTransferIn_args();
2956
        args.setInventoryItems(inventoryItems);
2957
        args.setType(type);
2958
        args.setTransferLotId(transferLotId);
2959
        args.write(prot);
2960
        prot.writeMessageEnd();
2961
      }
2962
 
2963
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2964
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2965
          throw new IllegalStateException("Method call not finished!");
2966
        }
2967
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2968
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2969
        (new Client(prot)).recv_scanForTransferIn();
2970
      }
2971
    }
2972
 
2973
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException {
2974
      checkReady();
2975
      scanForOursThirdPartyReceive_call method_call = new scanForOursThirdPartyReceive_call(inventoryItems, id, resultHandler, this, ___protocolFactory, ___transport);
2976
      this.___currentMethod = method_call;
2977
      ___manager.call(method_call);
2978
    }
2979
 
2980
    public static class scanForOursThirdPartyReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
2981
      private List<InventoryItem> inventoryItems;
2982
      private long id;
2983
      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 {
2984
        super(client, protocolFactory, transport, resultHandler, false);
2985
        this.inventoryItems = inventoryItems;
2986
        this.id = id;
2987
      }
2988
 
2989
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2990
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursThirdPartyReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
2991
        scanForOursThirdPartyReceive_args args = new scanForOursThirdPartyReceive_args();
2992
        args.setInventoryItems(inventoryItems);
2993
        args.setId(id);
2994
        args.write(prot);
2995
        prot.writeMessageEnd();
2996
      }
2997
 
2998
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2999
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3000
          throw new IllegalStateException("Method call not finished!");
3001
        }
3002
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3003
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3004
        (new Client(prot)).recv_scanForOursThirdPartyReceive();
3005
      }
3006
    }
3007
 
7574 amar.kumar 3008
    public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException {
3009
      checkReady();
3010
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call method_call = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call(itemId, physicalWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3011
      this.___currentMethod = method_call;
3012
      ___manager.call(method_call);
3013
    }
3014
 
3015
    public static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
3016
      private long itemId;
3017
      private long physicalWarehouseId;
3018
      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 {
3019
        super(client, protocolFactory, transport, resultHandler, false);
3020
        this.itemId = itemId;
3021
        this.physicalWarehouseId = physicalWarehouseId;
3022
      }
3023
 
3024
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3025
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
3026
        getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args args = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args();
3027
        args.setItemId(itemId);
3028
        args.setPhysicalWarehouseId(physicalWarehouseId);
3029
        args.write(prot);
3030
        prot.writeMessageEnd();
3031
      }
3032
 
3033
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3034
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3035
          throw new IllegalStateException("Method call not finished!");
3036
        }
3037
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3038
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3039
        return (new Client(prot)).recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse();
3040
      }
3041
    }
3042
 
3430 rajveer 3043
  }
3044
 
3045
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3046
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3047
    public Processor(I iface) {
3048
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
3049
    }
3050
 
3051
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3052
      super(iface, getProcessMap(processMap));
3053
    }
3054
 
3055
    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 3056
      processMap.put("getInventoryItem", new getInventoryItem());
5361 mandeep.dh 3057
      processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
4496 mandeep.dh 3058
      processMap.put("scan", new scan());
3059
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
3060
      processMap.put("scanForOrder", new scanForOrder());
3061
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
4622 amit.gupta 3062
      processMap.put("getItemNumbers", new getItemNumbers());
5110 mandeep.dh 3063
      processMap.put("getItemIds", new getItemIds());
5185 mandeep.dh 3064
      processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
3065
      processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
5372 mandeep.dh 3066
      processMap.put("getPurchaseScans", new getPurchaseScans());
7210 amar.kumar 3067
      processMap.put("getPurchaseScansByGrnDate", new getPurchaseScansByGrnDate());
5496 mandeep.dh 3068
      processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
5620 mandeep.dh 3069
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
5711 mandeep.dh 3070
      processMap.put("getInventoryAge", new getInventoryAge());
6322 amar.kumar 3071
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
3072
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
6467 amar.kumar 3073
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
6548 amar.kumar 3074
      processMap.put("scanForLostItem", new scanForLostItem());
3075
      processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
6630 amar.kumar 3076
      processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
6762 amar.kumar 3077
      processMap.put("getHistoricSerializedInventoryByScans", new getHistoricSerializedInventoryByScans());
3078
      processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
3079
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
3080
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
6880 amar.kumar 3081
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
3082
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
7216 amar.kumar 3083
      processMap.put("getCompleteMovementSerializedInventoryByScans", new getCompleteMovementSerializedInventoryByScans());
3084
      processMap.put("getCompleteMovementNonSerializedInventoryByScans", new getCompleteMovementNonSerializedInventoryByScans());
7190 amar.kumar 3085
      processMap.put("scanfreebie", new scanfreebie());
7199 amar.kumar 3086
      processMap.put("reshipfreebie", new reshipfreebie());
7410 amar.kumar 3087
      processMap.put("isItemTransferAllowed", new isItemTransferAllowed());
3088
      processMap.put("createTransferLot", new createTransferLot());
3089
      processMap.put("getTransferLot", new getTransferLot());
3090
      processMap.put("markTransferLotAsReceived", new markTransferLotAsReceived());
3091
      processMap.put("getTransferLotsByDate", new getTransferLotsByDate());
3092
      processMap.put("getAllowedDestinationWarehousesForTransfer", new getAllowedDestinationWarehousesForTransfer());
3093
      processMap.put("getItemsInTransferLot", new getItemsInTransferLot());
3094
      processMap.put("markItemsAsReceivedForTransferLot", new markItemsAsReceivedForTransferLot());
3095
      processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
7453 amar.kumar 3096
      processMap.put("scanForTransferOut", new scanForTransferOut());
3097
      processMap.put("scanForTransferIn", new scanForTransferIn());
3098
      processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
7574 amar.kumar 3099
      processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
3430 rajveer 3100
      return processMap;
3101
    }
3102
 
4496 mandeep.dh 3103
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3104
      public getInventoryItem() {
3105
        super("getInventoryItem");
3430 rajveer 3106
      }
3107
 
4496 mandeep.dh 3108
      protected getInventoryItem_args getEmptyArgsInstance() {
3109
        return new getInventoryItem_args();
3430 rajveer 3110
      }
3111
 
4496 mandeep.dh 3112
      protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
3113
        getInventoryItem_result result = new getInventoryItem_result();
4541 mandeep.dh 3114
        try {
3115
          result.success = iface.getInventoryItem(args.serialNumber);
3116
        } catch (WarehouseServiceException wex) {
3117
          result.wex = wex;
3118
        }
3430 rajveer 3119
        return result;
2832 chandransh 3120
      }
3121
    }
3122
 
5361 mandeep.dh 3123
    private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
3124
      public getNonSeralizedInventoryItem() {
3125
        super("getNonSeralizedInventoryItem");
3430 rajveer 3126
      }
3127
 
5361 mandeep.dh 3128
      protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
3129
        return new getNonSeralizedInventoryItem_args();
3430 rajveer 3130
      }
3131
 
5361 mandeep.dh 3132
      protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
3133
        getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
3134
        try {
5530 mandeep.dh 3135
          result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
5361 mandeep.dh 3136
        } catch (WarehouseServiceException wex) {
3137
          result.wex = wex;
3138
        }
3430 rajveer 3139
        return result;
2820 chandransh 3140
      }
3141
    }
3142
 
4496 mandeep.dh 3143
    private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
3144
      public scan() {
3145
        super("scan");
3430 rajveer 3146
      }
3147
 
4496 mandeep.dh 3148
      protected scan_args getEmptyArgsInstance() {
3149
        return new scan_args();
3430 rajveer 3150
      }
3151
 
4496 mandeep.dh 3152
      protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
3153
        scan_result result = new scan_result();
3383 chandransh 3154
        try {
7410 amar.kumar 3155
          iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId);
3383 chandransh 3156
        } catch (WarehouseServiceException wex) {
3157
          result.wex = wex;
3158
        }
3430 rajveer 3159
        return result;
3383 chandransh 3160
      }
3161
    }
3162
 
4496 mandeep.dh 3163
    private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
3164
      public scanSerializedItemForOrder() {
3165
        super("scanSerializedItemForOrder");
3430 rajveer 3166
      }
3167
 
4496 mandeep.dh 3168
      protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
3169
        return new scanSerializedItemForOrder_args();
3430 rajveer 3170
      }
3171
 
4496 mandeep.dh 3172
      protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
3173
        scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
2820 chandransh 3174
        try {
5110 mandeep.dh 3175
          result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
2820 chandransh 3176
        } catch (WarehouseServiceException wex) {
3177
          result.wex = wex;
3178
        }
3430 rajveer 3179
        return result;
2820 chandransh 3180
      }
3181
    }
3182
 
4496 mandeep.dh 3183
    private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
3184
      public scanForOrder() {
3185
        super("scanForOrder");
3430 rajveer 3186
      }
3187
 
4496 mandeep.dh 3188
      protected scanForOrder_args getEmptyArgsInstance() {
3189
        return new scanForOrder_args();
3430 rajveer 3190
      }
3191
 
4496 mandeep.dh 3192
      protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
3193
        scanForOrder_result result = new scanForOrder_result();
2820 chandransh 3194
        try {
5361 mandeep.dh 3195
          result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
2820 chandransh 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 createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
3204
      public createItemNumberMapping() {
3205
        super("createItemNumberMapping");
3206
      }
3207
 
3208
      protected createItemNumberMapping_args getEmptyArgsInstance() {
3209
        return new createItemNumberMapping_args();
3210
      }
3211
 
3212
      protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
3213
        createItemNumberMapping_result result = new createItemNumberMapping_result();
3214
        iface.createItemNumberMapping(args.itemNumber, args.itemId);
3215
        return result;
3216
      }
3217
    }
3218
 
4622 amit.gupta 3219
    private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
3220
      public getItemNumbers() {
3221
        super("getItemNumbers");
3222
      }
3223
 
3224
      protected getItemNumbers_args getEmptyArgsInstance() {
3225
        return new getItemNumbers_args();
3226
      }
3227
 
3228
      protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
3229
        getItemNumbers_result result = new getItemNumbers_result();
3230
        result.success = iface.getItemNumbers(args.itemId);
3231
        return result;
3232
      }
3233
    }
3234
 
5110 mandeep.dh 3235
    private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
3236
      public getItemIds() {
3237
        super("getItemIds");
3238
      }
3239
 
3240
      protected getItemIds_args getEmptyArgsInstance() {
3241
        return new getItemIds_args();
3242
      }
3243
 
3244
      protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
3245
        getItemIds_result result = new getItemIds_result();
3246
        result.success = iface.getItemIds(args.itemNumber);
3247
        return result;
3248
      }
3249
    }
3250
 
5185 mandeep.dh 3251
    private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
3252
      public getInventoryItemsFromLastScanType() {
3253
        super("getInventoryItemsFromLastScanType");
3254
      }
3255
 
3256
      protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
3257
        return new getInventoryItemsFromLastScanType_args();
3258
      }
3259
 
3260
      protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
3261
        getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
3262
        try {
3263
          result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
3264
        } catch (WarehouseServiceException wex) {
3265
          result.wex = wex;
3266
        }
3267
        return result;
3268
      }
3269
    }
3270
 
3271
    private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
3272
      public getInventoryItemFromId() {
3273
        super("getInventoryItemFromId");
3274
      }
3275
 
3276
      protected getInventoryItemFromId_args getEmptyArgsInstance() {
3277
        return new getInventoryItemFromId_args();
3278
      }
3279
 
3280
      protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
3281
        getInventoryItemFromId_result result = new getInventoryItemFromId_result();
3282
        try {
3283
          result.success = iface.getInventoryItemFromId(args.inventoryItemId);
3284
        } catch (WarehouseServiceException wex) {
3285
          result.wex = wex;
3286
        }
3287
        return result;
3288
      }
3289
    }
3290
 
5372 mandeep.dh 3291
    private static class getPurchaseScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScans_args> {
3292
      public getPurchaseScans() {
3293
        super("getPurchaseScans");
3294
      }
3295
 
3296
      protected getPurchaseScans_args getEmptyArgsInstance() {
3297
        return new getPurchaseScans_args();
3298
      }
3299
 
3300
      protected getPurchaseScans_result getResult(I iface, getPurchaseScans_args args) throws org.apache.thrift.TException {
3301
        getPurchaseScans_result result = new getPurchaseScans_result();
3302
        result.success = iface.getPurchaseScans(args.startDate, args.endDate);
3303
        return result;
3304
      }
3305
    }
3306
 
7210 amar.kumar 3307
    private static class getPurchaseScansByGrnDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScansByGrnDate_args> {
3308
      public getPurchaseScansByGrnDate() {
3309
        super("getPurchaseScansByGrnDate");
3310
      }
3311
 
3312
      protected getPurchaseScansByGrnDate_args getEmptyArgsInstance() {
3313
        return new getPurchaseScansByGrnDate_args();
3314
      }
3315
 
3316
      protected getPurchaseScansByGrnDate_result getResult(I iface, getPurchaseScansByGrnDate_args args) throws org.apache.thrift.TException {
3317
        getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
3318
        result.success = iface.getPurchaseScansByGrnDate(args.startDate, args.endDate);
3319
        return result;
3320
      }
3321
    }
3322
 
5496 mandeep.dh 3323
    private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
3324
      public fetchScansPerInvoiceNumber() {
3325
        super("fetchScansPerInvoiceNumber");
3326
      }
3327
 
3328
      protected fetchScansPerInvoiceNumber_args getEmptyArgsInstance() {
3329
        return new fetchScansPerInvoiceNumber_args();
3330
      }
3331
 
3332
      protected fetchScansPerInvoiceNumber_result getResult(I iface, fetchScansPerInvoiceNumber_args args) throws org.apache.thrift.TException {
3333
        fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
3334
        result.success = iface.fetchScansPerInvoiceNumber(args.date);
3335
        return result;
3336
      }
3337
    }
3338
 
5620 mandeep.dh 3339
    private static class getInventoryItemFromOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromOrder_args> {
3340
      public getInventoryItemFromOrder() {
3341
        super("getInventoryItemFromOrder");
3342
      }
3343
 
3344
      protected getInventoryItemFromOrder_args getEmptyArgsInstance() {
3345
        return new getInventoryItemFromOrder_args();
3346
      }
3347
 
3348
      protected getInventoryItemFromOrder_result getResult(I iface, getInventoryItemFromOrder_args args) throws org.apache.thrift.TException {
3349
        getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
3350
        try {
3351
          result.success = iface.getInventoryItemFromOrder(args.orderId);
3352
        } catch (WarehouseServiceException we) {
3353
          result.we = we;
3354
        }
3355
        return result;
3356
      }
3357
    }
3358
 
5711 mandeep.dh 3359
    private static class getInventoryAge<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryAge_args> {
3360
      public getInventoryAge() {
3361
        super("getInventoryAge");
3362
      }
3363
 
3364
      protected getInventoryAge_args getEmptyArgsInstance() {
3365
        return new getInventoryAge_args();
3366
      }
3367
 
3368
      protected getInventoryAge_result getResult(I iface, getInventoryAge_args args) throws org.apache.thrift.TException {
3369
        getInventoryAge_result result = new getInventoryAge_result();
3370
        result.success = iface.getInventoryAge();
3371
        return result;
3372
      }
3373
    }
3374
 
6322 amar.kumar 3375
    private static class getInventoryScansForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryScansForItem_args> {
3376
      public getInventoryScansForItem() {
3377
        super("getInventoryScansForItem");
3378
      }
3379
 
3380
      protected getInventoryScansForItem_args getEmptyArgsInstance() {
3381
        return new getInventoryScansForItem_args();
3382
      }
3383
 
3384
      protected getInventoryScansForItem_result getResult(I iface, getInventoryScansForItem_args args) throws org.apache.thrift.TException {
3385
        getInventoryScansForItem_result result = new getInventoryScansForItem_result();
3386
        result.success = iface.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate);
3387
        return result;
3388
      }
3389
    }
3390
 
3391
    private static class getScanRecordsForSerialNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanRecordsForSerialNumber_args> {
3392
      public getScanRecordsForSerialNumber() {
3393
        super("getScanRecordsForSerialNumber");
3394
      }
3395
 
3396
      protected getScanRecordsForSerialNumber_args getEmptyArgsInstance() {
3397
        return new getScanRecordsForSerialNumber_args();
3398
      }
3399
 
3400
      protected getScanRecordsForSerialNumber_result getResult(I iface, getScanRecordsForSerialNumber_args args) throws org.apache.thrift.TException {
3401
        getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
3402
        result.success = iface.getScanRecordsForSerialNumber(args.serialNumber);
3403
        return result;
3404
      }
3405
    }
3406
 
6467 amar.kumar 3407
    private static class scanForPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForPurchaseReturn_args> {
3408
      public scanForPurchaseReturn() {
3409
        super("scanForPurchaseReturn");
3410
      }
3411
 
3412
      protected scanForPurchaseReturn_args getEmptyArgsInstance() {
3413
        return new scanForPurchaseReturn_args();
3414
      }
3415
 
3416
      protected scanForPurchaseReturn_result getResult(I iface, scanForPurchaseReturn_args args) throws org.apache.thrift.TException {
3417
        scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
3418
        try {
3419
          iface.scanForPurchaseReturn(args.saleReturnItems, args.vendorId);
3420
        } catch (WarehouseServiceException ex) {
3421
          result.ex = ex;
3422
        }
3423
        return result;
3424
      }
3425
    }
3426
 
6548 amar.kumar 3427
    private static class scanForLostItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForLostItem_args> {
3428
      public scanForLostItem() {
3429
        super("scanForLostItem");
3430
      }
3431
 
3432
      protected scanForLostItem_args getEmptyArgsInstance() {
3433
        return new scanForLostItem_args();
3434
      }
3435
 
3436
      protected scanForLostItem_result getResult(I iface, scanForLostItem_args args) throws org.apache.thrift.TException {
3437
        scanForLostItem_result result = new scanForLostItem_result();
3438
        try {
3439
          iface.scanForLostItem(args.lostItems, args.vendorId);
3440
        } catch (WarehouseServiceException ex) {
3441
          result.ex = ex;
3442
        }
3443
        return result;
3444
      }
3445
    }
3446
 
3447
    private static class getCurrentSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentSerializedInventoryByScans_args> {
3448
      public getCurrentSerializedInventoryByScans() {
3449
        super("getCurrentSerializedInventoryByScans");
3450
      }
3451
 
3452
      protected getCurrentSerializedInventoryByScans_args getEmptyArgsInstance() {
3453
        return new getCurrentSerializedInventoryByScans_args();
3454
      }
3455
 
3456
      protected getCurrentSerializedInventoryByScans_result getResult(I iface, getCurrentSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3457
        getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
3458
        result.success = iface.getCurrentSerializedInventoryByScans();
3459
        return result;
3460
      }
3461
    }
3462
 
6630 amar.kumar 3463
    private static class getCurrentNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentNonSerializedInventoryByScans_args> {
3464
      public getCurrentNonSerializedInventoryByScans() {
3465
        super("getCurrentNonSerializedInventoryByScans");
3466
      }
3467
 
3468
      protected getCurrentNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3469
        return new getCurrentNonSerializedInventoryByScans_args();
3470
      }
3471
 
3472
      protected getCurrentNonSerializedInventoryByScans_result getResult(I iface, getCurrentNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3473
        getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
3474
        result.success = iface.getCurrentNonSerializedInventoryByScans();
3475
        return result;
3476
      }
3477
    }
3478
 
6762 amar.kumar 3479
    private static class getHistoricSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricSerializedInventoryByScans_args> {
3480
      public getHistoricSerializedInventoryByScans() {
3481
        super("getHistoricSerializedInventoryByScans");
3482
      }
3483
 
3484
      protected getHistoricSerializedInventoryByScans_args getEmptyArgsInstance() {
3485
        return new getHistoricSerializedInventoryByScans_args();
3486
      }
3487
 
3488
      protected getHistoricSerializedInventoryByScans_result getResult(I iface, getHistoricSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3489
        getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
3490
        result.success = iface.getHistoricSerializedInventoryByScans(args.date);
3491
        return result;
3492
      }
3493
    }
3494
 
3495
    private static class getHistoricNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricNonSerializedInventoryByScans_args> {
3496
      public getHistoricNonSerializedInventoryByScans() {
3497
        super("getHistoricNonSerializedInventoryByScans");
3498
      }
3499
 
3500
      protected getHistoricNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3501
        return new getHistoricNonSerializedInventoryByScans_args();
3502
      }
3503
 
3504
      protected getHistoricNonSerializedInventoryByScans_result getResult(I iface, getHistoricNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3505
        getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
3506
        result.success = iface.getHistoricNonSerializedInventoryByScans(args.date);
3507
        return result;
3508
      }
3509
    }
3510
 
3511
    private static class scanForOursExternalSale<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSale_args> {
3512
      public scanForOursExternalSale() {
3513
        super("scanForOursExternalSale");
3514
      }
3515
 
3516
      protected scanForOursExternalSale_args getEmptyArgsInstance() {
3517
        return new scanForOursExternalSale_args();
3518
      }
3519
 
3520
      protected scanForOursExternalSale_result getResult(I iface, scanForOursExternalSale_args args) throws org.apache.thrift.TException {
3521
        scanForOursExternalSale_result result = new scanForOursExternalSale_result();
3522
        try {
3523
          result.success = iface.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.orderId);
3524
        } catch (WarehouseServiceException ex) {
3525
          result.ex = ex;
3526
        }
3527
        return result;
3528
      }
3529
    }
3530
 
3531
    private static class scanForOursExternalSaleReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSaleReturn_args> {
3532
      public scanForOursExternalSaleReturn() {
3533
        super("scanForOursExternalSaleReturn");
3534
      }
3535
 
3536
      protected scanForOursExternalSaleReturn_args getEmptyArgsInstance() {
3537
        return new scanForOursExternalSaleReturn_args();
3538
      }
3539
 
3540
      protected scanForOursExternalSaleReturn_result getResult(I iface, scanForOursExternalSaleReturn_args args) throws org.apache.thrift.TException {
3541
        scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
7410 amar.kumar 3542
        try {
3543
          iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
3544
        } catch (WarehouseServiceException ex) {
3545
          result.ex = ex;
3546
        }
6762 amar.kumar 3547
        return result;
3548
      }
3549
    }
3550
 
6880 amar.kumar 3551
    private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
3552
      public getMovementNonSerializedInventoryByScans() {
3553
        super("getMovementNonSerializedInventoryByScans");
3554
      }
3555
 
3556
      protected getMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3557
        return new getMovementNonSerializedInventoryByScans_args();
3558
      }
3559
 
3560
      protected getMovementNonSerializedInventoryByScans_result getResult(I iface, getMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3561
        getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
3562
        result.success = iface.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
3563
        return result;
3564
      }
3565
    }
3566
 
3567
    private static class getMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementSerializedInventoryByScans_args> {
3568
      public getMovementSerializedInventoryByScans() {
3569
        super("getMovementSerializedInventoryByScans");
3570
      }
3571
 
3572
      protected getMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
3573
        return new getMovementSerializedInventoryByScans_args();
3574
      }
3575
 
3576
      protected getMovementSerializedInventoryByScans_result getResult(I iface, getMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3577
        getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
3578
        result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
3579
        return result;
3580
      }
3581
    }
3582
 
7216 amar.kumar 3583
    private static class getCompleteMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementSerializedInventoryByScans_args> {
3584
      public getCompleteMovementSerializedInventoryByScans() {
3585
        super("getCompleteMovementSerializedInventoryByScans");
3586
      }
3587
 
3588
      protected getCompleteMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
3589
        return new getCompleteMovementSerializedInventoryByScans_args();
3590
      }
3591
 
3592
      protected getCompleteMovementSerializedInventoryByScans_result getResult(I iface, getCompleteMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3593
        getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
3594
        result.success = iface.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate);
3595
        return result;
3596
      }
3597
    }
3598
 
3599
    private static class getCompleteMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementNonSerializedInventoryByScans_args> {
3600
      public getCompleteMovementNonSerializedInventoryByScans() {
3601
        super("getCompleteMovementNonSerializedInventoryByScans");
3602
      }
3603
 
3604
      protected getCompleteMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3605
        return new getCompleteMovementNonSerializedInventoryByScans_args();
3606
      }
3607
 
3608
      protected getCompleteMovementNonSerializedInventoryByScans_result getResult(I iface, getCompleteMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3609
        getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
3610
        result.success = iface.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
3611
        return result;
3612
      }
3613
    }
3614
 
7190 amar.kumar 3615
    private static class scanfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanfreebie_args> {
3616
      public scanfreebie() {
3617
        super("scanfreebie");
3618
      }
3619
 
3620
      protected scanfreebie_args getEmptyArgsInstance() {
3621
        return new scanfreebie_args();
3622
      }
3623
 
3624
      protected scanfreebie_result getResult(I iface, scanfreebie_args args) throws org.apache.thrift.TException {
3625
        scanfreebie_result result = new scanfreebie_result();
3626
        try {
3627
          result.success = iface.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType);
3628
        } catch (WarehouseServiceException wex) {
3629
          result.wex = wex;
3630
        }
3631
        return result;
3632
      }
3633
    }
3634
 
7199 amar.kumar 3635
    private static class reshipfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipfreebie_args> {
3636
      public reshipfreebie() {
3637
        super("reshipfreebie");
3638
      }
3639
 
3640
      protected reshipfreebie_args getEmptyArgsInstance() {
3641
        return new reshipfreebie_args();
3642
      }
3643
 
3644
      protected reshipfreebie_result getResult(I iface, reshipfreebie_args args) throws org.apache.thrift.TException {
3645
        reshipfreebie_result result = new reshipfreebie_result();
3646
        try {
3647
          iface.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType);
3648
        } catch (WarehouseServiceException wex) {
3649
          result.wex = wex;
3650
        }
3651
        return result;
3652
      }
3653
    }
3654
 
7410 amar.kumar 3655
    private static class isItemTransferAllowed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isItemTransferAllowed_args> {
3656
      public isItemTransferAllowed() {
3657
        super("isItemTransferAllowed");
3658
      }
3659
 
3660
      protected isItemTransferAllowed_args getEmptyArgsInstance() {
3661
        return new isItemTransferAllowed_args();
3662
      }
3663
 
3664
      protected isItemTransferAllowed_result getResult(I iface, isItemTransferAllowed_args args) throws org.apache.thrift.TException {
3665
        isItemTransferAllowed_result result = new isItemTransferAllowed_result();
3666
        result.success = iface.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId);
3667
        result.setSuccessIsSet(true);
3668
        return result;
3669
      }
3670
    }
3671
 
3672
    private static class createTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransferLot_args> {
3673
      public createTransferLot() {
3674
        super("createTransferLot");
3675
      }
3676
 
3677
      protected createTransferLot_args getEmptyArgsInstance() {
3678
        return new createTransferLot_args();
3679
      }
3680
 
3681
      protected createTransferLot_result getResult(I iface, createTransferLot_args args) throws org.apache.thrift.TException {
3682
        createTransferLot_result result = new createTransferLot_result();
3683
        try {
3684
          result.success = iface.createTransferLot(args.originWarehouseId, args.destWarehouseId);
3685
          result.setSuccessIsSet(true);
3686
        } catch (WarehouseServiceException wex) {
3687
          result.wex = wex;
3688
        }
3689
        return result;
3690
      }
3691
    }
3692
 
3693
    private static class getTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLot_args> {
3694
      public getTransferLot() {
3695
        super("getTransferLot");
3696
      }
3697
 
3698
      protected getTransferLot_args getEmptyArgsInstance() {
3699
        return new getTransferLot_args();
3700
      }
3701
 
3702
      protected getTransferLot_result getResult(I iface, getTransferLot_args args) throws org.apache.thrift.TException {
3703
        getTransferLot_result result = new getTransferLot_result();
3704
        try {
3705
          result.success = iface.getTransferLot(args.transferLotId);
3706
        } catch (WarehouseServiceException wex) {
3707
          result.wex = wex;
3708
        }
3709
        return result;
3710
      }
3711
    }
3712
 
3713
    private static class markTransferLotAsReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransferLotAsReceived_args> {
3714
      public markTransferLotAsReceived() {
3715
        super("markTransferLotAsReceived");
3716
      }
3717
 
3718
      protected markTransferLotAsReceived_args getEmptyArgsInstance() {
3719
        return new markTransferLotAsReceived_args();
3720
      }
3721
 
3722
      protected markTransferLotAsReceived_result getResult(I iface, markTransferLotAsReceived_args args) throws org.apache.thrift.TException {
3723
        markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
3724
        try {
3725
          iface.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber);
3726
        } catch (WarehouseServiceException wex) {
3727
          result.wex = wex;
3728
        }
3729
        return result;
3730
      }
3731
    }
3732
 
3733
    private static class getTransferLotsByDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLotsByDate_args> {
3734
      public getTransferLotsByDate() {
3735
        super("getTransferLotsByDate");
3736
      }
3737
 
3738
      protected getTransferLotsByDate_args getEmptyArgsInstance() {
3739
        return new getTransferLotsByDate_args();
3740
      }
3741
 
3742
      protected getTransferLotsByDate_result getResult(I iface, getTransferLotsByDate_args args) throws org.apache.thrift.TException {
3743
        getTransferLotsByDate_result result = new getTransferLotsByDate_result();
3744
        try {
3745
          result.success = iface.getTransferLotsByDate(args.fromDate, args.toDate);
3746
        } catch (WarehouseServiceException wex) {
3747
          result.wex = wex;
3748
        }
3749
        return result;
3750
      }
3751
    }
3752
 
3753
    private static class getAllowedDestinationWarehousesForTransfer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllowedDestinationWarehousesForTransfer_args> {
3754
      public getAllowedDestinationWarehousesForTransfer() {
3755
        super("getAllowedDestinationWarehousesForTransfer");
3756
      }
3757
 
3758
      protected getAllowedDestinationWarehousesForTransfer_args getEmptyArgsInstance() {
3759
        return new getAllowedDestinationWarehousesForTransfer_args();
3760
      }
3761
 
3762
      protected getAllowedDestinationWarehousesForTransfer_result getResult(I iface, getAllowedDestinationWarehousesForTransfer_args args) throws org.apache.thrift.TException {
3763
        getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
3764
        result.success = iface.getAllowedDestinationWarehousesForTransfer(args.warehouseId);
3765
        return result;
3766
      }
3767
    }
3768
 
3769
    private static class getItemsInTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsInTransferLot_args> {
3770
      public getItemsInTransferLot() {
3771
        super("getItemsInTransferLot");
3772
      }
3773
 
3774
      protected getItemsInTransferLot_args getEmptyArgsInstance() {
3775
        return new getItemsInTransferLot_args();
3776
      }
3777
 
3778
      protected getItemsInTransferLot_result getResult(I iface, getItemsInTransferLot_args args) throws org.apache.thrift.TException {
3779
        getItemsInTransferLot_result result = new getItemsInTransferLot_result();
3780
        result.success = iface.getItemsInTransferLot(args.transferLotId);
3781
        return result;
3782
      }
3783
    }
3784
 
3785
    private static class markItemsAsReceivedForTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markItemsAsReceivedForTransferLot_args> {
3786
      public markItemsAsReceivedForTransferLot() {
3787
        super("markItemsAsReceivedForTransferLot");
3788
      }
3789
 
3790
      protected markItemsAsReceivedForTransferLot_args getEmptyArgsInstance() {
3791
        return new markItemsAsReceivedForTransferLot_args();
3792
      }
3793
 
3794
      protected markItemsAsReceivedForTransferLot_result getResult(I iface, markItemsAsReceivedForTransferLot_args args) throws org.apache.thrift.TException {
3795
        markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
3796
        try {
3797
          iface.markItemsAsReceivedForTransferLot(args.id);
3798
        } catch (WarehouseServiceException wex) {
3799
          result.wex = wex;
3800
        }
3801
        return result;
3802
      }
3803
    }
3804
 
3805
    private static class updateTransferLotAfterItemReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTransferLotAfterItemReceive_args> {
3806
      public updateTransferLotAfterItemReceive() {
3807
        super("updateTransferLotAfterItemReceive");
3808
      }
3809
 
3810
      protected updateTransferLotAfterItemReceive_args getEmptyArgsInstance() {
3811
        return new updateTransferLotAfterItemReceive_args();
3812
      }
3813
 
3814
      protected updateTransferLotAfterItemReceive_result getResult(I iface, updateTransferLotAfterItemReceive_args args) throws org.apache.thrift.TException {
3815
        updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
3816
        try {
3817
          result.success = iface.updateTransferLotAfterItemReceive(args.id);
3818
        } catch (WarehouseServiceException wex) {
3819
          result.wex = wex;
3820
        }
3821
        return result;
3822
      }
3823
    }
3824
 
7453 amar.kumar 3825
    private static class scanForTransferOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransferOut_args> {
3826
      public scanForTransferOut() {
3827
        super("scanForTransferOut");
7410 amar.kumar 3828
      }
3829
 
7453 amar.kumar 3830
      protected scanForTransferOut_args getEmptyArgsInstance() {
3831
        return new scanForTransferOut_args();
7410 amar.kumar 3832
      }
3833
 
7453 amar.kumar 3834
      protected scanForTransferOut_result getResult(I iface, scanForTransferOut_args args) throws org.apache.thrift.TException {
3835
        scanForTransferOut_result result = new scanForTransferOut_result();
7410 amar.kumar 3836
        try {
7453 amar.kumar 3837
          iface.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId);
7410 amar.kumar 3838
        } catch (WarehouseServiceException wex) {
3839
          result.wex = wex;
3840
        }
3841
        return result;
3842
      }
3843
    }
3844
 
7453 amar.kumar 3845
    private static class scanForTransferIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransferIn_args> {
3846
      public scanForTransferIn() {
3847
        super("scanForTransferIn");
3848
      }
3849
 
3850
      protected scanForTransferIn_args getEmptyArgsInstance() {
3851
        return new scanForTransferIn_args();
3852
      }
3853
 
3854
      protected scanForTransferIn_result getResult(I iface, scanForTransferIn_args args) throws org.apache.thrift.TException {
3855
        scanForTransferIn_result result = new scanForTransferIn_result();
3856
        try {
3857
          iface.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId);
3858
        } catch (WarehouseServiceException wex) {
3859
          result.wex = wex;
3860
        }
3861
        return result;
3862
      }
3863
    }
3864
 
3865
    private static class scanForOursThirdPartyReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursThirdPartyReceive_args> {
3866
      public scanForOursThirdPartyReceive() {
3867
        super("scanForOursThirdPartyReceive");
3868
      }
3869
 
3870
      protected scanForOursThirdPartyReceive_args getEmptyArgsInstance() {
3871
        return new scanForOursThirdPartyReceive_args();
3872
      }
3873
 
3874
      protected scanForOursThirdPartyReceive_result getResult(I iface, scanForOursThirdPartyReceive_args args) throws org.apache.thrift.TException {
3875
        scanForOursThirdPartyReceive_result result = new scanForOursThirdPartyReceive_result();
3876
        try {
3877
          iface.scanForOursThirdPartyReceive(args.inventoryItems, args.id);
3878
        } catch (WarehouseServiceException wex) {
3879
          result.wex = wex;
3880
        }
3881
        return result;
3882
      }
3883
    }
3884
 
7574 amar.kumar 3885
    private static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args> {
3886
      public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse() {
3887
        super("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse");
3888
      }
3889
 
3890
      protected getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args getEmptyArgsInstance() {
3891
        return new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args();
3892
      }
3893
 
3894
      protected getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result getResult(I iface, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args args) throws org.apache.thrift.TException {
3895
        getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result result = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result();
3896
        try {
3897
          result.success = iface.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId);
3898
          result.setSuccessIsSet(true);
3899
        } catch (WarehouseServiceException wex) {
3900
          result.wex = wex;
3901
        }
3902
        return result;
3903
      }
3904
    }
3905
 
2820 chandransh 3906
  }
3907
 
4496 mandeep.dh 3908
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
3909
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2832 chandransh 3910
 
4496 mandeep.dh 3911
    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 3912
 
4496 mandeep.dh 3913
    private String serialNumber; // required
2832 chandransh 3914
 
3915
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3916
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4496 mandeep.dh 3917
      SERIAL_NUMBER((short)1, "serialNumber");
2832 chandransh 3918
 
3919
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3920
 
3921
      static {
3922
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3923
          byName.put(field.getFieldName(), field);
3924
        }
3925
      }
3926
 
3927
      /**
3928
       * Find the _Fields constant that matches fieldId, or null if its not found.
3929
       */
3930
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3931
        switch(fieldId) {
4496 mandeep.dh 3932
          case 1: // SERIAL_NUMBER
3933
            return SERIAL_NUMBER;
3430 rajveer 3934
          default:
3935
            return null;
3936
        }
2832 chandransh 3937
      }
3938
 
3939
      /**
3940
       * Find the _Fields constant that matches fieldId, throwing an exception
3941
       * if it is not found.
3942
       */
3943
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3944
        _Fields fields = findByThriftId(fieldId);
3945
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3946
        return fields;
3947
      }
3948
 
3949
      /**
3950
       * Find the _Fields constant that matches name, or null if its not found.
3951
       */
3952
      public static _Fields findByName(String name) {
3953
        return byName.get(name);
3954
      }
3955
 
3956
      private final short _thriftId;
3957
      private final String _fieldName;
3958
 
3959
      _Fields(short thriftId, String fieldName) {
3960
        _thriftId = thriftId;
3961
        _fieldName = fieldName;
3962
      }
3963
 
3964
      public short getThriftFieldId() {
3965
        return _thriftId;
3966
      }
3967
 
3968
      public String getFieldName() {
3969
        return _fieldName;
3970
      }
3971
    }
3972
 
3973
    // isset id assignments
3974
 
3430 rajveer 3975
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2832 chandransh 3976
    static {
3430 rajveer 3977
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4496 mandeep.dh 3978
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3979
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 3980
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 3981
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
2832 chandransh 3982
    }
3983
 
4496 mandeep.dh 3984
    public getInventoryItem_args() {
2832 chandransh 3985
    }
3986
 
4496 mandeep.dh 3987
    public getInventoryItem_args(
3988
      String serialNumber)
2832 chandransh 3989
    {
3990
      this();
4496 mandeep.dh 3991
      this.serialNumber = serialNumber;
2832 chandransh 3992
    }
3993
 
3994
    /**
3995
     * Performs a deep copy on <i>other</i>.
3996
     */
4496 mandeep.dh 3997
    public getInventoryItem_args(getInventoryItem_args other) {
3998
      if (other.isSetSerialNumber()) {
3999
        this.serialNumber = other.serialNumber;
4000
      }
2832 chandransh 4001
    }
4002
 
4496 mandeep.dh 4003
    public getInventoryItem_args deepCopy() {
4004
      return new getInventoryItem_args(this);
2832 chandransh 4005
    }
4006
 
3430 rajveer 4007
    @Override
4008
    public void clear() {
4496 mandeep.dh 4009
      this.serialNumber = null;
2832 chandransh 4010
    }
4011
 
4496 mandeep.dh 4012
    public String getSerialNumber() {
4013
      return this.serialNumber;
2832 chandransh 4014
    }
4015
 
4496 mandeep.dh 4016
    public void setSerialNumber(String serialNumber) {
4017
      this.serialNumber = serialNumber;
2832 chandransh 4018
    }
4019
 
4496 mandeep.dh 4020
    public void unsetSerialNumber() {
4021
      this.serialNumber = null;
2832 chandransh 4022
    }
4023
 
4496 mandeep.dh 4024
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
4025
    public boolean isSetSerialNumber() {
4026
      return this.serialNumber != null;
2832 chandransh 4027
    }
4028
 
4496 mandeep.dh 4029
    public void setSerialNumberIsSet(boolean value) {
4030
      if (!value) {
4031
        this.serialNumber = null;
4032
      }
2832 chandransh 4033
    }
4034
 
4035
    public void setFieldValue(_Fields field, Object value) {
4036
      switch (field) {
4496 mandeep.dh 4037
      case SERIAL_NUMBER:
2832 chandransh 4038
        if (value == null) {
4496 mandeep.dh 4039
          unsetSerialNumber();
2832 chandransh 4040
        } else {
4496 mandeep.dh 4041
          setSerialNumber((String)value);
2832 chandransh 4042
        }
4043
        break;
4044
 
4045
      }
4046
    }
4047
 
4048
    public Object getFieldValue(_Fields field) {
4049
      switch (field) {
4496 mandeep.dh 4050
      case SERIAL_NUMBER:
4051
        return getSerialNumber();
2832 chandransh 4052
 
4053
      }
4054
      throw new IllegalStateException();
4055
    }
4056
 
3430 rajveer 4057
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4058
    public boolean isSet(_Fields field) {
4059
      if (field == null) {
4060
        throw new IllegalArgumentException();
4061
      }
2832 chandransh 4062
 
4063
      switch (field) {
4496 mandeep.dh 4064
      case SERIAL_NUMBER:
4065
        return isSetSerialNumber();
2832 chandransh 4066
      }
4067
      throw new IllegalStateException();
4068
    }
4069
 
4070
    @Override
4071
    public boolean equals(Object that) {
4072
      if (that == null)
4073
        return false;
4496 mandeep.dh 4074
      if (that instanceof getInventoryItem_args)
4075
        return this.equals((getInventoryItem_args)that);
2832 chandransh 4076
      return false;
4077
    }
4078
 
4496 mandeep.dh 4079
    public boolean equals(getInventoryItem_args that) {
2832 chandransh 4080
      if (that == null)
4081
        return false;
4082
 
4496 mandeep.dh 4083
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
4084
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
4085
      if (this_present_serialNumber || that_present_serialNumber) {
4086
        if (!(this_present_serialNumber && that_present_serialNumber))
2832 chandransh 4087
          return false;
4496 mandeep.dh 4088
        if (!this.serialNumber.equals(that.serialNumber))
2832 chandransh 4089
          return false;
4090
      }
4091
 
4092
      return true;
4093
    }
4094
 
4095
    @Override
4096
    public int hashCode() {
4097
      return 0;
4098
    }
4099
 
4496 mandeep.dh 4100
    public int compareTo(getInventoryItem_args other) {
2832 chandransh 4101
      if (!getClass().equals(other.getClass())) {
4102
        return getClass().getName().compareTo(other.getClass().getName());
4103
      }
4104
 
4105
      int lastComparison = 0;
4496 mandeep.dh 4106
      getInventoryItem_args typedOther = (getInventoryItem_args)other;
2832 chandransh 4107
 
4496 mandeep.dh 4108
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
2832 chandransh 4109
      if (lastComparison != 0) {
4110
        return lastComparison;
4111
      }
4496 mandeep.dh 4112
      if (isSetSerialNumber()) {
4113
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
3430 rajveer 4114
        if (lastComparison != 0) {
4115
          return lastComparison;
4116
        }
2832 chandransh 4117
      }
4118
      return 0;
4119
    }
4120
 
3430 rajveer 4121
    public _Fields fieldForId(int fieldId) {
4122
      return _Fields.findByThriftId(fieldId);
4123
    }
4124
 
4125
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4126
      org.apache.thrift.protocol.TField field;
2832 chandransh 4127
      iprot.readStructBegin();
4128
      while (true)
4129
      {
4130
        field = iprot.readFieldBegin();
3430 rajveer 4131
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2832 chandransh 4132
          break;
4133
        }
3430 rajveer 4134
        switch (field.id) {
4496 mandeep.dh 4135
          case 1: // SERIAL_NUMBER
4136
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4137
              this.serialNumber = iprot.readString();
3430 rajveer 4138
            } else { 
4139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4140
            }
4141
            break;
4142
          default:
4143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2832 chandransh 4144
        }
3430 rajveer 4145
        iprot.readFieldEnd();
2832 chandransh 4146
      }
4147
      iprot.readStructEnd();
4148
      validate();
4149
    }
4150
 
3430 rajveer 4151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2832 chandransh 4152
      validate();
4153
 
4154
      oprot.writeStructBegin(STRUCT_DESC);
4496 mandeep.dh 4155
      if (this.serialNumber != null) {
4156
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
4157
        oprot.writeString(this.serialNumber);
4158
        oprot.writeFieldEnd();
4159
      }
2832 chandransh 4160
      oprot.writeFieldStop();
4161
      oprot.writeStructEnd();
4162
    }
4163
 
4164
    @Override
4165
    public String toString() {
4496 mandeep.dh 4166
      StringBuilder sb = new StringBuilder("getInventoryItem_args(");
2832 chandransh 4167
      boolean first = true;
4168
 
4496 mandeep.dh 4169
      sb.append("serialNumber:");
4170
      if (this.serialNumber == null) {
4171
        sb.append("null");
4172
      } else {
4173
        sb.append(this.serialNumber);
4174
      }
2832 chandransh 4175
      first = false;
4176
      sb.append(")");
4177
      return sb.toString();
4178
    }
4179
 
3430 rajveer 4180
    public void validate() throws org.apache.thrift.TException {
2832 chandransh 4181
      // check for required fields
4182
    }
4183
 
3430 rajveer 4184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4185
      try {
4186
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4187
      } catch (org.apache.thrift.TException te) {
4188
        throw new java.io.IOException(te);
4189
      }
4190
    }
4191
 
4192
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4193
      try {
4194
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4195
      } catch (org.apache.thrift.TException te) {
4196
        throw new java.io.IOException(te);
4197
      }
4198
    }
4199
 
2832 chandransh 4200
  }
4201
 
4496 mandeep.dh 4202
  public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
4203
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
2832 chandransh 4204
 
3430 rajveer 4205
    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 4206
    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 4207
 
4496 mandeep.dh 4208
    private InventoryItem success; // required
4541 mandeep.dh 4209
    private WarehouseServiceException wex; // required
2832 chandransh 4210
 
4211
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4212
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4541 mandeep.dh 4213
      SUCCESS((short)0, "success"),
4214
      WEX((short)1, "wex");
2832 chandransh 4215
 
4216
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4217
 
4218
      static {
4219
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4220
          byName.put(field.getFieldName(), field);
4221
        }
4222
      }
4223
 
4224
      /**
4225
       * Find the _Fields constant that matches fieldId, or null if its not found.
4226
       */
4227
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4228
        switch(fieldId) {
4229
          case 0: // SUCCESS
4230
            return SUCCESS;
4541 mandeep.dh 4231
          case 1: // WEX
4232
            return WEX;
3430 rajveer 4233
          default:
4234
            return null;
4235
        }
2832 chandransh 4236
      }
4237
 
4238
      /**
4239
       * Find the _Fields constant that matches fieldId, throwing an exception
4240
       * if it is not found.
4241
       */
4242
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4243
        _Fields fields = findByThriftId(fieldId);
4244
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4245
        return fields;
4246
      }
4247
 
4248
      /**
4249
       * Find the _Fields constant that matches name, or null if its not found.
4250
       */
4251
      public static _Fields findByName(String name) {
4252
        return byName.get(name);
4253
      }
4254
 
4255
      private final short _thriftId;
4256
      private final String _fieldName;
4257
 
4258
      _Fields(short thriftId, String fieldName) {
4259
        _thriftId = thriftId;
4260
        _fieldName = fieldName;
4261
      }
4262
 
4263
      public short getThriftFieldId() {
4264
        return _thriftId;
4265
      }
4266
 
4267
      public String getFieldName() {
4268
        return _fieldName;
4269
      }
4270
    }
4271
 
4272
    // isset id assignments
4273
 
3430 rajveer 4274
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2832 chandransh 4275
    static {
3430 rajveer 4276
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4277
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 4278
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
4541 mandeep.dh 4279
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4280
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3430 rajveer 4281
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 4282
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
2832 chandransh 4283
    }
4284
 
4496 mandeep.dh 4285
    public getInventoryItem_result() {
2832 chandransh 4286
    }
4287
 
4496 mandeep.dh 4288
    public getInventoryItem_result(
4541 mandeep.dh 4289
      InventoryItem success,
4290
      WarehouseServiceException wex)
2832 chandransh 4291
    {
4292
      this();
4293
      this.success = success;
4541 mandeep.dh 4294
      this.wex = wex;
2832 chandransh 4295
    }
4296
 
4297
    /**
4298
     * Performs a deep copy on <i>other</i>.
4299
     */
4496 mandeep.dh 4300
    public getInventoryItem_result(getInventoryItem_result other) {
2832 chandransh 4301
      if (other.isSetSuccess()) {
4496 mandeep.dh 4302
        this.success = new InventoryItem(other.success);
2832 chandransh 4303
      }
4541 mandeep.dh 4304
      if (other.isSetWex()) {
4305
        this.wex = new WarehouseServiceException(other.wex);
4306
      }
2832 chandransh 4307
    }
4308
 
4496 mandeep.dh 4309
    public getInventoryItem_result deepCopy() {
4310
      return new getInventoryItem_result(this);
2832 chandransh 4311
    }
4312
 
3430 rajveer 4313
    @Override
4314
    public void clear() {
4315
      this.success = null;
4541 mandeep.dh 4316
      this.wex = null;
2832 chandransh 4317
    }
4318
 
4496 mandeep.dh 4319
    public InventoryItem getSuccess() {
2832 chandransh 4320
      return this.success;
4321
    }
4322
 
4496 mandeep.dh 4323
    public void setSuccess(InventoryItem success) {
2832 chandransh 4324
      this.success = success;
4325
    }
4326
 
4327
    public void unsetSuccess() {
4328
      this.success = null;
4329
    }
4330
 
3430 rajveer 4331
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2832 chandransh 4332
    public boolean isSetSuccess() {
4333
      return this.success != null;
4334
    }
4335
 
4336
    public void setSuccessIsSet(boolean value) {
4337
      if (!value) {
4338
        this.success = null;
4339
      }
4340
    }
4341
 
4541 mandeep.dh 4342
    public WarehouseServiceException getWex() {
4343
      return this.wex;
4344
    }
4345
 
4346
    public void setWex(WarehouseServiceException wex) {
4347
      this.wex = wex;
4348
    }
4349
 
4350
    public void unsetWex() {
4351
      this.wex = null;
4352
    }
4353
 
4354
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
4355
    public boolean isSetWex() {
4356
      return this.wex != null;
4357
    }
4358
 
4359
    public void setWexIsSet(boolean value) {
4360
      if (!value) {
4361
        this.wex = null;
4362
      }
4363
    }
4364
 
2832 chandransh 4365
    public void setFieldValue(_Fields field, Object value) {
4366
      switch (field) {
4367
      case SUCCESS:
4368
        if (value == null) {
4369
          unsetSuccess();
4370
        } else {
4496 mandeep.dh 4371
          setSuccess((InventoryItem)value);
2832 chandransh 4372
        }
4373
        break;
4374
 
4541 mandeep.dh 4375
      case WEX:
4376
        if (value == null) {
4377
          unsetWex();
4378
        } else {
4379
          setWex((WarehouseServiceException)value);
4380
        }
4381
        break;
4382
 
2832 chandransh 4383
      }
4384
    }
4385
 
4386
    public Object getFieldValue(_Fields field) {
4387
      switch (field) {
4388
      case SUCCESS:
4389
        return getSuccess();
4390
 
4541 mandeep.dh 4391
      case WEX:
4392
        return getWex();
4393
 
2832 chandransh 4394
      }
4395
      throw new IllegalStateException();
4396
    }
4397
 
3430 rajveer 4398
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4399
    public boolean isSet(_Fields field) {
4400
      if (field == null) {
4401
        throw new IllegalArgumentException();
4402
      }
2832 chandransh 4403
 
4404
      switch (field) {
4405
      case SUCCESS:
4406
        return isSetSuccess();
4541 mandeep.dh 4407
      case WEX:
4408
        return isSetWex();
2832 chandransh 4409
      }
4410
      throw new IllegalStateException();
4411
    }
4412
 
4413
    @Override
4414
    public boolean equals(Object that) {
4415
      if (that == null)
4416
        return false;
4496 mandeep.dh 4417
      if (that instanceof getInventoryItem_result)
4418
        return this.equals((getInventoryItem_result)that);
2832 chandransh 4419
      return false;
4420
    }
4421
 
4496 mandeep.dh 4422
    public boolean equals(getInventoryItem_result that) {
2832 chandransh 4423
      if (that == null)
4424
        return false;
4425
 
4426
      boolean this_present_success = true && this.isSetSuccess();
4427
      boolean that_present_success = true && that.isSetSuccess();
4428
      if (this_present_success || that_present_success) {
4429
        if (!(this_present_success && that_present_success))
4430
          return false;
4431
        if (!this.success.equals(that.success))
4432
          return false;
4433
      }
4434
 
4541 mandeep.dh 4435
      boolean this_present_wex = true && this.isSetWex();
4436
      boolean that_present_wex = true && that.isSetWex();
4437
      if (this_present_wex || that_present_wex) {
4438
        if (!(this_present_wex && that_present_wex))
4439
          return false;
4440
        if (!this.wex.equals(that.wex))
4441
          return false;
4442
      }
4443
 
2832 chandransh 4444
      return true;
4445
    }
4446
 
4447
    @Override
4448
    public int hashCode() {
4449
      return 0;
4450
    }
4451
 
4496 mandeep.dh 4452
    public int compareTo(getInventoryItem_result other) {
2832 chandransh 4453
      if (!getClass().equals(other.getClass())) {
4454
        return getClass().getName().compareTo(other.getClass().getName());
4455
      }
4456
 
4457
      int lastComparison = 0;
4496 mandeep.dh 4458
      getInventoryItem_result typedOther = (getInventoryItem_result)other;
2832 chandransh 4459
 
3430 rajveer 4460
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2832 chandransh 4461
      if (lastComparison != 0) {
4462
        return lastComparison;
4463
      }
3430 rajveer 4464
      if (isSetSuccess()) {
4465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4466
        if (lastComparison != 0) {
4467
          return lastComparison;
4468
        }
2832 chandransh 4469
      }
4541 mandeep.dh 4470
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
4471
      if (lastComparison != 0) {
4472
        return lastComparison;
4473
      }
4474
      if (isSetWex()) {
4475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
4476
        if (lastComparison != 0) {
4477
          return lastComparison;
4478
        }
4479
      }
2832 chandransh 4480
      return 0;
4481
    }
4482
 
3430 rajveer 4483
    public _Fields fieldForId(int fieldId) {
4484
      return _Fields.findByThriftId(fieldId);
4485
    }
4486
 
4487
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4488
      org.apache.thrift.protocol.TField field;
2832 chandransh 4489
      iprot.readStructBegin();
4490
      while (true)
4491
      {
4492
        field = iprot.readFieldBegin();
3430 rajveer 4493
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2832 chandransh 4494
          break;
4495
        }
3430 rajveer 4496
        switch (field.id) {
4497
          case 0: // SUCCESS
4498
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4496 mandeep.dh 4499
              this.success = new InventoryItem();
3430 rajveer 4500
              this.success.read(iprot);
4501
            } else { 
4502
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4503
            }
4504
            break;
4541 mandeep.dh 4505
          case 1: // WEX
4506
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4507
              this.wex = new WarehouseServiceException();
4508
              this.wex.read(iprot);
4509
            } else { 
4510
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4511
            }
4512
            break;
3430 rajveer 4513
          default:
4514
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2832 chandransh 4515
        }
3430 rajveer 4516
        iprot.readFieldEnd();
2832 chandransh 4517
      }
4518
      iprot.readStructEnd();
4519
      validate();
4520
    }
4521
 
3430 rajveer 4522
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2832 chandransh 4523
      oprot.writeStructBegin(STRUCT_DESC);
4524
 
4525
      if (this.isSetSuccess()) {
4526
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4527
        this.success.write(oprot);
4528
        oprot.writeFieldEnd();
4541 mandeep.dh 4529
      } else if (this.isSetWex()) {
4530
        oprot.writeFieldBegin(WEX_FIELD_DESC);
4531
        this.wex.write(oprot);
4532
        oprot.writeFieldEnd();
2832 chandransh 4533
      }
4534
      oprot.writeFieldStop();
4535
      oprot.writeStructEnd();
4536
    }
4537
 
4538
    @Override
4539
    public String toString() {
4496 mandeep.dh 4540
      StringBuilder sb = new StringBuilder("getInventoryItem_result(");
2832 chandransh 4541
      boolean first = true;
4542
 
4543
      sb.append("success:");
4544
      if (this.success == null) {
4545
        sb.append("null");
4546
      } else {
4547
        sb.append(this.success);
4548
      }
4549
      first = false;
4541 mandeep.dh 4550
      if (!first) sb.append(", ");
4551
      sb.append("wex:");
4552
      if (this.wex == null) {
4553
        sb.append("null");
4554
      } else {
4555
        sb.append(this.wex);
4556
      }
4557
      first = false;
2832 chandransh 4558
      sb.append(")");
4559
      return sb.toString();
4560
    }
4561
 
3430 rajveer 4562
    public void validate() throws org.apache.thrift.TException {
2832 chandransh 4563
      // check for required fields
4564
    }
4565
 
3430 rajveer 4566
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4567
      try {
4568
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4569
      } catch (org.apache.thrift.TException te) {
4570
        throw new java.io.IOException(te);
4571
      }
4572
    }
4573
 
4574
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4575
      try {
4576
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4577
      } catch (org.apache.thrift.TException te) {
4578
        throw new java.io.IOException(te);
4579
      }
4580
    }
4581
 
2832 chandransh 4582
  }
4583
 
5361 mandeep.dh 4584
  public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4585
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
2820 chandransh 4586
 
5530 mandeep.dh 4587
    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);
4588
    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);
4589
    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 4590
 
5530 mandeep.dh 4591
    private String itemNumber; // required
4496 mandeep.dh 4592
    private long itemId; // required
5530 mandeep.dh 4593
    private long fulfilmentWarehouseId; // required
2820 chandransh 4594
 
4595
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4596
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5530 mandeep.dh 4597
      ITEM_NUMBER((short)1, "itemNumber"),
4598
      ITEM_ID((short)2, "itemId"),
4599
      FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
2820 chandransh 4600
 
4601
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4602
 
4603
      static {
4604
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4605
          byName.put(field.getFieldName(), field);
4606
        }
4607
      }
4608
 
4609
      /**
4610
       * Find the _Fields constant that matches fieldId, or null if its not found.
4611
       */
4612
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4613
        switch(fieldId) {
5530 mandeep.dh 4614
          case 1: // ITEM_NUMBER
4615
            return ITEM_NUMBER;
4616
          case 2: // ITEM_ID
4496 mandeep.dh 4617
            return ITEM_ID;
5530 mandeep.dh 4618
          case 3: // FULFILMENT_WAREHOUSE_ID
4619
            return FULFILMENT_WAREHOUSE_ID;
3430 rajveer 4620
          default:
4621
            return null;
4622
        }
2820 chandransh 4623
      }
4624
 
4625
      /**
4626
       * Find the _Fields constant that matches fieldId, throwing an exception
4627
       * if it is not found.
4628
       */
4629
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4630
        _Fields fields = findByThriftId(fieldId);
4631
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4632
        return fields;
4633
      }
4634
 
4635
      /**
4636
       * Find the _Fields constant that matches name, or null if its not found.
4637
       */
4638
      public static _Fields findByName(String name) {
4639
        return byName.get(name);
4640
      }
4641
 
4642
      private final short _thriftId;
4643
      private final String _fieldName;
4644
 
4645
      _Fields(short thriftId, String fieldName) {
4646
        _thriftId = thriftId;
4647
        _fieldName = fieldName;
4648
      }
4649
 
4650
      public short getThriftFieldId() {
4651
        return _thriftId;
4652
      }
4653
 
4654
      public String getFieldName() {
4655
        return _fieldName;
4656
      }
4657
    }
4658
 
4659
    // isset id assignments
4496 mandeep.dh 4660
    private static final int __ITEMID_ISSET_ID = 0;
5530 mandeep.dh 4661
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
5361 mandeep.dh 4662
    private BitSet __isset_bit_vector = new BitSet(2);
2820 chandransh 4663
 
3430 rajveer 4664
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 4665
    static {
3430 rajveer 4666
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5530 mandeep.dh 4667
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4668
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4496 mandeep.dh 4669
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 4670
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5530 mandeep.dh 4671
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 4672
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 4673
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5361 mandeep.dh 4674
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
2820 chandransh 4675
    }
4676
 
5361 mandeep.dh 4677
    public getNonSeralizedInventoryItem_args() {
2820 chandransh 4678
    }
4679
 
5361 mandeep.dh 4680
    public getNonSeralizedInventoryItem_args(
5530 mandeep.dh 4681
      String itemNumber,
4496 mandeep.dh 4682
      long itemId,
5530 mandeep.dh 4683
      long fulfilmentWarehouseId)
2820 chandransh 4684
    {
4685
      this();
5530 mandeep.dh 4686
      this.itemNumber = itemNumber;
4496 mandeep.dh 4687
      this.itemId = itemId;
4688
      setItemIdIsSet(true);
5530 mandeep.dh 4689
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
4690
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 4691
    }
4692
 
4693
    /**
4694
     * Performs a deep copy on <i>other</i>.
4695
     */
5361 mandeep.dh 4696
    public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
2820 chandransh 4697
      __isset_bit_vector.clear();
4698
      __isset_bit_vector.or(other.__isset_bit_vector);
5530 mandeep.dh 4699
      if (other.isSetItemNumber()) {
4700
        this.itemNumber = other.itemNumber;
4701
      }
4496 mandeep.dh 4702
      this.itemId = other.itemId;
5530 mandeep.dh 4703
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
2820 chandransh 4704
    }
4705
 
5361 mandeep.dh 4706
    public getNonSeralizedInventoryItem_args deepCopy() {
4707
      return new getNonSeralizedInventoryItem_args(this);
2820 chandransh 4708
    }
4709
 
3430 rajveer 4710
    @Override
4711
    public void clear() {
5530 mandeep.dh 4712
      this.itemNumber = null;
4496 mandeep.dh 4713
      setItemIdIsSet(false);
4714
      this.itemId = 0;
5530 mandeep.dh 4715
      setFulfilmentWarehouseIdIsSet(false);
4716
      this.fulfilmentWarehouseId = 0;
2820 chandransh 4717
    }
4718
 
5530 mandeep.dh 4719
    public String getItemNumber() {
4720
      return this.itemNumber;
4721
    }
4722
 
4723
    public void setItemNumber(String itemNumber) {
4724
      this.itemNumber = itemNumber;
4725
    }
4726
 
4727
    public void unsetItemNumber() {
4728
      this.itemNumber = null;
4729
    }
4730
 
4731
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
4732
    public boolean isSetItemNumber() {
4733
      return this.itemNumber != null;
4734
    }
4735
 
4736
    public void setItemNumberIsSet(boolean value) {
4737
      if (!value) {
4738
        this.itemNumber = null;
4739
      }
4740
    }
4741
 
4496 mandeep.dh 4742
    public long getItemId() {
4743
      return this.itemId;
2820 chandransh 4744
    }
4745
 
4496 mandeep.dh 4746
    public void setItemId(long itemId) {
4747
      this.itemId = itemId;
4748
      setItemIdIsSet(true);
2820 chandransh 4749
    }
4750
 
4496 mandeep.dh 4751
    public void unsetItemId() {
4752
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2820 chandransh 4753
    }
4754
 
4496 mandeep.dh 4755
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4756
    public boolean isSetItemId() {
4757
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2820 chandransh 4758
    }
4759
 
4496 mandeep.dh 4760
    public void setItemIdIsSet(boolean value) {
4761
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2820 chandransh 4762
    }
4763
 
5530 mandeep.dh 4764
    public long getFulfilmentWarehouseId() {
4765
      return this.fulfilmentWarehouseId;
2820 chandransh 4766
    }
4767
 
5530 mandeep.dh 4768
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
4769
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
4770
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 4771
    }
4772
 
5530 mandeep.dh 4773
    public void unsetFulfilmentWarehouseId() {
4774
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 4775
    }
4776
 
5530 mandeep.dh 4777
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
4778
    public boolean isSetFulfilmentWarehouseId() {
4779
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 4780
    }
4781
 
5530 mandeep.dh 4782
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
4783
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
2820 chandransh 4784
    }
4785
 
4786
    public void setFieldValue(_Fields field, Object value) {
4787
      switch (field) {
5530 mandeep.dh 4788
      case ITEM_NUMBER:
4789
        if (value == null) {
4790
          unsetItemNumber();
4791
        } else {
4792
          setItemNumber((String)value);
4793
        }
4794
        break;
4795
 
4496 mandeep.dh 4796
      case ITEM_ID:
2820 chandransh 4797
        if (value == null) {
4496 mandeep.dh 4798
          unsetItemId();
2820 chandransh 4799
        } else {
4496 mandeep.dh 4800
          setItemId((Long)value);
2820 chandransh 4801
        }
4802
        break;
4803
 
5530 mandeep.dh 4804
      case FULFILMENT_WAREHOUSE_ID:
2820 chandransh 4805
        if (value == null) {
5530 mandeep.dh 4806
          unsetFulfilmentWarehouseId();
2820 chandransh 4807
        } else {
5530 mandeep.dh 4808
          setFulfilmentWarehouseId((Long)value);
2820 chandransh 4809
        }
4810
        break;
4811
 
4812
      }
4813
    }
4814
 
4815
    public Object getFieldValue(_Fields field) {
4816
      switch (field) {
5530 mandeep.dh 4817
      case ITEM_NUMBER:
4818
        return getItemNumber();
4819
 
4496 mandeep.dh 4820
      case ITEM_ID:
4821
        return Long.valueOf(getItemId());
2820 chandransh 4822
 
5530 mandeep.dh 4823
      case FULFILMENT_WAREHOUSE_ID:
4824
        return Long.valueOf(getFulfilmentWarehouseId());
2820 chandransh 4825
 
4826
      }
4827
      throw new IllegalStateException();
4828
    }
4829
 
3430 rajveer 4830
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4831
    public boolean isSet(_Fields field) {
4832
      if (field == null) {
4833
        throw new IllegalArgumentException();
4834
      }
2820 chandransh 4835
 
4836
      switch (field) {
5530 mandeep.dh 4837
      case ITEM_NUMBER:
4838
        return isSetItemNumber();
4496 mandeep.dh 4839
      case ITEM_ID:
4840
        return isSetItemId();
5530 mandeep.dh 4841
      case FULFILMENT_WAREHOUSE_ID:
4842
        return isSetFulfilmentWarehouseId();
2820 chandransh 4843
      }
4844
      throw new IllegalStateException();
4845
    }
4846
 
4847
    @Override
4848
    public boolean equals(Object that) {
4849
      if (that == null)
4850
        return false;
5361 mandeep.dh 4851
      if (that instanceof getNonSeralizedInventoryItem_args)
4852
        return this.equals((getNonSeralizedInventoryItem_args)that);
2820 chandransh 4853
      return false;
4854
    }
4855
 
5361 mandeep.dh 4856
    public boolean equals(getNonSeralizedInventoryItem_args that) {
2820 chandransh 4857
      if (that == null)
4858
        return false;
4859
 
5530 mandeep.dh 4860
      boolean this_present_itemNumber = true && this.isSetItemNumber();
4861
      boolean that_present_itemNumber = true && that.isSetItemNumber();
4862
      if (this_present_itemNumber || that_present_itemNumber) {
4863
        if (!(this_present_itemNumber && that_present_itemNumber))
4864
          return false;
4865
        if (!this.itemNumber.equals(that.itemNumber))
4866
          return false;
4867
      }
4868
 
4496 mandeep.dh 4869
      boolean this_present_itemId = true;
4870
      boolean that_present_itemId = true;
4871
      if (this_present_itemId || that_present_itemId) {
4872
        if (!(this_present_itemId && that_present_itemId))
2820 chandransh 4873
          return false;
4496 mandeep.dh 4874
        if (this.itemId != that.itemId)
2820 chandransh 4875
          return false;
4876
      }
4877
 
5530 mandeep.dh 4878
      boolean this_present_fulfilmentWarehouseId = true;
4879
      boolean that_present_fulfilmentWarehouseId = true;
4880
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
4881
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
2820 chandransh 4882
          return false;
5530 mandeep.dh 4883
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
2820 chandransh 4884
          return false;
4885
      }
4886
 
4887
      return true;
4888
    }
4889
 
4890
    @Override
4891
    public int hashCode() {
4892
      return 0;
4893
    }
4894
 
5361 mandeep.dh 4895
    public int compareTo(getNonSeralizedInventoryItem_args other) {
2820 chandransh 4896
      if (!getClass().equals(other.getClass())) {
4897
        return getClass().getName().compareTo(other.getClass().getName());
4898
      }
4899
 
4900
      int lastComparison = 0;
5361 mandeep.dh 4901
      getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
2820 chandransh 4902
 
5530 mandeep.dh 4903
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
4904
      if (lastComparison != 0) {
4905
        return lastComparison;
4906
      }
4907
      if (isSetItemNumber()) {
4908
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
4909
        if (lastComparison != 0) {
4910
          return lastComparison;
4911
        }
4912
      }
4496 mandeep.dh 4913
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2820 chandransh 4914
      if (lastComparison != 0) {
4915
        return lastComparison;
4916
      }
4496 mandeep.dh 4917
      if (isSetItemId()) {
4918
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3430 rajveer 4919
        if (lastComparison != 0) {
4920
          return lastComparison;
4921
        }
2820 chandransh 4922
      }
5530 mandeep.dh 4923
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
2820 chandransh 4924
      if (lastComparison != 0) {
4925
        return lastComparison;
4926
      }
5530 mandeep.dh 4927
      if (isSetFulfilmentWarehouseId()) {
4928
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
3430 rajveer 4929
        if (lastComparison != 0) {
4930
          return lastComparison;
4931
        }
2820 chandransh 4932
      }
4933
      return 0;
4934
    }
4935
 
3430 rajveer 4936
    public _Fields fieldForId(int fieldId) {
4937
      return _Fields.findByThriftId(fieldId);
4938
    }
4939
 
4940
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4941
      org.apache.thrift.protocol.TField field;
2820 chandransh 4942
      iprot.readStructBegin();
4943
      while (true)
4944
      {
4945
        field = iprot.readFieldBegin();
3430 rajveer 4946
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 4947
          break;
4948
        }
3430 rajveer 4949
        switch (field.id) {
5530 mandeep.dh 4950
          case 1: // ITEM_NUMBER
4951
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4952
              this.itemNumber = iprot.readString();
4953
            } else { 
4954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4955
            }
4956
            break;
4957
          case 2: // ITEM_ID
3430 rajveer 4958
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4496 mandeep.dh 4959
              this.itemId = iprot.readI64();
4960
              setItemIdIsSet(true);
3430 rajveer 4961
            } else { 
4962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4963
            }
4964
            break;
5530 mandeep.dh 4965
          case 3: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 4966
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5530 mandeep.dh 4967
              this.fulfilmentWarehouseId = iprot.readI64();
4968
              setFulfilmentWarehouseIdIsSet(true);
3430 rajveer 4969
            } else { 
4970
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4971
            }
4972
            break;
4973
          default:
4974
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 4975
        }
3430 rajveer 4976
        iprot.readFieldEnd();
2820 chandransh 4977
      }
4978
      iprot.readStructEnd();
4979
      validate();
4980
    }
4981
 
3430 rajveer 4982
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 4983
      validate();
4984
 
4985
      oprot.writeStructBegin(STRUCT_DESC);
5530 mandeep.dh 4986
      if (this.itemNumber != null) {
4987
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
4988
        oprot.writeString(this.itemNumber);
4989
        oprot.writeFieldEnd();
4990
      }
4496 mandeep.dh 4991
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4992
      oprot.writeI64(this.itemId);
2820 chandransh 4993
      oprot.writeFieldEnd();
5530 mandeep.dh 4994
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
4995
      oprot.writeI64(this.fulfilmentWarehouseId);
2820 chandransh 4996
      oprot.writeFieldEnd();
4997
      oprot.writeFieldStop();
4998
      oprot.writeStructEnd();
4999
    }
5000
 
5001
    @Override
5002
    public String toString() {
5361 mandeep.dh 5003
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
2820 chandransh 5004
      boolean first = true;
5005
 
5530 mandeep.dh 5006
      sb.append("itemNumber:");
5007
      if (this.itemNumber == null) {
5008
        sb.append("null");
5009
      } else {
5010
        sb.append(this.itemNumber);
5011
      }
5012
      first = false;
5013
      if (!first) sb.append(", ");
4496 mandeep.dh 5014
      sb.append("itemId:");
5015
      sb.append(this.itemId);
2820 chandransh 5016
      first = false;
5017
      if (!first) sb.append(", ");
5530 mandeep.dh 5018
      sb.append("fulfilmentWarehouseId:");
5019
      sb.append(this.fulfilmentWarehouseId);
2820 chandransh 5020
      first = false;
5021
      sb.append(")");
5022
      return sb.toString();
5023
    }
5024
 
3430 rajveer 5025
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 5026
      // check for required fields
5027
    }
5028
 
3430 rajveer 5029
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5030
      try {
5031
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5032
      } catch (org.apache.thrift.TException te) {
5033
        throw new java.io.IOException(te);
5034
      }
5035
    }
5036
 
5037
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5038
      try {
5039
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5040
      } catch (org.apache.thrift.TException te) {
5041
        throw new java.io.IOException(te);
5042
      }
5043
    }
5044
 
2820 chandransh 5045
  }
5046
 
5361 mandeep.dh 5047
  public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
5048
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
2820 chandransh 5049
 
5361 mandeep.dh 5050
    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);
5051
    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 5052
 
5361 mandeep.dh 5053
    private InventoryItem success; // required
5054
    private WarehouseServiceException wex; // required
2820 chandransh 5055
 
5056
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5057
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 5058
      SUCCESS((short)0, "success"),
5059
      WEX((short)1, "wex");
2820 chandransh 5060
 
5061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5062
 
5063
      static {
5064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5065
          byName.put(field.getFieldName(), field);
5066
        }
5067
      }
5068
 
5069
      /**
5070
       * Find the _Fields constant that matches fieldId, or null if its not found.
5071
       */
5072
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5073
        switch(fieldId) {
5074
          case 0: // SUCCESS
5075
            return SUCCESS;
5361 mandeep.dh 5076
          case 1: // WEX
5077
            return WEX;
3430 rajveer 5078
          default:
5079
            return null;
5080
        }
2820 chandransh 5081
      }
5082
 
5083
      /**
5084
       * Find the _Fields constant that matches fieldId, throwing an exception
5085
       * if it is not found.
5086
       */
5087
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5088
        _Fields fields = findByThriftId(fieldId);
5089
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5090
        return fields;
5091
      }
5092
 
5093
      /**
5094
       * Find the _Fields constant that matches name, or null if its not found.
5095
       */
5096
      public static _Fields findByName(String name) {
5097
        return byName.get(name);
5098
      }
5099
 
5100
      private final short _thriftId;
5101
      private final String _fieldName;
5102
 
5103
      _Fields(short thriftId, String fieldName) {
5104
        _thriftId = thriftId;
5105
        _fieldName = fieldName;
5106
      }
5107
 
5108
      public short getThriftFieldId() {
5109
        return _thriftId;
5110
      }
5111
 
5112
      public String getFieldName() {
5113
        return _fieldName;
5114
      }
5115
    }
5116
 
5117
    // isset id assignments
5118
 
3430 rajveer 5119
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 5120
    static {
3430 rajveer 5121
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5122
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5361 mandeep.dh 5123
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
5124
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5125
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3430 rajveer 5126
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5361 mandeep.dh 5127
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
2820 chandransh 5128
    }
5129
 
5361 mandeep.dh 5130
    public getNonSeralizedInventoryItem_result() {
2820 chandransh 5131
    }
5132
 
5361 mandeep.dh 5133
    public getNonSeralizedInventoryItem_result(
5134
      InventoryItem success,
5135
      WarehouseServiceException wex)
2820 chandransh 5136
    {
5137
      this();
5138
      this.success = success;
5361 mandeep.dh 5139
      this.wex = wex;
2820 chandransh 5140
    }
5141
 
5142
    /**
5143
     * Performs a deep copy on <i>other</i>.
5144
     */
5361 mandeep.dh 5145
    public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
4496 mandeep.dh 5146
      if (other.isSetSuccess()) {
5361 mandeep.dh 5147
        this.success = new InventoryItem(other.success);
2820 chandransh 5148
      }
5361 mandeep.dh 5149
      if (other.isSetWex()) {
5150
        this.wex = new WarehouseServiceException(other.wex);
5151
      }
2820 chandransh 5152
    }
5153
 
5361 mandeep.dh 5154
    public getNonSeralizedInventoryItem_result deepCopy() {
5155
      return new getNonSeralizedInventoryItem_result(this);
2820 chandransh 5156
    }
5157
 
3430 rajveer 5158
    @Override
5159
    public void clear() {
4496 mandeep.dh 5160
      this.success = null;
5361 mandeep.dh 5161
      this.wex = null;
2820 chandransh 5162
    }
5163
 
5361 mandeep.dh 5164
    public InventoryItem getSuccess() {
2820 chandransh 5165
      return this.success;
5166
    }
5167
 
5361 mandeep.dh 5168
    public void setSuccess(InventoryItem success) {
2820 chandransh 5169
      this.success = success;
5170
    }
5171
 
5172
    public void unsetSuccess() {
4496 mandeep.dh 5173
      this.success = null;
2820 chandransh 5174
    }
5175
 
3430 rajveer 5176
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2820 chandransh 5177
    public boolean isSetSuccess() {
4496 mandeep.dh 5178
      return this.success != null;
2820 chandransh 5179
    }
5180
 
5181
    public void setSuccessIsSet(boolean value) {
4496 mandeep.dh 5182
      if (!value) {
5183
        this.success = null;
5184
      }
2820 chandransh 5185
    }
5186
 
5361 mandeep.dh 5187
    public WarehouseServiceException getWex() {
5188
      return this.wex;
2820 chandransh 5189
    }
5190
 
5361 mandeep.dh 5191
    public void setWex(WarehouseServiceException wex) {
5192
      this.wex = wex;
2820 chandransh 5193
    }
5194
 
5361 mandeep.dh 5195
    public void unsetWex() {
5196
      this.wex = null;
2820 chandransh 5197
    }
5198
 
5361 mandeep.dh 5199
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
5200
    public boolean isSetWex() {
5201
      return this.wex != null;
2820 chandransh 5202
    }
5203
 
5361 mandeep.dh 5204
    public void setWexIsSet(boolean value) {
5205
      if (!value) {
5206
        this.wex = null;
2820 chandransh 5207
      }
5208
    }
5209
 
5210
    public void setFieldValue(_Fields field, Object value) {
5211
      switch (field) {
5361 mandeep.dh 5212
      case SUCCESS:
2820 chandransh 5213
        if (value == null) {
5361 mandeep.dh 5214
          unsetSuccess();
2820 chandransh 5215
        } else {
5361 mandeep.dh 5216
          setSuccess((InventoryItem)value);
2820 chandransh 5217
        }
5218
        break;
5219
 
5361 mandeep.dh 5220
      case WEX:
2820 chandransh 5221
        if (value == null) {
5361 mandeep.dh 5222
          unsetWex();
2820 chandransh 5223
        } else {
5361 mandeep.dh 5224
          setWex((WarehouseServiceException)value);
2820 chandransh 5225
        }
5226
        break;
5227
 
5228
      }
5229
    }
5230
 
5231
    public Object getFieldValue(_Fields field) {
5232
      switch (field) {
5233
      case SUCCESS:
4496 mandeep.dh 5234
        return getSuccess();
2820 chandransh 5235
 
5361 mandeep.dh 5236
      case WEX:
5237
        return getWex();
5238
 
2820 chandransh 5239
      }
5240
      throw new IllegalStateException();
5241
    }
5242
 
3430 rajveer 5243
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5244
    public boolean isSet(_Fields field) {
5245
      if (field == null) {
5246
        throw new IllegalArgumentException();
5247
      }
2820 chandransh 5248
 
5249
      switch (field) {
5250
      case SUCCESS:
5251
        return isSetSuccess();
5361 mandeep.dh 5252
      case WEX:
5253
        return isSetWex();
2820 chandransh 5254
      }
5255
      throw new IllegalStateException();
5256
    }
5257
 
5258
    @Override
5259
    public boolean equals(Object that) {
5260
      if (that == null)
5261
        return false;
5361 mandeep.dh 5262
      if (that instanceof getNonSeralizedInventoryItem_result)
5263
        return this.equals((getNonSeralizedInventoryItem_result)that);
2820 chandransh 5264
      return false;
5265
    }
5266
 
5361 mandeep.dh 5267
    public boolean equals(getNonSeralizedInventoryItem_result that) {
2820 chandransh 5268
      if (that == null)
5269
        return false;
5270
 
4496 mandeep.dh 5271
      boolean this_present_success = true && this.isSetSuccess();
5272
      boolean that_present_success = true && that.isSetSuccess();
2820 chandransh 5273
      if (this_present_success || that_present_success) {
5274
        if (!(this_present_success && that_present_success))
5275
          return false;
4496 mandeep.dh 5276
        if (!this.success.equals(that.success))
2820 chandransh 5277
          return false;
5278
      }
5279
 
5361 mandeep.dh 5280
      boolean this_present_wex = true && this.isSetWex();
5281
      boolean that_present_wex = true && that.isSetWex();
5282
      if (this_present_wex || that_present_wex) {
5283
        if (!(this_present_wex && that_present_wex))
4496 mandeep.dh 5284
          return false;
5361 mandeep.dh 5285
        if (!this.wex.equals(that.wex))
4496 mandeep.dh 5286
          return false;
5287
      }
5288
 
5289
      return true;
5290
    }
5291
 
5292
    @Override
5293
    public int hashCode() {
5294
      return 0;
5295
    }
5296
 
5361 mandeep.dh 5297
    public int compareTo(getNonSeralizedInventoryItem_result other) {
4496 mandeep.dh 5298
      if (!getClass().equals(other.getClass())) {
5299
        return getClass().getName().compareTo(other.getClass().getName());
5300
      }
5301
 
5302
      int lastComparison = 0;
5361 mandeep.dh 5303
      getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
4496 mandeep.dh 5304
 
5305
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5306
      if (lastComparison != 0) {
5307
        return lastComparison;
5308
      }
5309
      if (isSetSuccess()) {
5310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5311
        if (lastComparison != 0) {
5312
          return lastComparison;
5313
        }
5314
      }
5361 mandeep.dh 5315
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 5316
      if (lastComparison != 0) {
5317
        return lastComparison;
5318
      }
5361 mandeep.dh 5319
      if (isSetWex()) {
5320
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
3430 rajveer 5321
        if (lastComparison != 0) {
5322
          return lastComparison;
5323
        }
2820 chandransh 5324
      }
5325
      return 0;
5326
    }
5327
 
3430 rajveer 5328
    public _Fields fieldForId(int fieldId) {
5329
      return _Fields.findByThriftId(fieldId);
5330
    }
5331
 
5332
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5333
      org.apache.thrift.protocol.TField field;
2820 chandransh 5334
      iprot.readStructBegin();
5335
      while (true)
5336
      {
5337
        field = iprot.readFieldBegin();
3430 rajveer 5338
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 5339
          break;
5340
        }
3430 rajveer 5341
        switch (field.id) {
5361 mandeep.dh 5342
          case 0: // SUCCESS
5343
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5344
              this.success = new InventoryItem();
5345
              this.success.read(iprot);
3430 rajveer 5346
            } else { 
5347
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5348
            }
5349
            break;
5361 mandeep.dh 5350
          case 1: // WEX
5351
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5352
              this.wex = new WarehouseServiceException();
5353
              this.wex.read(iprot);
4496 mandeep.dh 5354
            } else { 
5355
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5356
            }
5357
            break;
5358
          default:
5359
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5360
        }
5361
        iprot.readFieldEnd();
5362
      }
5363
      iprot.readStructEnd();
5364
      validate();
5365
    }
5366
 
5367
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5368
      oprot.writeStructBegin(STRUCT_DESC);
5369
 
5370
      if (this.isSetSuccess()) {
5371
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5361 mandeep.dh 5372
        this.success.write(oprot);
4496 mandeep.dh 5373
        oprot.writeFieldEnd();
5361 mandeep.dh 5374
      } else if (this.isSetWex()) {
5375
        oprot.writeFieldBegin(WEX_FIELD_DESC);
5376
        this.wex.write(oprot);
5377
        oprot.writeFieldEnd();
4496 mandeep.dh 5378
      }
5379
      oprot.writeFieldStop();
5380
      oprot.writeStructEnd();
5381
    }
5382
 
5383
    @Override
5384
    public String toString() {
5361 mandeep.dh 5385
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
4496 mandeep.dh 5386
      boolean first = true;
5387
 
5388
      sb.append("success:");
5389
      if (this.success == null) {
5390
        sb.append("null");
5391
      } else {
5392
        sb.append(this.success);
5393
      }
5394
      first = false;
5361 mandeep.dh 5395
      if (!first) sb.append(", ");
5396
      sb.append("wex:");
5397
      if (this.wex == null) {
5398
        sb.append("null");
5399
      } else {
5400
        sb.append(this.wex);
5401
      }
5402
      first = false;
4496 mandeep.dh 5403
      sb.append(")");
5404
      return sb.toString();
5405
    }
5406
 
5407
    public void validate() throws org.apache.thrift.TException {
5408
      // check for required fields
5409
    }
5410
 
5411
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5412
      try {
5413
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5414
      } catch (org.apache.thrift.TException te) {
5415
        throw new java.io.IOException(te);
5416
      }
5417
    }
5418
 
5419
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5420
      try {
5421
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5422
      } catch (org.apache.thrift.TException te) {
5423
        throw new java.io.IOException(te);
5424
      }
5425
    }
5426
 
5427
  }
5428
 
5429
  public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable   {
5430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
3383 chandransh 5431
 
5361 mandeep.dh 5432
    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 5433
    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);
5434
    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 5435
    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 5436
    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 5437
 
5361 mandeep.dh 5438
    private InventoryItem inventoryItem; // required
4496 mandeep.dh 5439
    private ScanType type; // required
5440
    private long quantity; // required
5361 mandeep.dh 5441
    private long billingWarehouseId; // required
7410 amar.kumar 5442
    private long transferLotId; // required
3383 chandransh 5443
 
5444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 5446
      INVENTORY_ITEM((short)1, "inventoryItem"),
4496 mandeep.dh 5447
      /**
5448
       * 
5449
       * @see ScanType
5450
       */
5451
      TYPE((short)2, "type"),
5452
      QUANTITY((short)3, "quantity"),
7410 amar.kumar 5453
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
5454
      TRANSFER_LOT_ID((short)5, "transferLotId");
3383 chandransh 5455
 
5456
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5457
 
5458
      static {
5459
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5460
          byName.put(field.getFieldName(), field);
5461
        }
5462
      }
5463
 
5464
      /**
5465
       * Find the _Fields constant that matches fieldId, or null if its not found.
5466
       */
5467
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5468
        switch(fieldId) {
5361 mandeep.dh 5469
          case 1: // INVENTORY_ITEM
5470
            return INVENTORY_ITEM;
4496 mandeep.dh 5471
          case 2: // TYPE
5472
            return TYPE;
5473
          case 3: // QUANTITY
5474
            return QUANTITY;
5361 mandeep.dh 5475
          case 4: // BILLING_WAREHOUSE_ID
5476
            return BILLING_WAREHOUSE_ID;
7410 amar.kumar 5477
          case 5: // TRANSFER_LOT_ID
5478
            return TRANSFER_LOT_ID;
3430 rajveer 5479
          default:
5480
            return null;
5481
        }
3383 chandransh 5482
      }
5483
 
5484
      /**
5485
       * Find the _Fields constant that matches fieldId, throwing an exception
5486
       * if it is not found.
5487
       */
5488
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5489
        _Fields fields = findByThriftId(fieldId);
5490
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5491
        return fields;
5492
      }
5493
 
5494
      /**
5495
       * Find the _Fields constant that matches name, or null if its not found.
5496
       */
5497
      public static _Fields findByName(String name) {
5498
        return byName.get(name);
5499
      }
5500
 
5501
      private final short _thriftId;
5502
      private final String _fieldName;
5503
 
5504
      _Fields(short thriftId, String fieldName) {
5505
        _thriftId = thriftId;
5506
        _fieldName = fieldName;
5507
      }
5508
 
5509
      public short getThriftFieldId() {
5510
        return _thriftId;
5511
      }
5512
 
5513
      public String getFieldName() {
5514
        return _fieldName;
5515
      }
5516
    }
5517
 
5518
    // isset id assignments
5361 mandeep.dh 5519
    private static final int __QUANTITY_ISSET_ID = 0;
5520
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
7410 amar.kumar 5521
    private static final int __TRANSFERLOTID_ISSET_ID = 2;
5522
    private BitSet __isset_bit_vector = new BitSet(3);
3383 chandransh 5523
 
3430 rajveer 5524
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3383 chandransh 5525
    static {
3430 rajveer 5526
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 5527
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5528
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
4496 mandeep.dh 5529
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5530
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
5531
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5532
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5361 mandeep.dh 5533
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 5534
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7410 amar.kumar 5535
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5536
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 5537
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 5538
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
3383 chandransh 5539
    }
5540
 
4496 mandeep.dh 5541
    public scan_args() {
3383 chandransh 5542
    }
5543
 
4496 mandeep.dh 5544
    public scan_args(
5361 mandeep.dh 5545
      InventoryItem inventoryItem,
4496 mandeep.dh 5546
      ScanType type,
5547
      long quantity,
7410 amar.kumar 5548
      long billingWarehouseId,
5549
      long transferLotId)
3383 chandransh 5550
    {
5551
      this();
5361 mandeep.dh 5552
      this.inventoryItem = inventoryItem;
4496 mandeep.dh 5553
      this.type = type;
5554
      this.quantity = quantity;
5555
      setQuantityIsSet(true);
5361 mandeep.dh 5556
      this.billingWarehouseId = billingWarehouseId;
5557
      setBillingWarehouseIdIsSet(true);
7410 amar.kumar 5558
      this.transferLotId = transferLotId;
5559
      setTransferLotIdIsSet(true);
3383 chandransh 5560
    }
5561
 
5562
    /**
5563
     * Performs a deep copy on <i>other</i>.
5564
     */
4496 mandeep.dh 5565
    public scan_args(scan_args other) {
3383 chandransh 5566
      __isset_bit_vector.clear();
5567
      __isset_bit_vector.or(other.__isset_bit_vector);
5361 mandeep.dh 5568
      if (other.isSetInventoryItem()) {
5569
        this.inventoryItem = new InventoryItem(other.inventoryItem);
5570
      }
4496 mandeep.dh 5571
      if (other.isSetType()) {
5572
        this.type = other.type;
5573
      }
5574
      this.quantity = other.quantity;
5361 mandeep.dh 5575
      this.billingWarehouseId = other.billingWarehouseId;
7410 amar.kumar 5576
      this.transferLotId = other.transferLotId;
3383 chandransh 5577
    }
5578
 
4496 mandeep.dh 5579
    public scan_args deepCopy() {
5580
      return new scan_args(this);
3383 chandransh 5581
    }
5582
 
3430 rajveer 5583
    @Override
5584
    public void clear() {
5361 mandeep.dh 5585
      this.inventoryItem = null;
4496 mandeep.dh 5586
      this.type = null;
5587
      setQuantityIsSet(false);
5588
      this.quantity = 0;
5361 mandeep.dh 5589
      setBillingWarehouseIdIsSet(false);
5590
      this.billingWarehouseId = 0;
7410 amar.kumar 5591
      setTransferLotIdIsSet(false);
5592
      this.transferLotId = 0;
3383 chandransh 5593
    }
5594
 
5361 mandeep.dh 5595
    public InventoryItem getInventoryItem() {
5596
      return this.inventoryItem;
3383 chandransh 5597
    }
5598
 
5361 mandeep.dh 5599
    public void setInventoryItem(InventoryItem inventoryItem) {
5600
      this.inventoryItem = inventoryItem;
3383 chandransh 5601
    }
5602
 
5361 mandeep.dh 5603
    public void unsetInventoryItem() {
5604
      this.inventoryItem = null;
3383 chandransh 5605
    }
5606
 
5361 mandeep.dh 5607
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
5608
    public boolean isSetInventoryItem() {
5609
      return this.inventoryItem != null;
3383 chandransh 5610
    }
5611
 
5361 mandeep.dh 5612
    public void setInventoryItemIsSet(boolean value) {
5613
      if (!value) {
5614
        this.inventoryItem = null;
5615
      }
3383 chandransh 5616
    }
5617
 
4496 mandeep.dh 5618
    /**
5619
     * 
5620
     * @see ScanType
5621
     */
5622
    public ScanType getType() {
5623
      return this.type;
3383 chandransh 5624
    }
5625
 
4496 mandeep.dh 5626
    /**
5627
     * 
5628
     * @see ScanType
5629
     */
5630
    public void setType(ScanType type) {
5631
      this.type = type;
3383 chandransh 5632
    }
5633
 
4496 mandeep.dh 5634
    public void unsetType() {
5635
      this.type = null;
3383 chandransh 5636
    }
5637
 
4496 mandeep.dh 5638
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
5639
    public boolean isSetType() {
5640
      return this.type != null;
3383 chandransh 5641
    }
5642
 
4496 mandeep.dh 5643
    public void setTypeIsSet(boolean value) {
5644
      if (!value) {
5645
        this.type = null;
5646
      }
3383 chandransh 5647
    }
5648
 
4496 mandeep.dh 5649
    public long getQuantity() {
5650
      return this.quantity;
5651
    }
5652
 
5653
    public void setQuantity(long quantity) {
5654
      this.quantity = quantity;
5655
      setQuantityIsSet(true);
5656
    }
5657
 
5658
    public void unsetQuantity() {
5659
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
5660
    }
5661
 
5662
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
5663
    public boolean isSetQuantity() {
5664
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
5665
    }
5666
 
5667
    public void setQuantityIsSet(boolean value) {
5668
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
5669
    }
5670
 
5361 mandeep.dh 5671
    public long getBillingWarehouseId() {
5672
      return this.billingWarehouseId;
4496 mandeep.dh 5673
    }
5674
 
5361 mandeep.dh 5675
    public void setBillingWarehouseId(long billingWarehouseId) {
5676
      this.billingWarehouseId = billingWarehouseId;
5677
      setBillingWarehouseIdIsSet(true);
4496 mandeep.dh 5678
    }
5679
 
5361 mandeep.dh 5680
    public void unsetBillingWarehouseId() {
5681
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 5682
    }
5683
 
5361 mandeep.dh 5684
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
5685
    public boolean isSetBillingWarehouseId() {
5686
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 5687
    }
5688
 
5361 mandeep.dh 5689
    public void setBillingWarehouseIdIsSet(boolean value) {
5690
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
4496 mandeep.dh 5691
    }
5692
 
7410 amar.kumar 5693
    public long getTransferLotId() {
5694
      return this.transferLotId;
5695
    }
5696
 
5697
    public void setTransferLotId(long transferLotId) {
5698
      this.transferLotId = transferLotId;
5699
      setTransferLotIdIsSet(true);
5700
    }
5701
 
5702
    public void unsetTransferLotId() {
5703
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
5704
    }
5705
 
5706
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
5707
    public boolean isSetTransferLotId() {
5708
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
5709
    }
5710
 
5711
    public void setTransferLotIdIsSet(boolean value) {
5712
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
5713
    }
5714
 
3383 chandransh 5715
    public void setFieldValue(_Fields field, Object value) {
5716
      switch (field) {
5361 mandeep.dh 5717
      case INVENTORY_ITEM:
3383 chandransh 5718
        if (value == null) {
5361 mandeep.dh 5719
          unsetInventoryItem();
3383 chandransh 5720
        } else {
5361 mandeep.dh 5721
          setInventoryItem((InventoryItem)value);
3383 chandransh 5722
        }
5723
        break;
5724
 
4496 mandeep.dh 5725
      case TYPE:
3383 chandransh 5726
        if (value == null) {
4496 mandeep.dh 5727
          unsetType();
3383 chandransh 5728
        } else {
4496 mandeep.dh 5729
          setType((ScanType)value);
3383 chandransh 5730
        }
5731
        break;
5732
 
4496 mandeep.dh 5733
      case QUANTITY:
5734
        if (value == null) {
5735
          unsetQuantity();
5736
        } else {
5737
          setQuantity((Long)value);
5738
        }
5739
        break;
5740
 
5361 mandeep.dh 5741
      case BILLING_WAREHOUSE_ID:
4496 mandeep.dh 5742
        if (value == null) {
5361 mandeep.dh 5743
          unsetBillingWarehouseId();
4496 mandeep.dh 5744
        } else {
5361 mandeep.dh 5745
          setBillingWarehouseId((Long)value);
4496 mandeep.dh 5746
        }
5747
        break;
5748
 
7410 amar.kumar 5749
      case TRANSFER_LOT_ID:
5750
        if (value == null) {
5751
          unsetTransferLotId();
5752
        } else {
5753
          setTransferLotId((Long)value);
5754
        }
5755
        break;
5756
 
3383 chandransh 5757
      }
5758
    }
5759
 
5760
    public Object getFieldValue(_Fields field) {
5761
      switch (field) {
5361 mandeep.dh 5762
      case INVENTORY_ITEM:
5763
        return getInventoryItem();
3383 chandransh 5764
 
4496 mandeep.dh 5765
      case TYPE:
5766
        return getType();
3383 chandransh 5767
 
4496 mandeep.dh 5768
      case QUANTITY:
5769
        return Long.valueOf(getQuantity());
5770
 
5361 mandeep.dh 5771
      case BILLING_WAREHOUSE_ID:
5772
        return Long.valueOf(getBillingWarehouseId());
4496 mandeep.dh 5773
 
7410 amar.kumar 5774
      case TRANSFER_LOT_ID:
5775
        return Long.valueOf(getTransferLotId());
5776
 
3383 chandransh 5777
      }
5778
      throw new IllegalStateException();
5779
    }
5780
 
3430 rajveer 5781
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5782
    public boolean isSet(_Fields field) {
5783
      if (field == null) {
5784
        throw new IllegalArgumentException();
5785
      }
3383 chandransh 5786
 
5787
      switch (field) {
5361 mandeep.dh 5788
      case INVENTORY_ITEM:
5789
        return isSetInventoryItem();
4496 mandeep.dh 5790
      case TYPE:
5791
        return isSetType();
5792
      case QUANTITY:
5793
        return isSetQuantity();
5361 mandeep.dh 5794
      case BILLING_WAREHOUSE_ID:
5795
        return isSetBillingWarehouseId();
7410 amar.kumar 5796
      case TRANSFER_LOT_ID:
5797
        return isSetTransferLotId();
3383 chandransh 5798
      }
5799
      throw new IllegalStateException();
5800
    }
5801
 
5802
    @Override
5803
    public boolean equals(Object that) {
5804
      if (that == null)
5805
        return false;
4496 mandeep.dh 5806
      if (that instanceof scan_args)
5807
        return this.equals((scan_args)that);
3383 chandransh 5808
      return false;
5809
    }
5810
 
4496 mandeep.dh 5811
    public boolean equals(scan_args that) {
3383 chandransh 5812
      if (that == null)
5813
        return false;
5814
 
5361 mandeep.dh 5815
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
5816
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
5817
      if (this_present_inventoryItem || that_present_inventoryItem) {
5818
        if (!(this_present_inventoryItem && that_present_inventoryItem))
3383 chandransh 5819
          return false;
5361 mandeep.dh 5820
        if (!this.inventoryItem.equals(that.inventoryItem))
3383 chandransh 5821
          return false;
5822
      }
5823
 
4496 mandeep.dh 5824
      boolean this_present_type = true && this.isSetType();
5825
      boolean that_present_type = true && that.isSetType();
5826
      if (this_present_type || that_present_type) {
5827
        if (!(this_present_type && that_present_type))
3383 chandransh 5828
          return false;
4496 mandeep.dh 5829
        if (!this.type.equals(that.type))
3383 chandransh 5830
          return false;
5831
      }
5832
 
4496 mandeep.dh 5833
      boolean this_present_quantity = true;
5834
      boolean that_present_quantity = true;
5835
      if (this_present_quantity || that_present_quantity) {
5836
        if (!(this_present_quantity && that_present_quantity))
5837
          return false;
5838
        if (this.quantity != that.quantity)
5839
          return false;
5840
      }
5841
 
5361 mandeep.dh 5842
      boolean this_present_billingWarehouseId = true;
5843
      boolean that_present_billingWarehouseId = true;
5844
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
5845
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
4496 mandeep.dh 5846
          return false;
5361 mandeep.dh 5847
        if (this.billingWarehouseId != that.billingWarehouseId)
4496 mandeep.dh 5848
          return false;
5849
      }
5850
 
7410 amar.kumar 5851
      boolean this_present_transferLotId = true;
5852
      boolean that_present_transferLotId = true;
5853
      if (this_present_transferLotId || that_present_transferLotId) {
5854
        if (!(this_present_transferLotId && that_present_transferLotId))
5855
          return false;
5856
        if (this.transferLotId != that.transferLotId)
5857
          return false;
5858
      }
5859
 
3383 chandransh 5860
      return true;
5861
    }
5862
 
5863
    @Override
5864
    public int hashCode() {
5865
      return 0;
5866
    }
5867
 
4496 mandeep.dh 5868
    public int compareTo(scan_args other) {
3383 chandransh 5869
      if (!getClass().equals(other.getClass())) {
5870
        return getClass().getName().compareTo(other.getClass().getName());
5871
      }
5872
 
5873
      int lastComparison = 0;
4496 mandeep.dh 5874
      scan_args typedOther = (scan_args)other;
3383 chandransh 5875
 
5361 mandeep.dh 5876
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
3383 chandransh 5877
      if (lastComparison != 0) {
5878
        return lastComparison;
5879
      }
5361 mandeep.dh 5880
      if (isSetInventoryItem()) {
5881
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
3430 rajveer 5882
        if (lastComparison != 0) {
5883
          return lastComparison;
5884
        }
3383 chandransh 5885
      }
4496 mandeep.dh 5886
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3383 chandransh 5887
      if (lastComparison != 0) {
5888
        return lastComparison;
5889
      }
4496 mandeep.dh 5890
      if (isSetType()) {
5891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 5892
        if (lastComparison != 0) {
5893
          return lastComparison;
5894
        }
3383 chandransh 5895
      }
4496 mandeep.dh 5896
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
5897
      if (lastComparison != 0) {
5898
        return lastComparison;
5899
      }
5900
      if (isSetQuantity()) {
5901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
5902
        if (lastComparison != 0) {
5903
          return lastComparison;
5904
        }
5905
      }
5361 mandeep.dh 5906
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
4496 mandeep.dh 5907
      if (lastComparison != 0) {
5908
        return lastComparison;
5909
      }
5361 mandeep.dh 5910
      if (isSetBillingWarehouseId()) {
5911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
4496 mandeep.dh 5912
        if (lastComparison != 0) {
5913
          return lastComparison;
5914
        }
5915
      }
7410 amar.kumar 5916
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
5917
      if (lastComparison != 0) {
5918
        return lastComparison;
5919
      }
5920
      if (isSetTransferLotId()) {
5921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
5922
        if (lastComparison != 0) {
5923
          return lastComparison;
5924
        }
5925
      }
3383 chandransh 5926
      return 0;
5927
    }
5928
 
3430 rajveer 5929
    public _Fields fieldForId(int fieldId) {
5930
      return _Fields.findByThriftId(fieldId);
5931
    }
5932
 
5933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5934
      org.apache.thrift.protocol.TField field;
3383 chandransh 5935
      iprot.readStructBegin();
5936
      while (true)
5937
      {
5938
        field = iprot.readFieldBegin();
3430 rajveer 5939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3383 chandransh 5940
          break;
5941
        }
3430 rajveer 5942
        switch (field.id) {
5361 mandeep.dh 5943
          case 1: // INVENTORY_ITEM
5944
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5945
              this.inventoryItem = new InventoryItem();
5946
              this.inventoryItem.read(iprot);
3430 rajveer 5947
            } else { 
5948
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5949
            }
5950
            break;
4496 mandeep.dh 5951
          case 2: // TYPE
5952
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5953
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 5954
            } else { 
5955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5956
            }
5957
            break;
4496 mandeep.dh 5958
          case 3: // QUANTITY
5959
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5960
              this.quantity = iprot.readI64();
5961
              setQuantityIsSet(true);
5962
            } else { 
5963
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5964
            }
5965
            break;
5361 mandeep.dh 5966
          case 4: // BILLING_WAREHOUSE_ID
4496 mandeep.dh 5967
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5361 mandeep.dh 5968
              this.billingWarehouseId = iprot.readI64();
5969
              setBillingWarehouseIdIsSet(true);
4496 mandeep.dh 5970
            } else { 
5971
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5972
            }
5973
            break;
7410 amar.kumar 5974
          case 5: // TRANSFER_LOT_ID
5975
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5976
              this.transferLotId = iprot.readI64();
5977
              setTransferLotIdIsSet(true);
5978
            } else { 
5979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5980
            }
5981
            break;
3430 rajveer 5982
          default:
5983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3383 chandransh 5984
        }
3430 rajveer 5985
        iprot.readFieldEnd();
3383 chandransh 5986
      }
5987
      iprot.readStructEnd();
5988
      validate();
5989
    }
5990
 
3430 rajveer 5991
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3383 chandransh 5992
      validate();
5993
 
5994
      oprot.writeStructBegin(STRUCT_DESC);
5361 mandeep.dh 5995
      if (this.inventoryItem != null) {
5996
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
5997
        this.inventoryItem.write(oprot);
5998
        oprot.writeFieldEnd();
5999
      }
4496 mandeep.dh 6000
      if (this.type != null) {
6001
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6002
        oprot.writeI32(this.type.getValue());
6003
        oprot.writeFieldEnd();
6004
      }
6005
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
6006
      oprot.writeI64(this.quantity);
3383 chandransh 6007
      oprot.writeFieldEnd();
5361 mandeep.dh 6008
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
6009
      oprot.writeI64(this.billingWarehouseId);
4496 mandeep.dh 6010
      oprot.writeFieldEnd();
7410 amar.kumar 6011
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
6012
      oprot.writeI64(this.transferLotId);
6013
      oprot.writeFieldEnd();
3383 chandransh 6014
      oprot.writeFieldStop();
6015
      oprot.writeStructEnd();
6016
    }
6017
 
6018
    @Override
6019
    public String toString() {
4496 mandeep.dh 6020
      StringBuilder sb = new StringBuilder("scan_args(");
3383 chandransh 6021
      boolean first = true;
6022
 
5361 mandeep.dh 6023
      sb.append("inventoryItem:");
6024
      if (this.inventoryItem == null) {
6025
        sb.append("null");
6026
      } else {
6027
        sb.append(this.inventoryItem);
6028
      }
3383 chandransh 6029
      first = false;
6030
      if (!first) sb.append(", ");
4496 mandeep.dh 6031
      sb.append("type:");
6032
      if (this.type == null) {
6033
        sb.append("null");
6034
      } else {
6035
        sb.append(this.type);
6036
      }
3383 chandransh 6037
      first = false;
4496 mandeep.dh 6038
      if (!first) sb.append(", ");
6039
      sb.append("quantity:");
6040
      sb.append(this.quantity);
6041
      first = false;
6042
      if (!first) sb.append(", ");
5361 mandeep.dh 6043
      sb.append("billingWarehouseId:");
6044
      sb.append(this.billingWarehouseId);
4496 mandeep.dh 6045
      first = false;
7410 amar.kumar 6046
      if (!first) sb.append(", ");
6047
      sb.append("transferLotId:");
6048
      sb.append(this.transferLotId);
6049
      first = false;
3383 chandransh 6050
      sb.append(")");
6051
      return sb.toString();
6052
    }
6053
 
3430 rajveer 6054
    public void validate() throws org.apache.thrift.TException {
3383 chandransh 6055
      // check for required fields
6056
    }
6057
 
3430 rajveer 6058
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6059
      try {
6060
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6061
      } catch (org.apache.thrift.TException te) {
6062
        throw new java.io.IOException(te);
6063
      }
6064
    }
6065
 
6066
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6067
      try {
4496 mandeep.dh 6068
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6069
        __isset_bit_vector = new BitSet(1);
3430 rajveer 6070
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6071
      } catch (org.apache.thrift.TException te) {
6072
        throw new java.io.IOException(te);
6073
      }
6074
    }
6075
 
3383 chandransh 6076
  }
6077
 
4496 mandeep.dh 6078
  public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable   {
6079
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
3383 chandransh 6080
 
3430 rajveer 6081
    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 6082
 
3430 rajveer 6083
    private WarehouseServiceException wex; // required
3383 chandransh 6084
 
6085
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6086
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3383 chandransh 6087
      WEX((short)1, "wex");
6088
 
6089
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6090
 
6091
      static {
6092
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6093
          byName.put(field.getFieldName(), field);
6094
        }
6095
      }
6096
 
6097
      /**
6098
       * Find the _Fields constant that matches fieldId, or null if its not found.
6099
       */
6100
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6101
        switch(fieldId) {
6102
          case 1: // WEX
6103
            return WEX;
6104
          default:
6105
            return null;
6106
        }
3383 chandransh 6107
      }
6108
 
6109
      /**
6110
       * Find the _Fields constant that matches fieldId, throwing an exception
6111
       * if it is not found.
6112
       */
6113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6114
        _Fields fields = findByThriftId(fieldId);
6115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6116
        return fields;
6117
      }
6118
 
6119
      /**
6120
       * Find the _Fields constant that matches name, or null if its not found.
6121
       */
6122
      public static _Fields findByName(String name) {
6123
        return byName.get(name);
6124
      }
6125
 
6126
      private final short _thriftId;
6127
      private final String _fieldName;
6128
 
6129
      _Fields(short thriftId, String fieldName) {
6130
        _thriftId = thriftId;
6131
        _fieldName = fieldName;
6132
      }
6133
 
6134
      public short getThriftFieldId() {
6135
        return _thriftId;
6136
      }
6137
 
6138
      public String getFieldName() {
6139
        return _fieldName;
6140
      }
6141
    }
6142
 
6143
    // isset id assignments
6144
 
3430 rajveer 6145
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3383 chandransh 6146
    static {
3430 rajveer 6147
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6148
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6149
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6150
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 6151
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
3383 chandransh 6152
    }
6153
 
4496 mandeep.dh 6154
    public scan_result() {
3383 chandransh 6155
    }
6156
 
4496 mandeep.dh 6157
    public scan_result(
3383 chandransh 6158
      WarehouseServiceException wex)
6159
    {
6160
      this();
6161
      this.wex = wex;
6162
    }
6163
 
6164
    /**
6165
     * Performs a deep copy on <i>other</i>.
6166
     */
4496 mandeep.dh 6167
    public scan_result(scan_result other) {
3383 chandransh 6168
      if (other.isSetWex()) {
6169
        this.wex = new WarehouseServiceException(other.wex);
6170
      }
6171
    }
6172
 
4496 mandeep.dh 6173
    public scan_result deepCopy() {
6174
      return new scan_result(this);
3383 chandransh 6175
    }
6176
 
3430 rajveer 6177
    @Override
6178
    public void clear() {
6179
      this.wex = null;
3383 chandransh 6180
    }
6181
 
6182
    public WarehouseServiceException getWex() {
6183
      return this.wex;
6184
    }
6185
 
3430 rajveer 6186
    public void setWex(WarehouseServiceException wex) {
3383 chandransh 6187
      this.wex = wex;
6188
    }
6189
 
6190
    public void unsetWex() {
6191
      this.wex = null;
6192
    }
6193
 
3430 rajveer 6194
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
3383 chandransh 6195
    public boolean isSetWex() {
6196
      return this.wex != null;
6197
    }
6198
 
6199
    public void setWexIsSet(boolean value) {
6200
      if (!value) {
6201
        this.wex = null;
6202
      }
6203
    }
6204
 
6205
    public void setFieldValue(_Fields field, Object value) {
6206
      switch (field) {
6207
      case WEX:
6208
        if (value == null) {
6209
          unsetWex();
6210
        } else {
6211
          setWex((WarehouseServiceException)value);
6212
        }
6213
        break;
6214
 
6215
      }
6216
    }
6217
 
6218
    public Object getFieldValue(_Fields field) {
6219
      switch (field) {
6220
      case WEX:
6221
        return getWex();
6222
 
6223
      }
6224
      throw new IllegalStateException();
6225
    }
6226
 
3430 rajveer 6227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6228
    public boolean isSet(_Fields field) {
6229
      if (field == null) {
6230
        throw new IllegalArgumentException();
6231
      }
3383 chandransh 6232
 
6233
      switch (field) {
6234
      case WEX:
6235
        return isSetWex();
6236
      }
6237
      throw new IllegalStateException();
6238
    }
6239
 
6240
    @Override
6241
    public boolean equals(Object that) {
6242
      if (that == null)
6243
        return false;
4496 mandeep.dh 6244
      if (that instanceof scan_result)
6245
        return this.equals((scan_result)that);
3383 chandransh 6246
      return false;
6247
    }
6248
 
4496 mandeep.dh 6249
    public boolean equals(scan_result that) {
3383 chandransh 6250
      if (that == null)
6251
        return false;
6252
 
6253
      boolean this_present_wex = true && this.isSetWex();
6254
      boolean that_present_wex = true && that.isSetWex();
6255
      if (this_present_wex || that_present_wex) {
6256
        if (!(this_present_wex && that_present_wex))
6257
          return false;
6258
        if (!this.wex.equals(that.wex))
6259
          return false;
6260
      }
6261
 
6262
      return true;
6263
    }
6264
 
6265
    @Override
6266
    public int hashCode() {
6267
      return 0;
6268
    }
6269
 
4496 mandeep.dh 6270
    public int compareTo(scan_result other) {
3383 chandransh 6271
      if (!getClass().equals(other.getClass())) {
6272
        return getClass().getName().compareTo(other.getClass().getName());
6273
      }
6274
 
6275
      int lastComparison = 0;
4496 mandeep.dh 6276
      scan_result typedOther = (scan_result)other;
3383 chandransh 6277
 
3430 rajveer 6278
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
3383 chandransh 6279
      if (lastComparison != 0) {
6280
        return lastComparison;
6281
      }
3430 rajveer 6282
      if (isSetWex()) {
6283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
6284
        if (lastComparison != 0) {
6285
          return lastComparison;
6286
        }
3383 chandransh 6287
      }
6288
      return 0;
6289
    }
6290
 
3430 rajveer 6291
    public _Fields fieldForId(int fieldId) {
6292
      return _Fields.findByThriftId(fieldId);
6293
    }
6294
 
6295
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6296
      org.apache.thrift.protocol.TField field;
3383 chandransh 6297
      iprot.readStructBegin();
6298
      while (true)
6299
      {
6300
        field = iprot.readFieldBegin();
3430 rajveer 6301
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3383 chandransh 6302
          break;
6303
        }
3430 rajveer 6304
        switch (field.id) {
6305
          case 1: // WEX
6306
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6307
              this.wex = new WarehouseServiceException();
6308
              this.wex.read(iprot);
6309
            } else { 
6310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6311
            }
6312
            break;
6313
          default:
6314
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3383 chandransh 6315
        }
3430 rajveer 6316
        iprot.readFieldEnd();
3383 chandransh 6317
      }
6318
      iprot.readStructEnd();
6319
      validate();
6320
    }
6321
 
3430 rajveer 6322
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3383 chandransh 6323
      oprot.writeStructBegin(STRUCT_DESC);
6324
 
4496 mandeep.dh 6325
      if (this.isSetWex()) {
3383 chandransh 6326
        oprot.writeFieldBegin(WEX_FIELD_DESC);
6327
        this.wex.write(oprot);
6328
        oprot.writeFieldEnd();
6329
      }
6330
      oprot.writeFieldStop();
6331
      oprot.writeStructEnd();
6332
    }
6333
 
6334
    @Override
6335
    public String toString() {
4496 mandeep.dh 6336
      StringBuilder sb = new StringBuilder("scan_result(");
3383 chandransh 6337
      boolean first = true;
6338
 
6339
      sb.append("wex:");
6340
      if (this.wex == null) {
6341
        sb.append("null");
6342
      } else {
6343
        sb.append(this.wex);
6344
      }
6345
      first = false;
6346
      sb.append(")");
6347
      return sb.toString();
6348
    }
6349
 
3430 rajveer 6350
    public void validate() throws org.apache.thrift.TException {
3383 chandransh 6351
      // check for required fields
6352
    }
6353
 
3430 rajveer 6354
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6355
      try {
6356
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6357
      } catch (org.apache.thrift.TException te) {
6358
        throw new java.io.IOException(te);
6359
      }
6360
    }
6361
 
6362
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6363
      try {
6364
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6365
      } catch (org.apache.thrift.TException te) {
6366
        throw new java.io.IOException(te);
6367
      }
6368
    }
6369
 
3383 chandransh 6370
  }
6371
 
4496 mandeep.dh 6372
  public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable   {
6373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
2820 chandransh 6374
 
4555 mandeep.dh 6375
    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 6376
    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);
6377
    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 6378
    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);
6379
    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);
6380
    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 6381
 
4555 mandeep.dh 6382
    private String serialNumber; // required
3430 rajveer 6383
    private ScanType type; // required
4496 mandeep.dh 6384
    private long orderId; // required
5110 mandeep.dh 6385
    private long fulfilmentWarehouseId; // required
6386
    private double quantity; // required
6387
    private long billingWarehouseId; // required
2820 chandransh 6388
 
6389
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6390
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4555 mandeep.dh 6391
      SERIAL_NUMBER((short)1, "serialNumber"),
2820 chandransh 6392
      /**
6393
       * 
6394
       * @see ScanType
6395
       */
4496 mandeep.dh 6396
      TYPE((short)2, "type"),
6397
      ORDER_ID((short)3, "orderId"),
5110 mandeep.dh 6398
      FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
6399
      QUANTITY((short)5, "quantity"),
6400
      BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
2820 chandransh 6401
 
6402
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6403
 
6404
      static {
6405
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6406
          byName.put(field.getFieldName(), field);
6407
        }
6408
      }
6409
 
6410
      /**
6411
       * Find the _Fields constant that matches fieldId, or null if its not found.
6412
       */
6413
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6414
        switch(fieldId) {
4555 mandeep.dh 6415
          case 1: // SERIAL_NUMBER
6416
            return SERIAL_NUMBER;
4496 mandeep.dh 6417
          case 2: // TYPE
3430 rajveer 6418
            return TYPE;
4496 mandeep.dh 6419
          case 3: // ORDER_ID
6420
            return ORDER_ID;
5110 mandeep.dh 6421
          case 4: // FULFILMENT_WAREHOUSE_ID
6422
            return FULFILMENT_WAREHOUSE_ID;
6423
          case 5: // QUANTITY
6424
            return QUANTITY;
6425
          case 6: // BILLING_WAREHOUSE_ID
6426
            return BILLING_WAREHOUSE_ID;
3430 rajveer 6427
          default:
6428
            return null;
6429
        }
2820 chandransh 6430
      }
6431
 
6432
      /**
6433
       * Find the _Fields constant that matches fieldId, throwing an exception
6434
       * if it is not found.
6435
       */
6436
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6437
        _Fields fields = findByThriftId(fieldId);
6438
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6439
        return fields;
6440
      }
6441
 
6442
      /**
6443
       * Find the _Fields constant that matches name, or null if its not found.
6444
       */
6445
      public static _Fields findByName(String name) {
6446
        return byName.get(name);
6447
      }
6448
 
6449
      private final short _thriftId;
6450
      private final String _fieldName;
6451
 
6452
      _Fields(short thriftId, String fieldName) {
6453
        _thriftId = thriftId;
6454
        _fieldName = fieldName;
6455
      }
6456
 
6457
      public short getThriftFieldId() {
6458
        return _thriftId;
6459
      }
6460
 
6461
      public String getFieldName() {
6462
        return _fieldName;
6463
      }
6464
    }
6465
 
6466
    // isset id assignments
4555 mandeep.dh 6467
    private static final int __ORDERID_ISSET_ID = 0;
5110 mandeep.dh 6468
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
6469
    private static final int __QUANTITY_ISSET_ID = 2;
6470
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
6471
    private BitSet __isset_bit_vector = new BitSet(4);
2820 chandransh 6472
 
3430 rajveer 6473
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 6474
    static {
3430 rajveer 6475
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4555 mandeep.dh 6476
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6477
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 6478
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6479
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
4496 mandeep.dh 6480
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6481
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 6482
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 6483
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 6484
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6485
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
6486
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6487
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 6488
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 6489
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
2820 chandransh 6490
    }
6491
 
4496 mandeep.dh 6492
    public scanSerializedItemForOrder_args() {
2820 chandransh 6493
    }
6494
 
4496 mandeep.dh 6495
    public scanSerializedItemForOrder_args(
4555 mandeep.dh 6496
      String serialNumber,
4496 mandeep.dh 6497
      ScanType type,
6498
      long orderId,
5110 mandeep.dh 6499
      long fulfilmentWarehouseId,
6500
      double quantity,
6501
      long billingWarehouseId)
2820 chandransh 6502
    {
6503
      this();
4555 mandeep.dh 6504
      this.serialNumber = serialNumber;
2820 chandransh 6505
      this.type = type;
4496 mandeep.dh 6506
      this.orderId = orderId;
6507
      setOrderIdIsSet(true);
5110 mandeep.dh 6508
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6509
      setFulfilmentWarehouseIdIsSet(true);
6510
      this.quantity = quantity;
6511
      setQuantityIsSet(true);
6512
      this.billingWarehouseId = billingWarehouseId;
6513
      setBillingWarehouseIdIsSet(true);
2820 chandransh 6514
    }
6515
 
6516
    /**
6517
     * Performs a deep copy on <i>other</i>.
6518
     */
4496 mandeep.dh 6519
    public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
2820 chandransh 6520
      __isset_bit_vector.clear();
6521
      __isset_bit_vector.or(other.__isset_bit_vector);
4555 mandeep.dh 6522
      if (other.isSetSerialNumber()) {
6523
        this.serialNumber = other.serialNumber;
6524
      }
2820 chandransh 6525
      if (other.isSetType()) {
6526
        this.type = other.type;
6527
      }
4496 mandeep.dh 6528
      this.orderId = other.orderId;
5110 mandeep.dh 6529
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
6530
      this.quantity = other.quantity;
6531
      this.billingWarehouseId = other.billingWarehouseId;
2820 chandransh 6532
    }
6533
 
4496 mandeep.dh 6534
    public scanSerializedItemForOrder_args deepCopy() {
6535
      return new scanSerializedItemForOrder_args(this);
2820 chandransh 6536
    }
6537
 
3430 rajveer 6538
    @Override
6539
    public void clear() {
4555 mandeep.dh 6540
      this.serialNumber = null;
3430 rajveer 6541
      this.type = null;
4496 mandeep.dh 6542
      setOrderIdIsSet(false);
6543
      this.orderId = 0;
5110 mandeep.dh 6544
      setFulfilmentWarehouseIdIsSet(false);
6545
      this.fulfilmentWarehouseId = 0;
6546
      setQuantityIsSet(false);
6547
      this.quantity = 0.0;
6548
      setBillingWarehouseIdIsSet(false);
6549
      this.billingWarehouseId = 0;
2820 chandransh 6550
    }
6551
 
4555 mandeep.dh 6552
    public String getSerialNumber() {
6553
      return this.serialNumber;
2820 chandransh 6554
    }
6555
 
4555 mandeep.dh 6556
    public void setSerialNumber(String serialNumber) {
6557
      this.serialNumber = serialNumber;
2820 chandransh 6558
    }
6559
 
4555 mandeep.dh 6560
    public void unsetSerialNumber() {
6561
      this.serialNumber = null;
2820 chandransh 6562
    }
6563
 
4555 mandeep.dh 6564
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
6565
    public boolean isSetSerialNumber() {
6566
      return this.serialNumber != null;
2820 chandransh 6567
    }
6568
 
4555 mandeep.dh 6569
    public void setSerialNumberIsSet(boolean value) {
6570
      if (!value) {
6571
        this.serialNumber = null;
6572
      }
2820 chandransh 6573
    }
6574
 
4496 mandeep.dh 6575
    /**
6576
     * 
6577
     * @see ScanType
6578
     */
6579
    public ScanType getType() {
6580
      return this.type;
2820 chandransh 6581
    }
6582
 
4496 mandeep.dh 6583
    /**
6584
     * 
6585
     * @see ScanType
6586
     */
6587
    public void setType(ScanType type) {
6588
      this.type = type;
2820 chandransh 6589
    }
6590
 
4496 mandeep.dh 6591
    public void unsetType() {
6592
      this.type = null;
2820 chandransh 6593
    }
6594
 
4496 mandeep.dh 6595
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6596
    public boolean isSetType() {
6597
      return this.type != null;
2820 chandransh 6598
    }
6599
 
4496 mandeep.dh 6600
    public void setTypeIsSet(boolean value) {
2820 chandransh 6601
      if (!value) {
4496 mandeep.dh 6602
        this.type = null;
2820 chandransh 6603
      }
6604
    }
6605
 
4496 mandeep.dh 6606
    public long getOrderId() {
6607
      return this.orderId;
2820 chandransh 6608
    }
6609
 
4496 mandeep.dh 6610
    public void setOrderId(long orderId) {
6611
      this.orderId = orderId;
6612
      setOrderIdIsSet(true);
2820 chandransh 6613
    }
6614
 
4496 mandeep.dh 6615
    public void unsetOrderId() {
6616
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2820 chandransh 6617
    }
6618
 
4496 mandeep.dh 6619
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
6620
    public boolean isSetOrderId() {
6621
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2820 chandransh 6622
    }
6623
 
4496 mandeep.dh 6624
    public void setOrderIdIsSet(boolean value) {
6625
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2820 chandransh 6626
    }
6627
 
5110 mandeep.dh 6628
    public long getFulfilmentWarehouseId() {
6629
      return this.fulfilmentWarehouseId;
2820 chandransh 6630
    }
6631
 
5110 mandeep.dh 6632
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
6633
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6634
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 6635
    }
6636
 
5110 mandeep.dh 6637
    public void unsetFulfilmentWarehouseId() {
6638
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 6639
    }
6640
 
5110 mandeep.dh 6641
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
6642
    public boolean isSetFulfilmentWarehouseId() {
6643
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 6644
    }
6645
 
5110 mandeep.dh 6646
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
6647
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
2820 chandransh 6648
    }
6649
 
5110 mandeep.dh 6650
    public double getQuantity() {
6651
      return this.quantity;
6652
    }
6653
 
6654
    public void setQuantity(double quantity) {
6655
      this.quantity = quantity;
6656
      setQuantityIsSet(true);
6657
    }
6658
 
6659
    public void unsetQuantity() {
6660
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
6661
    }
6662
 
6663
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
6664
    public boolean isSetQuantity() {
6665
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
6666
    }
6667
 
6668
    public void setQuantityIsSet(boolean value) {
6669
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
6670
    }
6671
 
6672
    public long getBillingWarehouseId() {
6673
      return this.billingWarehouseId;
6674
    }
6675
 
6676
    public void setBillingWarehouseId(long billingWarehouseId) {
6677
      this.billingWarehouseId = billingWarehouseId;
6678
      setBillingWarehouseIdIsSet(true);
6679
    }
6680
 
6681
    public void unsetBillingWarehouseId() {
6682
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
6683
    }
6684
 
6685
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
6686
    public boolean isSetBillingWarehouseId() {
6687
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
6688
    }
6689
 
6690
    public void setBillingWarehouseIdIsSet(boolean value) {
6691
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
6692
    }
6693
 
2820 chandransh 6694
    public void setFieldValue(_Fields field, Object value) {
6695
      switch (field) {
4555 mandeep.dh 6696
      case SERIAL_NUMBER:
2820 chandransh 6697
        if (value == null) {
4555 mandeep.dh 6698
          unsetSerialNumber();
2820 chandransh 6699
        } else {
4555 mandeep.dh 6700
          setSerialNumber((String)value);
2820 chandransh 6701
        }
6702
        break;
6703
 
4496 mandeep.dh 6704
      case TYPE:
2820 chandransh 6705
        if (value == null) {
4496 mandeep.dh 6706
          unsetType();
2820 chandransh 6707
        } else {
4496 mandeep.dh 6708
          setType((ScanType)value);
2820 chandransh 6709
        }
6710
        break;
6711
 
4496 mandeep.dh 6712
      case ORDER_ID:
2820 chandransh 6713
        if (value == null) {
4496 mandeep.dh 6714
          unsetOrderId();
2820 chandransh 6715
        } else {
4496 mandeep.dh 6716
          setOrderId((Long)value);
2820 chandransh 6717
        }
6718
        break;
6719
 
5110 mandeep.dh 6720
      case FULFILMENT_WAREHOUSE_ID:
2820 chandransh 6721
        if (value == null) {
5110 mandeep.dh 6722
          unsetFulfilmentWarehouseId();
2820 chandransh 6723
        } else {
5110 mandeep.dh 6724
          setFulfilmentWarehouseId((Long)value);
2820 chandransh 6725
        }
6726
        break;
6727
 
5110 mandeep.dh 6728
      case QUANTITY:
6729
        if (value == null) {
6730
          unsetQuantity();
6731
        } else {
6732
          setQuantity((Double)value);
6733
        }
6734
        break;
6735
 
6736
      case BILLING_WAREHOUSE_ID:
6737
        if (value == null) {
6738
          unsetBillingWarehouseId();
6739
        } else {
6740
          setBillingWarehouseId((Long)value);
6741
        }
6742
        break;
6743
 
2820 chandransh 6744
      }
6745
    }
6746
 
6747
    public Object getFieldValue(_Fields field) {
6748
      switch (field) {
4555 mandeep.dh 6749
      case SERIAL_NUMBER:
6750
        return getSerialNumber();
2820 chandransh 6751
 
6752
      case TYPE:
6753
        return getType();
6754
 
4496 mandeep.dh 6755
      case ORDER_ID:
6756
        return Long.valueOf(getOrderId());
6757
 
5110 mandeep.dh 6758
      case FULFILMENT_WAREHOUSE_ID:
6759
        return Long.valueOf(getFulfilmentWarehouseId());
4496 mandeep.dh 6760
 
5110 mandeep.dh 6761
      case QUANTITY:
6762
        return Double.valueOf(getQuantity());
6763
 
6764
      case BILLING_WAREHOUSE_ID:
6765
        return Long.valueOf(getBillingWarehouseId());
6766
 
2820 chandransh 6767
      }
6768
      throw new IllegalStateException();
6769
    }
6770
 
3430 rajveer 6771
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6772
    public boolean isSet(_Fields field) {
6773
      if (field == null) {
6774
        throw new IllegalArgumentException();
6775
      }
2820 chandransh 6776
 
6777
      switch (field) {
4555 mandeep.dh 6778
      case SERIAL_NUMBER:
6779
        return isSetSerialNumber();
2820 chandransh 6780
      case TYPE:
6781
        return isSetType();
4496 mandeep.dh 6782
      case ORDER_ID:
6783
        return isSetOrderId();
5110 mandeep.dh 6784
      case FULFILMENT_WAREHOUSE_ID:
6785
        return isSetFulfilmentWarehouseId();
6786
      case QUANTITY:
6787
        return isSetQuantity();
6788
      case BILLING_WAREHOUSE_ID:
6789
        return isSetBillingWarehouseId();
2820 chandransh 6790
      }
6791
      throw new IllegalStateException();
6792
    }
6793
 
6794
    @Override
6795
    public boolean equals(Object that) {
6796
      if (that == null)
6797
        return false;
4496 mandeep.dh 6798
      if (that instanceof scanSerializedItemForOrder_args)
6799
        return this.equals((scanSerializedItemForOrder_args)that);
2820 chandransh 6800
      return false;
6801
    }
6802
 
4496 mandeep.dh 6803
    public boolean equals(scanSerializedItemForOrder_args that) {
2820 chandransh 6804
      if (that == null)
6805
        return false;
6806
 
4555 mandeep.dh 6807
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
6808
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
6809
      if (this_present_serialNumber || that_present_serialNumber) {
6810
        if (!(this_present_serialNumber && that_present_serialNumber))
2820 chandransh 6811
          return false;
4555 mandeep.dh 6812
        if (!this.serialNumber.equals(that.serialNumber))
2820 chandransh 6813
          return false;
6814
      }
6815
 
4496 mandeep.dh 6816
      boolean this_present_type = true && this.isSetType();
6817
      boolean that_present_type = true && that.isSetType();
6818
      if (this_present_type || that_present_type) {
6819
        if (!(this_present_type && that_present_type))
2820 chandransh 6820
          return false;
4496 mandeep.dh 6821
        if (!this.type.equals(that.type))
2820 chandransh 6822
          return false;
6823
      }
6824
 
4496 mandeep.dh 6825
      boolean this_present_orderId = true;
6826
      boolean that_present_orderId = true;
6827
      if (this_present_orderId || that_present_orderId) {
6828
        if (!(this_present_orderId && that_present_orderId))
2820 chandransh 6829
          return false;
4496 mandeep.dh 6830
        if (this.orderId != that.orderId)
2820 chandransh 6831
          return false;
6832
      }
6833
 
5110 mandeep.dh 6834
      boolean this_present_fulfilmentWarehouseId = true;
6835
      boolean that_present_fulfilmentWarehouseId = true;
6836
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
6837
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
2820 chandransh 6838
          return false;
5110 mandeep.dh 6839
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
2820 chandransh 6840
          return false;
6841
      }
6842
 
5110 mandeep.dh 6843
      boolean this_present_quantity = true;
6844
      boolean that_present_quantity = true;
6845
      if (this_present_quantity || that_present_quantity) {
6846
        if (!(this_present_quantity && that_present_quantity))
6847
          return false;
6848
        if (this.quantity != that.quantity)
6849
          return false;
6850
      }
6851
 
6852
      boolean this_present_billingWarehouseId = true;
6853
      boolean that_present_billingWarehouseId = true;
6854
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
6855
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
6856
          return false;
6857
        if (this.billingWarehouseId != that.billingWarehouseId)
6858
          return false;
6859
      }
6860
 
2820 chandransh 6861
      return true;
6862
    }
6863
 
6864
    @Override
6865
    public int hashCode() {
6866
      return 0;
6867
    }
6868
 
4496 mandeep.dh 6869
    public int compareTo(scanSerializedItemForOrder_args other) {
2820 chandransh 6870
      if (!getClass().equals(other.getClass())) {
6871
        return getClass().getName().compareTo(other.getClass().getName());
6872
      }
6873
 
6874
      int lastComparison = 0;
4496 mandeep.dh 6875
      scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
2820 chandransh 6876
 
4555 mandeep.dh 6877
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
2820 chandransh 6878
      if (lastComparison != 0) {
6879
        return lastComparison;
6880
      }
4555 mandeep.dh 6881
      if (isSetSerialNumber()) {
6882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
3430 rajveer 6883
        if (lastComparison != 0) {
6884
          return lastComparison;
6885
        }
2820 chandransh 6886
      }
4496 mandeep.dh 6887
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2820 chandransh 6888
      if (lastComparison != 0) {
6889
        return lastComparison;
6890
      }
4496 mandeep.dh 6891
      if (isSetType()) {
6892
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 6893
        if (lastComparison != 0) {
6894
          return lastComparison;
6895
        }
2820 chandransh 6896
      }
4496 mandeep.dh 6897
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2820 chandransh 6898
      if (lastComparison != 0) {
6899
        return lastComparison;
6900
      }
4496 mandeep.dh 6901
      if (isSetOrderId()) {
6902
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
3430 rajveer 6903
        if (lastComparison != 0) {
6904
          return lastComparison;
6905
        }
2820 chandransh 6906
      }
5110 mandeep.dh 6907
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
2820 chandransh 6908
      if (lastComparison != 0) {
6909
        return lastComparison;
6910
      }
5110 mandeep.dh 6911
      if (isSetFulfilmentWarehouseId()) {
6912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
3430 rajveer 6913
        if (lastComparison != 0) {
6914
          return lastComparison;
6915
        }
2820 chandransh 6916
      }
5110 mandeep.dh 6917
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
6918
      if (lastComparison != 0) {
6919
        return lastComparison;
6920
      }
6921
      if (isSetQuantity()) {
6922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
6923
        if (lastComparison != 0) {
6924
          return lastComparison;
6925
        }
6926
      }
6927
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
6928
      if (lastComparison != 0) {
6929
        return lastComparison;
6930
      }
6931
      if (isSetBillingWarehouseId()) {
6932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
6933
        if (lastComparison != 0) {
6934
          return lastComparison;
6935
        }
6936
      }
2820 chandransh 6937
      return 0;
6938
    }
6939
 
3430 rajveer 6940
    public _Fields fieldForId(int fieldId) {
6941
      return _Fields.findByThriftId(fieldId);
6942
    }
6943
 
6944
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6945
      org.apache.thrift.protocol.TField field;
2820 chandransh 6946
      iprot.readStructBegin();
6947
      while (true)
6948
      {
6949
        field = iprot.readFieldBegin();
3430 rajveer 6950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 6951
          break;
6952
        }
3430 rajveer 6953
        switch (field.id) {
4555 mandeep.dh 6954
          case 1: // SERIAL_NUMBER
6955
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6956
              this.serialNumber = iprot.readString();
3430 rajveer 6957
            } else { 
6958
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6959
            }
6960
            break;
4496 mandeep.dh 6961
          case 2: // TYPE
6962
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6963
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 6964
            } else { 
6965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6966
            }
6967
            break;
4496 mandeep.dh 6968
          case 3: // ORDER_ID
6969
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6970
              this.orderId = iprot.readI64();
6971
              setOrderIdIsSet(true);
3430 rajveer 6972
            } else { 
6973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6974
            }
6975
            break;
5110 mandeep.dh 6976
          case 4: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 6977
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5110 mandeep.dh 6978
              this.fulfilmentWarehouseId = iprot.readI64();
6979
              setFulfilmentWarehouseIdIsSet(true);
3430 rajveer 6980
            } else { 
6981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6982
            }
6983
            break;
5110 mandeep.dh 6984
          case 5: // QUANTITY
6985
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
6986
              this.quantity = iprot.readDouble();
6987
              setQuantityIsSet(true);
6988
            } else { 
6989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6990
            }
6991
            break;
6992
          case 6: // BILLING_WAREHOUSE_ID
6993
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6994
              this.billingWarehouseId = iprot.readI64();
6995
              setBillingWarehouseIdIsSet(true);
6996
            } else { 
6997
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6998
            }
6999
            break;
3430 rajveer 7000
          default:
7001
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 7002
        }
3430 rajveer 7003
        iprot.readFieldEnd();
2820 chandransh 7004
      }
7005
      iprot.readStructEnd();
7006
      validate();
7007
    }
7008
 
3430 rajveer 7009
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 7010
      validate();
7011
 
7012
      oprot.writeStructBegin(STRUCT_DESC);
4555 mandeep.dh 7013
      if (this.serialNumber != null) {
7014
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
7015
        oprot.writeString(this.serialNumber);
7016
        oprot.writeFieldEnd();
7017
      }
2820 chandransh 7018
      if (this.type != null) {
7019
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
7020
        oprot.writeI32(this.type.getValue());
7021
        oprot.writeFieldEnd();
7022
      }
4496 mandeep.dh 7023
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
7024
      oprot.writeI64(this.orderId);
7025
      oprot.writeFieldEnd();
5110 mandeep.dh 7026
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
7027
      oprot.writeI64(this.fulfilmentWarehouseId);
4496 mandeep.dh 7028
      oprot.writeFieldEnd();
5110 mandeep.dh 7029
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
7030
      oprot.writeDouble(this.quantity);
7031
      oprot.writeFieldEnd();
7032
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
7033
      oprot.writeI64(this.billingWarehouseId);
7034
      oprot.writeFieldEnd();
2820 chandransh 7035
      oprot.writeFieldStop();
7036
      oprot.writeStructEnd();
7037
    }
7038
 
7039
    @Override
7040
    public String toString() {
4496 mandeep.dh 7041
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
2820 chandransh 7042
      boolean first = true;
7043
 
4555 mandeep.dh 7044
      sb.append("serialNumber:");
7045
      if (this.serialNumber == null) {
7046
        sb.append("null");
7047
      } else {
7048
        sb.append(this.serialNumber);
7049
      }
2820 chandransh 7050
      first = false;
7051
      if (!first) sb.append(", ");
4496 mandeep.dh 7052
      sb.append("type:");
7053
      if (this.type == null) {
2820 chandransh 7054
        sb.append("null");
7055
      } else {
4496 mandeep.dh 7056
        sb.append(this.type);
2820 chandransh 7057
      }
7058
      first = false;
7059
      if (!first) sb.append(", ");
4496 mandeep.dh 7060
      sb.append("orderId:");
7061
      sb.append(this.orderId);
2820 chandransh 7062
      first = false;
7063
      if (!first) sb.append(", ");
5110 mandeep.dh 7064
      sb.append("fulfilmentWarehouseId:");
7065
      sb.append(this.fulfilmentWarehouseId);
2820 chandransh 7066
      first = false;
5110 mandeep.dh 7067
      if (!first) sb.append(", ");
7068
      sb.append("quantity:");
7069
      sb.append(this.quantity);
7070
      first = false;
7071
      if (!first) sb.append(", ");
7072
      sb.append("billingWarehouseId:");
7073
      sb.append(this.billingWarehouseId);
7074
      first = false;
2820 chandransh 7075
      sb.append(")");
7076
      return sb.toString();
7077
    }
7078
 
3430 rajveer 7079
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 7080
      // check for required fields
7081
    }
7082
 
3430 rajveer 7083
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7084
      try {
7085
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7086
      } catch (org.apache.thrift.TException te) {
7087
        throw new java.io.IOException(te);
7088
      }
7089
    }
7090
 
7091
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7092
      try {
7093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7094
      } catch (org.apache.thrift.TException te) {
7095
        throw new java.io.IOException(te);
7096
      }
7097
    }
7098
 
2820 chandransh 7099
  }
7100
 
4496 mandeep.dh 7101
  public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable   {
7102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
2820 chandransh 7103
 
4555 mandeep.dh 7104
    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 7105
    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 7106
 
4555 mandeep.dh 7107
    private InventoryItem success; // required
3430 rajveer 7108
    private WarehouseServiceException wex; // required
2820 chandransh 7109
 
7110
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7111
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4496 mandeep.dh 7112
      SUCCESS((short)0, "success"),
2820 chandransh 7113
      WEX((short)1, "wex");
7114
 
7115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7116
 
7117
      static {
7118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7119
          byName.put(field.getFieldName(), field);
7120
        }
7121
      }
7122
 
7123
      /**
7124
       * Find the _Fields constant that matches fieldId, or null if its not found.
7125
       */
7126
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7127
        switch(fieldId) {
4496 mandeep.dh 7128
          case 0: // SUCCESS
7129
            return SUCCESS;
3430 rajveer 7130
          case 1: // WEX
7131
            return WEX;
7132
          default:
7133
            return null;
7134
        }
2820 chandransh 7135
      }
7136
 
7137
      /**
7138
       * Find the _Fields constant that matches fieldId, throwing an exception
7139
       * if it is not found.
7140
       */
7141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7142
        _Fields fields = findByThriftId(fieldId);
7143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7144
        return fields;
7145
      }
7146
 
7147
      /**
7148
       * Find the _Fields constant that matches name, or null if its not found.
7149
       */
7150
      public static _Fields findByName(String name) {
7151
        return byName.get(name);
7152
      }
7153
 
7154
      private final short _thriftId;
7155
      private final String _fieldName;
7156
 
7157
      _Fields(short thriftId, String fieldName) {
7158
        _thriftId = thriftId;
7159
        _fieldName = fieldName;
7160
      }
7161
 
7162
      public short getThriftFieldId() {
7163
        return _thriftId;
7164
      }
7165
 
7166
      public String getFieldName() {
7167
        return _fieldName;
7168
      }
7169
    }
7170
 
7171
    // isset id assignments
7172
 
3430 rajveer 7173
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 7174
    static {
3430 rajveer 7175
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4496 mandeep.dh 7176
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4555 mandeep.dh 7177
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 7178
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7179
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 7181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
2820 chandransh 7182
    }
7183
 
4496 mandeep.dh 7184
    public scanSerializedItemForOrder_result() {
2820 chandransh 7185
    }
7186
 
4496 mandeep.dh 7187
    public scanSerializedItemForOrder_result(
4555 mandeep.dh 7188
      InventoryItem success,
2820 chandransh 7189
      WarehouseServiceException wex)
7190
    {
7191
      this();
4496 mandeep.dh 7192
      this.success = success;
2820 chandransh 7193
      this.wex = wex;
7194
    }
7195
 
7196
    /**
7197
     * Performs a deep copy on <i>other</i>.
7198
     */
4496 mandeep.dh 7199
    public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
4555 mandeep.dh 7200
      if (other.isSetSuccess()) {
7201
        this.success = new InventoryItem(other.success);
7202
      }
2820 chandransh 7203
      if (other.isSetWex()) {
7204
        this.wex = new WarehouseServiceException(other.wex);
7205
      }
7206
    }
7207
 
4496 mandeep.dh 7208
    public scanSerializedItemForOrder_result deepCopy() {
7209
      return new scanSerializedItemForOrder_result(this);
2820 chandransh 7210
    }
7211
 
3430 rajveer 7212
    @Override
7213
    public void clear() {
4555 mandeep.dh 7214
      this.success = null;
3430 rajveer 7215
      this.wex = null;
2820 chandransh 7216
    }
7217
 
4555 mandeep.dh 7218
    public InventoryItem getSuccess() {
4496 mandeep.dh 7219
      return this.success;
7220
    }
7221
 
4555 mandeep.dh 7222
    public void setSuccess(InventoryItem success) {
4496 mandeep.dh 7223
      this.success = success;
7224
    }
7225
 
7226
    public void unsetSuccess() {
4555 mandeep.dh 7227
      this.success = null;
4496 mandeep.dh 7228
    }
7229
 
7230
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7231
    public boolean isSetSuccess() {
4555 mandeep.dh 7232
      return this.success != null;
4496 mandeep.dh 7233
    }
7234
 
7235
    public void setSuccessIsSet(boolean value) {
4555 mandeep.dh 7236
      if (!value) {
7237
        this.success = null;
7238
      }
4496 mandeep.dh 7239
    }
7240
 
2820 chandransh 7241
    public WarehouseServiceException getWex() {
7242
      return this.wex;
7243
    }
7244
 
3430 rajveer 7245
    public void setWex(WarehouseServiceException wex) {
2820 chandransh 7246
      this.wex = wex;
7247
    }
7248
 
7249
    public void unsetWex() {
7250
      this.wex = null;
7251
    }
7252
 
3430 rajveer 7253
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
2820 chandransh 7254
    public boolean isSetWex() {
7255
      return this.wex != null;
7256
    }
7257
 
7258
    public void setWexIsSet(boolean value) {
7259
      if (!value) {
7260
        this.wex = null;
7261
      }
7262
    }
7263
 
7264
    public void setFieldValue(_Fields field, Object value) {
7265
      switch (field) {
4496 mandeep.dh 7266
      case SUCCESS:
7267
        if (value == null) {
7268
          unsetSuccess();
7269
        } else {
4555 mandeep.dh 7270
          setSuccess((InventoryItem)value);
4496 mandeep.dh 7271
        }
7272
        break;
7273
 
2820 chandransh 7274
      case WEX:
7275
        if (value == null) {
7276
          unsetWex();
7277
        } else {
7278
          setWex((WarehouseServiceException)value);
7279
        }
7280
        break;
7281
 
7282
      }
7283
    }
7284
 
7285
    public Object getFieldValue(_Fields field) {
7286
      switch (field) {
4496 mandeep.dh 7287
      case SUCCESS:
4555 mandeep.dh 7288
        return getSuccess();
4496 mandeep.dh 7289
 
2820 chandransh 7290
      case WEX:
7291
        return getWex();
7292
 
7293
      }
7294
      throw new IllegalStateException();
7295
    }
7296
 
3430 rajveer 7297
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7298
    public boolean isSet(_Fields field) {
7299
      if (field == null) {
7300
        throw new IllegalArgumentException();
7301
      }
2820 chandransh 7302
 
7303
      switch (field) {
4496 mandeep.dh 7304
      case SUCCESS:
7305
        return isSetSuccess();
2820 chandransh 7306
      case WEX:
7307
        return isSetWex();
7308
      }
7309
      throw new IllegalStateException();
7310
    }
7311
 
7312
    @Override
7313
    public boolean equals(Object that) {
7314
      if (that == null)
7315
        return false;
4496 mandeep.dh 7316
      if (that instanceof scanSerializedItemForOrder_result)
7317
        return this.equals((scanSerializedItemForOrder_result)that);
2820 chandransh 7318
      return false;
7319
    }
7320
 
4496 mandeep.dh 7321
    public boolean equals(scanSerializedItemForOrder_result that) {
2820 chandransh 7322
      if (that == null)
7323
        return false;
7324
 
4555 mandeep.dh 7325
      boolean this_present_success = true && this.isSetSuccess();
7326
      boolean that_present_success = true && that.isSetSuccess();
4496 mandeep.dh 7327
      if (this_present_success || that_present_success) {
7328
        if (!(this_present_success && that_present_success))
7329
          return false;
4555 mandeep.dh 7330
        if (!this.success.equals(that.success))
4496 mandeep.dh 7331
          return false;
7332
      }
7333
 
2820 chandransh 7334
      boolean this_present_wex = true && this.isSetWex();
7335
      boolean that_present_wex = true && that.isSetWex();
7336
      if (this_present_wex || that_present_wex) {
7337
        if (!(this_present_wex && that_present_wex))
7338
          return false;
7339
        if (!this.wex.equals(that.wex))
7340
          return false;
7341
      }
7342
 
7343
      return true;
7344
    }
7345
 
7346
    @Override
7347
    public int hashCode() {
7348
      return 0;
7349
    }
7350
 
4496 mandeep.dh 7351
    public int compareTo(scanSerializedItemForOrder_result other) {
2820 chandransh 7352
      if (!getClass().equals(other.getClass())) {
7353
        return getClass().getName().compareTo(other.getClass().getName());
7354
      }
7355
 
7356
      int lastComparison = 0;
4496 mandeep.dh 7357
      scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
2820 chandransh 7358
 
4496 mandeep.dh 7359
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7360
      if (lastComparison != 0) {
7361
        return lastComparison;
7362
      }
7363
      if (isSetSuccess()) {
7364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7365
        if (lastComparison != 0) {
7366
          return lastComparison;
7367
        }
7368
      }
3430 rajveer 7369
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 7370
      if (lastComparison != 0) {
7371
        return lastComparison;
7372
      }
3430 rajveer 7373
      if (isSetWex()) {
7374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
7375
        if (lastComparison != 0) {
7376
          return lastComparison;
7377
        }
2820 chandransh 7378
      }
7379
      return 0;
7380
    }
7381
 
3430 rajveer 7382
    public _Fields fieldForId(int fieldId) {
7383
      return _Fields.findByThriftId(fieldId);
7384
    }
7385
 
7386
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7387
      org.apache.thrift.protocol.TField field;
2820 chandransh 7388
      iprot.readStructBegin();
7389
      while (true)
7390
      {
7391
        field = iprot.readFieldBegin();
3430 rajveer 7392
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 7393
          break;
7394
        }
3430 rajveer 7395
        switch (field.id) {
4496 mandeep.dh 7396
          case 0: // SUCCESS
4555 mandeep.dh 7397
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7398
              this.success = new InventoryItem();
7399
              this.success.read(iprot);
4496 mandeep.dh 7400
            } else { 
7401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7402
            }
7403
            break;
3430 rajveer 7404
          case 1: // WEX
7405
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7406
              this.wex = new WarehouseServiceException();
7407
              this.wex.read(iprot);
7408
            } else { 
7409
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7410
            }
7411
            break;
7412
          default:
7413
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 7414
        }
3430 rajveer 7415
        iprot.readFieldEnd();
2820 chandransh 7416
      }
7417
      iprot.readStructEnd();
7418
      validate();
7419
    }
7420
 
3430 rajveer 7421
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 7422
      oprot.writeStructBegin(STRUCT_DESC);
7423
 
4496 mandeep.dh 7424
      if (this.isSetSuccess()) {
7425
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4555 mandeep.dh 7426
        this.success.write(oprot);
4496 mandeep.dh 7427
        oprot.writeFieldEnd();
7428
      } else if (this.isSetWex()) {
2820 chandransh 7429
        oprot.writeFieldBegin(WEX_FIELD_DESC);
7430
        this.wex.write(oprot);
7431
        oprot.writeFieldEnd();
7432
      }
7433
      oprot.writeFieldStop();
7434
      oprot.writeStructEnd();
7435
    }
7436
 
7437
    @Override
7438
    public String toString() {
4496 mandeep.dh 7439
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
2820 chandransh 7440
      boolean first = true;
7441
 
4496 mandeep.dh 7442
      sb.append("success:");
4555 mandeep.dh 7443
      if (this.success == null) {
7444
        sb.append("null");
7445
      } else {
7446
        sb.append(this.success);
7447
      }
4496 mandeep.dh 7448
      first = false;
7449
      if (!first) sb.append(", ");
2820 chandransh 7450
      sb.append("wex:");
7451
      if (this.wex == null) {
7452
        sb.append("null");
7453
      } else {
7454
        sb.append(this.wex);
7455
      }
7456
      first = false;
7457
      sb.append(")");
7458
      return sb.toString();
7459
    }
7460
 
3430 rajveer 7461
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 7462
      // check for required fields
7463
    }
7464
 
3430 rajveer 7465
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7466
      try {
7467
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7468
      } catch (org.apache.thrift.TException te) {
7469
        throw new java.io.IOException(te);
7470
      }
7471
    }
7472
 
7473
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7474
      try {
7475
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7476
      } catch (org.apache.thrift.TException te) {
7477
        throw new java.io.IOException(te);
7478
      }
7479
    }
7480
 
2820 chandransh 7481
  }
7482
 
4496 mandeep.dh 7483
  public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable   {
7484
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
2820 chandransh 7485
 
5361 mandeep.dh 7486
    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 7487
    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);
7488
    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);
7489
    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 7490
    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 7491
    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 7492
 
5361 mandeep.dh 7493
    private InventoryItem inventoryItem; // required
3430 rajveer 7494
    private ScanType type; // required
4496 mandeep.dh 7495
    private long quantity; // required
7496
    private long orderId; // required
5110 mandeep.dh 7497
    private long fulfilmentWarehouseId; // required
5361 mandeep.dh 7498
    private long billingWarehouseId; // required
2820 chandransh 7499
 
7500
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7501
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 7502
      INVENTORY_ITEM((short)1, "inventoryItem"),
2820 chandransh 7503
      /**
7504
       * 
7505
       * @see ScanType
7506
       */
4496 mandeep.dh 7507
      TYPE((short)2, "type"),
7508
      QUANTITY((short)3, "quantity"),
7509
      ORDER_ID((short)4, "orderId"),
5361 mandeep.dh 7510
      FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
7511
      BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
2820 chandransh 7512
 
7513
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7514
 
7515
      static {
7516
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7517
          byName.put(field.getFieldName(), field);
7518
        }
7519
      }
7520
 
7521
      /**
7522
       * Find the _Fields constant that matches fieldId, or null if its not found.
7523
       */
7524
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7525
        switch(fieldId) {
5361 mandeep.dh 7526
          case 1: // INVENTORY_ITEM
7527
            return INVENTORY_ITEM;
4496 mandeep.dh 7528
          case 2: // TYPE
3430 rajveer 7529
            return TYPE;
4496 mandeep.dh 7530
          case 3: // QUANTITY
7531
            return QUANTITY;
7532
          case 4: // ORDER_ID
7533
            return ORDER_ID;
5110 mandeep.dh 7534
          case 5: // FULFILMENT_WAREHOUSE_ID
7535
            return FULFILMENT_WAREHOUSE_ID;
5361 mandeep.dh 7536
          case 6: // BILLING_WAREHOUSE_ID
7537
            return BILLING_WAREHOUSE_ID;
3430 rajveer 7538
          default:
7539
            return null;
7540
        }
2820 chandransh 7541
      }
7542
 
7543
      /**
7544
       * Find the _Fields constant that matches fieldId, throwing an exception
7545
       * if it is not found.
7546
       */
7547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7548
        _Fields fields = findByThriftId(fieldId);
7549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7550
        return fields;
7551
      }
7552
 
7553
      /**
7554
       * Find the _Fields constant that matches name, or null if its not found.
7555
       */
7556
      public static _Fields findByName(String name) {
7557
        return byName.get(name);
7558
      }
7559
 
7560
      private final short _thriftId;
7561
      private final String _fieldName;
7562
 
7563
      _Fields(short thriftId, String fieldName) {
7564
        _thriftId = thriftId;
7565
        _fieldName = fieldName;
7566
      }
7567
 
7568
      public short getThriftFieldId() {
7569
        return _thriftId;
7570
      }
7571
 
7572
      public String getFieldName() {
7573
        return _fieldName;
7574
      }
7575
    }
7576
 
7577
    // isset id assignments
5361 mandeep.dh 7578
    private static final int __QUANTITY_ISSET_ID = 0;
7579
    private static final int __ORDERID_ISSET_ID = 1;
7580
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
7581
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
4496 mandeep.dh 7582
    private BitSet __isset_bit_vector = new BitSet(4);
2820 chandransh 7583
 
3430 rajveer 7584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 7585
    static {
3430 rajveer 7586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 7587
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7588
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 7589
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7590
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
4496 mandeep.dh 7591
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7593
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7594
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 7595
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 7596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5361 mandeep.dh 7597
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7598
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 7599
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 7600
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
2820 chandransh 7601
    }
7602
 
4496 mandeep.dh 7603
    public scanForOrder_args() {
2820 chandransh 7604
    }
7605
 
4496 mandeep.dh 7606
    public scanForOrder_args(
5361 mandeep.dh 7607
      InventoryItem inventoryItem,
4496 mandeep.dh 7608
      ScanType type,
7609
      long quantity,
7610
      long orderId,
5361 mandeep.dh 7611
      long fulfilmentWarehouseId,
7612
      long billingWarehouseId)
2820 chandransh 7613
    {
7614
      this();
5361 mandeep.dh 7615
      this.inventoryItem = inventoryItem;
2820 chandransh 7616
      this.type = type;
4496 mandeep.dh 7617
      this.quantity = quantity;
7618
      setQuantityIsSet(true);
7619
      this.orderId = orderId;
7620
      setOrderIdIsSet(true);
5110 mandeep.dh 7621
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
7622
      setFulfilmentWarehouseIdIsSet(true);
5361 mandeep.dh 7623
      this.billingWarehouseId = billingWarehouseId;
7624
      setBillingWarehouseIdIsSet(true);
2820 chandransh 7625
    }
7626
 
7627
    /**
7628
     * Performs a deep copy on <i>other</i>.
7629
     */
4496 mandeep.dh 7630
    public scanForOrder_args(scanForOrder_args other) {
7631
      __isset_bit_vector.clear();
7632
      __isset_bit_vector.or(other.__isset_bit_vector);
5361 mandeep.dh 7633
      if (other.isSetInventoryItem()) {
7634
        this.inventoryItem = new InventoryItem(other.inventoryItem);
7635
      }
2820 chandransh 7636
      if (other.isSetType()) {
7637
        this.type = other.type;
7638
      }
4496 mandeep.dh 7639
      this.quantity = other.quantity;
7640
      this.orderId = other.orderId;
5110 mandeep.dh 7641
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
5361 mandeep.dh 7642
      this.billingWarehouseId = other.billingWarehouseId;
2820 chandransh 7643
    }
7644
 
4496 mandeep.dh 7645
    public scanForOrder_args deepCopy() {
7646
      return new scanForOrder_args(this);
2820 chandransh 7647
    }
7648
 
3430 rajveer 7649
    @Override
7650
    public void clear() {
5361 mandeep.dh 7651
      this.inventoryItem = null;
3430 rajveer 7652
      this.type = null;
4496 mandeep.dh 7653
      setQuantityIsSet(false);
7654
      this.quantity = 0;
7655
      setOrderIdIsSet(false);
7656
      this.orderId = 0;
5110 mandeep.dh 7657
      setFulfilmentWarehouseIdIsSet(false);
7658
      this.fulfilmentWarehouseId = 0;
5361 mandeep.dh 7659
      setBillingWarehouseIdIsSet(false);
7660
      this.billingWarehouseId = 0;
2820 chandransh 7661
    }
7662
 
5361 mandeep.dh 7663
    public InventoryItem getInventoryItem() {
7664
      return this.inventoryItem;
2820 chandransh 7665
    }
7666
 
5361 mandeep.dh 7667
    public void setInventoryItem(InventoryItem inventoryItem) {
7668
      this.inventoryItem = inventoryItem;
2820 chandransh 7669
    }
7670
 
5361 mandeep.dh 7671
    public void unsetInventoryItem() {
7672
      this.inventoryItem = null;
2820 chandransh 7673
    }
7674
 
5361 mandeep.dh 7675
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
7676
    public boolean isSetInventoryItem() {
7677
      return this.inventoryItem != null;
2820 chandransh 7678
    }
7679
 
5361 mandeep.dh 7680
    public void setInventoryItemIsSet(boolean value) {
7681
      if (!value) {
7682
        this.inventoryItem = null;
7683
      }
2820 chandransh 7684
    }
7685
 
7686
    /**
7687
     * 
7688
     * @see ScanType
7689
     */
7690
    public ScanType getType() {
7691
      return this.type;
7692
    }
7693
 
7694
    /**
7695
     * 
7696
     * @see ScanType
7697
     */
3430 rajveer 7698
    public void setType(ScanType type) {
2820 chandransh 7699
      this.type = type;
7700
    }
7701
 
7702
    public void unsetType() {
7703
      this.type = null;
7704
    }
7705
 
3430 rajveer 7706
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
2820 chandransh 7707
    public boolean isSetType() {
7708
      return this.type != null;
7709
    }
7710
 
7711
    public void setTypeIsSet(boolean value) {
7712
      if (!value) {
7713
        this.type = null;
7714
      }
7715
    }
7716
 
4496 mandeep.dh 7717
    public long getQuantity() {
7718
      return this.quantity;
7719
    }
7720
 
7721
    public void setQuantity(long quantity) {
7722
      this.quantity = quantity;
7723
      setQuantityIsSet(true);
7724
    }
7725
 
7726
    public void unsetQuantity() {
7727
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
7728
    }
7729
 
7730
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
7731
    public boolean isSetQuantity() {
7732
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
7733
    }
7734
 
7735
    public void setQuantityIsSet(boolean value) {
7736
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
7737
    }
7738
 
7739
    public long getOrderId() {
7740
      return this.orderId;
7741
    }
7742
 
7743
    public void setOrderId(long orderId) {
7744
      this.orderId = orderId;
7745
      setOrderIdIsSet(true);
7746
    }
7747
 
7748
    public void unsetOrderId() {
7749
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
7750
    }
7751
 
7752
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
7753
    public boolean isSetOrderId() {
7754
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
7755
    }
7756
 
7757
    public void setOrderIdIsSet(boolean value) {
7758
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
7759
    }
7760
 
5110 mandeep.dh 7761
    public long getFulfilmentWarehouseId() {
7762
      return this.fulfilmentWarehouseId;
4496 mandeep.dh 7763
    }
7764
 
5110 mandeep.dh 7765
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
7766
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
7767
      setFulfilmentWarehouseIdIsSet(true);
4496 mandeep.dh 7768
    }
7769
 
5110 mandeep.dh 7770
    public void unsetFulfilmentWarehouseId() {
7771
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 7772
    }
7773
 
5110 mandeep.dh 7774
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
7775
    public boolean isSetFulfilmentWarehouseId() {
7776
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 7777
    }
7778
 
5110 mandeep.dh 7779
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
7780
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
4496 mandeep.dh 7781
    }
7782
 
5361 mandeep.dh 7783
    public long getBillingWarehouseId() {
7784
      return this.billingWarehouseId;
7785
    }
7786
 
7787
    public void setBillingWarehouseId(long billingWarehouseId) {
7788
      this.billingWarehouseId = billingWarehouseId;
7789
      setBillingWarehouseIdIsSet(true);
7790
    }
7791
 
7792
    public void unsetBillingWarehouseId() {
7793
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
7794
    }
7795
 
7796
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
7797
    public boolean isSetBillingWarehouseId() {
7798
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
7799
    }
7800
 
7801
    public void setBillingWarehouseIdIsSet(boolean value) {
7802
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
7803
    }
7804
 
2820 chandransh 7805
    public void setFieldValue(_Fields field, Object value) {
7806
      switch (field) {
5361 mandeep.dh 7807
      case INVENTORY_ITEM:
2820 chandransh 7808
        if (value == null) {
5361 mandeep.dh 7809
          unsetInventoryItem();
2820 chandransh 7810
        } else {
5361 mandeep.dh 7811
          setInventoryItem((InventoryItem)value);
2820 chandransh 7812
        }
7813
        break;
7814
 
4496 mandeep.dh 7815
      case TYPE:
2820 chandransh 7816
        if (value == null) {
4496 mandeep.dh 7817
          unsetType();
2820 chandransh 7818
        } else {
4496 mandeep.dh 7819
          setType((ScanType)value);
2820 chandransh 7820
        }
7821
        break;
7822
 
4496 mandeep.dh 7823
      case QUANTITY:
2820 chandransh 7824
        if (value == null) {
4496 mandeep.dh 7825
          unsetQuantity();
2820 chandransh 7826
        } else {
4496 mandeep.dh 7827
          setQuantity((Long)value);
2820 chandransh 7828
        }
7829
        break;
7830
 
4496 mandeep.dh 7831
      case ORDER_ID:
7832
        if (value == null) {
7833
          unsetOrderId();
7834
        } else {
7835
          setOrderId((Long)value);
7836
        }
7837
        break;
7838
 
5110 mandeep.dh 7839
      case FULFILMENT_WAREHOUSE_ID:
4496 mandeep.dh 7840
        if (value == null) {
5110 mandeep.dh 7841
          unsetFulfilmentWarehouseId();
4496 mandeep.dh 7842
        } else {
5110 mandeep.dh 7843
          setFulfilmentWarehouseId((Long)value);
4496 mandeep.dh 7844
        }
7845
        break;
7846
 
5361 mandeep.dh 7847
      case BILLING_WAREHOUSE_ID:
7848
        if (value == null) {
7849
          unsetBillingWarehouseId();
7850
        } else {
7851
          setBillingWarehouseId((Long)value);
7852
        }
7853
        break;
7854
 
2820 chandransh 7855
      }
7856
    }
7857
 
7858
    public Object getFieldValue(_Fields field) {
7859
      switch (field) {
5361 mandeep.dh 7860
      case INVENTORY_ITEM:
7861
        return getInventoryItem();
2820 chandransh 7862
 
7863
      case TYPE:
7864
        return getType();
7865
 
4496 mandeep.dh 7866
      case QUANTITY:
7867
        return Long.valueOf(getQuantity());
7868
 
7869
      case ORDER_ID:
7870
        return Long.valueOf(getOrderId());
7871
 
5110 mandeep.dh 7872
      case FULFILMENT_WAREHOUSE_ID:
7873
        return Long.valueOf(getFulfilmentWarehouseId());
4496 mandeep.dh 7874
 
5361 mandeep.dh 7875
      case BILLING_WAREHOUSE_ID:
7876
        return Long.valueOf(getBillingWarehouseId());
7877
 
2820 chandransh 7878
      }
7879
      throw new IllegalStateException();
7880
    }
7881
 
3430 rajveer 7882
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7883
    public boolean isSet(_Fields field) {
7884
      if (field == null) {
7885
        throw new IllegalArgumentException();
7886
      }
2820 chandransh 7887
 
7888
      switch (field) {
5361 mandeep.dh 7889
      case INVENTORY_ITEM:
7890
        return isSetInventoryItem();
2820 chandransh 7891
      case TYPE:
7892
        return isSetType();
4496 mandeep.dh 7893
      case QUANTITY:
7894
        return isSetQuantity();
7895
      case ORDER_ID:
7896
        return isSetOrderId();
5110 mandeep.dh 7897
      case FULFILMENT_WAREHOUSE_ID:
7898
        return isSetFulfilmentWarehouseId();
5361 mandeep.dh 7899
      case BILLING_WAREHOUSE_ID:
7900
        return isSetBillingWarehouseId();
2820 chandransh 7901
      }
7902
      throw new IllegalStateException();
7903
    }
7904
 
7905
    @Override
7906
    public boolean equals(Object that) {
7907
      if (that == null)
7908
        return false;
4496 mandeep.dh 7909
      if (that instanceof scanForOrder_args)
7910
        return this.equals((scanForOrder_args)that);
2820 chandransh 7911
      return false;
7912
    }
7913
 
4496 mandeep.dh 7914
    public boolean equals(scanForOrder_args that) {
2820 chandransh 7915
      if (that == null)
7916
        return false;
7917
 
5361 mandeep.dh 7918
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
7919
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
7920
      if (this_present_inventoryItem || that_present_inventoryItem) {
7921
        if (!(this_present_inventoryItem && that_present_inventoryItem))
2820 chandransh 7922
          return false;
5361 mandeep.dh 7923
        if (!this.inventoryItem.equals(that.inventoryItem))
2820 chandransh 7924
          return false;
7925
      }
7926
 
7927
      boolean this_present_type = true && this.isSetType();
7928
      boolean that_present_type = true && that.isSetType();
7929
      if (this_present_type || that_present_type) {
7930
        if (!(this_present_type && that_present_type))
7931
          return false;
7932
        if (!this.type.equals(that.type))
7933
          return false;
7934
      }
7935
 
4496 mandeep.dh 7936
      boolean this_present_quantity = true;
7937
      boolean that_present_quantity = true;
7938
      if (this_present_quantity || that_present_quantity) {
7939
        if (!(this_present_quantity && that_present_quantity))
7940
          return false;
7941
        if (this.quantity != that.quantity)
7942
          return false;
7943
      }
7944
 
7945
      boolean this_present_orderId = true;
7946
      boolean that_present_orderId = true;
7947
      if (this_present_orderId || that_present_orderId) {
7948
        if (!(this_present_orderId && that_present_orderId))
7949
          return false;
7950
        if (this.orderId != that.orderId)
7951
          return false;
7952
      }
7953
 
5110 mandeep.dh 7954
      boolean this_present_fulfilmentWarehouseId = true;
7955
      boolean that_present_fulfilmentWarehouseId = true;
7956
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
7957
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
4496 mandeep.dh 7958
          return false;
5110 mandeep.dh 7959
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
4496 mandeep.dh 7960
          return false;
7961
      }
7962
 
5361 mandeep.dh 7963
      boolean this_present_billingWarehouseId = true;
7964
      boolean that_present_billingWarehouseId = true;
7965
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
7966
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
7967
          return false;
7968
        if (this.billingWarehouseId != that.billingWarehouseId)
7969
          return false;
7970
      }
7971
 
2820 chandransh 7972
      return true;
7973
    }
7974
 
7975
    @Override
7976
    public int hashCode() {
7977
      return 0;
7978
    }
7979
 
4496 mandeep.dh 7980
    public int compareTo(scanForOrder_args other) {
2820 chandransh 7981
      if (!getClass().equals(other.getClass())) {
7982
        return getClass().getName().compareTo(other.getClass().getName());
7983
      }
7984
 
7985
      int lastComparison = 0;
4496 mandeep.dh 7986
      scanForOrder_args typedOther = (scanForOrder_args)other;
2820 chandransh 7987
 
5361 mandeep.dh 7988
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
2820 chandransh 7989
      if (lastComparison != 0) {
7990
        return lastComparison;
7991
      }
5361 mandeep.dh 7992
      if (isSetInventoryItem()) {
7993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
3430 rajveer 7994
        if (lastComparison != 0) {
7995
          return lastComparison;
7996
        }
2820 chandransh 7997
      }
4496 mandeep.dh 7998
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2820 chandransh 7999
      if (lastComparison != 0) {
8000
        return lastComparison;
8001
      }
4496 mandeep.dh 8002
      if (isSetType()) {
8003
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 8004
        if (lastComparison != 0) {
8005
          return lastComparison;
8006
        }
2820 chandransh 8007
      }
4496 mandeep.dh 8008
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
2820 chandransh 8009
      if (lastComparison != 0) {
8010
        return lastComparison;
8011
      }
4496 mandeep.dh 8012
      if (isSetQuantity()) {
8013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
3430 rajveer 8014
        if (lastComparison != 0) {
8015
          return lastComparison;
8016
        }
2820 chandransh 8017
      }
4496 mandeep.dh 8018
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
8019
      if (lastComparison != 0) {
8020
        return lastComparison;
8021
      }
8022
      if (isSetOrderId()) {
8023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
8024
        if (lastComparison != 0) {
8025
          return lastComparison;
8026
        }
8027
      }
5110 mandeep.dh 8028
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
4496 mandeep.dh 8029
      if (lastComparison != 0) {
8030
        return lastComparison;
8031
      }
5110 mandeep.dh 8032
      if (isSetFulfilmentWarehouseId()) {
8033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
4496 mandeep.dh 8034
        if (lastComparison != 0) {
8035
          return lastComparison;
8036
        }
8037
      }
5361 mandeep.dh 8038
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
8039
      if (lastComparison != 0) {
8040
        return lastComparison;
8041
      }
8042
      if (isSetBillingWarehouseId()) {
8043
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
8044
        if (lastComparison != 0) {
8045
          return lastComparison;
8046
        }
8047
      }
2820 chandransh 8048
      return 0;
8049
    }
8050
 
3430 rajveer 8051
    public _Fields fieldForId(int fieldId) {
8052
      return _Fields.findByThriftId(fieldId);
8053
    }
8054
 
8055
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8056
      org.apache.thrift.protocol.TField field;
2820 chandransh 8057
      iprot.readStructBegin();
8058
      while (true)
8059
      {
8060
        field = iprot.readFieldBegin();
3430 rajveer 8061
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 8062
          break;
8063
        }
3430 rajveer 8064
        switch (field.id) {
5361 mandeep.dh 8065
          case 1: // INVENTORY_ITEM
8066
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8067
              this.inventoryItem = new InventoryItem();
8068
              this.inventoryItem.read(iprot);
3430 rajveer 8069
            } else { 
8070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8071
            }
8072
            break;
4496 mandeep.dh 8073
          case 2: // TYPE
8074
            if (field.type == org.apache.thrift.protocol.TType.I32) {
8075
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 8076
            } else { 
8077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8078
            }
8079
            break;
4496 mandeep.dh 8080
          case 3: // QUANTITY
8081
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8082
              this.quantity = iprot.readI64();
8083
              setQuantityIsSet(true);
3430 rajveer 8084
            } else { 
8085
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8086
            }
8087
            break;
4496 mandeep.dh 8088
          case 4: // ORDER_ID
8089
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8090
              this.orderId = iprot.readI64();
8091
              setOrderIdIsSet(true);
8092
            } else { 
8093
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8094
            }
8095
            break;
5110 mandeep.dh 8096
          case 5: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 8097
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5110 mandeep.dh 8098
              this.fulfilmentWarehouseId = iprot.readI64();
8099
              setFulfilmentWarehouseIdIsSet(true);
4496 mandeep.dh 8100
            } else { 
8101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8102
            }
8103
            break;
5361 mandeep.dh 8104
          case 6: // BILLING_WAREHOUSE_ID
8105
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8106
              this.billingWarehouseId = iprot.readI64();
8107
              setBillingWarehouseIdIsSet(true);
8108
            } else { 
8109
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8110
            }
8111
            break;
3430 rajveer 8112
          default:
8113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 8114
        }
3430 rajveer 8115
        iprot.readFieldEnd();
2820 chandransh 8116
      }
8117
      iprot.readStructEnd();
8118
      validate();
8119
    }
8120
 
3430 rajveer 8121
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 8122
      validate();
8123
 
8124
      oprot.writeStructBegin(STRUCT_DESC);
5361 mandeep.dh 8125
      if (this.inventoryItem != null) {
8126
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
8127
        this.inventoryItem.write(oprot);
8128
        oprot.writeFieldEnd();
8129
      }
2820 chandransh 8130
      if (this.type != null) {
8131
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
8132
        oprot.writeI32(this.type.getValue());
8133
        oprot.writeFieldEnd();
8134
      }
4496 mandeep.dh 8135
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
8136
      oprot.writeI64(this.quantity);
8137
      oprot.writeFieldEnd();
8138
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
8139
      oprot.writeI64(this.orderId);
8140
      oprot.writeFieldEnd();
5110 mandeep.dh 8141
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
8142
      oprot.writeI64(this.fulfilmentWarehouseId);
4496 mandeep.dh 8143
      oprot.writeFieldEnd();
5361 mandeep.dh 8144
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
8145
      oprot.writeI64(this.billingWarehouseId);
8146
      oprot.writeFieldEnd();
2820 chandransh 8147
      oprot.writeFieldStop();
8148
      oprot.writeStructEnd();
8149
    }
8150
 
8151
    @Override
8152
    public String toString() {
4496 mandeep.dh 8153
      StringBuilder sb = new StringBuilder("scanForOrder_args(");
2820 chandransh 8154
      boolean first = true;
8155
 
5361 mandeep.dh 8156
      sb.append("inventoryItem:");
8157
      if (this.inventoryItem == null) {
8158
        sb.append("null");
8159
      } else {
8160
        sb.append(this.inventoryItem);
8161
      }
2820 chandransh 8162
      first = false;
8163
      if (!first) sb.append(", ");
8164
      sb.append("type:");
8165
      if (this.type == null) {
8166
        sb.append("null");
8167
      } else {
8168
        sb.append(this.type);
8169
      }
8170
      first = false;
4496 mandeep.dh 8171
      if (!first) sb.append(", ");
8172
      sb.append("quantity:");
8173
      sb.append(this.quantity);
8174
      first = false;
8175
      if (!first) sb.append(", ");
8176
      sb.append("orderId:");
8177
      sb.append(this.orderId);
8178
      first = false;
8179
      if (!first) sb.append(", ");
5110 mandeep.dh 8180
      sb.append("fulfilmentWarehouseId:");
8181
      sb.append(this.fulfilmentWarehouseId);
4496 mandeep.dh 8182
      first = false;
5361 mandeep.dh 8183
      if (!first) sb.append(", ");
8184
      sb.append("billingWarehouseId:");
8185
      sb.append(this.billingWarehouseId);
8186
      first = false;
2820 chandransh 8187
      sb.append(")");
8188
      return sb.toString();
8189
    }
8190
 
3430 rajveer 8191
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 8192
      // check for required fields
8193
    }
8194
 
3430 rajveer 8195
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8196
      try {
8197
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8198
      } catch (org.apache.thrift.TException te) {
8199
        throw new java.io.IOException(te);
8200
      }
8201
    }
8202
 
8203
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8204
      try {
4496 mandeep.dh 8205
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8206
        __isset_bit_vector = new BitSet(1);
3430 rajveer 8207
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8208
      } catch (org.apache.thrift.TException te) {
8209
        throw new java.io.IOException(te);
8210
      }
8211
    }
8212
 
2820 chandransh 8213
  }
8214
 
4496 mandeep.dh 8215
  public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable   {
8216
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
2820 chandransh 8217
 
5361 mandeep.dh 8218
    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 8219
    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 8220
 
5361 mandeep.dh 8221
    private InventoryItem success; // required
3430 rajveer 8222
    private WarehouseServiceException wex; // required
2820 chandransh 8223
 
8224
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8225
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 8226
      SUCCESS((short)0, "success"),
2820 chandransh 8227
      WEX((short)1, "wex");
8228
 
8229
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8230
 
8231
      static {
8232
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8233
          byName.put(field.getFieldName(), field);
8234
        }
8235
      }
8236
 
8237
      /**
8238
       * Find the _Fields constant that matches fieldId, or null if its not found.
8239
       */
8240
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8241
        switch(fieldId) {
5361 mandeep.dh 8242
          case 0: // SUCCESS
8243
            return SUCCESS;
3430 rajveer 8244
          case 1: // WEX
8245
            return WEX;
8246
          default:
8247
            return null;
8248
        }
2820 chandransh 8249
      }
8250
 
8251
      /**
8252
       * Find the _Fields constant that matches fieldId, throwing an exception
8253
       * if it is not found.
8254
       */
8255
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8256
        _Fields fields = findByThriftId(fieldId);
8257
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8258
        return fields;
8259
      }
8260
 
8261
      /**
8262
       * Find the _Fields constant that matches name, or null if its not found.
8263
       */
8264
      public static _Fields findByName(String name) {
8265
        return byName.get(name);
8266
      }
8267
 
8268
      private final short _thriftId;
8269
      private final String _fieldName;
8270
 
8271
      _Fields(short thriftId, String fieldName) {
8272
        _thriftId = thriftId;
8273
        _fieldName = fieldName;
8274
      }
8275
 
8276
      public short getThriftFieldId() {
8277
        return _thriftId;
8278
      }
8279
 
8280
      public String getFieldName() {
8281
        return _fieldName;
8282
      }
8283
    }
8284
 
8285
    // isset id assignments
8286
 
3430 rajveer 8287
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 8288
    static {
3430 rajveer 8289
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 8290
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8291
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 8292
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8293
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8294
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 8295
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
2820 chandransh 8296
    }
8297
 
4496 mandeep.dh 8298
    public scanForOrder_result() {
2820 chandransh 8299
    }
8300
 
4496 mandeep.dh 8301
    public scanForOrder_result(
5361 mandeep.dh 8302
      InventoryItem success,
2820 chandransh 8303
      WarehouseServiceException wex)
8304
    {
8305
      this();
5361 mandeep.dh 8306
      this.success = success;
2820 chandransh 8307
      this.wex = wex;
8308
    }
8309
 
8310
    /**
8311
     * Performs a deep copy on <i>other</i>.
8312
     */
4496 mandeep.dh 8313
    public scanForOrder_result(scanForOrder_result other) {
5361 mandeep.dh 8314
      if (other.isSetSuccess()) {
8315
        this.success = new InventoryItem(other.success);
8316
      }
2820 chandransh 8317
      if (other.isSetWex()) {
8318
        this.wex = new WarehouseServiceException(other.wex);
8319
      }
8320
    }
8321
 
4496 mandeep.dh 8322
    public scanForOrder_result deepCopy() {
8323
      return new scanForOrder_result(this);
2820 chandransh 8324
    }
8325
 
3430 rajveer 8326
    @Override
8327
    public void clear() {
5361 mandeep.dh 8328
      this.success = null;
3430 rajveer 8329
      this.wex = null;
2820 chandransh 8330
    }
8331
 
5361 mandeep.dh 8332
    public InventoryItem getSuccess() {
8333
      return this.success;
8334
    }
8335
 
8336
    public void setSuccess(InventoryItem success) {
8337
      this.success = success;
8338
    }
8339
 
8340
    public void unsetSuccess() {
8341
      this.success = null;
8342
    }
8343
 
8344
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8345
    public boolean isSetSuccess() {
8346
      return this.success != null;
8347
    }
8348
 
8349
    public void setSuccessIsSet(boolean value) {
8350
      if (!value) {
8351
        this.success = null;
8352
      }
8353
    }
8354
 
2820 chandransh 8355
    public WarehouseServiceException getWex() {
8356
      return this.wex;
8357
    }
8358
 
3430 rajveer 8359
    public void setWex(WarehouseServiceException wex) {
2820 chandransh 8360
      this.wex = wex;
8361
    }
8362
 
8363
    public void unsetWex() {
8364
      this.wex = null;
8365
    }
8366
 
3430 rajveer 8367
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
2820 chandransh 8368
    public boolean isSetWex() {
8369
      return this.wex != null;
8370
    }
8371
 
8372
    public void setWexIsSet(boolean value) {
8373
      if (!value) {
8374
        this.wex = null;
8375
      }
8376
    }
8377
 
8378
    public void setFieldValue(_Fields field, Object value) {
8379
      switch (field) {
5361 mandeep.dh 8380
      case SUCCESS:
8381
        if (value == null) {
8382
          unsetSuccess();
8383
        } else {
8384
          setSuccess((InventoryItem)value);
8385
        }
8386
        break;
8387
 
2820 chandransh 8388
      case WEX:
8389
        if (value == null) {
8390
          unsetWex();
8391
        } else {
8392
          setWex((WarehouseServiceException)value);
8393
        }
8394
        break;
8395
 
8396
      }
8397
    }
8398
 
8399
    public Object getFieldValue(_Fields field) {
8400
      switch (field) {
5361 mandeep.dh 8401
      case SUCCESS:
8402
        return getSuccess();
8403
 
2820 chandransh 8404
      case WEX:
8405
        return getWex();
8406
 
8407
      }
8408
      throw new IllegalStateException();
8409
    }
8410
 
3430 rajveer 8411
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8412
    public boolean isSet(_Fields field) {
8413
      if (field == null) {
8414
        throw new IllegalArgumentException();
8415
      }
2820 chandransh 8416
 
8417
      switch (field) {
5361 mandeep.dh 8418
      case SUCCESS:
8419
        return isSetSuccess();
2820 chandransh 8420
      case WEX:
8421
        return isSetWex();
8422
      }
8423
      throw new IllegalStateException();
8424
    }
8425
 
8426
    @Override
8427
    public boolean equals(Object that) {
8428
      if (that == null)
8429
        return false;
4496 mandeep.dh 8430
      if (that instanceof scanForOrder_result)
8431
        return this.equals((scanForOrder_result)that);
2820 chandransh 8432
      return false;
8433
    }
8434
 
4496 mandeep.dh 8435
    public boolean equals(scanForOrder_result that) {
2820 chandransh 8436
      if (that == null)
8437
        return false;
8438
 
5361 mandeep.dh 8439
      boolean this_present_success = true && this.isSetSuccess();
8440
      boolean that_present_success = true && that.isSetSuccess();
8441
      if (this_present_success || that_present_success) {
8442
        if (!(this_present_success && that_present_success))
8443
          return false;
8444
        if (!this.success.equals(that.success))
8445
          return false;
8446
      }
8447
 
2820 chandransh 8448
      boolean this_present_wex = true && this.isSetWex();
8449
      boolean that_present_wex = true && that.isSetWex();
8450
      if (this_present_wex || that_present_wex) {
8451
        if (!(this_present_wex && that_present_wex))
8452
          return false;
8453
        if (!this.wex.equals(that.wex))
8454
          return false;
8455
      }
8456
 
8457
      return true;
8458
    }
8459
 
8460
    @Override
8461
    public int hashCode() {
8462
      return 0;
8463
    }
8464
 
4496 mandeep.dh 8465
    public int compareTo(scanForOrder_result other) {
2820 chandransh 8466
      if (!getClass().equals(other.getClass())) {
8467
        return getClass().getName().compareTo(other.getClass().getName());
8468
      }
8469
 
8470
      int lastComparison = 0;
4496 mandeep.dh 8471
      scanForOrder_result typedOther = (scanForOrder_result)other;
2820 chandransh 8472
 
5361 mandeep.dh 8473
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8474
      if (lastComparison != 0) {
8475
        return lastComparison;
8476
      }
8477
      if (isSetSuccess()) {
8478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8479
        if (lastComparison != 0) {
8480
          return lastComparison;
8481
        }
8482
      }
3430 rajveer 8483
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 8484
      if (lastComparison != 0) {
8485
        return lastComparison;
8486
      }
3430 rajveer 8487
      if (isSetWex()) {
8488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
8489
        if (lastComparison != 0) {
8490
          return lastComparison;
8491
        }
2820 chandransh 8492
      }
8493
      return 0;
8494
    }
8495
 
3430 rajveer 8496
    public _Fields fieldForId(int fieldId) {
8497
      return _Fields.findByThriftId(fieldId);
8498
    }
8499
 
8500
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8501
      org.apache.thrift.protocol.TField field;
2820 chandransh 8502
      iprot.readStructBegin();
8503
      while (true)
8504
      {
8505
        field = iprot.readFieldBegin();
3430 rajveer 8506
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 8507
          break;
8508
        }
3430 rajveer 8509
        switch (field.id) {
5361 mandeep.dh 8510
          case 0: // SUCCESS
8511
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8512
              this.success = new InventoryItem();
8513
              this.success.read(iprot);
8514
            } else { 
8515
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8516
            }
8517
            break;
3430 rajveer 8518
          case 1: // WEX
8519
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8520
              this.wex = new WarehouseServiceException();
8521
              this.wex.read(iprot);
8522
            } else { 
8523
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8524
            }
8525
            break;
8526
          default:
8527
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 8528
        }
3430 rajveer 8529
        iprot.readFieldEnd();
2820 chandransh 8530
      }
8531
      iprot.readStructEnd();
8532
      validate();
8533
    }
8534
 
3430 rajveer 8535
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 8536
      oprot.writeStructBegin(STRUCT_DESC);
8537
 
5361 mandeep.dh 8538
      if (this.isSetSuccess()) {
8539
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8540
        this.success.write(oprot);
8541
        oprot.writeFieldEnd();
8542
      } else if (this.isSetWex()) {
2820 chandransh 8543
        oprot.writeFieldBegin(WEX_FIELD_DESC);
8544
        this.wex.write(oprot);
8545
        oprot.writeFieldEnd();
8546
      }
8547
      oprot.writeFieldStop();
8548
      oprot.writeStructEnd();
8549
    }
8550
 
8551
    @Override
8552
    public String toString() {
4496 mandeep.dh 8553
      StringBuilder sb = new StringBuilder("scanForOrder_result(");
2820 chandransh 8554
      boolean first = true;
8555
 
5361 mandeep.dh 8556
      sb.append("success:");
8557
      if (this.success == null) {
8558
        sb.append("null");
8559
      } else {
8560
        sb.append(this.success);
8561
      }
8562
      first = false;
8563
      if (!first) sb.append(", ");
2820 chandransh 8564
      sb.append("wex:");
8565
      if (this.wex == null) {
8566
        sb.append("null");
8567
      } else {
8568
        sb.append(this.wex);
8569
      }
8570
      first = false;
8571
      sb.append(")");
8572
      return sb.toString();
8573
    }
8574
 
3430 rajveer 8575
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 8576
      // check for required fields
8577
    }
8578
 
3430 rajveer 8579
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8580
      try {
8581
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8582
      } catch (org.apache.thrift.TException te) {
8583
        throw new java.io.IOException(te);
8584
      }
8585
    }
8586
 
8587
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8588
      try {
8589
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8590
      } catch (org.apache.thrift.TException te) {
8591
        throw new java.io.IOException(te);
8592
      }
8593
    }
8594
 
2820 chandransh 8595
  }
8596
 
4496 mandeep.dh 8597
  public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable   {
8598
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
8599
 
8600
    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);
8601
    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);
8602
 
8603
    private String itemNumber; // required
8604
    private long itemId; // required
8605
 
8606
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8607
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8608
      ITEM_NUMBER((short)1, "itemNumber"),
8609
      ITEM_ID((short)2, "itemId");
8610
 
8611
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8612
 
8613
      static {
8614
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8615
          byName.put(field.getFieldName(), field);
8616
        }
8617
      }
8618
 
8619
      /**
8620
       * Find the _Fields constant that matches fieldId, or null if its not found.
8621
       */
8622
      public static _Fields findByThriftId(int fieldId) {
8623
        switch(fieldId) {
8624
          case 1: // ITEM_NUMBER
8625
            return ITEM_NUMBER;
8626
          case 2: // ITEM_ID
8627
            return ITEM_ID;
8628
          default:
8629
            return null;
8630
        }
8631
      }
8632
 
8633
      /**
8634
       * Find the _Fields constant that matches fieldId, throwing an exception
8635
       * if it is not found.
8636
       */
8637
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8638
        _Fields fields = findByThriftId(fieldId);
8639
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8640
        return fields;
8641
      }
8642
 
8643
      /**
8644
       * Find the _Fields constant that matches name, or null if its not found.
8645
       */
8646
      public static _Fields findByName(String name) {
8647
        return byName.get(name);
8648
      }
8649
 
8650
      private final short _thriftId;
8651
      private final String _fieldName;
8652
 
8653
      _Fields(short thriftId, String fieldName) {
8654
        _thriftId = thriftId;
8655
        _fieldName = fieldName;
8656
      }
8657
 
8658
      public short getThriftFieldId() {
8659
        return _thriftId;
8660
      }
8661
 
8662
      public String getFieldName() {
8663
        return _fieldName;
8664
      }
8665
    }
8666
 
8667
    // isset id assignments
8668
    private static final int __ITEMID_ISSET_ID = 0;
8669
    private BitSet __isset_bit_vector = new BitSet(1);
8670
 
8671
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8672
    static {
8673
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8674
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8675
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8676
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8677
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8678
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8679
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
8680
    }
8681
 
8682
    public createItemNumberMapping_args() {
8683
    }
8684
 
8685
    public createItemNumberMapping_args(
8686
      String itemNumber,
8687
      long itemId)
8688
    {
8689
      this();
8690
      this.itemNumber = itemNumber;
8691
      this.itemId = itemId;
8692
      setItemIdIsSet(true);
8693
    }
8694
 
8695
    /**
8696
     * Performs a deep copy on <i>other</i>.
8697
     */
8698
    public createItemNumberMapping_args(createItemNumberMapping_args other) {
8699
      __isset_bit_vector.clear();
8700
      __isset_bit_vector.or(other.__isset_bit_vector);
8701
      if (other.isSetItemNumber()) {
8702
        this.itemNumber = other.itemNumber;
8703
      }
8704
      this.itemId = other.itemId;
8705
    }
8706
 
8707
    public createItemNumberMapping_args deepCopy() {
8708
      return new createItemNumberMapping_args(this);
8709
    }
8710
 
8711
    @Override
8712
    public void clear() {
8713
      this.itemNumber = null;
8714
      setItemIdIsSet(false);
8715
      this.itemId = 0;
8716
    }
8717
 
8718
    public String getItemNumber() {
8719
      return this.itemNumber;
8720
    }
8721
 
8722
    public void setItemNumber(String itemNumber) {
8723
      this.itemNumber = itemNumber;
8724
    }
8725
 
8726
    public void unsetItemNumber() {
8727
      this.itemNumber = null;
8728
    }
8729
 
8730
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
8731
    public boolean isSetItemNumber() {
8732
      return this.itemNumber != null;
8733
    }
8734
 
8735
    public void setItemNumberIsSet(boolean value) {
8736
      if (!value) {
8737
        this.itemNumber = null;
8738
      }
8739
    }
8740
 
8741
    public long getItemId() {
8742
      return this.itemId;
8743
    }
8744
 
8745
    public void setItemId(long itemId) {
8746
      this.itemId = itemId;
8747
      setItemIdIsSet(true);
8748
    }
8749
 
8750
    public void unsetItemId() {
8751
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
8752
    }
8753
 
8754
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
8755
    public boolean isSetItemId() {
8756
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
8757
    }
8758
 
8759
    public void setItemIdIsSet(boolean value) {
8760
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
8761
    }
8762
 
8763
    public void setFieldValue(_Fields field, Object value) {
8764
      switch (field) {
8765
      case ITEM_NUMBER:
8766
        if (value == null) {
8767
          unsetItemNumber();
8768
        } else {
8769
          setItemNumber((String)value);
8770
        }
8771
        break;
8772
 
8773
      case ITEM_ID:
8774
        if (value == null) {
8775
          unsetItemId();
8776
        } else {
8777
          setItemId((Long)value);
8778
        }
8779
        break;
8780
 
8781
      }
8782
    }
8783
 
8784
    public Object getFieldValue(_Fields field) {
8785
      switch (field) {
8786
      case ITEM_NUMBER:
8787
        return getItemNumber();
8788
 
8789
      case ITEM_ID:
8790
        return Long.valueOf(getItemId());
8791
 
8792
      }
8793
      throw new IllegalStateException();
8794
    }
8795
 
8796
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8797
    public boolean isSet(_Fields field) {
8798
      if (field == null) {
8799
        throw new IllegalArgumentException();
8800
      }
8801
 
8802
      switch (field) {
8803
      case ITEM_NUMBER:
8804
        return isSetItemNumber();
8805
      case ITEM_ID:
8806
        return isSetItemId();
8807
      }
8808
      throw new IllegalStateException();
8809
    }
8810
 
8811
    @Override
8812
    public boolean equals(Object that) {
8813
      if (that == null)
8814
        return false;
8815
      if (that instanceof createItemNumberMapping_args)
8816
        return this.equals((createItemNumberMapping_args)that);
8817
      return false;
8818
    }
8819
 
8820
    public boolean equals(createItemNumberMapping_args that) {
8821
      if (that == null)
8822
        return false;
8823
 
8824
      boolean this_present_itemNumber = true && this.isSetItemNumber();
8825
      boolean that_present_itemNumber = true && that.isSetItemNumber();
8826
      if (this_present_itemNumber || that_present_itemNumber) {
8827
        if (!(this_present_itemNumber && that_present_itemNumber))
8828
          return false;
8829
        if (!this.itemNumber.equals(that.itemNumber))
8830
          return false;
8831
      }
8832
 
8833
      boolean this_present_itemId = true;
8834
      boolean that_present_itemId = true;
8835
      if (this_present_itemId || that_present_itemId) {
8836
        if (!(this_present_itemId && that_present_itemId))
8837
          return false;
8838
        if (this.itemId != that.itemId)
8839
          return false;
8840
      }
8841
 
8842
      return true;
8843
    }
8844
 
8845
    @Override
8846
    public int hashCode() {
8847
      return 0;
8848
    }
8849
 
8850
    public int compareTo(createItemNumberMapping_args other) {
8851
      if (!getClass().equals(other.getClass())) {
8852
        return getClass().getName().compareTo(other.getClass().getName());
8853
      }
8854
 
8855
      int lastComparison = 0;
8856
      createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
8857
 
8858
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
8859
      if (lastComparison != 0) {
8860
        return lastComparison;
8861
      }
8862
      if (isSetItemNumber()) {
8863
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
8864
        if (lastComparison != 0) {
8865
          return lastComparison;
8866
        }
8867
      }
8868
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
8869
      if (lastComparison != 0) {
8870
        return lastComparison;
8871
      }
8872
      if (isSetItemId()) {
8873
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
8874
        if (lastComparison != 0) {
8875
          return lastComparison;
8876
        }
8877
      }
8878
      return 0;
8879
    }
8880
 
8881
    public _Fields fieldForId(int fieldId) {
8882
      return _Fields.findByThriftId(fieldId);
8883
    }
8884
 
8885
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8886
      org.apache.thrift.protocol.TField field;
8887
      iprot.readStructBegin();
8888
      while (true)
8889
      {
8890
        field = iprot.readFieldBegin();
8891
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8892
          break;
8893
        }
8894
        switch (field.id) {
8895
          case 1: // ITEM_NUMBER
8896
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8897
              this.itemNumber = iprot.readString();
8898
            } else { 
8899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8900
            }
8901
            break;
8902
          case 2: // ITEM_ID
8903
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8904
              this.itemId = iprot.readI64();
8905
              setItemIdIsSet(true);
8906
            } else { 
8907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8908
            }
8909
            break;
8910
          default:
8911
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8912
        }
8913
        iprot.readFieldEnd();
8914
      }
8915
      iprot.readStructEnd();
8916
      validate();
8917
    }
8918
 
8919
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8920
      validate();
8921
 
8922
      oprot.writeStructBegin(STRUCT_DESC);
8923
      if (this.itemNumber != null) {
8924
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
8925
        oprot.writeString(this.itemNumber);
8926
        oprot.writeFieldEnd();
8927
      }
8928
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8929
      oprot.writeI64(this.itemId);
8930
      oprot.writeFieldEnd();
8931
      oprot.writeFieldStop();
8932
      oprot.writeStructEnd();
8933
    }
8934
 
8935
    @Override
8936
    public String toString() {
8937
      StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
8938
      boolean first = true;
8939
 
8940
      sb.append("itemNumber:");
8941
      if (this.itemNumber == null) {
8942
        sb.append("null");
8943
      } else {
8944
        sb.append(this.itemNumber);
8945
      }
8946
      first = false;
8947
      if (!first) sb.append(", ");
8948
      sb.append("itemId:");
8949
      sb.append(this.itemId);
8950
      first = false;
8951
      sb.append(")");
8952
      return sb.toString();
8953
    }
8954
 
8955
    public void validate() throws org.apache.thrift.TException {
8956
      // check for required fields
8957
    }
8958
 
8959
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8960
      try {
8961
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8962
      } catch (org.apache.thrift.TException te) {
8963
        throw new java.io.IOException(te);
8964
      }
8965
    }
8966
 
8967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8968
      try {
8969
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8970
        __isset_bit_vector = new BitSet(1);
8971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8972
      } catch (org.apache.thrift.TException te) {
8973
        throw new java.io.IOException(te);
8974
      }
8975
    }
8976
 
8977
  }
8978
 
8979
  public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable   {
8980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
8981
 
8982
 
8983
 
8984
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8985
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8986
;
8987
 
8988
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8989
 
8990
      static {
8991
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8992
          byName.put(field.getFieldName(), field);
8993
        }
8994
      }
8995
 
8996
      /**
8997
       * Find the _Fields constant that matches fieldId, or null if its not found.
8998
       */
8999
      public static _Fields findByThriftId(int fieldId) {
9000
        switch(fieldId) {
9001
          default:
9002
            return null;
9003
        }
9004
      }
9005
 
9006
      /**
9007
       * Find the _Fields constant that matches fieldId, throwing an exception
9008
       * if it is not found.
9009
       */
9010
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9011
        _Fields fields = findByThriftId(fieldId);
9012
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9013
        return fields;
9014
      }
9015
 
9016
      /**
9017
       * Find the _Fields constant that matches name, or null if its not found.
9018
       */
9019
      public static _Fields findByName(String name) {
9020
        return byName.get(name);
9021
      }
9022
 
9023
      private final short _thriftId;
9024
      private final String _fieldName;
9025
 
9026
      _Fields(short thriftId, String fieldName) {
9027
        _thriftId = thriftId;
9028
        _fieldName = fieldName;
9029
      }
9030
 
9031
      public short getThriftFieldId() {
9032
        return _thriftId;
9033
      }
9034
 
9035
      public String getFieldName() {
9036
        return _fieldName;
9037
      }
9038
    }
9039
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9040
    static {
9041
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9042
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9043
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
9044
    }
9045
 
9046
    public createItemNumberMapping_result() {
9047
    }
9048
 
9049
    /**
9050
     * Performs a deep copy on <i>other</i>.
9051
     */
9052
    public createItemNumberMapping_result(createItemNumberMapping_result other) {
9053
    }
9054
 
9055
    public createItemNumberMapping_result deepCopy() {
9056
      return new createItemNumberMapping_result(this);
9057
    }
9058
 
9059
    @Override
9060
    public void clear() {
9061
    }
9062
 
9063
    public void setFieldValue(_Fields field, Object value) {
9064
      switch (field) {
9065
      }
9066
    }
9067
 
9068
    public Object getFieldValue(_Fields field) {
9069
      switch (field) {
9070
      }
9071
      throw new IllegalStateException();
9072
    }
9073
 
9074
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9075
    public boolean isSet(_Fields field) {
9076
      if (field == null) {
9077
        throw new IllegalArgumentException();
9078
      }
9079
 
9080
      switch (field) {
9081
      }
9082
      throw new IllegalStateException();
9083
    }
9084
 
9085
    @Override
9086
    public boolean equals(Object that) {
9087
      if (that == null)
9088
        return false;
9089
      if (that instanceof createItemNumberMapping_result)
9090
        return this.equals((createItemNumberMapping_result)that);
9091
      return false;
9092
    }
9093
 
9094
    public boolean equals(createItemNumberMapping_result that) {
9095
      if (that == null)
9096
        return false;
9097
 
9098
      return true;
9099
    }
9100
 
9101
    @Override
9102
    public int hashCode() {
9103
      return 0;
9104
    }
9105
 
9106
    public int compareTo(createItemNumberMapping_result other) {
9107
      if (!getClass().equals(other.getClass())) {
9108
        return getClass().getName().compareTo(other.getClass().getName());
9109
      }
9110
 
9111
      int lastComparison = 0;
9112
      createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
9113
 
9114
      return 0;
9115
    }
9116
 
9117
    public _Fields fieldForId(int fieldId) {
9118
      return _Fields.findByThriftId(fieldId);
9119
    }
9120
 
9121
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9122
      org.apache.thrift.protocol.TField field;
9123
      iprot.readStructBegin();
9124
      while (true)
9125
      {
9126
        field = iprot.readFieldBegin();
9127
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9128
          break;
9129
        }
9130
        switch (field.id) {
9131
          default:
9132
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9133
        }
9134
        iprot.readFieldEnd();
9135
      }
9136
      iprot.readStructEnd();
9137
      validate();
9138
    }
9139
 
9140
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9141
      oprot.writeStructBegin(STRUCT_DESC);
9142
 
9143
      oprot.writeFieldStop();
9144
      oprot.writeStructEnd();
9145
    }
9146
 
9147
    @Override
9148
    public String toString() {
9149
      StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
9150
      boolean first = true;
9151
 
9152
      sb.append(")");
9153
      return sb.toString();
9154
    }
9155
 
9156
    public void validate() throws org.apache.thrift.TException {
9157
      // check for required fields
9158
    }
9159
 
9160
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9161
      try {
9162
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9163
      } catch (org.apache.thrift.TException te) {
9164
        throw new java.io.IOException(te);
9165
      }
9166
    }
9167
 
9168
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9169
      try {
9170
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9171
      } catch (org.apache.thrift.TException te) {
9172
        throw new java.io.IOException(te);
9173
      }
9174
    }
9175
 
9176
  }
9177
 
4622 amit.gupta 9178
  public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable   {
9179
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
9180
 
9181
    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);
9182
 
9183
    private long itemId; // required
9184
 
9185
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9186
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9187
      ITEM_ID((short)1, "itemId");
9188
 
9189
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9190
 
9191
      static {
9192
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9193
          byName.put(field.getFieldName(), field);
9194
        }
9195
      }
9196
 
9197
      /**
9198
       * Find the _Fields constant that matches fieldId, or null if its not found.
9199
       */
9200
      public static _Fields findByThriftId(int fieldId) {
9201
        switch(fieldId) {
9202
          case 1: // ITEM_ID
9203
            return ITEM_ID;
9204
          default:
9205
            return null;
9206
        }
9207
      }
9208
 
9209
      /**
9210
       * Find the _Fields constant that matches fieldId, throwing an exception
9211
       * if it is not found.
9212
       */
9213
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9214
        _Fields fields = findByThriftId(fieldId);
9215
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9216
        return fields;
9217
      }
9218
 
9219
      /**
9220
       * Find the _Fields constant that matches name, or null if its not found.
9221
       */
9222
      public static _Fields findByName(String name) {
9223
        return byName.get(name);
9224
      }
9225
 
9226
      private final short _thriftId;
9227
      private final String _fieldName;
9228
 
9229
      _Fields(short thriftId, String fieldName) {
9230
        _thriftId = thriftId;
9231
        _fieldName = fieldName;
9232
      }
9233
 
9234
      public short getThriftFieldId() {
9235
        return _thriftId;
9236
      }
9237
 
9238
      public String getFieldName() {
9239
        return _fieldName;
9240
      }
9241
    }
9242
 
9243
    // isset id assignments
9244
    private static final int __ITEMID_ISSET_ID = 0;
9245
    private BitSet __isset_bit_vector = new BitSet(1);
9246
 
9247
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9248
    static {
9249
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9250
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9251
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9252
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9253
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
9254
    }
9255
 
9256
    public getItemNumbers_args() {
9257
    }
9258
 
9259
    public getItemNumbers_args(
9260
      long itemId)
9261
    {
9262
      this();
9263
      this.itemId = itemId;
9264
      setItemIdIsSet(true);
9265
    }
9266
 
9267
    /**
9268
     * Performs a deep copy on <i>other</i>.
9269
     */
9270
    public getItemNumbers_args(getItemNumbers_args other) {
9271
      __isset_bit_vector.clear();
9272
      __isset_bit_vector.or(other.__isset_bit_vector);
9273
      this.itemId = other.itemId;
9274
    }
9275
 
9276
    public getItemNumbers_args deepCopy() {
9277
      return new getItemNumbers_args(this);
9278
    }
9279
 
9280
    @Override
9281
    public void clear() {
9282
      setItemIdIsSet(false);
9283
      this.itemId = 0;
9284
    }
9285
 
9286
    public long getItemId() {
9287
      return this.itemId;
9288
    }
9289
 
9290
    public void setItemId(long itemId) {
9291
      this.itemId = itemId;
9292
      setItemIdIsSet(true);
9293
    }
9294
 
9295
    public void unsetItemId() {
9296
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9297
    }
9298
 
9299
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9300
    public boolean isSetItemId() {
9301
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9302
    }
9303
 
9304
    public void setItemIdIsSet(boolean value) {
9305
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9306
    }
9307
 
9308
    public void setFieldValue(_Fields field, Object value) {
9309
      switch (field) {
9310
      case ITEM_ID:
9311
        if (value == null) {
9312
          unsetItemId();
9313
        } else {
9314
          setItemId((Long)value);
9315
        }
9316
        break;
9317
 
9318
      }
9319
    }
9320
 
9321
    public Object getFieldValue(_Fields field) {
9322
      switch (field) {
9323
      case ITEM_ID:
9324
        return Long.valueOf(getItemId());
9325
 
9326
      }
9327
      throw new IllegalStateException();
9328
    }
9329
 
9330
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9331
    public boolean isSet(_Fields field) {
9332
      if (field == null) {
9333
        throw new IllegalArgumentException();
9334
      }
9335
 
9336
      switch (field) {
9337
      case ITEM_ID:
9338
        return isSetItemId();
9339
      }
9340
      throw new IllegalStateException();
9341
    }
9342
 
9343
    @Override
9344
    public boolean equals(Object that) {
9345
      if (that == null)
9346
        return false;
9347
      if (that instanceof getItemNumbers_args)
9348
        return this.equals((getItemNumbers_args)that);
9349
      return false;
9350
    }
9351
 
9352
    public boolean equals(getItemNumbers_args that) {
9353
      if (that == null)
9354
        return false;
9355
 
9356
      boolean this_present_itemId = true;
9357
      boolean that_present_itemId = true;
9358
      if (this_present_itemId || that_present_itemId) {
9359
        if (!(this_present_itemId && that_present_itemId))
9360
          return false;
9361
        if (this.itemId != that.itemId)
9362
          return false;
9363
      }
9364
 
9365
      return true;
9366
    }
9367
 
9368
    @Override
9369
    public int hashCode() {
9370
      return 0;
9371
    }
9372
 
9373
    public int compareTo(getItemNumbers_args other) {
9374
      if (!getClass().equals(other.getClass())) {
9375
        return getClass().getName().compareTo(other.getClass().getName());
9376
      }
9377
 
9378
      int lastComparison = 0;
9379
      getItemNumbers_args typedOther = (getItemNumbers_args)other;
9380
 
9381
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9382
      if (lastComparison != 0) {
9383
        return lastComparison;
9384
      }
9385
      if (isSetItemId()) {
9386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9387
        if (lastComparison != 0) {
9388
          return lastComparison;
9389
        }
9390
      }
9391
      return 0;
9392
    }
9393
 
9394
    public _Fields fieldForId(int fieldId) {
9395
      return _Fields.findByThriftId(fieldId);
9396
    }
9397
 
9398
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9399
      org.apache.thrift.protocol.TField field;
9400
      iprot.readStructBegin();
9401
      while (true)
9402
      {
9403
        field = iprot.readFieldBegin();
9404
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9405
          break;
9406
        }
9407
        switch (field.id) {
9408
          case 1: // ITEM_ID
9409
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9410
              this.itemId = iprot.readI64();
9411
              setItemIdIsSet(true);
9412
            } else { 
9413
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9414
            }
9415
            break;
9416
          default:
9417
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9418
        }
9419
        iprot.readFieldEnd();
9420
      }
9421
      iprot.readStructEnd();
9422
      validate();
9423
    }
9424
 
9425
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9426
      validate();
9427
 
9428
      oprot.writeStructBegin(STRUCT_DESC);
9429
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9430
      oprot.writeI64(this.itemId);
9431
      oprot.writeFieldEnd();
9432
      oprot.writeFieldStop();
9433
      oprot.writeStructEnd();
9434
    }
9435
 
9436
    @Override
9437
    public String toString() {
9438
      StringBuilder sb = new StringBuilder("getItemNumbers_args(");
9439
      boolean first = true;
9440
 
9441
      sb.append("itemId:");
9442
      sb.append(this.itemId);
9443
      first = false;
9444
      sb.append(")");
9445
      return sb.toString();
9446
    }
9447
 
9448
    public void validate() throws org.apache.thrift.TException {
9449
      // check for required fields
9450
    }
9451
 
9452
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9453
      try {
9454
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9455
      } catch (org.apache.thrift.TException te) {
9456
        throw new java.io.IOException(te);
9457
      }
9458
    }
9459
 
9460
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9461
      try {
9462
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9463
        __isset_bit_vector = new BitSet(1);
9464
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9465
      } catch (org.apache.thrift.TException te) {
9466
        throw new java.io.IOException(te);
9467
      }
9468
    }
9469
 
9470
  }
9471
 
9472
  public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable   {
9473
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
9474
 
9475
    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);
9476
 
9477
    private List<String> success; // required
9478
 
9479
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9480
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9481
      SUCCESS((short)0, "success");
9482
 
9483
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9484
 
9485
      static {
9486
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9487
          byName.put(field.getFieldName(), field);
9488
        }
9489
      }
9490
 
9491
      /**
9492
       * Find the _Fields constant that matches fieldId, or null if its not found.
9493
       */
9494
      public static _Fields findByThriftId(int fieldId) {
9495
        switch(fieldId) {
9496
          case 0: // SUCCESS
9497
            return SUCCESS;
9498
          default:
9499
            return null;
9500
        }
9501
      }
9502
 
9503
      /**
9504
       * Find the _Fields constant that matches fieldId, throwing an exception
9505
       * if it is not found.
9506
       */
9507
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9508
        _Fields fields = findByThriftId(fieldId);
9509
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9510
        return fields;
9511
      }
9512
 
9513
      /**
9514
       * Find the _Fields constant that matches name, or null if its not found.
9515
       */
9516
      public static _Fields findByName(String name) {
9517
        return byName.get(name);
9518
      }
9519
 
9520
      private final short _thriftId;
9521
      private final String _fieldName;
9522
 
9523
      _Fields(short thriftId, String fieldName) {
9524
        _thriftId = thriftId;
9525
        _fieldName = fieldName;
9526
      }
9527
 
9528
      public short getThriftFieldId() {
9529
        return _thriftId;
9530
      }
9531
 
9532
      public String getFieldName() {
9533
        return _fieldName;
9534
      }
9535
    }
9536
 
9537
    // isset id assignments
9538
 
9539
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9540
    static {
9541
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9542
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9543
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9544
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9545
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9546
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
9547
    }
9548
 
9549
    public getItemNumbers_result() {
9550
    }
9551
 
9552
    public getItemNumbers_result(
9553
      List<String> success)
9554
    {
9555
      this();
9556
      this.success = success;
9557
    }
9558
 
9559
    /**
9560
     * Performs a deep copy on <i>other</i>.
9561
     */
9562
    public getItemNumbers_result(getItemNumbers_result other) {
9563
      if (other.isSetSuccess()) {
9564
        List<String> __this__success = new ArrayList<String>();
9565
        for (String other_element : other.success) {
9566
          __this__success.add(other_element);
9567
        }
9568
        this.success = __this__success;
9569
      }
9570
    }
9571
 
9572
    public getItemNumbers_result deepCopy() {
9573
      return new getItemNumbers_result(this);
9574
    }
9575
 
9576
    @Override
9577
    public void clear() {
9578
      this.success = null;
9579
    }
9580
 
9581
    public int getSuccessSize() {
9582
      return (this.success == null) ? 0 : this.success.size();
9583
    }
9584
 
9585
    public java.util.Iterator<String> getSuccessIterator() {
9586
      return (this.success == null) ? null : this.success.iterator();
9587
    }
9588
 
9589
    public void addToSuccess(String elem) {
9590
      if (this.success == null) {
9591
        this.success = new ArrayList<String>();
9592
      }
9593
      this.success.add(elem);
9594
    }
9595
 
9596
    public List<String> getSuccess() {
9597
      return this.success;
9598
    }
9599
 
9600
    public void setSuccess(List<String> success) {
9601
      this.success = success;
9602
    }
9603
 
9604
    public void unsetSuccess() {
9605
      this.success = null;
9606
    }
9607
 
9608
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9609
    public boolean isSetSuccess() {
9610
      return this.success != null;
9611
    }
9612
 
9613
    public void setSuccessIsSet(boolean value) {
9614
      if (!value) {
9615
        this.success = null;
9616
      }
9617
    }
9618
 
9619
    public void setFieldValue(_Fields field, Object value) {
9620
      switch (field) {
9621
      case SUCCESS:
9622
        if (value == null) {
9623
          unsetSuccess();
9624
        } else {
9625
          setSuccess((List<String>)value);
9626
        }
9627
        break;
9628
 
9629
      }
9630
    }
9631
 
9632
    public Object getFieldValue(_Fields field) {
9633
      switch (field) {
9634
      case SUCCESS:
9635
        return getSuccess();
9636
 
9637
      }
9638
      throw new IllegalStateException();
9639
    }
9640
 
9641
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9642
    public boolean isSet(_Fields field) {
9643
      if (field == null) {
9644
        throw new IllegalArgumentException();
9645
      }
9646
 
9647
      switch (field) {
9648
      case SUCCESS:
9649
        return isSetSuccess();
9650
      }
9651
      throw new IllegalStateException();
9652
    }
9653
 
9654
    @Override
9655
    public boolean equals(Object that) {
9656
      if (that == null)
9657
        return false;
9658
      if (that instanceof getItemNumbers_result)
9659
        return this.equals((getItemNumbers_result)that);
9660
      return false;
9661
    }
9662
 
9663
    public boolean equals(getItemNumbers_result that) {
9664
      if (that == null)
9665
        return false;
9666
 
9667
      boolean this_present_success = true && this.isSetSuccess();
9668
      boolean that_present_success = true && that.isSetSuccess();
9669
      if (this_present_success || that_present_success) {
9670
        if (!(this_present_success && that_present_success))
9671
          return false;
9672
        if (!this.success.equals(that.success))
9673
          return false;
9674
      }
9675
 
9676
      return true;
9677
    }
9678
 
9679
    @Override
9680
    public int hashCode() {
9681
      return 0;
9682
    }
9683
 
9684
    public int compareTo(getItemNumbers_result other) {
9685
      if (!getClass().equals(other.getClass())) {
9686
        return getClass().getName().compareTo(other.getClass().getName());
9687
      }
9688
 
9689
      int lastComparison = 0;
9690
      getItemNumbers_result typedOther = (getItemNumbers_result)other;
9691
 
9692
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9693
      if (lastComparison != 0) {
9694
        return lastComparison;
9695
      }
9696
      if (isSetSuccess()) {
9697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9698
        if (lastComparison != 0) {
9699
          return lastComparison;
9700
        }
9701
      }
9702
      return 0;
9703
    }
9704
 
9705
    public _Fields fieldForId(int fieldId) {
9706
      return _Fields.findByThriftId(fieldId);
9707
    }
9708
 
9709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9710
      org.apache.thrift.protocol.TField field;
9711
      iprot.readStructBegin();
9712
      while (true)
9713
      {
9714
        field = iprot.readFieldBegin();
9715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9716
          break;
9717
        }
9718
        switch (field.id) {
9719
          case 0: // SUCCESS
9720
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9721
              {
5361 mandeep.dh 9722
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
9723
                this.success = new ArrayList<String>(_list0.size);
9724
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
4622 amit.gupta 9725
                {
5361 mandeep.dh 9726
                  String _elem2; // required
9727
                  _elem2 = iprot.readString();
9728
                  this.success.add(_elem2);
4622 amit.gupta 9729
                }
9730
                iprot.readListEnd();
9731
              }
9732
            } else { 
9733
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9734
            }
9735
            break;
9736
          default:
9737
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9738
        }
9739
        iprot.readFieldEnd();
9740
      }
9741
      iprot.readStructEnd();
9742
      validate();
9743
    }
9744
 
9745
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9746
      oprot.writeStructBegin(STRUCT_DESC);
9747
 
9748
      if (this.isSetSuccess()) {
9749
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9750
        {
9751
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5361 mandeep.dh 9752
          for (String _iter3 : this.success)
4622 amit.gupta 9753
          {
5361 mandeep.dh 9754
            oprot.writeString(_iter3);
4622 amit.gupta 9755
          }
9756
          oprot.writeListEnd();
9757
        }
9758
        oprot.writeFieldEnd();
9759
      }
9760
      oprot.writeFieldStop();
9761
      oprot.writeStructEnd();
9762
    }
9763
 
9764
    @Override
9765
    public String toString() {
9766
      StringBuilder sb = new StringBuilder("getItemNumbers_result(");
9767
      boolean first = true;
9768
 
9769
      sb.append("success:");
9770
      if (this.success == null) {
9771
        sb.append("null");
9772
      } else {
9773
        sb.append(this.success);
9774
      }
9775
      first = false;
9776
      sb.append(")");
9777
      return sb.toString();
9778
    }
9779
 
9780
    public void validate() throws org.apache.thrift.TException {
9781
      // check for required fields
9782
    }
9783
 
9784
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9785
      try {
9786
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9787
      } catch (org.apache.thrift.TException te) {
9788
        throw new java.io.IOException(te);
9789
      }
9790
    }
9791
 
9792
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9793
      try {
9794
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9795
      } catch (org.apache.thrift.TException te) {
9796
        throw new java.io.IOException(te);
9797
      }
9798
    }
9799
 
9800
  }
9801
 
5110 mandeep.dh 9802
  public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable   {
9803
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
9804
 
9805
    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);
9806
 
9807
    private String itemNumber; // required
9808
 
9809
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9810
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9811
      ITEM_NUMBER((short)1, "itemNumber");
9812
 
9813
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9814
 
9815
      static {
9816
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9817
          byName.put(field.getFieldName(), field);
9818
        }
9819
      }
9820
 
9821
      /**
9822
       * Find the _Fields constant that matches fieldId, or null if its not found.
9823
       */
9824
      public static _Fields findByThriftId(int fieldId) {
9825
        switch(fieldId) {
9826
          case 1: // ITEM_NUMBER
9827
            return ITEM_NUMBER;
9828
          default:
9829
            return null;
9830
        }
9831
      }
9832
 
9833
      /**
9834
       * Find the _Fields constant that matches fieldId, throwing an exception
9835
       * if it is not found.
9836
       */
9837
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9838
        _Fields fields = findByThriftId(fieldId);
9839
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9840
        return fields;
9841
      }
9842
 
9843
      /**
9844
       * Find the _Fields constant that matches name, or null if its not found.
9845
       */
9846
      public static _Fields findByName(String name) {
9847
        return byName.get(name);
9848
      }
9849
 
9850
      private final short _thriftId;
9851
      private final String _fieldName;
9852
 
9853
      _Fields(short thriftId, String fieldName) {
9854
        _thriftId = thriftId;
9855
        _fieldName = fieldName;
9856
      }
9857
 
9858
      public short getThriftFieldId() {
9859
        return _thriftId;
9860
      }
9861
 
9862
      public String getFieldName() {
9863
        return _fieldName;
9864
      }
9865
    }
9866
 
9867
    // isset id assignments
9868
 
9869
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9870
    static {
9871
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9872
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9873
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9874
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9875
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
9876
    }
9877
 
9878
    public getItemIds_args() {
9879
    }
9880
 
9881
    public getItemIds_args(
9882
      String itemNumber)
9883
    {
9884
      this();
9885
      this.itemNumber = itemNumber;
9886
    }
9887
 
9888
    /**
9889
     * Performs a deep copy on <i>other</i>.
9890
     */
9891
    public getItemIds_args(getItemIds_args other) {
9892
      if (other.isSetItemNumber()) {
9893
        this.itemNumber = other.itemNumber;
9894
      }
9895
    }
9896
 
9897
    public getItemIds_args deepCopy() {
9898
      return new getItemIds_args(this);
9899
    }
9900
 
9901
    @Override
9902
    public void clear() {
9903
      this.itemNumber = null;
9904
    }
9905
 
9906
    public String getItemNumber() {
9907
      return this.itemNumber;
9908
    }
9909
 
9910
    public void setItemNumber(String itemNumber) {
9911
      this.itemNumber = itemNumber;
9912
    }
9913
 
9914
    public void unsetItemNumber() {
9915
      this.itemNumber = null;
9916
    }
9917
 
9918
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
9919
    public boolean isSetItemNumber() {
9920
      return this.itemNumber != null;
9921
    }
9922
 
9923
    public void setItemNumberIsSet(boolean value) {
9924
      if (!value) {
9925
        this.itemNumber = null;
9926
      }
9927
    }
9928
 
9929
    public void setFieldValue(_Fields field, Object value) {
9930
      switch (field) {
9931
      case ITEM_NUMBER:
9932
        if (value == null) {
9933
          unsetItemNumber();
9934
        } else {
9935
          setItemNumber((String)value);
9936
        }
9937
        break;
9938
 
9939
      }
9940
    }
9941
 
9942
    public Object getFieldValue(_Fields field) {
9943
      switch (field) {
9944
      case ITEM_NUMBER:
9945
        return getItemNumber();
9946
 
9947
      }
9948
      throw new IllegalStateException();
9949
    }
9950
 
9951
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9952
    public boolean isSet(_Fields field) {
9953
      if (field == null) {
9954
        throw new IllegalArgumentException();
9955
      }
9956
 
9957
      switch (field) {
9958
      case ITEM_NUMBER:
9959
        return isSetItemNumber();
9960
      }
9961
      throw new IllegalStateException();
9962
    }
9963
 
9964
    @Override
9965
    public boolean equals(Object that) {
9966
      if (that == null)
9967
        return false;
9968
      if (that instanceof getItemIds_args)
9969
        return this.equals((getItemIds_args)that);
9970
      return false;
9971
    }
9972
 
9973
    public boolean equals(getItemIds_args that) {
9974
      if (that == null)
9975
        return false;
9976
 
9977
      boolean this_present_itemNumber = true && this.isSetItemNumber();
9978
      boolean that_present_itemNumber = true && that.isSetItemNumber();
9979
      if (this_present_itemNumber || that_present_itemNumber) {
9980
        if (!(this_present_itemNumber && that_present_itemNumber))
9981
          return false;
9982
        if (!this.itemNumber.equals(that.itemNumber))
9983
          return false;
9984
      }
9985
 
9986
      return true;
9987
    }
9988
 
9989
    @Override
9990
    public int hashCode() {
9991
      return 0;
9992
    }
9993
 
9994
    public int compareTo(getItemIds_args other) {
9995
      if (!getClass().equals(other.getClass())) {
9996
        return getClass().getName().compareTo(other.getClass().getName());
9997
      }
9998
 
9999
      int lastComparison = 0;
10000
      getItemIds_args typedOther = (getItemIds_args)other;
10001
 
10002
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
10003
      if (lastComparison != 0) {
10004
        return lastComparison;
10005
      }
10006
      if (isSetItemNumber()) {
10007
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
10008
        if (lastComparison != 0) {
10009
          return lastComparison;
10010
        }
10011
      }
10012
      return 0;
10013
    }
10014
 
10015
    public _Fields fieldForId(int fieldId) {
10016
      return _Fields.findByThriftId(fieldId);
10017
    }
10018
 
10019
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10020
      org.apache.thrift.protocol.TField field;
10021
      iprot.readStructBegin();
10022
      while (true)
10023
      {
10024
        field = iprot.readFieldBegin();
10025
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10026
          break;
10027
        }
10028
        switch (field.id) {
10029
          case 1: // ITEM_NUMBER
10030
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10031
              this.itemNumber = iprot.readString();
10032
            } else { 
10033
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10034
            }
10035
            break;
10036
          default:
10037
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10038
        }
10039
        iprot.readFieldEnd();
10040
      }
10041
      iprot.readStructEnd();
10042
      validate();
10043
    }
10044
 
10045
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10046
      validate();
10047
 
10048
      oprot.writeStructBegin(STRUCT_DESC);
10049
      if (this.itemNumber != null) {
10050
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
10051
        oprot.writeString(this.itemNumber);
10052
        oprot.writeFieldEnd();
10053
      }
10054
      oprot.writeFieldStop();
10055
      oprot.writeStructEnd();
10056
    }
10057
 
10058
    @Override
10059
    public String toString() {
10060
      StringBuilder sb = new StringBuilder("getItemIds_args(");
10061
      boolean first = true;
10062
 
10063
      sb.append("itemNumber:");
10064
      if (this.itemNumber == null) {
10065
        sb.append("null");
10066
      } else {
10067
        sb.append(this.itemNumber);
10068
      }
10069
      first = false;
10070
      sb.append(")");
10071
      return sb.toString();
10072
    }
10073
 
10074
    public void validate() throws org.apache.thrift.TException {
10075
      // check for required fields
10076
    }
10077
 
10078
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10079
      try {
10080
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10081
      } catch (org.apache.thrift.TException te) {
10082
        throw new java.io.IOException(te);
10083
      }
10084
    }
10085
 
10086
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10087
      try {
10088
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10089
      } catch (org.apache.thrift.TException te) {
10090
        throw new java.io.IOException(te);
10091
      }
10092
    }
10093
 
10094
  }
10095
 
10096
  public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable   {
10097
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
10098
 
10099
    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);
10100
 
10101
    private List<Long> success; // required
10102
 
10103
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10104
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10105
      SUCCESS((short)0, "success");
10106
 
10107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10108
 
10109
      static {
10110
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10111
          byName.put(field.getFieldName(), field);
10112
        }
10113
      }
10114
 
10115
      /**
10116
       * Find the _Fields constant that matches fieldId, or null if its not found.
10117
       */
10118
      public static _Fields findByThriftId(int fieldId) {
10119
        switch(fieldId) {
10120
          case 0: // SUCCESS
10121
            return SUCCESS;
10122
          default:
10123
            return null;
10124
        }
10125
      }
10126
 
10127
      /**
10128
       * Find the _Fields constant that matches fieldId, throwing an exception
10129
       * if it is not found.
10130
       */
10131
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10132
        _Fields fields = findByThriftId(fieldId);
10133
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10134
        return fields;
10135
      }
10136
 
10137
      /**
10138
       * Find the _Fields constant that matches name, or null if its not found.
10139
       */
10140
      public static _Fields findByName(String name) {
10141
        return byName.get(name);
10142
      }
10143
 
10144
      private final short _thriftId;
10145
      private final String _fieldName;
10146
 
10147
      _Fields(short thriftId, String fieldName) {
10148
        _thriftId = thriftId;
10149
        _fieldName = fieldName;
10150
      }
10151
 
10152
      public short getThriftFieldId() {
10153
        return _thriftId;
10154
      }
10155
 
10156
      public String getFieldName() {
10157
        return _fieldName;
10158
      }
10159
    }
10160
 
10161
    // isset id assignments
10162
 
10163
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10164
    static {
10165
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10166
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10167
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10168
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10169
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10170
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
10171
    }
10172
 
10173
    public getItemIds_result() {
10174
    }
10175
 
10176
    public getItemIds_result(
10177
      List<Long> success)
10178
    {
10179
      this();
10180
      this.success = success;
10181
    }
10182
 
10183
    /**
10184
     * Performs a deep copy on <i>other</i>.
10185
     */
10186
    public getItemIds_result(getItemIds_result other) {
10187
      if (other.isSetSuccess()) {
10188
        List<Long> __this__success = new ArrayList<Long>();
10189
        for (Long other_element : other.success) {
10190
          __this__success.add(other_element);
10191
        }
10192
        this.success = __this__success;
10193
      }
10194
    }
10195
 
10196
    public getItemIds_result deepCopy() {
10197
      return new getItemIds_result(this);
10198
    }
10199
 
10200
    @Override
10201
    public void clear() {
10202
      this.success = null;
10203
    }
10204
 
10205
    public int getSuccessSize() {
10206
      return (this.success == null) ? 0 : this.success.size();
10207
    }
10208
 
10209
    public java.util.Iterator<Long> getSuccessIterator() {
10210
      return (this.success == null) ? null : this.success.iterator();
10211
    }
10212
 
10213
    public void addToSuccess(long elem) {
10214
      if (this.success == null) {
10215
        this.success = new ArrayList<Long>();
10216
      }
10217
      this.success.add(elem);
10218
    }
10219
 
10220
    public List<Long> getSuccess() {
10221
      return this.success;
10222
    }
10223
 
10224
    public void setSuccess(List<Long> success) {
10225
      this.success = success;
10226
    }
10227
 
10228
    public void unsetSuccess() {
10229
      this.success = null;
10230
    }
10231
 
10232
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10233
    public boolean isSetSuccess() {
10234
      return this.success != null;
10235
    }
10236
 
10237
    public void setSuccessIsSet(boolean value) {
10238
      if (!value) {
10239
        this.success = null;
10240
      }
10241
    }
10242
 
10243
    public void setFieldValue(_Fields field, Object value) {
10244
      switch (field) {
10245
      case SUCCESS:
10246
        if (value == null) {
10247
          unsetSuccess();
10248
        } else {
10249
          setSuccess((List<Long>)value);
10250
        }
10251
        break;
10252
 
10253
      }
10254
    }
10255
 
10256
    public Object getFieldValue(_Fields field) {
10257
      switch (field) {
10258
      case SUCCESS:
10259
        return getSuccess();
10260
 
10261
      }
10262
      throw new IllegalStateException();
10263
    }
10264
 
10265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10266
    public boolean isSet(_Fields field) {
10267
      if (field == null) {
10268
        throw new IllegalArgumentException();
10269
      }
10270
 
10271
      switch (field) {
10272
      case SUCCESS:
10273
        return isSetSuccess();
10274
      }
10275
      throw new IllegalStateException();
10276
    }
10277
 
10278
    @Override
10279
    public boolean equals(Object that) {
10280
      if (that == null)
10281
        return false;
10282
      if (that instanceof getItemIds_result)
10283
        return this.equals((getItemIds_result)that);
10284
      return false;
10285
    }
10286
 
10287
    public boolean equals(getItemIds_result that) {
10288
      if (that == null)
10289
        return false;
10290
 
10291
      boolean this_present_success = true && this.isSetSuccess();
10292
      boolean that_present_success = true && that.isSetSuccess();
10293
      if (this_present_success || that_present_success) {
10294
        if (!(this_present_success && that_present_success))
10295
          return false;
10296
        if (!this.success.equals(that.success))
10297
          return false;
10298
      }
10299
 
10300
      return true;
10301
    }
10302
 
10303
    @Override
10304
    public int hashCode() {
10305
      return 0;
10306
    }
10307
 
10308
    public int compareTo(getItemIds_result other) {
10309
      if (!getClass().equals(other.getClass())) {
10310
        return getClass().getName().compareTo(other.getClass().getName());
10311
      }
10312
 
10313
      int lastComparison = 0;
10314
      getItemIds_result typedOther = (getItemIds_result)other;
10315
 
10316
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10317
      if (lastComparison != 0) {
10318
        return lastComparison;
10319
      }
10320
      if (isSetSuccess()) {
10321
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10322
        if (lastComparison != 0) {
10323
          return lastComparison;
10324
        }
10325
      }
10326
      return 0;
10327
    }
10328
 
10329
    public _Fields fieldForId(int fieldId) {
10330
      return _Fields.findByThriftId(fieldId);
10331
    }
10332
 
10333
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10334
      org.apache.thrift.protocol.TField field;
10335
      iprot.readStructBegin();
10336
      while (true)
10337
      {
10338
        field = iprot.readFieldBegin();
10339
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10340
          break;
10341
        }
10342
        switch (field.id) {
10343
          case 0: // SUCCESS
10344
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10345
              {
5361 mandeep.dh 10346
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
10347
                this.success = new ArrayList<Long>(_list4.size);
10348
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
5110 mandeep.dh 10349
                {
5361 mandeep.dh 10350
                  long _elem6; // required
10351
                  _elem6 = iprot.readI64();
10352
                  this.success.add(_elem6);
5110 mandeep.dh 10353
                }
10354
                iprot.readListEnd();
10355
              }
10356
            } else { 
10357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10358
            }
10359
            break;
10360
          default:
10361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10362
        }
10363
        iprot.readFieldEnd();
10364
      }
10365
      iprot.readStructEnd();
10366
      validate();
10367
    }
10368
 
10369
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10370
      oprot.writeStructBegin(STRUCT_DESC);
10371
 
10372
      if (this.isSetSuccess()) {
10373
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10374
        {
10375
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
5361 mandeep.dh 10376
          for (long _iter7 : this.success)
5110 mandeep.dh 10377
          {
5361 mandeep.dh 10378
            oprot.writeI64(_iter7);
5110 mandeep.dh 10379
          }
10380
          oprot.writeListEnd();
10381
        }
10382
        oprot.writeFieldEnd();
10383
      }
10384
      oprot.writeFieldStop();
10385
      oprot.writeStructEnd();
10386
    }
10387
 
10388
    @Override
10389
    public String toString() {
10390
      StringBuilder sb = new StringBuilder("getItemIds_result(");
10391
      boolean first = true;
10392
 
10393
      sb.append("success:");
10394
      if (this.success == null) {
10395
        sb.append("null");
10396
      } else {
10397
        sb.append(this.success);
10398
      }
10399
      first = false;
10400
      sb.append(")");
10401
      return sb.toString();
10402
    }
10403
 
10404
    public void validate() throws org.apache.thrift.TException {
10405
      // check for required fields
10406
    }
10407
 
10408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10409
      try {
10410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10411
      } catch (org.apache.thrift.TException te) {
10412
        throw new java.io.IOException(te);
10413
      }
10414
    }
10415
 
10416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10417
      try {
10418
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10419
      } catch (org.apache.thrift.TException te) {
10420
        throw new java.io.IOException(te);
10421
      }
10422
    }
10423
 
10424
  }
10425
 
5185 mandeep.dh 10426
  public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable   {
10427
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
10428
 
10429
    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);
10430
 
10431
    private ScanType lastScanType; // required
10432
 
10433
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10434
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10435
      /**
10436
       * 
10437
       * @see ScanType
10438
       */
10439
      LAST_SCAN_TYPE((short)1, "lastScanType");
10440
 
10441
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10442
 
10443
      static {
10444
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10445
          byName.put(field.getFieldName(), field);
10446
        }
10447
      }
10448
 
10449
      /**
10450
       * Find the _Fields constant that matches fieldId, or null if its not found.
10451
       */
10452
      public static _Fields findByThriftId(int fieldId) {
10453
        switch(fieldId) {
10454
          case 1: // LAST_SCAN_TYPE
10455
            return LAST_SCAN_TYPE;
10456
          default:
10457
            return null;
10458
        }
10459
      }
10460
 
10461
      /**
10462
       * Find the _Fields constant that matches fieldId, throwing an exception
10463
       * if it is not found.
10464
       */
10465
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10466
        _Fields fields = findByThriftId(fieldId);
10467
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10468
        return fields;
10469
      }
10470
 
10471
      /**
10472
       * Find the _Fields constant that matches name, or null if its not found.
10473
       */
10474
      public static _Fields findByName(String name) {
10475
        return byName.get(name);
10476
      }
10477
 
10478
      private final short _thriftId;
10479
      private final String _fieldName;
10480
 
10481
      _Fields(short thriftId, String fieldName) {
10482
        _thriftId = thriftId;
10483
        _fieldName = fieldName;
10484
      }
10485
 
10486
      public short getThriftFieldId() {
10487
        return _thriftId;
10488
      }
10489
 
10490
      public String getFieldName() {
10491
        return _fieldName;
10492
      }
10493
    }
10494
 
10495
    // isset id assignments
10496
 
10497
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10498
    static {
10499
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10500
      tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10501
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
10502
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10503
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
10504
    }
10505
 
10506
    public getInventoryItemsFromLastScanType_args() {
10507
    }
10508
 
10509
    public getInventoryItemsFromLastScanType_args(
10510
      ScanType lastScanType)
10511
    {
10512
      this();
10513
      this.lastScanType = lastScanType;
10514
    }
10515
 
10516
    /**
10517
     * Performs a deep copy on <i>other</i>.
10518
     */
10519
    public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
10520
      if (other.isSetLastScanType()) {
10521
        this.lastScanType = other.lastScanType;
10522
      }
10523
    }
10524
 
10525
    public getInventoryItemsFromLastScanType_args deepCopy() {
10526
      return new getInventoryItemsFromLastScanType_args(this);
10527
    }
10528
 
10529
    @Override
10530
    public void clear() {
10531
      this.lastScanType = null;
10532
    }
10533
 
10534
    /**
10535
     * 
10536
     * @see ScanType
10537
     */
10538
    public ScanType getLastScanType() {
10539
      return this.lastScanType;
10540
    }
10541
 
10542
    /**
10543
     * 
10544
     * @see ScanType
10545
     */
10546
    public void setLastScanType(ScanType lastScanType) {
10547
      this.lastScanType = lastScanType;
10548
    }
10549
 
10550
    public void unsetLastScanType() {
10551
      this.lastScanType = null;
10552
    }
10553
 
10554
    /** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
10555
    public boolean isSetLastScanType() {
10556
      return this.lastScanType != null;
10557
    }
10558
 
10559
    public void setLastScanTypeIsSet(boolean value) {
10560
      if (!value) {
10561
        this.lastScanType = null;
10562
      }
10563
    }
10564
 
10565
    public void setFieldValue(_Fields field, Object value) {
10566
      switch (field) {
10567
      case LAST_SCAN_TYPE:
10568
        if (value == null) {
10569
          unsetLastScanType();
10570
        } else {
10571
          setLastScanType((ScanType)value);
10572
        }
10573
        break;
10574
 
10575
      }
10576
    }
10577
 
10578
    public Object getFieldValue(_Fields field) {
10579
      switch (field) {
10580
      case LAST_SCAN_TYPE:
10581
        return getLastScanType();
10582
 
10583
      }
10584
      throw new IllegalStateException();
10585
    }
10586
 
10587
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10588
    public boolean isSet(_Fields field) {
10589
      if (field == null) {
10590
        throw new IllegalArgumentException();
10591
      }
10592
 
10593
      switch (field) {
10594
      case LAST_SCAN_TYPE:
10595
        return isSetLastScanType();
10596
      }
10597
      throw new IllegalStateException();
10598
    }
10599
 
10600
    @Override
10601
    public boolean equals(Object that) {
10602
      if (that == null)
10603
        return false;
10604
      if (that instanceof getInventoryItemsFromLastScanType_args)
10605
        return this.equals((getInventoryItemsFromLastScanType_args)that);
10606
      return false;
10607
    }
10608
 
10609
    public boolean equals(getInventoryItemsFromLastScanType_args that) {
10610
      if (that == null)
10611
        return false;
10612
 
10613
      boolean this_present_lastScanType = true && this.isSetLastScanType();
10614
      boolean that_present_lastScanType = true && that.isSetLastScanType();
10615
      if (this_present_lastScanType || that_present_lastScanType) {
10616
        if (!(this_present_lastScanType && that_present_lastScanType))
10617
          return false;
10618
        if (!this.lastScanType.equals(that.lastScanType))
10619
          return false;
10620
      }
10621
 
10622
      return true;
10623
    }
10624
 
10625
    @Override
10626
    public int hashCode() {
10627
      return 0;
10628
    }
10629
 
10630
    public int compareTo(getInventoryItemsFromLastScanType_args other) {
10631
      if (!getClass().equals(other.getClass())) {
10632
        return getClass().getName().compareTo(other.getClass().getName());
10633
      }
10634
 
10635
      int lastComparison = 0;
10636
      getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
10637
 
10638
      lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
10639
      if (lastComparison != 0) {
10640
        return lastComparison;
10641
      }
10642
      if (isSetLastScanType()) {
10643
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
10644
        if (lastComparison != 0) {
10645
          return lastComparison;
10646
        }
10647
      }
10648
      return 0;
10649
    }
10650
 
10651
    public _Fields fieldForId(int fieldId) {
10652
      return _Fields.findByThriftId(fieldId);
10653
    }
10654
 
10655
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10656
      org.apache.thrift.protocol.TField field;
10657
      iprot.readStructBegin();
10658
      while (true)
10659
      {
10660
        field = iprot.readFieldBegin();
10661
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10662
          break;
10663
        }
10664
        switch (field.id) {
10665
          case 1: // LAST_SCAN_TYPE
10666
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10667
              this.lastScanType = ScanType.findByValue(iprot.readI32());
10668
            } else { 
10669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10670
            }
10671
            break;
10672
          default:
10673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10674
        }
10675
        iprot.readFieldEnd();
10676
      }
10677
      iprot.readStructEnd();
10678
      validate();
10679
    }
10680
 
10681
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10682
      validate();
10683
 
10684
      oprot.writeStructBegin(STRUCT_DESC);
10685
      if (this.lastScanType != null) {
10686
        oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
10687
        oprot.writeI32(this.lastScanType.getValue());
10688
        oprot.writeFieldEnd();
10689
      }
10690
      oprot.writeFieldStop();
10691
      oprot.writeStructEnd();
10692
    }
10693
 
10694
    @Override
10695
    public String toString() {
10696
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
10697
      boolean first = true;
10698
 
10699
      sb.append("lastScanType:");
10700
      if (this.lastScanType == null) {
10701
        sb.append("null");
10702
      } else {
10703
        sb.append(this.lastScanType);
10704
      }
10705
      first = false;
10706
      sb.append(")");
10707
      return sb.toString();
10708
    }
10709
 
10710
    public void validate() throws org.apache.thrift.TException {
10711
      // check for required fields
10712
    }
10713
 
10714
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10715
      try {
10716
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10717
      } catch (org.apache.thrift.TException te) {
10718
        throw new java.io.IOException(te);
10719
      }
10720
    }
10721
 
10722
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10723
      try {
10724
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10725
      } catch (org.apache.thrift.TException te) {
10726
        throw new java.io.IOException(te);
10727
      }
10728
    }
10729
 
10730
  }
10731
 
10732
  public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable   {
10733
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
10734
 
10735
    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);
10736
    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);
10737
 
10738
    private List<InventoryItem> success; // required
10739
    private WarehouseServiceException wex; // required
10740
 
10741
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10742
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10743
      SUCCESS((short)0, "success"),
10744
      WEX((short)1, "wex");
10745
 
10746
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10747
 
10748
      static {
10749
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10750
          byName.put(field.getFieldName(), field);
10751
        }
10752
      }
10753
 
10754
      /**
10755
       * Find the _Fields constant that matches fieldId, or null if its not found.
10756
       */
10757
      public static _Fields findByThriftId(int fieldId) {
10758
        switch(fieldId) {
10759
          case 0: // SUCCESS
10760
            return SUCCESS;
10761
          case 1: // WEX
10762
            return WEX;
10763
          default:
10764
            return null;
10765
        }
10766
      }
10767
 
10768
      /**
10769
       * Find the _Fields constant that matches fieldId, throwing an exception
10770
       * if it is not found.
10771
       */
10772
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10773
        _Fields fields = findByThriftId(fieldId);
10774
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10775
        return fields;
10776
      }
10777
 
10778
      /**
10779
       * Find the _Fields constant that matches name, or null if its not found.
10780
       */
10781
      public static _Fields findByName(String name) {
10782
        return byName.get(name);
10783
      }
10784
 
10785
      private final short _thriftId;
10786
      private final String _fieldName;
10787
 
10788
      _Fields(short thriftId, String fieldName) {
10789
        _thriftId = thriftId;
10790
        _fieldName = fieldName;
10791
      }
10792
 
10793
      public short getThriftFieldId() {
10794
        return _thriftId;
10795
      }
10796
 
10797
      public String getFieldName() {
10798
        return _fieldName;
10799
      }
10800
    }
10801
 
10802
    // isset id assignments
10803
 
10804
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10805
    static {
10806
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10807
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10808
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10809
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
10810
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10811
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10812
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10813
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
10814
    }
10815
 
10816
    public getInventoryItemsFromLastScanType_result() {
10817
    }
10818
 
10819
    public getInventoryItemsFromLastScanType_result(
10820
      List<InventoryItem> success,
10821
      WarehouseServiceException wex)
10822
    {
10823
      this();
10824
      this.success = success;
10825
      this.wex = wex;
10826
    }
10827
 
10828
    /**
10829
     * Performs a deep copy on <i>other</i>.
10830
     */
10831
    public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
10832
      if (other.isSetSuccess()) {
10833
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
10834
        for (InventoryItem other_element : other.success) {
10835
          __this__success.add(new InventoryItem(other_element));
10836
        }
10837
        this.success = __this__success;
10838
      }
10839
      if (other.isSetWex()) {
10840
        this.wex = new WarehouseServiceException(other.wex);
10841
      }
10842
    }
10843
 
10844
    public getInventoryItemsFromLastScanType_result deepCopy() {
10845
      return new getInventoryItemsFromLastScanType_result(this);
10846
    }
10847
 
10848
    @Override
10849
    public void clear() {
10850
      this.success = null;
10851
      this.wex = null;
10852
    }
10853
 
10854
    public int getSuccessSize() {
10855
      return (this.success == null) ? 0 : this.success.size();
10856
    }
10857
 
10858
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
10859
      return (this.success == null) ? null : this.success.iterator();
10860
    }
10861
 
10862
    public void addToSuccess(InventoryItem elem) {
10863
      if (this.success == null) {
10864
        this.success = new ArrayList<InventoryItem>();
10865
      }
10866
      this.success.add(elem);
10867
    }
10868
 
10869
    public List<InventoryItem> getSuccess() {
10870
      return this.success;
10871
    }
10872
 
10873
    public void setSuccess(List<InventoryItem> success) {
10874
      this.success = success;
10875
    }
10876
 
10877
    public void unsetSuccess() {
10878
      this.success = null;
10879
    }
10880
 
10881
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10882
    public boolean isSetSuccess() {
10883
      return this.success != null;
10884
    }
10885
 
10886
    public void setSuccessIsSet(boolean value) {
10887
      if (!value) {
10888
        this.success = null;
10889
      }
10890
    }
10891
 
10892
    public WarehouseServiceException getWex() {
10893
      return this.wex;
10894
    }
10895
 
10896
    public void setWex(WarehouseServiceException wex) {
10897
      this.wex = wex;
10898
    }
10899
 
10900
    public void unsetWex() {
10901
      this.wex = null;
10902
    }
10903
 
10904
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
10905
    public boolean isSetWex() {
10906
      return this.wex != null;
10907
    }
10908
 
10909
    public void setWexIsSet(boolean value) {
10910
      if (!value) {
10911
        this.wex = null;
10912
      }
10913
    }
10914
 
10915
    public void setFieldValue(_Fields field, Object value) {
10916
      switch (field) {
10917
      case SUCCESS:
10918
        if (value == null) {
10919
          unsetSuccess();
10920
        } else {
10921
          setSuccess((List<InventoryItem>)value);
10922
        }
10923
        break;
10924
 
10925
      case WEX:
10926
        if (value == null) {
10927
          unsetWex();
10928
        } else {
10929
          setWex((WarehouseServiceException)value);
10930
        }
10931
        break;
10932
 
10933
      }
10934
    }
10935
 
10936
    public Object getFieldValue(_Fields field) {
10937
      switch (field) {
10938
      case SUCCESS:
10939
        return getSuccess();
10940
 
10941
      case WEX:
10942
        return getWex();
10943
 
10944
      }
10945
      throw new IllegalStateException();
10946
    }
10947
 
10948
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10949
    public boolean isSet(_Fields field) {
10950
      if (field == null) {
10951
        throw new IllegalArgumentException();
10952
      }
10953
 
10954
      switch (field) {
10955
      case SUCCESS:
10956
        return isSetSuccess();
10957
      case WEX:
10958
        return isSetWex();
10959
      }
10960
      throw new IllegalStateException();
10961
    }
10962
 
10963
    @Override
10964
    public boolean equals(Object that) {
10965
      if (that == null)
10966
        return false;
10967
      if (that instanceof getInventoryItemsFromLastScanType_result)
10968
        return this.equals((getInventoryItemsFromLastScanType_result)that);
10969
      return false;
10970
    }
10971
 
10972
    public boolean equals(getInventoryItemsFromLastScanType_result that) {
10973
      if (that == null)
10974
        return false;
10975
 
10976
      boolean this_present_success = true && this.isSetSuccess();
10977
      boolean that_present_success = true && that.isSetSuccess();
10978
      if (this_present_success || that_present_success) {
10979
        if (!(this_present_success && that_present_success))
10980
          return false;
10981
        if (!this.success.equals(that.success))
10982
          return false;
10983
      }
10984
 
10985
      boolean this_present_wex = true && this.isSetWex();
10986
      boolean that_present_wex = true && that.isSetWex();
10987
      if (this_present_wex || that_present_wex) {
10988
        if (!(this_present_wex && that_present_wex))
10989
          return false;
10990
        if (!this.wex.equals(that.wex))
10991
          return false;
10992
      }
10993
 
10994
      return true;
10995
    }
10996
 
10997
    @Override
10998
    public int hashCode() {
10999
      return 0;
11000
    }
11001
 
11002
    public int compareTo(getInventoryItemsFromLastScanType_result other) {
11003
      if (!getClass().equals(other.getClass())) {
11004
        return getClass().getName().compareTo(other.getClass().getName());
11005
      }
11006
 
11007
      int lastComparison = 0;
11008
      getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
11009
 
11010
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11011
      if (lastComparison != 0) {
11012
        return lastComparison;
11013
      }
11014
      if (isSetSuccess()) {
11015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11016
        if (lastComparison != 0) {
11017
          return lastComparison;
11018
        }
11019
      }
11020
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
11021
      if (lastComparison != 0) {
11022
        return lastComparison;
11023
      }
11024
      if (isSetWex()) {
11025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
11026
        if (lastComparison != 0) {
11027
          return lastComparison;
11028
        }
11029
      }
11030
      return 0;
11031
    }
11032
 
11033
    public _Fields fieldForId(int fieldId) {
11034
      return _Fields.findByThriftId(fieldId);
11035
    }
11036
 
11037
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11038
      org.apache.thrift.protocol.TField field;
11039
      iprot.readStructBegin();
11040
      while (true)
11041
      {
11042
        field = iprot.readFieldBegin();
11043
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11044
          break;
11045
        }
11046
        switch (field.id) {
11047
          case 0: // SUCCESS
11048
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11049
              {
5361 mandeep.dh 11050
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
11051
                this.success = new ArrayList<InventoryItem>(_list8.size);
11052
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
5185 mandeep.dh 11053
                {
5361 mandeep.dh 11054
                  InventoryItem _elem10; // required
11055
                  _elem10 = new InventoryItem();
11056
                  _elem10.read(iprot);
11057
                  this.success.add(_elem10);
5185 mandeep.dh 11058
                }
11059
                iprot.readListEnd();
11060
              }
11061
            } else { 
11062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11063
            }
11064
            break;
11065
          case 1: // WEX
11066
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11067
              this.wex = new WarehouseServiceException();
11068
              this.wex.read(iprot);
11069
            } else { 
11070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11071
            }
11072
            break;
11073
          default:
11074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11075
        }
11076
        iprot.readFieldEnd();
11077
      }
11078
      iprot.readStructEnd();
11079
      validate();
11080
    }
11081
 
11082
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11083
      oprot.writeStructBegin(STRUCT_DESC);
11084
 
11085
      if (this.isSetSuccess()) {
11086
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11087
        {
11088
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5361 mandeep.dh 11089
          for (InventoryItem _iter11 : this.success)
5185 mandeep.dh 11090
          {
5361 mandeep.dh 11091
            _iter11.write(oprot);
5185 mandeep.dh 11092
          }
11093
          oprot.writeListEnd();
11094
        }
11095
        oprot.writeFieldEnd();
11096
      } else if (this.isSetWex()) {
11097
        oprot.writeFieldBegin(WEX_FIELD_DESC);
11098
        this.wex.write(oprot);
11099
        oprot.writeFieldEnd();
11100
      }
11101
      oprot.writeFieldStop();
11102
      oprot.writeStructEnd();
11103
    }
11104
 
11105
    @Override
11106
    public String toString() {
11107
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
11108
      boolean first = true;
11109
 
11110
      sb.append("success:");
11111
      if (this.success == null) {
11112
        sb.append("null");
11113
      } else {
11114
        sb.append(this.success);
11115
      }
11116
      first = false;
11117
      if (!first) sb.append(", ");
11118
      sb.append("wex:");
11119
      if (this.wex == null) {
11120
        sb.append("null");
11121
      } else {
11122
        sb.append(this.wex);
11123
      }
11124
      first = false;
11125
      sb.append(")");
11126
      return sb.toString();
11127
    }
11128
 
11129
    public void validate() throws org.apache.thrift.TException {
11130
      // check for required fields
11131
    }
11132
 
11133
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11134
      try {
11135
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11136
      } catch (org.apache.thrift.TException te) {
11137
        throw new java.io.IOException(te);
11138
      }
11139
    }
11140
 
11141
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11142
      try {
11143
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11144
      } catch (org.apache.thrift.TException te) {
11145
        throw new java.io.IOException(te);
11146
      }
11147
    }
11148
 
11149
  }
11150
 
11151
  public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable   {
11152
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
11153
 
11154
    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);
11155
 
11156
    private long inventoryItemId; // required
11157
 
11158
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11159
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11160
      INVENTORY_ITEM_ID((short)1, "inventoryItemId");
11161
 
11162
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11163
 
11164
      static {
11165
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11166
          byName.put(field.getFieldName(), field);
11167
        }
11168
      }
11169
 
11170
      /**
11171
       * Find the _Fields constant that matches fieldId, or null if its not found.
11172
       */
11173
      public static _Fields findByThriftId(int fieldId) {
11174
        switch(fieldId) {
11175
          case 1: // INVENTORY_ITEM_ID
11176
            return INVENTORY_ITEM_ID;
11177
          default:
11178
            return null;
11179
        }
11180
      }
11181
 
11182
      /**
11183
       * Find the _Fields constant that matches fieldId, throwing an exception
11184
       * if it is not found.
11185
       */
11186
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11187
        _Fields fields = findByThriftId(fieldId);
11188
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11189
        return fields;
11190
      }
11191
 
11192
      /**
11193
       * Find the _Fields constant that matches name, or null if its not found.
11194
       */
11195
      public static _Fields findByName(String name) {
11196
        return byName.get(name);
11197
      }
11198
 
11199
      private final short _thriftId;
11200
      private final String _fieldName;
11201
 
11202
      _Fields(short thriftId, String fieldName) {
11203
        _thriftId = thriftId;
11204
        _fieldName = fieldName;
11205
      }
11206
 
11207
      public short getThriftFieldId() {
11208
        return _thriftId;
11209
      }
11210
 
11211
      public String getFieldName() {
11212
        return _fieldName;
11213
      }
11214
    }
11215
 
11216
    // isset id assignments
11217
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
11218
    private BitSet __isset_bit_vector = new BitSet(1);
11219
 
11220
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11221
    static {
11222
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11223
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11224
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11225
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11226
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
11227
    }
11228
 
11229
    public getInventoryItemFromId_args() {
11230
    }
11231
 
11232
    public getInventoryItemFromId_args(
11233
      long inventoryItemId)
11234
    {
11235
      this();
11236
      this.inventoryItemId = inventoryItemId;
11237
      setInventoryItemIdIsSet(true);
11238
    }
11239
 
11240
    /**
11241
     * Performs a deep copy on <i>other</i>.
11242
     */
11243
    public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
11244
      __isset_bit_vector.clear();
11245
      __isset_bit_vector.or(other.__isset_bit_vector);
11246
      this.inventoryItemId = other.inventoryItemId;
11247
    }
11248
 
11249
    public getInventoryItemFromId_args deepCopy() {
11250
      return new getInventoryItemFromId_args(this);
11251
    }
11252
 
11253
    @Override
11254
    public void clear() {
11255
      setInventoryItemIdIsSet(false);
11256
      this.inventoryItemId = 0;
11257
    }
11258
 
11259
    public long getInventoryItemId() {
11260
      return this.inventoryItemId;
11261
    }
11262
 
11263
    public void setInventoryItemId(long inventoryItemId) {
11264
      this.inventoryItemId = inventoryItemId;
11265
      setInventoryItemIdIsSet(true);
11266
    }
11267
 
11268
    public void unsetInventoryItemId() {
11269
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
11270
    }
11271
 
11272
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
11273
    public boolean isSetInventoryItemId() {
11274
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
11275
    }
11276
 
11277
    public void setInventoryItemIdIsSet(boolean value) {
11278
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
11279
    }
11280
 
11281
    public void setFieldValue(_Fields field, Object value) {
11282
      switch (field) {
11283
      case INVENTORY_ITEM_ID:
11284
        if (value == null) {
11285
          unsetInventoryItemId();
11286
        } else {
11287
          setInventoryItemId((Long)value);
11288
        }
11289
        break;
11290
 
11291
      }
11292
    }
11293
 
11294
    public Object getFieldValue(_Fields field) {
11295
      switch (field) {
11296
      case INVENTORY_ITEM_ID:
11297
        return Long.valueOf(getInventoryItemId());
11298
 
11299
      }
11300
      throw new IllegalStateException();
11301
    }
11302
 
11303
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11304
    public boolean isSet(_Fields field) {
11305
      if (field == null) {
11306
        throw new IllegalArgumentException();
11307
      }
11308
 
11309
      switch (field) {
11310
      case INVENTORY_ITEM_ID:
11311
        return isSetInventoryItemId();
11312
      }
11313
      throw new IllegalStateException();
11314
    }
11315
 
11316
    @Override
11317
    public boolean equals(Object that) {
11318
      if (that == null)
11319
        return false;
11320
      if (that instanceof getInventoryItemFromId_args)
11321
        return this.equals((getInventoryItemFromId_args)that);
11322
      return false;
11323
    }
11324
 
11325
    public boolean equals(getInventoryItemFromId_args that) {
11326
      if (that == null)
11327
        return false;
11328
 
11329
      boolean this_present_inventoryItemId = true;
11330
      boolean that_present_inventoryItemId = true;
11331
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
11332
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
11333
          return false;
11334
        if (this.inventoryItemId != that.inventoryItemId)
11335
          return false;
11336
      }
11337
 
11338
      return true;
11339
    }
11340
 
11341
    @Override
11342
    public int hashCode() {
11343
      return 0;
11344
    }
11345
 
11346
    public int compareTo(getInventoryItemFromId_args other) {
11347
      if (!getClass().equals(other.getClass())) {
11348
        return getClass().getName().compareTo(other.getClass().getName());
11349
      }
11350
 
11351
      int lastComparison = 0;
11352
      getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
11353
 
11354
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
11355
      if (lastComparison != 0) {
11356
        return lastComparison;
11357
      }
11358
      if (isSetInventoryItemId()) {
11359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
11360
        if (lastComparison != 0) {
11361
          return lastComparison;
11362
        }
11363
      }
11364
      return 0;
11365
    }
11366
 
11367
    public _Fields fieldForId(int fieldId) {
11368
      return _Fields.findByThriftId(fieldId);
11369
    }
11370
 
11371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11372
      org.apache.thrift.protocol.TField field;
11373
      iprot.readStructBegin();
11374
      while (true)
11375
      {
11376
        field = iprot.readFieldBegin();
11377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11378
          break;
11379
        }
11380
        switch (field.id) {
11381
          case 1: // INVENTORY_ITEM_ID
11382
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11383
              this.inventoryItemId = iprot.readI64();
11384
              setInventoryItemIdIsSet(true);
11385
            } else { 
11386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11387
            }
11388
            break;
11389
          default:
11390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11391
        }
11392
        iprot.readFieldEnd();
11393
      }
11394
      iprot.readStructEnd();
11395
      validate();
11396
    }
11397
 
11398
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11399
      validate();
11400
 
11401
      oprot.writeStructBegin(STRUCT_DESC);
11402
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
11403
      oprot.writeI64(this.inventoryItemId);
11404
      oprot.writeFieldEnd();
11405
      oprot.writeFieldStop();
11406
      oprot.writeStructEnd();
11407
    }
11408
 
11409
    @Override
11410
    public String toString() {
11411
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
11412
      boolean first = true;
11413
 
11414
      sb.append("inventoryItemId:");
11415
      sb.append(this.inventoryItemId);
11416
      first = false;
11417
      sb.append(")");
11418
      return sb.toString();
11419
    }
11420
 
11421
    public void validate() throws org.apache.thrift.TException {
11422
      // check for required fields
11423
    }
11424
 
11425
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11426
      try {
11427
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11428
      } catch (org.apache.thrift.TException te) {
11429
        throw new java.io.IOException(te);
11430
      }
11431
    }
11432
 
11433
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11434
      try {
5372 mandeep.dh 11435
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11436
        __isset_bit_vector = new BitSet(1);
5185 mandeep.dh 11437
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11438
      } catch (org.apache.thrift.TException te) {
11439
        throw new java.io.IOException(te);
11440
      }
11441
    }
11442
 
11443
  }
11444
 
11445
  public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable   {
11446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
11447
 
11448
    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);
11449
    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);
11450
 
11451
    private InventoryItem success; // required
11452
    private WarehouseServiceException wex; // required
11453
 
11454
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11455
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11456
      SUCCESS((short)0, "success"),
11457
      WEX((short)1, "wex");
11458
 
11459
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11460
 
11461
      static {
11462
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11463
          byName.put(field.getFieldName(), field);
11464
        }
11465
      }
11466
 
11467
      /**
11468
       * Find the _Fields constant that matches fieldId, or null if its not found.
11469
       */
11470
      public static _Fields findByThriftId(int fieldId) {
11471
        switch(fieldId) {
11472
          case 0: // SUCCESS
11473
            return SUCCESS;
11474
          case 1: // WEX
11475
            return WEX;
11476
          default:
11477
            return null;
11478
        }
11479
      }
11480
 
11481
      /**
11482
       * Find the _Fields constant that matches fieldId, throwing an exception
11483
       * if it is not found.
11484
       */
11485
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11486
        _Fields fields = findByThriftId(fieldId);
11487
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11488
        return fields;
11489
      }
11490
 
11491
      /**
11492
       * Find the _Fields constant that matches name, or null if its not found.
11493
       */
11494
      public static _Fields findByName(String name) {
11495
        return byName.get(name);
11496
      }
11497
 
11498
      private final short _thriftId;
11499
      private final String _fieldName;
11500
 
11501
      _Fields(short thriftId, String fieldName) {
11502
        _thriftId = thriftId;
11503
        _fieldName = fieldName;
11504
      }
11505
 
11506
      public short getThriftFieldId() {
11507
        return _thriftId;
11508
      }
11509
 
11510
      public String getFieldName() {
11511
        return _fieldName;
11512
      }
11513
    }
11514
 
11515
    // isset id assignments
11516
 
11517
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11518
    static {
11519
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11520
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11521
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
11522
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11523
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11524
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11525
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
11526
    }
11527
 
11528
    public getInventoryItemFromId_result() {
11529
    }
11530
 
11531
    public getInventoryItemFromId_result(
11532
      InventoryItem success,
11533
      WarehouseServiceException wex)
11534
    {
11535
      this();
11536
      this.success = success;
11537
      this.wex = wex;
11538
    }
11539
 
11540
    /**
11541
     * Performs a deep copy on <i>other</i>.
11542
     */
11543
    public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
11544
      if (other.isSetSuccess()) {
11545
        this.success = new InventoryItem(other.success);
11546
      }
11547
      if (other.isSetWex()) {
11548
        this.wex = new WarehouseServiceException(other.wex);
11549
      }
11550
    }
11551
 
11552
    public getInventoryItemFromId_result deepCopy() {
11553
      return new getInventoryItemFromId_result(this);
11554
    }
11555
 
11556
    @Override
11557
    public void clear() {
11558
      this.success = null;
11559
      this.wex = null;
11560
    }
11561
 
11562
    public InventoryItem getSuccess() {
11563
      return this.success;
11564
    }
11565
 
11566
    public void setSuccess(InventoryItem success) {
11567
      this.success = success;
11568
    }
11569
 
11570
    public void unsetSuccess() {
11571
      this.success = null;
11572
    }
11573
 
11574
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11575
    public boolean isSetSuccess() {
11576
      return this.success != null;
11577
    }
11578
 
11579
    public void setSuccessIsSet(boolean value) {
11580
      if (!value) {
11581
        this.success = null;
11582
      }
11583
    }
11584
 
11585
    public WarehouseServiceException getWex() {
11586
      return this.wex;
11587
    }
11588
 
11589
    public void setWex(WarehouseServiceException wex) {
11590
      this.wex = wex;
11591
    }
11592
 
11593
    public void unsetWex() {
11594
      this.wex = null;
11595
    }
11596
 
11597
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
11598
    public boolean isSetWex() {
11599
      return this.wex != null;
11600
    }
11601
 
11602
    public void setWexIsSet(boolean value) {
11603
      if (!value) {
11604
        this.wex = null;
11605
      }
11606
    }
11607
 
11608
    public void setFieldValue(_Fields field, Object value) {
11609
      switch (field) {
11610
      case SUCCESS:
11611
        if (value == null) {
11612
          unsetSuccess();
11613
        } else {
11614
          setSuccess((InventoryItem)value);
11615
        }
11616
        break;
11617
 
11618
      case WEX:
11619
        if (value == null) {
11620
          unsetWex();
11621
        } else {
11622
          setWex((WarehouseServiceException)value);
11623
        }
11624
        break;
11625
 
11626
      }
11627
    }
11628
 
11629
    public Object getFieldValue(_Fields field) {
11630
      switch (field) {
11631
      case SUCCESS:
11632
        return getSuccess();
11633
 
11634
      case WEX:
11635
        return getWex();
11636
 
11637
      }
11638
      throw new IllegalStateException();
11639
    }
11640
 
11641
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11642
    public boolean isSet(_Fields field) {
11643
      if (field == null) {
11644
        throw new IllegalArgumentException();
11645
      }
11646
 
11647
      switch (field) {
11648
      case SUCCESS:
11649
        return isSetSuccess();
11650
      case WEX:
11651
        return isSetWex();
11652
      }
11653
      throw new IllegalStateException();
11654
    }
11655
 
11656
    @Override
11657
    public boolean equals(Object that) {
11658
      if (that == null)
11659
        return false;
11660
      if (that instanceof getInventoryItemFromId_result)
11661
        return this.equals((getInventoryItemFromId_result)that);
11662
      return false;
11663
    }
11664
 
11665
    public boolean equals(getInventoryItemFromId_result that) {
11666
      if (that == null)
11667
        return false;
11668
 
11669
      boolean this_present_success = true && this.isSetSuccess();
11670
      boolean that_present_success = true && that.isSetSuccess();
11671
      if (this_present_success || that_present_success) {
11672
        if (!(this_present_success && that_present_success))
11673
          return false;
11674
        if (!this.success.equals(that.success))
11675
          return false;
11676
      }
11677
 
11678
      boolean this_present_wex = true && this.isSetWex();
11679
      boolean that_present_wex = true && that.isSetWex();
11680
      if (this_present_wex || that_present_wex) {
11681
        if (!(this_present_wex && that_present_wex))
11682
          return false;
11683
        if (!this.wex.equals(that.wex))
11684
          return false;
11685
      }
11686
 
11687
      return true;
11688
    }
11689
 
11690
    @Override
11691
    public int hashCode() {
11692
      return 0;
11693
    }
11694
 
11695
    public int compareTo(getInventoryItemFromId_result other) {
11696
      if (!getClass().equals(other.getClass())) {
11697
        return getClass().getName().compareTo(other.getClass().getName());
11698
      }
11699
 
11700
      int lastComparison = 0;
11701
      getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
11702
 
11703
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11704
      if (lastComparison != 0) {
11705
        return lastComparison;
11706
      }
11707
      if (isSetSuccess()) {
11708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11709
        if (lastComparison != 0) {
11710
          return lastComparison;
11711
        }
11712
      }
11713
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
11714
      if (lastComparison != 0) {
11715
        return lastComparison;
11716
      }
11717
      if (isSetWex()) {
11718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
11719
        if (lastComparison != 0) {
11720
          return lastComparison;
11721
        }
11722
      }
11723
      return 0;
11724
    }
11725
 
11726
    public _Fields fieldForId(int fieldId) {
11727
      return _Fields.findByThriftId(fieldId);
11728
    }
11729
 
11730
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11731
      org.apache.thrift.protocol.TField field;
11732
      iprot.readStructBegin();
11733
      while (true)
11734
      {
11735
        field = iprot.readFieldBegin();
11736
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11737
          break;
11738
        }
11739
        switch (field.id) {
11740
          case 0: // SUCCESS
11741
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11742
              this.success = new InventoryItem();
11743
              this.success.read(iprot);
11744
            } else { 
11745
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11746
            }
11747
            break;
11748
          case 1: // WEX
11749
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11750
              this.wex = new WarehouseServiceException();
11751
              this.wex.read(iprot);
11752
            } else { 
11753
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11754
            }
11755
            break;
11756
          default:
11757
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11758
        }
11759
        iprot.readFieldEnd();
11760
      }
11761
      iprot.readStructEnd();
11762
      validate();
11763
    }
11764
 
11765
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11766
      oprot.writeStructBegin(STRUCT_DESC);
11767
 
11768
      if (this.isSetSuccess()) {
11769
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11770
        this.success.write(oprot);
11771
        oprot.writeFieldEnd();
11772
      } else if (this.isSetWex()) {
11773
        oprot.writeFieldBegin(WEX_FIELD_DESC);
11774
        this.wex.write(oprot);
11775
        oprot.writeFieldEnd();
11776
      }
11777
      oprot.writeFieldStop();
11778
      oprot.writeStructEnd();
11779
    }
11780
 
11781
    @Override
11782
    public String toString() {
11783
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
11784
      boolean first = true;
11785
 
11786
      sb.append("success:");
11787
      if (this.success == null) {
11788
        sb.append("null");
11789
      } else {
11790
        sb.append(this.success);
11791
      }
11792
      first = false;
11793
      if (!first) sb.append(", ");
11794
      sb.append("wex:");
11795
      if (this.wex == null) {
11796
        sb.append("null");
11797
      } else {
11798
        sb.append(this.wex);
11799
      }
11800
      first = false;
11801
      sb.append(")");
11802
      return sb.toString();
11803
    }
11804
 
11805
    public void validate() throws org.apache.thrift.TException {
11806
      // check for required fields
11807
    }
11808
 
11809
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11810
      try {
11811
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11812
      } catch (org.apache.thrift.TException te) {
11813
        throw new java.io.IOException(te);
11814
      }
11815
    }
11816
 
11817
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11818
      try {
11819
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11820
      } catch (org.apache.thrift.TException te) {
11821
        throw new java.io.IOException(te);
11822
      }
11823
    }
11824
 
11825
  }
11826
 
5372 mandeep.dh 11827
  public static class getPurchaseScans_args implements org.apache.thrift.TBase<getPurchaseScans_args, getPurchaseScans_args._Fields>, java.io.Serializable, Cloneable   {
11828
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_args");
11829
 
11830
    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);
11831
    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);
11832
 
11833
    private long startDate; // required
11834
    private long endDate; // required
11835
 
11836
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11837
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11838
      START_DATE((short)1, "startDate"),
11839
      END_DATE((short)2, "endDate");
11840
 
11841
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11842
 
11843
      static {
11844
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11845
          byName.put(field.getFieldName(), field);
11846
        }
11847
      }
11848
 
11849
      /**
11850
       * Find the _Fields constant that matches fieldId, or null if its not found.
11851
       */
11852
      public static _Fields findByThriftId(int fieldId) {
11853
        switch(fieldId) {
11854
          case 1: // START_DATE
11855
            return START_DATE;
11856
          case 2: // END_DATE
11857
            return END_DATE;
11858
          default:
11859
            return null;
11860
        }
11861
      }
11862
 
11863
      /**
11864
       * Find the _Fields constant that matches fieldId, throwing an exception
11865
       * if it is not found.
11866
       */
11867
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11868
        _Fields fields = findByThriftId(fieldId);
11869
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11870
        return fields;
11871
      }
11872
 
11873
      /**
11874
       * Find the _Fields constant that matches name, or null if its not found.
11875
       */
11876
      public static _Fields findByName(String name) {
11877
        return byName.get(name);
11878
      }
11879
 
11880
      private final short _thriftId;
11881
      private final String _fieldName;
11882
 
11883
      _Fields(short thriftId, String fieldName) {
11884
        _thriftId = thriftId;
11885
        _fieldName = fieldName;
11886
      }
11887
 
11888
      public short getThriftFieldId() {
11889
        return _thriftId;
11890
      }
11891
 
11892
      public String getFieldName() {
11893
        return _fieldName;
11894
      }
11895
    }
11896
 
11897
    // isset id assignments
11898
    private static final int __STARTDATE_ISSET_ID = 0;
11899
    private static final int __ENDDATE_ISSET_ID = 1;
11900
    private BitSet __isset_bit_vector = new BitSet(2);
11901
 
11902
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11903
    static {
11904
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11905
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11906
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11907
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11908
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11909
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11910
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_args.class, metaDataMap);
11911
    }
11912
 
11913
    public getPurchaseScans_args() {
11914
    }
11915
 
11916
    public getPurchaseScans_args(
11917
      long startDate,
11918
      long endDate)
11919
    {
11920
      this();
11921
      this.startDate = startDate;
11922
      setStartDateIsSet(true);
11923
      this.endDate = endDate;
11924
      setEndDateIsSet(true);
11925
    }
11926
 
11927
    /**
11928
     * Performs a deep copy on <i>other</i>.
11929
     */
11930
    public getPurchaseScans_args(getPurchaseScans_args other) {
11931
      __isset_bit_vector.clear();
11932
      __isset_bit_vector.or(other.__isset_bit_vector);
11933
      this.startDate = other.startDate;
11934
      this.endDate = other.endDate;
11935
    }
11936
 
11937
    public getPurchaseScans_args deepCopy() {
11938
      return new getPurchaseScans_args(this);
11939
    }
11940
 
11941
    @Override
11942
    public void clear() {
11943
      setStartDateIsSet(false);
11944
      this.startDate = 0;
11945
      setEndDateIsSet(false);
11946
      this.endDate = 0;
11947
    }
11948
 
11949
    public long getStartDate() {
11950
      return this.startDate;
11951
    }
11952
 
11953
    public void setStartDate(long startDate) {
11954
      this.startDate = startDate;
11955
      setStartDateIsSet(true);
11956
    }
11957
 
11958
    public void unsetStartDate() {
11959
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
11960
    }
11961
 
11962
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
11963
    public boolean isSetStartDate() {
11964
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
11965
    }
11966
 
11967
    public void setStartDateIsSet(boolean value) {
11968
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
11969
    }
11970
 
11971
    public long getEndDate() {
11972
      return this.endDate;
11973
    }
11974
 
11975
    public void setEndDate(long endDate) {
11976
      this.endDate = endDate;
11977
      setEndDateIsSet(true);
11978
    }
11979
 
11980
    public void unsetEndDate() {
11981
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
11982
    }
11983
 
11984
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
11985
    public boolean isSetEndDate() {
11986
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
11987
    }
11988
 
11989
    public void setEndDateIsSet(boolean value) {
11990
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
11991
    }
11992
 
11993
    public void setFieldValue(_Fields field, Object value) {
11994
      switch (field) {
11995
      case START_DATE:
11996
        if (value == null) {
11997
          unsetStartDate();
11998
        } else {
11999
          setStartDate((Long)value);
12000
        }
12001
        break;
12002
 
12003
      case END_DATE:
12004
        if (value == null) {
12005
          unsetEndDate();
12006
        } else {
12007
          setEndDate((Long)value);
12008
        }
12009
        break;
12010
 
12011
      }
12012
    }
12013
 
12014
    public Object getFieldValue(_Fields field) {
12015
      switch (field) {
12016
      case START_DATE:
12017
        return Long.valueOf(getStartDate());
12018
 
12019
      case END_DATE:
12020
        return Long.valueOf(getEndDate());
12021
 
12022
      }
12023
      throw new IllegalStateException();
12024
    }
12025
 
12026
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12027
    public boolean isSet(_Fields field) {
12028
      if (field == null) {
12029
        throw new IllegalArgumentException();
12030
      }
12031
 
12032
      switch (field) {
12033
      case START_DATE:
12034
        return isSetStartDate();
12035
      case END_DATE:
12036
        return isSetEndDate();
12037
      }
12038
      throw new IllegalStateException();
12039
    }
12040
 
12041
    @Override
12042
    public boolean equals(Object that) {
12043
      if (that == null)
12044
        return false;
12045
      if (that instanceof getPurchaseScans_args)
12046
        return this.equals((getPurchaseScans_args)that);
12047
      return false;
12048
    }
12049
 
12050
    public boolean equals(getPurchaseScans_args that) {
12051
      if (that == null)
12052
        return false;
12053
 
12054
      boolean this_present_startDate = true;
12055
      boolean that_present_startDate = true;
12056
      if (this_present_startDate || that_present_startDate) {
12057
        if (!(this_present_startDate && that_present_startDate))
12058
          return false;
12059
        if (this.startDate != that.startDate)
12060
          return false;
12061
      }
12062
 
12063
      boolean this_present_endDate = true;
12064
      boolean that_present_endDate = true;
12065
      if (this_present_endDate || that_present_endDate) {
12066
        if (!(this_present_endDate && that_present_endDate))
12067
          return false;
12068
        if (this.endDate != that.endDate)
12069
          return false;
12070
      }
12071
 
12072
      return true;
12073
    }
12074
 
12075
    @Override
12076
    public int hashCode() {
12077
      return 0;
12078
    }
12079
 
12080
    public int compareTo(getPurchaseScans_args other) {
12081
      if (!getClass().equals(other.getClass())) {
12082
        return getClass().getName().compareTo(other.getClass().getName());
12083
      }
12084
 
12085
      int lastComparison = 0;
12086
      getPurchaseScans_args typedOther = (getPurchaseScans_args)other;
12087
 
12088
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
12089
      if (lastComparison != 0) {
12090
        return lastComparison;
12091
      }
12092
      if (isSetStartDate()) {
12093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
12094
        if (lastComparison != 0) {
12095
          return lastComparison;
12096
        }
12097
      }
12098
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
12099
      if (lastComparison != 0) {
12100
        return lastComparison;
12101
      }
12102
      if (isSetEndDate()) {
12103
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
12104
        if (lastComparison != 0) {
12105
          return lastComparison;
12106
        }
12107
      }
12108
      return 0;
12109
    }
12110
 
12111
    public _Fields fieldForId(int fieldId) {
12112
      return _Fields.findByThriftId(fieldId);
12113
    }
12114
 
12115
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12116
      org.apache.thrift.protocol.TField field;
12117
      iprot.readStructBegin();
12118
      while (true)
12119
      {
12120
        field = iprot.readFieldBegin();
12121
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12122
          break;
12123
        }
12124
        switch (field.id) {
12125
          case 1: // START_DATE
12126
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12127
              this.startDate = iprot.readI64();
12128
              setStartDateIsSet(true);
12129
            } else { 
12130
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12131
            }
12132
            break;
12133
          case 2: // END_DATE
12134
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12135
              this.endDate = iprot.readI64();
12136
              setEndDateIsSet(true);
12137
            } else { 
12138
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12139
            }
12140
            break;
12141
          default:
12142
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12143
        }
12144
        iprot.readFieldEnd();
12145
      }
12146
      iprot.readStructEnd();
12147
      validate();
12148
    }
12149
 
12150
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12151
      validate();
12152
 
12153
      oprot.writeStructBegin(STRUCT_DESC);
12154
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
12155
      oprot.writeI64(this.startDate);
12156
      oprot.writeFieldEnd();
12157
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
12158
      oprot.writeI64(this.endDate);
12159
      oprot.writeFieldEnd();
12160
      oprot.writeFieldStop();
12161
      oprot.writeStructEnd();
12162
    }
12163
 
12164
    @Override
12165
    public String toString() {
12166
      StringBuilder sb = new StringBuilder("getPurchaseScans_args(");
12167
      boolean first = true;
12168
 
12169
      sb.append("startDate:");
12170
      sb.append(this.startDate);
12171
      first = false;
12172
      if (!first) sb.append(", ");
12173
      sb.append("endDate:");
12174
      sb.append(this.endDate);
12175
      first = false;
12176
      sb.append(")");
12177
      return sb.toString();
12178
    }
12179
 
12180
    public void validate() throws org.apache.thrift.TException {
12181
      // check for required fields
12182
    }
12183
 
12184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12185
      try {
12186
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12187
      } catch (org.apache.thrift.TException te) {
12188
        throw new java.io.IOException(te);
12189
      }
12190
    }
12191
 
12192
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12193
      try {
12194
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12195
        __isset_bit_vector = new BitSet(1);
12196
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12197
      } catch (org.apache.thrift.TException te) {
12198
        throw new java.io.IOException(te);
12199
      }
12200
    }
12201
 
12202
  }
12203
 
12204
  public static class getPurchaseScans_result implements org.apache.thrift.TBase<getPurchaseScans_result, getPurchaseScans_result._Fields>, java.io.Serializable, Cloneable   {
12205
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_result");
12206
 
12207
    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);
12208
 
12209
    private List<DetailedPurchaseScan> success; // required
12210
 
12211
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12212
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12213
      SUCCESS((short)0, "success");
12214
 
12215
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12216
 
12217
      static {
12218
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12219
          byName.put(field.getFieldName(), field);
12220
        }
12221
      }
12222
 
12223
      /**
12224
       * Find the _Fields constant that matches fieldId, or null if its not found.
12225
       */
12226
      public static _Fields findByThriftId(int fieldId) {
12227
        switch(fieldId) {
12228
          case 0: // SUCCESS
12229
            return SUCCESS;
12230
          default:
12231
            return null;
12232
        }
12233
      }
12234
 
12235
      /**
12236
       * Find the _Fields constant that matches fieldId, throwing an exception
12237
       * if it is not found.
12238
       */
12239
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12240
        _Fields fields = findByThriftId(fieldId);
12241
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12242
        return fields;
12243
      }
12244
 
12245
      /**
12246
       * Find the _Fields constant that matches name, or null if its not found.
12247
       */
12248
      public static _Fields findByName(String name) {
12249
        return byName.get(name);
12250
      }
12251
 
12252
      private final short _thriftId;
12253
      private final String _fieldName;
12254
 
12255
      _Fields(short thriftId, String fieldName) {
12256
        _thriftId = thriftId;
12257
        _fieldName = fieldName;
12258
      }
12259
 
12260
      public short getThriftFieldId() {
12261
        return _thriftId;
12262
      }
12263
 
12264
      public String getFieldName() {
12265
        return _fieldName;
12266
      }
12267
    }
12268
 
12269
    // isset id assignments
12270
 
12271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12272
    static {
12273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12274
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12275
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12276
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
12277
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12278
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_result.class, metaDataMap);
12279
    }
12280
 
12281
    public getPurchaseScans_result() {
12282
    }
12283
 
12284
    public getPurchaseScans_result(
12285
      List<DetailedPurchaseScan> success)
12286
    {
12287
      this();
12288
      this.success = success;
12289
    }
12290
 
12291
    /**
12292
     * Performs a deep copy on <i>other</i>.
12293
     */
12294
    public getPurchaseScans_result(getPurchaseScans_result other) {
12295
      if (other.isSetSuccess()) {
12296
        List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
12297
        for (DetailedPurchaseScan other_element : other.success) {
12298
          __this__success.add(new DetailedPurchaseScan(other_element));
12299
        }
12300
        this.success = __this__success;
12301
      }
12302
    }
12303
 
12304
    public getPurchaseScans_result deepCopy() {
12305
      return new getPurchaseScans_result(this);
12306
    }
12307
 
12308
    @Override
12309
    public void clear() {
12310
      this.success = null;
12311
    }
12312
 
12313
    public int getSuccessSize() {
12314
      return (this.success == null) ? 0 : this.success.size();
12315
    }
12316
 
12317
    public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
12318
      return (this.success == null) ? null : this.success.iterator();
12319
    }
12320
 
12321
    public void addToSuccess(DetailedPurchaseScan elem) {
12322
      if (this.success == null) {
12323
        this.success = new ArrayList<DetailedPurchaseScan>();
12324
      }
12325
      this.success.add(elem);
12326
    }
12327
 
12328
    public List<DetailedPurchaseScan> getSuccess() {
12329
      return this.success;
12330
    }
12331
 
12332
    public void setSuccess(List<DetailedPurchaseScan> success) {
12333
      this.success = success;
12334
    }
12335
 
12336
    public void unsetSuccess() {
12337
      this.success = null;
12338
    }
12339
 
12340
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12341
    public boolean isSetSuccess() {
12342
      return this.success != null;
12343
    }
12344
 
12345
    public void setSuccessIsSet(boolean value) {
12346
      if (!value) {
12347
        this.success = null;
12348
      }
12349
    }
12350
 
12351
    public void setFieldValue(_Fields field, Object value) {
12352
      switch (field) {
12353
      case SUCCESS:
12354
        if (value == null) {
12355
          unsetSuccess();
12356
        } else {
12357
          setSuccess((List<DetailedPurchaseScan>)value);
12358
        }
12359
        break;
12360
 
12361
      }
12362
    }
12363
 
12364
    public Object getFieldValue(_Fields field) {
12365
      switch (field) {
12366
      case SUCCESS:
12367
        return getSuccess();
12368
 
12369
      }
12370
      throw new IllegalStateException();
12371
    }
12372
 
12373
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12374
    public boolean isSet(_Fields field) {
12375
      if (field == null) {
12376
        throw new IllegalArgumentException();
12377
      }
12378
 
12379
      switch (field) {
12380
      case SUCCESS:
12381
        return isSetSuccess();
12382
      }
12383
      throw new IllegalStateException();
12384
    }
12385
 
12386
    @Override
12387
    public boolean equals(Object that) {
12388
      if (that == null)
12389
        return false;
12390
      if (that instanceof getPurchaseScans_result)
12391
        return this.equals((getPurchaseScans_result)that);
12392
      return false;
12393
    }
12394
 
12395
    public boolean equals(getPurchaseScans_result that) {
12396
      if (that == null)
12397
        return false;
12398
 
12399
      boolean this_present_success = true && this.isSetSuccess();
12400
      boolean that_present_success = true && that.isSetSuccess();
12401
      if (this_present_success || that_present_success) {
12402
        if (!(this_present_success && that_present_success))
12403
          return false;
12404
        if (!this.success.equals(that.success))
12405
          return false;
12406
      }
12407
 
12408
      return true;
12409
    }
12410
 
12411
    @Override
12412
    public int hashCode() {
12413
      return 0;
12414
    }
12415
 
12416
    public int compareTo(getPurchaseScans_result other) {
12417
      if (!getClass().equals(other.getClass())) {
12418
        return getClass().getName().compareTo(other.getClass().getName());
12419
      }
12420
 
12421
      int lastComparison = 0;
12422
      getPurchaseScans_result typedOther = (getPurchaseScans_result)other;
12423
 
12424
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12425
      if (lastComparison != 0) {
12426
        return lastComparison;
12427
      }
12428
      if (isSetSuccess()) {
12429
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12430
        if (lastComparison != 0) {
12431
          return lastComparison;
12432
        }
12433
      }
12434
      return 0;
12435
    }
12436
 
12437
    public _Fields fieldForId(int fieldId) {
12438
      return _Fields.findByThriftId(fieldId);
12439
    }
12440
 
12441
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12442
      org.apache.thrift.protocol.TField field;
12443
      iprot.readStructBegin();
12444
      while (true)
12445
      {
12446
        field = iprot.readFieldBegin();
12447
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12448
          break;
12449
        }
12450
        switch (field.id) {
12451
          case 0: // SUCCESS
12452
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12453
              {
12454
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
12455
                this.success = new ArrayList<DetailedPurchaseScan>(_list12.size);
12456
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
12457
                {
12458
                  DetailedPurchaseScan _elem14; // required
12459
                  _elem14 = new DetailedPurchaseScan();
12460
                  _elem14.read(iprot);
12461
                  this.success.add(_elem14);
12462
                }
12463
                iprot.readListEnd();
12464
              }
12465
            } else { 
12466
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12467
            }
12468
            break;
12469
          default:
12470
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12471
        }
12472
        iprot.readFieldEnd();
12473
      }
12474
      iprot.readStructEnd();
12475
      validate();
12476
    }
12477
 
12478
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12479
      oprot.writeStructBegin(STRUCT_DESC);
12480
 
12481
      if (this.isSetSuccess()) {
12482
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12483
        {
12484
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12485
          for (DetailedPurchaseScan _iter15 : this.success)
12486
          {
12487
            _iter15.write(oprot);
12488
          }
12489
          oprot.writeListEnd();
12490
        }
12491
        oprot.writeFieldEnd();
12492
      }
12493
      oprot.writeFieldStop();
12494
      oprot.writeStructEnd();
12495
    }
12496
 
12497
    @Override
12498
    public String toString() {
12499
      StringBuilder sb = new StringBuilder("getPurchaseScans_result(");
12500
      boolean first = true;
12501
 
12502
      sb.append("success:");
12503
      if (this.success == null) {
12504
        sb.append("null");
12505
      } else {
12506
        sb.append(this.success);
12507
      }
12508
      first = false;
12509
      sb.append(")");
12510
      return sb.toString();
12511
    }
12512
 
12513
    public void validate() throws org.apache.thrift.TException {
12514
      // check for required fields
12515
    }
12516
 
12517
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12518
      try {
12519
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12520
      } catch (org.apache.thrift.TException te) {
12521
        throw new java.io.IOException(te);
12522
      }
12523
    }
12524
 
12525
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12526
      try {
12527
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12528
      } catch (org.apache.thrift.TException te) {
12529
        throw new java.io.IOException(te);
12530
      }
12531
    }
12532
 
12533
  }
12534
 
7210 amar.kumar 12535
  public static class getPurchaseScansByGrnDate_args implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_args, getPurchaseScansByGrnDate_args._Fields>, java.io.Serializable, Cloneable   {
12536
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_args");
12537
 
12538
    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);
12539
    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);
12540
 
12541
    private long startDate; // required
12542
    private long endDate; // required
12543
 
12544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12546
      START_DATE((short)1, "startDate"),
12547
      END_DATE((short)2, "endDate");
12548
 
12549
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12550
 
12551
      static {
12552
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12553
          byName.put(field.getFieldName(), field);
12554
        }
12555
      }
12556
 
12557
      /**
12558
       * Find the _Fields constant that matches fieldId, or null if its not found.
12559
       */
12560
      public static _Fields findByThriftId(int fieldId) {
12561
        switch(fieldId) {
12562
          case 1: // START_DATE
12563
            return START_DATE;
12564
          case 2: // END_DATE
12565
            return END_DATE;
12566
          default:
12567
            return null;
12568
        }
12569
      }
12570
 
12571
      /**
12572
       * Find the _Fields constant that matches fieldId, throwing an exception
12573
       * if it is not found.
12574
       */
12575
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12576
        _Fields fields = findByThriftId(fieldId);
12577
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12578
        return fields;
12579
      }
12580
 
12581
      /**
12582
       * Find the _Fields constant that matches name, or null if its not found.
12583
       */
12584
      public static _Fields findByName(String name) {
12585
        return byName.get(name);
12586
      }
12587
 
12588
      private final short _thriftId;
12589
      private final String _fieldName;
12590
 
12591
      _Fields(short thriftId, String fieldName) {
12592
        _thriftId = thriftId;
12593
        _fieldName = fieldName;
12594
      }
12595
 
12596
      public short getThriftFieldId() {
12597
        return _thriftId;
12598
      }
12599
 
12600
      public String getFieldName() {
12601
        return _fieldName;
12602
      }
12603
    }
12604
 
12605
    // isset id assignments
12606
    private static final int __STARTDATE_ISSET_ID = 0;
12607
    private static final int __ENDDATE_ISSET_ID = 1;
12608
    private BitSet __isset_bit_vector = new BitSet(2);
12609
 
12610
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12611
    static {
12612
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12613
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12614
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12615
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12616
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12617
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12618
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_args.class, metaDataMap);
12619
    }
12620
 
12621
    public getPurchaseScansByGrnDate_args() {
12622
    }
12623
 
12624
    public getPurchaseScansByGrnDate_args(
12625
      long startDate,
12626
      long endDate)
12627
    {
12628
      this();
12629
      this.startDate = startDate;
12630
      setStartDateIsSet(true);
12631
      this.endDate = endDate;
12632
      setEndDateIsSet(true);
12633
    }
12634
 
12635
    /**
12636
     * Performs a deep copy on <i>other</i>.
12637
     */
12638
    public getPurchaseScansByGrnDate_args(getPurchaseScansByGrnDate_args other) {
12639
      __isset_bit_vector.clear();
12640
      __isset_bit_vector.or(other.__isset_bit_vector);
12641
      this.startDate = other.startDate;
12642
      this.endDate = other.endDate;
12643
    }
12644
 
12645
    public getPurchaseScansByGrnDate_args deepCopy() {
12646
      return new getPurchaseScansByGrnDate_args(this);
12647
    }
12648
 
12649
    @Override
12650
    public void clear() {
12651
      setStartDateIsSet(false);
12652
      this.startDate = 0;
12653
      setEndDateIsSet(false);
12654
      this.endDate = 0;
12655
    }
12656
 
12657
    public long getStartDate() {
12658
      return this.startDate;
12659
    }
12660
 
12661
    public void setStartDate(long startDate) {
12662
      this.startDate = startDate;
12663
      setStartDateIsSet(true);
12664
    }
12665
 
12666
    public void unsetStartDate() {
12667
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
12668
    }
12669
 
12670
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
12671
    public boolean isSetStartDate() {
12672
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
12673
    }
12674
 
12675
    public void setStartDateIsSet(boolean value) {
12676
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
12677
    }
12678
 
12679
    public long getEndDate() {
12680
      return this.endDate;
12681
    }
12682
 
12683
    public void setEndDate(long endDate) {
12684
      this.endDate = endDate;
12685
      setEndDateIsSet(true);
12686
    }
12687
 
12688
    public void unsetEndDate() {
12689
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
12690
    }
12691
 
12692
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
12693
    public boolean isSetEndDate() {
12694
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
12695
    }
12696
 
12697
    public void setEndDateIsSet(boolean value) {
12698
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
12699
    }
12700
 
12701
    public void setFieldValue(_Fields field, Object value) {
12702
      switch (field) {
12703
      case START_DATE:
12704
        if (value == null) {
12705
          unsetStartDate();
12706
        } else {
12707
          setStartDate((Long)value);
12708
        }
12709
        break;
12710
 
12711
      case END_DATE:
12712
        if (value == null) {
12713
          unsetEndDate();
12714
        } else {
12715
          setEndDate((Long)value);
12716
        }
12717
        break;
12718
 
12719
      }
12720
    }
12721
 
12722
    public Object getFieldValue(_Fields field) {
12723
      switch (field) {
12724
      case START_DATE:
12725
        return Long.valueOf(getStartDate());
12726
 
12727
      case END_DATE:
12728
        return Long.valueOf(getEndDate());
12729
 
12730
      }
12731
      throw new IllegalStateException();
12732
    }
12733
 
12734
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12735
    public boolean isSet(_Fields field) {
12736
      if (field == null) {
12737
        throw new IllegalArgumentException();
12738
      }
12739
 
12740
      switch (field) {
12741
      case START_DATE:
12742
        return isSetStartDate();
12743
      case END_DATE:
12744
        return isSetEndDate();
12745
      }
12746
      throw new IllegalStateException();
12747
    }
12748
 
12749
    @Override
12750
    public boolean equals(Object that) {
12751
      if (that == null)
12752
        return false;
12753
      if (that instanceof getPurchaseScansByGrnDate_args)
12754
        return this.equals((getPurchaseScansByGrnDate_args)that);
12755
      return false;
12756
    }
12757
 
12758
    public boolean equals(getPurchaseScansByGrnDate_args that) {
12759
      if (that == null)
12760
        return false;
12761
 
12762
      boolean this_present_startDate = true;
12763
      boolean that_present_startDate = true;
12764
      if (this_present_startDate || that_present_startDate) {
12765
        if (!(this_present_startDate && that_present_startDate))
12766
          return false;
12767
        if (this.startDate != that.startDate)
12768
          return false;
12769
      }
12770
 
12771
      boolean this_present_endDate = true;
12772
      boolean that_present_endDate = true;
12773
      if (this_present_endDate || that_present_endDate) {
12774
        if (!(this_present_endDate && that_present_endDate))
12775
          return false;
12776
        if (this.endDate != that.endDate)
12777
          return false;
12778
      }
12779
 
12780
      return true;
12781
    }
12782
 
12783
    @Override
12784
    public int hashCode() {
12785
      return 0;
12786
    }
12787
 
12788
    public int compareTo(getPurchaseScansByGrnDate_args other) {
12789
      if (!getClass().equals(other.getClass())) {
12790
        return getClass().getName().compareTo(other.getClass().getName());
12791
      }
12792
 
12793
      int lastComparison = 0;
12794
      getPurchaseScansByGrnDate_args typedOther = (getPurchaseScansByGrnDate_args)other;
12795
 
12796
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
12797
      if (lastComparison != 0) {
12798
        return lastComparison;
12799
      }
12800
      if (isSetStartDate()) {
12801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
12802
        if (lastComparison != 0) {
12803
          return lastComparison;
12804
        }
12805
      }
12806
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
12807
      if (lastComparison != 0) {
12808
        return lastComparison;
12809
      }
12810
      if (isSetEndDate()) {
12811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
12812
        if (lastComparison != 0) {
12813
          return lastComparison;
12814
        }
12815
      }
12816
      return 0;
12817
    }
12818
 
12819
    public _Fields fieldForId(int fieldId) {
12820
      return _Fields.findByThriftId(fieldId);
12821
    }
12822
 
12823
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12824
      org.apache.thrift.protocol.TField field;
12825
      iprot.readStructBegin();
12826
      while (true)
12827
      {
12828
        field = iprot.readFieldBegin();
12829
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12830
          break;
12831
        }
12832
        switch (field.id) {
12833
          case 1: // START_DATE
12834
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12835
              this.startDate = iprot.readI64();
12836
              setStartDateIsSet(true);
12837
            } else { 
12838
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12839
            }
12840
            break;
12841
          case 2: // END_DATE
12842
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12843
              this.endDate = iprot.readI64();
12844
              setEndDateIsSet(true);
12845
            } else { 
12846
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12847
            }
12848
            break;
12849
          default:
12850
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12851
        }
12852
        iprot.readFieldEnd();
12853
      }
12854
      iprot.readStructEnd();
12855
      validate();
12856
    }
12857
 
12858
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12859
      validate();
12860
 
12861
      oprot.writeStructBegin(STRUCT_DESC);
12862
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
12863
      oprot.writeI64(this.startDate);
12864
      oprot.writeFieldEnd();
12865
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
12866
      oprot.writeI64(this.endDate);
12867
      oprot.writeFieldEnd();
12868
      oprot.writeFieldStop();
12869
      oprot.writeStructEnd();
12870
    }
12871
 
12872
    @Override
12873
    public String toString() {
12874
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_args(");
12875
      boolean first = true;
12876
 
12877
      sb.append("startDate:");
12878
      sb.append(this.startDate);
12879
      first = false;
12880
      if (!first) sb.append(", ");
12881
      sb.append("endDate:");
12882
      sb.append(this.endDate);
12883
      first = false;
12884
      sb.append(")");
12885
      return sb.toString();
12886
    }
12887
 
12888
    public void validate() throws org.apache.thrift.TException {
12889
      // check for required fields
12890
    }
12891
 
12892
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12893
      try {
12894
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12895
      } catch (org.apache.thrift.TException te) {
12896
        throw new java.io.IOException(te);
12897
      }
12898
    }
12899
 
12900
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12901
      try {
12902
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12903
        __isset_bit_vector = new BitSet(1);
12904
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12905
      } catch (org.apache.thrift.TException te) {
12906
        throw new java.io.IOException(te);
12907
      }
12908
    }
12909
 
12910
  }
12911
 
12912
  public static class getPurchaseScansByGrnDate_result implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_result, getPurchaseScansByGrnDate_result._Fields>, java.io.Serializable, Cloneable   {
12913
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_result");
12914
 
12915
    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);
12916
 
12917
    private List<DetailedPurchaseScan> success; // required
12918
 
12919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12921
      SUCCESS((short)0, "success");
12922
 
12923
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12924
 
12925
      static {
12926
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12927
          byName.put(field.getFieldName(), field);
12928
        }
12929
      }
12930
 
12931
      /**
12932
       * Find the _Fields constant that matches fieldId, or null if its not found.
12933
       */
12934
      public static _Fields findByThriftId(int fieldId) {
12935
        switch(fieldId) {
12936
          case 0: // SUCCESS
12937
            return SUCCESS;
12938
          default:
12939
            return null;
12940
        }
12941
      }
12942
 
12943
      /**
12944
       * Find the _Fields constant that matches fieldId, throwing an exception
12945
       * if it is not found.
12946
       */
12947
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12948
        _Fields fields = findByThriftId(fieldId);
12949
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12950
        return fields;
12951
      }
12952
 
12953
      /**
12954
       * Find the _Fields constant that matches name, or null if its not found.
12955
       */
12956
      public static _Fields findByName(String name) {
12957
        return byName.get(name);
12958
      }
12959
 
12960
      private final short _thriftId;
12961
      private final String _fieldName;
12962
 
12963
      _Fields(short thriftId, String fieldName) {
12964
        _thriftId = thriftId;
12965
        _fieldName = fieldName;
12966
      }
12967
 
12968
      public short getThriftFieldId() {
12969
        return _thriftId;
12970
      }
12971
 
12972
      public String getFieldName() {
12973
        return _fieldName;
12974
      }
12975
    }
12976
 
12977
    // isset id assignments
12978
 
12979
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12980
    static {
12981
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12982
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12983
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12984
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
12985
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12986
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_result.class, metaDataMap);
12987
    }
12988
 
12989
    public getPurchaseScansByGrnDate_result() {
12990
    }
12991
 
12992
    public getPurchaseScansByGrnDate_result(
12993
      List<DetailedPurchaseScan> success)
12994
    {
12995
      this();
12996
      this.success = success;
12997
    }
12998
 
12999
    /**
13000
     * Performs a deep copy on <i>other</i>.
13001
     */
13002
    public getPurchaseScansByGrnDate_result(getPurchaseScansByGrnDate_result other) {
13003
      if (other.isSetSuccess()) {
13004
        List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
13005
        for (DetailedPurchaseScan other_element : other.success) {
13006
          __this__success.add(new DetailedPurchaseScan(other_element));
13007
        }
13008
        this.success = __this__success;
13009
      }
13010
    }
13011
 
13012
    public getPurchaseScansByGrnDate_result deepCopy() {
13013
      return new getPurchaseScansByGrnDate_result(this);
13014
    }
13015
 
13016
    @Override
13017
    public void clear() {
13018
      this.success = null;
13019
    }
13020
 
13021
    public int getSuccessSize() {
13022
      return (this.success == null) ? 0 : this.success.size();
13023
    }
13024
 
13025
    public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
13026
      return (this.success == null) ? null : this.success.iterator();
13027
    }
13028
 
13029
    public void addToSuccess(DetailedPurchaseScan elem) {
13030
      if (this.success == null) {
13031
        this.success = new ArrayList<DetailedPurchaseScan>();
13032
      }
13033
      this.success.add(elem);
13034
    }
13035
 
13036
    public List<DetailedPurchaseScan> getSuccess() {
13037
      return this.success;
13038
    }
13039
 
13040
    public void setSuccess(List<DetailedPurchaseScan> success) {
13041
      this.success = success;
13042
    }
13043
 
13044
    public void unsetSuccess() {
13045
      this.success = null;
13046
    }
13047
 
13048
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13049
    public boolean isSetSuccess() {
13050
      return this.success != null;
13051
    }
13052
 
13053
    public void setSuccessIsSet(boolean value) {
13054
      if (!value) {
13055
        this.success = null;
13056
      }
13057
    }
13058
 
13059
    public void setFieldValue(_Fields field, Object value) {
13060
      switch (field) {
13061
      case SUCCESS:
13062
        if (value == null) {
13063
          unsetSuccess();
13064
        } else {
13065
          setSuccess((List<DetailedPurchaseScan>)value);
13066
        }
13067
        break;
13068
 
13069
      }
13070
    }
13071
 
13072
    public Object getFieldValue(_Fields field) {
13073
      switch (field) {
13074
      case SUCCESS:
13075
        return getSuccess();
13076
 
13077
      }
13078
      throw new IllegalStateException();
13079
    }
13080
 
13081
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13082
    public boolean isSet(_Fields field) {
13083
      if (field == null) {
13084
        throw new IllegalArgumentException();
13085
      }
13086
 
13087
      switch (field) {
13088
      case SUCCESS:
13089
        return isSetSuccess();
13090
      }
13091
      throw new IllegalStateException();
13092
    }
13093
 
13094
    @Override
13095
    public boolean equals(Object that) {
13096
      if (that == null)
13097
        return false;
13098
      if (that instanceof getPurchaseScansByGrnDate_result)
13099
        return this.equals((getPurchaseScansByGrnDate_result)that);
13100
      return false;
13101
    }
13102
 
13103
    public boolean equals(getPurchaseScansByGrnDate_result that) {
13104
      if (that == null)
13105
        return false;
13106
 
13107
      boolean this_present_success = true && this.isSetSuccess();
13108
      boolean that_present_success = true && that.isSetSuccess();
13109
      if (this_present_success || that_present_success) {
13110
        if (!(this_present_success && that_present_success))
13111
          return false;
13112
        if (!this.success.equals(that.success))
13113
          return false;
13114
      }
13115
 
13116
      return true;
13117
    }
13118
 
13119
    @Override
13120
    public int hashCode() {
13121
      return 0;
13122
    }
13123
 
13124
    public int compareTo(getPurchaseScansByGrnDate_result other) {
13125
      if (!getClass().equals(other.getClass())) {
13126
        return getClass().getName().compareTo(other.getClass().getName());
13127
      }
13128
 
13129
      int lastComparison = 0;
13130
      getPurchaseScansByGrnDate_result typedOther = (getPurchaseScansByGrnDate_result)other;
13131
 
13132
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13133
      if (lastComparison != 0) {
13134
        return lastComparison;
13135
      }
13136
      if (isSetSuccess()) {
13137
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13138
        if (lastComparison != 0) {
13139
          return lastComparison;
13140
        }
13141
      }
13142
      return 0;
13143
    }
13144
 
13145
    public _Fields fieldForId(int fieldId) {
13146
      return _Fields.findByThriftId(fieldId);
13147
    }
13148
 
13149
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13150
      org.apache.thrift.protocol.TField field;
13151
      iprot.readStructBegin();
13152
      while (true)
13153
      {
13154
        field = iprot.readFieldBegin();
13155
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13156
          break;
13157
        }
13158
        switch (field.id) {
13159
          case 0: // SUCCESS
13160
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13161
              {
13162
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
13163
                this.success = new ArrayList<DetailedPurchaseScan>(_list16.size);
13164
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
13165
                {
13166
                  DetailedPurchaseScan _elem18; // required
13167
                  _elem18 = new DetailedPurchaseScan();
13168
                  _elem18.read(iprot);
13169
                  this.success.add(_elem18);
13170
                }
13171
                iprot.readListEnd();
13172
              }
13173
            } else { 
13174
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13175
            }
13176
            break;
13177
          default:
13178
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13179
        }
13180
        iprot.readFieldEnd();
13181
      }
13182
      iprot.readStructEnd();
13183
      validate();
13184
    }
13185
 
13186
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13187
      oprot.writeStructBegin(STRUCT_DESC);
13188
 
13189
      if (this.isSetSuccess()) {
13190
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13191
        {
13192
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13193
          for (DetailedPurchaseScan _iter19 : this.success)
13194
          {
13195
            _iter19.write(oprot);
13196
          }
13197
          oprot.writeListEnd();
13198
        }
13199
        oprot.writeFieldEnd();
13200
      }
13201
      oprot.writeFieldStop();
13202
      oprot.writeStructEnd();
13203
    }
13204
 
13205
    @Override
13206
    public String toString() {
13207
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_result(");
13208
      boolean first = true;
13209
 
13210
      sb.append("success:");
13211
      if (this.success == null) {
13212
        sb.append("null");
13213
      } else {
13214
        sb.append(this.success);
13215
      }
13216
      first = false;
13217
      sb.append(")");
13218
      return sb.toString();
13219
    }
13220
 
13221
    public void validate() throws org.apache.thrift.TException {
13222
      // check for required fields
13223
    }
13224
 
13225
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13226
      try {
13227
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13228
      } catch (org.apache.thrift.TException te) {
13229
        throw new java.io.IOException(te);
13230
      }
13231
    }
13232
 
13233
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13234
      try {
13235
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13236
      } catch (org.apache.thrift.TException te) {
13237
        throw new java.io.IOException(te);
13238
      }
13239
    }
13240
 
13241
  }
13242
 
5496 mandeep.dh 13243
  public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable   {
13244
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
13245
 
13246
    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);
13247
 
13248
    private long date; // required
13249
 
13250
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13251
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13252
      DATE((short)1, "date");
13253
 
13254
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13255
 
13256
      static {
13257
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13258
          byName.put(field.getFieldName(), field);
13259
        }
13260
      }
13261
 
13262
      /**
13263
       * Find the _Fields constant that matches fieldId, or null if its not found.
13264
       */
13265
      public static _Fields findByThriftId(int fieldId) {
13266
        switch(fieldId) {
13267
          case 1: // DATE
13268
            return DATE;
13269
          default:
13270
            return null;
13271
        }
13272
      }
13273
 
13274
      /**
13275
       * Find the _Fields constant that matches fieldId, throwing an exception
13276
       * if it is not found.
13277
       */
13278
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13279
        _Fields fields = findByThriftId(fieldId);
13280
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13281
        return fields;
13282
      }
13283
 
13284
      /**
13285
       * Find the _Fields constant that matches name, or null if its not found.
13286
       */
13287
      public static _Fields findByName(String name) {
13288
        return byName.get(name);
13289
      }
13290
 
13291
      private final short _thriftId;
13292
      private final String _fieldName;
13293
 
13294
      _Fields(short thriftId, String fieldName) {
13295
        _thriftId = thriftId;
13296
        _fieldName = fieldName;
13297
      }
13298
 
13299
      public short getThriftFieldId() {
13300
        return _thriftId;
13301
      }
13302
 
13303
      public String getFieldName() {
13304
        return _fieldName;
13305
      }
13306
    }
13307
 
13308
    // isset id assignments
13309
    private static final int __DATE_ISSET_ID = 0;
13310
    private BitSet __isset_bit_vector = new BitSet(1);
13311
 
13312
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13313
    static {
13314
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13315
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13316
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13317
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13318
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_args.class, metaDataMap);
13319
    }
13320
 
13321
    public fetchScansPerInvoiceNumber_args() {
13322
    }
13323
 
13324
    public fetchScansPerInvoiceNumber_args(
13325
      long date)
13326
    {
13327
      this();
13328
      this.date = date;
13329
      setDateIsSet(true);
13330
    }
13331
 
13332
    /**
13333
     * Performs a deep copy on <i>other</i>.
13334
     */
13335
    public fetchScansPerInvoiceNumber_args(fetchScansPerInvoiceNumber_args other) {
13336
      __isset_bit_vector.clear();
13337
      __isset_bit_vector.or(other.__isset_bit_vector);
13338
      this.date = other.date;
13339
    }
13340
 
13341
    public fetchScansPerInvoiceNumber_args deepCopy() {
13342
      return new fetchScansPerInvoiceNumber_args(this);
13343
    }
13344
 
13345
    @Override
13346
    public void clear() {
13347
      setDateIsSet(false);
13348
      this.date = 0;
13349
    }
13350
 
13351
    public long getDate() {
13352
      return this.date;
13353
    }
13354
 
13355
    public void setDate(long date) {
13356
      this.date = date;
13357
      setDateIsSet(true);
13358
    }
13359
 
13360
    public void unsetDate() {
13361
      __isset_bit_vector.clear(__DATE_ISSET_ID);
13362
    }
13363
 
13364
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
13365
    public boolean isSetDate() {
13366
      return __isset_bit_vector.get(__DATE_ISSET_ID);
13367
    }
13368
 
13369
    public void setDateIsSet(boolean value) {
13370
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
13371
    }
13372
 
13373
    public void setFieldValue(_Fields field, Object value) {
13374
      switch (field) {
13375
      case DATE:
13376
        if (value == null) {
13377
          unsetDate();
13378
        } else {
13379
          setDate((Long)value);
13380
        }
13381
        break;
13382
 
13383
      }
13384
    }
13385
 
13386
    public Object getFieldValue(_Fields field) {
13387
      switch (field) {
13388
      case DATE:
13389
        return Long.valueOf(getDate());
13390
 
13391
      }
13392
      throw new IllegalStateException();
13393
    }
13394
 
13395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13396
    public boolean isSet(_Fields field) {
13397
      if (field == null) {
13398
        throw new IllegalArgumentException();
13399
      }
13400
 
13401
      switch (field) {
13402
      case DATE:
13403
        return isSetDate();
13404
      }
13405
      throw new IllegalStateException();
13406
    }
13407
 
13408
    @Override
13409
    public boolean equals(Object that) {
13410
      if (that == null)
13411
        return false;
13412
      if (that instanceof fetchScansPerInvoiceNumber_args)
13413
        return this.equals((fetchScansPerInvoiceNumber_args)that);
13414
      return false;
13415
    }
13416
 
13417
    public boolean equals(fetchScansPerInvoiceNumber_args that) {
13418
      if (that == null)
13419
        return false;
13420
 
13421
      boolean this_present_date = true;
13422
      boolean that_present_date = true;
13423
      if (this_present_date || that_present_date) {
13424
        if (!(this_present_date && that_present_date))
13425
          return false;
13426
        if (this.date != that.date)
13427
          return false;
13428
      }
13429
 
13430
      return true;
13431
    }
13432
 
13433
    @Override
13434
    public int hashCode() {
13435
      return 0;
13436
    }
13437
 
13438
    public int compareTo(fetchScansPerInvoiceNumber_args other) {
13439
      if (!getClass().equals(other.getClass())) {
13440
        return getClass().getName().compareTo(other.getClass().getName());
13441
      }
13442
 
13443
      int lastComparison = 0;
13444
      fetchScansPerInvoiceNumber_args typedOther = (fetchScansPerInvoiceNumber_args)other;
13445
 
13446
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
13447
      if (lastComparison != 0) {
13448
        return lastComparison;
13449
      }
13450
      if (isSetDate()) {
13451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
13452
        if (lastComparison != 0) {
13453
          return lastComparison;
13454
        }
13455
      }
13456
      return 0;
13457
    }
13458
 
13459
    public _Fields fieldForId(int fieldId) {
13460
      return _Fields.findByThriftId(fieldId);
13461
    }
13462
 
13463
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13464
      org.apache.thrift.protocol.TField field;
13465
      iprot.readStructBegin();
13466
      while (true)
13467
      {
13468
        field = iprot.readFieldBegin();
13469
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13470
          break;
13471
        }
13472
        switch (field.id) {
13473
          case 1: // DATE
13474
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13475
              this.date = iprot.readI64();
13476
              setDateIsSet(true);
13477
            } else { 
13478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13479
            }
13480
            break;
13481
          default:
13482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13483
        }
13484
        iprot.readFieldEnd();
13485
      }
13486
      iprot.readStructEnd();
13487
      validate();
13488
    }
13489
 
13490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13491
      validate();
13492
 
13493
      oprot.writeStructBegin(STRUCT_DESC);
13494
      oprot.writeFieldBegin(DATE_FIELD_DESC);
13495
      oprot.writeI64(this.date);
13496
      oprot.writeFieldEnd();
13497
      oprot.writeFieldStop();
13498
      oprot.writeStructEnd();
13499
    }
13500
 
13501
    @Override
13502
    public String toString() {
13503
      StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_args(");
13504
      boolean first = true;
13505
 
13506
      sb.append("date:");
13507
      sb.append(this.date);
13508
      first = false;
13509
      sb.append(")");
13510
      return sb.toString();
13511
    }
13512
 
13513
    public void validate() throws org.apache.thrift.TException {
13514
      // check for required fields
13515
    }
13516
 
13517
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13518
      try {
13519
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13520
      } catch (org.apache.thrift.TException te) {
13521
        throw new java.io.IOException(te);
13522
      }
13523
    }
13524
 
13525
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13526
      try {
5711 mandeep.dh 13527
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13528
        __isset_bit_vector = new BitSet(1);
5496 mandeep.dh 13529
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13530
      } catch (org.apache.thrift.TException te) {
13531
        throw new java.io.IOException(te);
13532
      }
13533
    }
13534
 
13535
  }
13536
 
13537
  public static class fetchScansPerInvoiceNumber_result implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_result, fetchScansPerInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable   {
13538
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_result");
13539
 
13540
    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);
13541
 
13542
    private List<InvoiceScan> success; // required
13543
 
13544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13546
      SUCCESS((short)0, "success");
13547
 
13548
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13549
 
13550
      static {
13551
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13552
          byName.put(field.getFieldName(), field);
13553
        }
13554
      }
13555
 
13556
      /**
13557
       * Find the _Fields constant that matches fieldId, or null if its not found.
13558
       */
13559
      public static _Fields findByThriftId(int fieldId) {
13560
        switch(fieldId) {
13561
          case 0: // SUCCESS
13562
            return SUCCESS;
13563
          default:
13564
            return null;
13565
        }
13566
      }
13567
 
13568
      /**
13569
       * Find the _Fields constant that matches fieldId, throwing an exception
13570
       * if it is not found.
13571
       */
13572
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13573
        _Fields fields = findByThriftId(fieldId);
13574
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13575
        return fields;
13576
      }
13577
 
13578
      /**
13579
       * Find the _Fields constant that matches name, or null if its not found.
13580
       */
13581
      public static _Fields findByName(String name) {
13582
        return byName.get(name);
13583
      }
13584
 
13585
      private final short _thriftId;
13586
      private final String _fieldName;
13587
 
13588
      _Fields(short thriftId, String fieldName) {
13589
        _thriftId = thriftId;
13590
        _fieldName = fieldName;
13591
      }
13592
 
13593
      public short getThriftFieldId() {
13594
        return _thriftId;
13595
      }
13596
 
13597
      public String getFieldName() {
13598
        return _fieldName;
13599
      }
13600
    }
13601
 
13602
    // isset id assignments
13603
 
13604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13605
    static {
13606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13607
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13608
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13609
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InvoiceScan.class))));
13610
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13611
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_result.class, metaDataMap);
13612
    }
13613
 
13614
    public fetchScansPerInvoiceNumber_result() {
13615
    }
13616
 
13617
    public fetchScansPerInvoiceNumber_result(
13618
      List<InvoiceScan> success)
13619
    {
13620
      this();
13621
      this.success = success;
13622
    }
13623
 
13624
    /**
13625
     * Performs a deep copy on <i>other</i>.
13626
     */
13627
    public fetchScansPerInvoiceNumber_result(fetchScansPerInvoiceNumber_result other) {
13628
      if (other.isSetSuccess()) {
13629
        List<InvoiceScan> __this__success = new ArrayList<InvoiceScan>();
13630
        for (InvoiceScan other_element : other.success) {
13631
          __this__success.add(new InvoiceScan(other_element));
13632
        }
13633
        this.success = __this__success;
13634
      }
13635
    }
13636
 
13637
    public fetchScansPerInvoiceNumber_result deepCopy() {
13638
      return new fetchScansPerInvoiceNumber_result(this);
13639
    }
13640
 
13641
    @Override
13642
    public void clear() {
13643
      this.success = null;
13644
    }
13645
 
13646
    public int getSuccessSize() {
13647
      return (this.success == null) ? 0 : this.success.size();
13648
    }
13649
 
13650
    public java.util.Iterator<InvoiceScan> getSuccessIterator() {
13651
      return (this.success == null) ? null : this.success.iterator();
13652
    }
13653
 
13654
    public void addToSuccess(InvoiceScan elem) {
13655
      if (this.success == null) {
13656
        this.success = new ArrayList<InvoiceScan>();
13657
      }
13658
      this.success.add(elem);
13659
    }
13660
 
13661
    public List<InvoiceScan> getSuccess() {
13662
      return this.success;
13663
    }
13664
 
13665
    public void setSuccess(List<InvoiceScan> success) {
13666
      this.success = success;
13667
    }
13668
 
13669
    public void unsetSuccess() {
13670
      this.success = null;
13671
    }
13672
 
13673
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13674
    public boolean isSetSuccess() {
13675
      return this.success != null;
13676
    }
13677
 
13678
    public void setSuccessIsSet(boolean value) {
13679
      if (!value) {
13680
        this.success = null;
13681
      }
13682
    }
13683
 
13684
    public void setFieldValue(_Fields field, Object value) {
13685
      switch (field) {
13686
      case SUCCESS:
13687
        if (value == null) {
13688
          unsetSuccess();
13689
        } else {
13690
          setSuccess((List<InvoiceScan>)value);
13691
        }
13692
        break;
13693
 
13694
      }
13695
    }
13696
 
13697
    public Object getFieldValue(_Fields field) {
13698
      switch (field) {
13699
      case SUCCESS:
13700
        return getSuccess();
13701
 
13702
      }
13703
      throw new IllegalStateException();
13704
    }
13705
 
13706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13707
    public boolean isSet(_Fields field) {
13708
      if (field == null) {
13709
        throw new IllegalArgumentException();
13710
      }
13711
 
13712
      switch (field) {
13713
      case SUCCESS:
13714
        return isSetSuccess();
13715
      }
13716
      throw new IllegalStateException();
13717
    }
13718
 
13719
    @Override
13720
    public boolean equals(Object that) {
13721
      if (that == null)
13722
        return false;
13723
      if (that instanceof fetchScansPerInvoiceNumber_result)
13724
        return this.equals((fetchScansPerInvoiceNumber_result)that);
13725
      return false;
13726
    }
13727
 
13728
    public boolean equals(fetchScansPerInvoiceNumber_result that) {
13729
      if (that == null)
13730
        return false;
13731
 
13732
      boolean this_present_success = true && this.isSetSuccess();
13733
      boolean that_present_success = true && that.isSetSuccess();
13734
      if (this_present_success || that_present_success) {
13735
        if (!(this_present_success && that_present_success))
13736
          return false;
13737
        if (!this.success.equals(that.success))
13738
          return false;
13739
      }
13740
 
13741
      return true;
13742
    }
13743
 
13744
    @Override
13745
    public int hashCode() {
13746
      return 0;
13747
    }
13748
 
13749
    public int compareTo(fetchScansPerInvoiceNumber_result other) {
13750
      if (!getClass().equals(other.getClass())) {
13751
        return getClass().getName().compareTo(other.getClass().getName());
13752
      }
13753
 
13754
      int lastComparison = 0;
13755
      fetchScansPerInvoiceNumber_result typedOther = (fetchScansPerInvoiceNumber_result)other;
13756
 
13757
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13758
      if (lastComparison != 0) {
13759
        return lastComparison;
13760
      }
13761
      if (isSetSuccess()) {
13762
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13763
        if (lastComparison != 0) {
13764
          return lastComparison;
13765
        }
13766
      }
13767
      return 0;
13768
    }
13769
 
13770
    public _Fields fieldForId(int fieldId) {
13771
      return _Fields.findByThriftId(fieldId);
13772
    }
13773
 
13774
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13775
      org.apache.thrift.protocol.TField field;
13776
      iprot.readStructBegin();
13777
      while (true)
13778
      {
13779
        field = iprot.readFieldBegin();
13780
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13781
          break;
13782
        }
13783
        switch (field.id) {
13784
          case 0: // SUCCESS
13785
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13786
              {
7210 amar.kumar 13787
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
13788
                this.success = new ArrayList<InvoiceScan>(_list20.size);
13789
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5496 mandeep.dh 13790
                {
7210 amar.kumar 13791
                  InvoiceScan _elem22; // required
13792
                  _elem22 = new InvoiceScan();
13793
                  _elem22.read(iprot);
13794
                  this.success.add(_elem22);
5496 mandeep.dh 13795
                }
13796
                iprot.readListEnd();
13797
              }
13798
            } else { 
13799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13800
            }
13801
            break;
13802
          default:
13803
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13804
        }
13805
        iprot.readFieldEnd();
13806
      }
13807
      iprot.readStructEnd();
13808
      validate();
13809
    }
13810
 
13811
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13812
      oprot.writeStructBegin(STRUCT_DESC);
13813
 
13814
      if (this.isSetSuccess()) {
13815
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13816
        {
13817
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 13818
          for (InvoiceScan _iter23 : this.success)
5496 mandeep.dh 13819
          {
7210 amar.kumar 13820
            _iter23.write(oprot);
5496 mandeep.dh 13821
          }
13822
          oprot.writeListEnd();
13823
        }
13824
        oprot.writeFieldEnd();
13825
      }
13826
      oprot.writeFieldStop();
13827
      oprot.writeStructEnd();
13828
    }
13829
 
13830
    @Override
13831
    public String toString() {
13832
      StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_result(");
13833
      boolean first = true;
13834
 
13835
      sb.append("success:");
13836
      if (this.success == null) {
13837
        sb.append("null");
13838
      } else {
13839
        sb.append(this.success);
13840
      }
13841
      first = false;
13842
      sb.append(")");
13843
      return sb.toString();
13844
    }
13845
 
13846
    public void validate() throws org.apache.thrift.TException {
13847
      // check for required fields
13848
    }
13849
 
13850
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13851
      try {
13852
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13853
      } catch (org.apache.thrift.TException te) {
13854
        throw new java.io.IOException(te);
13855
      }
13856
    }
13857
 
13858
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13859
      try {
13860
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13861
      } catch (org.apache.thrift.TException te) {
13862
        throw new java.io.IOException(te);
13863
      }
13864
    }
13865
 
13866
  }
13867
 
5620 mandeep.dh 13868
  public static class getInventoryItemFromOrder_args implements org.apache.thrift.TBase<getInventoryItemFromOrder_args, getInventoryItemFromOrder_args._Fields>, java.io.Serializable, Cloneable   {
13869
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_args");
13870
 
13871
    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);
13872
 
13873
    private long orderId; // required
13874
 
13875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13877
      ORDER_ID((short)1, "orderId");
13878
 
13879
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13880
 
13881
      static {
13882
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13883
          byName.put(field.getFieldName(), field);
13884
        }
13885
      }
13886
 
13887
      /**
13888
       * Find the _Fields constant that matches fieldId, or null if its not found.
13889
       */
13890
      public static _Fields findByThriftId(int fieldId) {
13891
        switch(fieldId) {
13892
          case 1: // ORDER_ID
13893
            return ORDER_ID;
13894
          default:
13895
            return null;
13896
        }
13897
      }
13898
 
13899
      /**
13900
       * Find the _Fields constant that matches fieldId, throwing an exception
13901
       * if it is not found.
13902
       */
13903
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13904
        _Fields fields = findByThriftId(fieldId);
13905
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13906
        return fields;
13907
      }
13908
 
13909
      /**
13910
       * Find the _Fields constant that matches name, or null if its not found.
13911
       */
13912
      public static _Fields findByName(String name) {
13913
        return byName.get(name);
13914
      }
13915
 
13916
      private final short _thriftId;
13917
      private final String _fieldName;
13918
 
13919
      _Fields(short thriftId, String fieldName) {
13920
        _thriftId = thriftId;
13921
        _fieldName = fieldName;
13922
      }
13923
 
13924
      public short getThriftFieldId() {
13925
        return _thriftId;
13926
      }
13927
 
13928
      public String getFieldName() {
13929
        return _fieldName;
13930
      }
13931
    }
13932
 
13933
    // isset id assignments
13934
    private static final int __ORDERID_ISSET_ID = 0;
13935
    private BitSet __isset_bit_vector = new BitSet(1);
13936
 
13937
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13938
    static {
13939
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13940
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13941
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_args.class, metaDataMap);
13944
    }
13945
 
13946
    public getInventoryItemFromOrder_args() {
13947
    }
13948
 
13949
    public getInventoryItemFromOrder_args(
13950
      long orderId)
13951
    {
13952
      this();
13953
      this.orderId = orderId;
13954
      setOrderIdIsSet(true);
13955
    }
13956
 
13957
    /**
13958
     * Performs a deep copy on <i>other</i>.
13959
     */
13960
    public getInventoryItemFromOrder_args(getInventoryItemFromOrder_args other) {
13961
      __isset_bit_vector.clear();
13962
      __isset_bit_vector.or(other.__isset_bit_vector);
13963
      this.orderId = other.orderId;
13964
    }
13965
 
13966
    public getInventoryItemFromOrder_args deepCopy() {
13967
      return new getInventoryItemFromOrder_args(this);
13968
    }
13969
 
13970
    @Override
13971
    public void clear() {
13972
      setOrderIdIsSet(false);
13973
      this.orderId = 0;
13974
    }
13975
 
13976
    public long getOrderId() {
13977
      return this.orderId;
13978
    }
13979
 
13980
    public void setOrderId(long orderId) {
13981
      this.orderId = orderId;
13982
      setOrderIdIsSet(true);
13983
    }
13984
 
13985
    public void unsetOrderId() {
13986
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13987
    }
13988
 
13989
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13990
    public boolean isSetOrderId() {
13991
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13992
    }
13993
 
13994
    public void setOrderIdIsSet(boolean value) {
13995
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13996
    }
13997
 
13998
    public void setFieldValue(_Fields field, Object value) {
13999
      switch (field) {
14000
      case ORDER_ID:
14001
        if (value == null) {
14002
          unsetOrderId();
14003
        } else {
14004
          setOrderId((Long)value);
14005
        }
14006
        break;
14007
 
14008
      }
14009
    }
14010
 
14011
    public Object getFieldValue(_Fields field) {
14012
      switch (field) {
14013
      case ORDER_ID:
14014
        return Long.valueOf(getOrderId());
14015
 
14016
      }
14017
      throw new IllegalStateException();
14018
    }
14019
 
14020
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14021
    public boolean isSet(_Fields field) {
14022
      if (field == null) {
14023
        throw new IllegalArgumentException();
14024
      }
14025
 
14026
      switch (field) {
14027
      case ORDER_ID:
14028
        return isSetOrderId();
14029
      }
14030
      throw new IllegalStateException();
14031
    }
14032
 
14033
    @Override
14034
    public boolean equals(Object that) {
14035
      if (that == null)
14036
        return false;
14037
      if (that instanceof getInventoryItemFromOrder_args)
14038
        return this.equals((getInventoryItemFromOrder_args)that);
14039
      return false;
14040
    }
14041
 
14042
    public boolean equals(getInventoryItemFromOrder_args that) {
14043
      if (that == null)
14044
        return false;
14045
 
14046
      boolean this_present_orderId = true;
14047
      boolean that_present_orderId = true;
14048
      if (this_present_orderId || that_present_orderId) {
14049
        if (!(this_present_orderId && that_present_orderId))
14050
          return false;
14051
        if (this.orderId != that.orderId)
14052
          return false;
14053
      }
14054
 
14055
      return true;
14056
    }
14057
 
14058
    @Override
14059
    public int hashCode() {
14060
      return 0;
14061
    }
14062
 
14063
    public int compareTo(getInventoryItemFromOrder_args other) {
14064
      if (!getClass().equals(other.getClass())) {
14065
        return getClass().getName().compareTo(other.getClass().getName());
14066
      }
14067
 
14068
      int lastComparison = 0;
14069
      getInventoryItemFromOrder_args typedOther = (getInventoryItemFromOrder_args)other;
14070
 
14071
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
14072
      if (lastComparison != 0) {
14073
        return lastComparison;
14074
      }
14075
      if (isSetOrderId()) {
14076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14077
        if (lastComparison != 0) {
14078
          return lastComparison;
14079
        }
14080
      }
14081
      return 0;
14082
    }
14083
 
14084
    public _Fields fieldForId(int fieldId) {
14085
      return _Fields.findByThriftId(fieldId);
14086
    }
14087
 
14088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14089
      org.apache.thrift.protocol.TField field;
14090
      iprot.readStructBegin();
14091
      while (true)
14092
      {
14093
        field = iprot.readFieldBegin();
14094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14095
          break;
14096
        }
14097
        switch (field.id) {
14098
          case 1: // ORDER_ID
14099
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14100
              this.orderId = iprot.readI64();
14101
              setOrderIdIsSet(true);
14102
            } else { 
14103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14104
            }
14105
            break;
14106
          default:
14107
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14108
        }
14109
        iprot.readFieldEnd();
14110
      }
14111
      iprot.readStructEnd();
14112
      validate();
14113
    }
14114
 
14115
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14116
      validate();
14117
 
14118
      oprot.writeStructBegin(STRUCT_DESC);
14119
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14120
      oprot.writeI64(this.orderId);
14121
      oprot.writeFieldEnd();
14122
      oprot.writeFieldStop();
14123
      oprot.writeStructEnd();
14124
    }
14125
 
14126
    @Override
14127
    public String toString() {
14128
      StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_args(");
14129
      boolean first = true;
14130
 
14131
      sb.append("orderId:");
14132
      sb.append(this.orderId);
14133
      first = false;
14134
      sb.append(")");
14135
      return sb.toString();
14136
    }
14137
 
14138
    public void validate() throws org.apache.thrift.TException {
14139
      // check for required fields
14140
    }
14141
 
14142
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14143
      try {
14144
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14145
      } catch (org.apache.thrift.TException te) {
14146
        throw new java.io.IOException(te);
14147
      }
14148
    }
14149
 
14150
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14151
      try {
14152
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14153
        __isset_bit_vector = new BitSet(1);
14154
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14155
      } catch (org.apache.thrift.TException te) {
14156
        throw new java.io.IOException(te);
14157
      }
14158
    }
14159
 
14160
  }
14161
 
14162
  public static class getInventoryItemFromOrder_result implements org.apache.thrift.TBase<getInventoryItemFromOrder_result, getInventoryItemFromOrder_result._Fields>, java.io.Serializable, Cloneable   {
14163
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_result");
14164
 
14165
    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);
14166
    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);
14167
 
14168
    private InventoryItem success; // required
14169
    private WarehouseServiceException we; // required
14170
 
14171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14172
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14173
      SUCCESS((short)0, "success"),
14174
      WE((short)1, "we");
14175
 
14176
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14177
 
14178
      static {
14179
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14180
          byName.put(field.getFieldName(), field);
14181
        }
14182
      }
14183
 
14184
      /**
14185
       * Find the _Fields constant that matches fieldId, or null if its not found.
14186
       */
14187
      public static _Fields findByThriftId(int fieldId) {
14188
        switch(fieldId) {
14189
          case 0: // SUCCESS
14190
            return SUCCESS;
14191
          case 1: // WE
14192
            return WE;
14193
          default:
14194
            return null;
14195
        }
14196
      }
14197
 
14198
      /**
14199
       * Find the _Fields constant that matches fieldId, throwing an exception
14200
       * if it is not found.
14201
       */
14202
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14203
        _Fields fields = findByThriftId(fieldId);
14204
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14205
        return fields;
14206
      }
14207
 
14208
      /**
14209
       * Find the _Fields constant that matches name, or null if its not found.
14210
       */
14211
      public static _Fields findByName(String name) {
14212
        return byName.get(name);
14213
      }
14214
 
14215
      private final short _thriftId;
14216
      private final String _fieldName;
14217
 
14218
      _Fields(short thriftId, String fieldName) {
14219
        _thriftId = thriftId;
14220
        _fieldName = fieldName;
14221
      }
14222
 
14223
      public short getThriftFieldId() {
14224
        return _thriftId;
14225
      }
14226
 
14227
      public String getFieldName() {
14228
        return _fieldName;
14229
      }
14230
    }
14231
 
14232
    // isset id assignments
14233
 
14234
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14235
    static {
14236
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14237
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14238
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
14239
      tmpMap.put(_Fields.WE, new org.apache.thrift.meta_data.FieldMetaData("we", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14241
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14242
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_result.class, metaDataMap);
14243
    }
14244
 
14245
    public getInventoryItemFromOrder_result() {
14246
    }
14247
 
14248
    public getInventoryItemFromOrder_result(
14249
      InventoryItem success,
14250
      WarehouseServiceException we)
14251
    {
14252
      this();
14253
      this.success = success;
14254
      this.we = we;
14255
    }
14256
 
14257
    /**
14258
     * Performs a deep copy on <i>other</i>.
14259
     */
14260
    public getInventoryItemFromOrder_result(getInventoryItemFromOrder_result other) {
14261
      if (other.isSetSuccess()) {
14262
        this.success = new InventoryItem(other.success);
14263
      }
14264
      if (other.isSetWe()) {
14265
        this.we = new WarehouseServiceException(other.we);
14266
      }
14267
    }
14268
 
14269
    public getInventoryItemFromOrder_result deepCopy() {
14270
      return new getInventoryItemFromOrder_result(this);
14271
    }
14272
 
14273
    @Override
14274
    public void clear() {
14275
      this.success = null;
14276
      this.we = null;
14277
    }
14278
 
14279
    public InventoryItem getSuccess() {
14280
      return this.success;
14281
    }
14282
 
14283
    public void setSuccess(InventoryItem success) {
14284
      this.success = success;
14285
    }
14286
 
14287
    public void unsetSuccess() {
14288
      this.success = null;
14289
    }
14290
 
14291
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14292
    public boolean isSetSuccess() {
14293
      return this.success != null;
14294
    }
14295
 
14296
    public void setSuccessIsSet(boolean value) {
14297
      if (!value) {
14298
        this.success = null;
14299
      }
14300
    }
14301
 
14302
    public WarehouseServiceException getWe() {
14303
      return this.we;
14304
    }
14305
 
14306
    public void setWe(WarehouseServiceException we) {
14307
      this.we = we;
14308
    }
14309
 
14310
    public void unsetWe() {
14311
      this.we = null;
14312
    }
14313
 
14314
    /** Returns true if field we is set (has been assigned a value) and false otherwise */
14315
    public boolean isSetWe() {
14316
      return this.we != null;
14317
    }
14318
 
14319
    public void setWeIsSet(boolean value) {
14320
      if (!value) {
14321
        this.we = null;
14322
      }
14323
    }
14324
 
14325
    public void setFieldValue(_Fields field, Object value) {
14326
      switch (field) {
14327
      case SUCCESS:
14328
        if (value == null) {
14329
          unsetSuccess();
14330
        } else {
14331
          setSuccess((InventoryItem)value);
14332
        }
14333
        break;
14334
 
14335
      case WE:
14336
        if (value == null) {
14337
          unsetWe();
14338
        } else {
14339
          setWe((WarehouseServiceException)value);
14340
        }
14341
        break;
14342
 
14343
      }
14344
    }
14345
 
14346
    public Object getFieldValue(_Fields field) {
14347
      switch (field) {
14348
      case SUCCESS:
14349
        return getSuccess();
14350
 
14351
      case WE:
14352
        return getWe();
14353
 
14354
      }
14355
      throw new IllegalStateException();
14356
    }
14357
 
14358
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14359
    public boolean isSet(_Fields field) {
14360
      if (field == null) {
14361
        throw new IllegalArgumentException();
14362
      }
14363
 
14364
      switch (field) {
14365
      case SUCCESS:
14366
        return isSetSuccess();
14367
      case WE:
14368
        return isSetWe();
14369
      }
14370
      throw new IllegalStateException();
14371
    }
14372
 
14373
    @Override
14374
    public boolean equals(Object that) {
14375
      if (that == null)
14376
        return false;
14377
      if (that instanceof getInventoryItemFromOrder_result)
14378
        return this.equals((getInventoryItemFromOrder_result)that);
14379
      return false;
14380
    }
14381
 
14382
    public boolean equals(getInventoryItemFromOrder_result that) {
14383
      if (that == null)
14384
        return false;
14385
 
14386
      boolean this_present_success = true && this.isSetSuccess();
14387
      boolean that_present_success = true && that.isSetSuccess();
14388
      if (this_present_success || that_present_success) {
14389
        if (!(this_present_success && that_present_success))
14390
          return false;
14391
        if (!this.success.equals(that.success))
14392
          return false;
14393
      }
14394
 
14395
      boolean this_present_we = true && this.isSetWe();
14396
      boolean that_present_we = true && that.isSetWe();
14397
      if (this_present_we || that_present_we) {
14398
        if (!(this_present_we && that_present_we))
14399
          return false;
14400
        if (!this.we.equals(that.we))
14401
          return false;
14402
      }
14403
 
14404
      return true;
14405
    }
14406
 
14407
    @Override
14408
    public int hashCode() {
14409
      return 0;
14410
    }
14411
 
14412
    public int compareTo(getInventoryItemFromOrder_result other) {
14413
      if (!getClass().equals(other.getClass())) {
14414
        return getClass().getName().compareTo(other.getClass().getName());
14415
      }
14416
 
14417
      int lastComparison = 0;
14418
      getInventoryItemFromOrder_result typedOther = (getInventoryItemFromOrder_result)other;
14419
 
14420
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14421
      if (lastComparison != 0) {
14422
        return lastComparison;
14423
      }
14424
      if (isSetSuccess()) {
14425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14426
        if (lastComparison != 0) {
14427
          return lastComparison;
14428
        }
14429
      }
14430
      lastComparison = Boolean.valueOf(isSetWe()).compareTo(typedOther.isSetWe());
14431
      if (lastComparison != 0) {
14432
        return lastComparison;
14433
      }
14434
      if (isSetWe()) {
14435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.we, typedOther.we);
14436
        if (lastComparison != 0) {
14437
          return lastComparison;
14438
        }
14439
      }
14440
      return 0;
14441
    }
14442
 
14443
    public _Fields fieldForId(int fieldId) {
14444
      return _Fields.findByThriftId(fieldId);
14445
    }
14446
 
14447
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14448
      org.apache.thrift.protocol.TField field;
14449
      iprot.readStructBegin();
14450
      while (true)
14451
      {
14452
        field = iprot.readFieldBegin();
14453
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14454
          break;
14455
        }
14456
        switch (field.id) {
14457
          case 0: // SUCCESS
14458
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14459
              this.success = new InventoryItem();
14460
              this.success.read(iprot);
14461
            } else { 
14462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14463
            }
14464
            break;
14465
          case 1: // WE
14466
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14467
              this.we = new WarehouseServiceException();
14468
              this.we.read(iprot);
14469
            } else { 
14470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14471
            }
14472
            break;
14473
          default:
14474
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14475
        }
14476
        iprot.readFieldEnd();
14477
      }
14478
      iprot.readStructEnd();
14479
      validate();
14480
    }
14481
 
14482
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14483
      oprot.writeStructBegin(STRUCT_DESC);
14484
 
14485
      if (this.isSetSuccess()) {
14486
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14487
        this.success.write(oprot);
14488
        oprot.writeFieldEnd();
14489
      } else if (this.isSetWe()) {
14490
        oprot.writeFieldBegin(WE_FIELD_DESC);
14491
        this.we.write(oprot);
14492
        oprot.writeFieldEnd();
14493
      }
14494
      oprot.writeFieldStop();
14495
      oprot.writeStructEnd();
14496
    }
14497
 
14498
    @Override
14499
    public String toString() {
14500
      StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_result(");
14501
      boolean first = true;
14502
 
14503
      sb.append("success:");
14504
      if (this.success == null) {
14505
        sb.append("null");
14506
      } else {
14507
        sb.append(this.success);
14508
      }
14509
      first = false;
14510
      if (!first) sb.append(", ");
14511
      sb.append("we:");
14512
      if (this.we == null) {
14513
        sb.append("null");
14514
      } else {
14515
        sb.append(this.we);
14516
      }
14517
      first = false;
14518
      sb.append(")");
14519
      return sb.toString();
14520
    }
14521
 
14522
    public void validate() throws org.apache.thrift.TException {
14523
      // check for required fields
14524
    }
14525
 
14526
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14527
      try {
14528
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14529
      } catch (org.apache.thrift.TException te) {
14530
        throw new java.io.IOException(te);
14531
      }
14532
    }
14533
 
14534
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14535
      try {
14536
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14537
      } catch (org.apache.thrift.TException te) {
14538
        throw new java.io.IOException(te);
14539
      }
14540
    }
14541
 
14542
  }
14543
 
5711 mandeep.dh 14544
  public static class getInventoryAge_args implements org.apache.thrift.TBase<getInventoryAge_args, getInventoryAge_args._Fields>, java.io.Serializable, Cloneable   {
14545
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_args");
14546
 
14547
 
14548
 
14549
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14550
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14551
;
14552
 
14553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14554
 
14555
      static {
14556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14557
          byName.put(field.getFieldName(), field);
14558
        }
14559
      }
14560
 
14561
      /**
14562
       * Find the _Fields constant that matches fieldId, or null if its not found.
14563
       */
14564
      public static _Fields findByThriftId(int fieldId) {
14565
        switch(fieldId) {
14566
          default:
14567
            return null;
14568
        }
14569
      }
14570
 
14571
      /**
14572
       * Find the _Fields constant that matches fieldId, throwing an exception
14573
       * if it is not found.
14574
       */
14575
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14576
        _Fields fields = findByThriftId(fieldId);
14577
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14578
        return fields;
14579
      }
14580
 
14581
      /**
14582
       * Find the _Fields constant that matches name, or null if its not found.
14583
       */
14584
      public static _Fields findByName(String name) {
14585
        return byName.get(name);
14586
      }
14587
 
14588
      private final short _thriftId;
14589
      private final String _fieldName;
14590
 
14591
      _Fields(short thriftId, String fieldName) {
14592
        _thriftId = thriftId;
14593
        _fieldName = fieldName;
14594
      }
14595
 
14596
      public short getThriftFieldId() {
14597
        return _thriftId;
14598
      }
14599
 
14600
      public String getFieldName() {
14601
        return _fieldName;
14602
      }
14603
    }
14604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14605
    static {
14606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14607
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14608
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_args.class, metaDataMap);
14609
    }
14610
 
14611
    public getInventoryAge_args() {
14612
    }
14613
 
14614
    /**
14615
     * Performs a deep copy on <i>other</i>.
14616
     */
14617
    public getInventoryAge_args(getInventoryAge_args other) {
14618
    }
14619
 
14620
    public getInventoryAge_args deepCopy() {
14621
      return new getInventoryAge_args(this);
14622
    }
14623
 
14624
    @Override
14625
    public void clear() {
14626
    }
14627
 
14628
    public void setFieldValue(_Fields field, Object value) {
14629
      switch (field) {
14630
      }
14631
    }
14632
 
14633
    public Object getFieldValue(_Fields field) {
14634
      switch (field) {
14635
      }
14636
      throw new IllegalStateException();
14637
    }
14638
 
14639
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14640
    public boolean isSet(_Fields field) {
14641
      if (field == null) {
14642
        throw new IllegalArgumentException();
14643
      }
14644
 
14645
      switch (field) {
14646
      }
14647
      throw new IllegalStateException();
14648
    }
14649
 
14650
    @Override
14651
    public boolean equals(Object that) {
14652
      if (that == null)
14653
        return false;
14654
      if (that instanceof getInventoryAge_args)
14655
        return this.equals((getInventoryAge_args)that);
14656
      return false;
14657
    }
14658
 
14659
    public boolean equals(getInventoryAge_args that) {
14660
      if (that == null)
14661
        return false;
14662
 
14663
      return true;
14664
    }
14665
 
14666
    @Override
14667
    public int hashCode() {
14668
      return 0;
14669
    }
14670
 
14671
    public int compareTo(getInventoryAge_args other) {
14672
      if (!getClass().equals(other.getClass())) {
14673
        return getClass().getName().compareTo(other.getClass().getName());
14674
      }
14675
 
14676
      int lastComparison = 0;
14677
      getInventoryAge_args typedOther = (getInventoryAge_args)other;
14678
 
14679
      return 0;
14680
    }
14681
 
14682
    public _Fields fieldForId(int fieldId) {
14683
      return _Fields.findByThriftId(fieldId);
14684
    }
14685
 
14686
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14687
      org.apache.thrift.protocol.TField field;
14688
      iprot.readStructBegin();
14689
      while (true)
14690
      {
14691
        field = iprot.readFieldBegin();
14692
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14693
          break;
14694
        }
14695
        switch (field.id) {
14696
          default:
14697
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14698
        }
14699
        iprot.readFieldEnd();
14700
      }
14701
      iprot.readStructEnd();
14702
      validate();
14703
    }
14704
 
14705
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14706
      validate();
14707
 
14708
      oprot.writeStructBegin(STRUCT_DESC);
14709
      oprot.writeFieldStop();
14710
      oprot.writeStructEnd();
14711
    }
14712
 
14713
    @Override
14714
    public String toString() {
14715
      StringBuilder sb = new StringBuilder("getInventoryAge_args(");
14716
      boolean first = true;
14717
 
14718
      sb.append(")");
14719
      return sb.toString();
14720
    }
14721
 
14722
    public void validate() throws org.apache.thrift.TException {
14723
      // check for required fields
14724
    }
14725
 
14726
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14727
      try {
14728
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14729
      } catch (org.apache.thrift.TException te) {
14730
        throw new java.io.IOException(te);
14731
      }
14732
    }
14733
 
14734
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14735
      try {
14736
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14737
      } catch (org.apache.thrift.TException te) {
14738
        throw new java.io.IOException(te);
14739
      }
14740
    }
14741
 
14742
  }
14743
 
14744
  public static class getInventoryAge_result implements org.apache.thrift.TBase<getInventoryAge_result, getInventoryAge_result._Fields>, java.io.Serializable, Cloneable   {
14745
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_result");
14746
 
14747
    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);
14748
 
14749
    private List<InventoryAge> success; // required
14750
 
14751
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14752
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14753
      SUCCESS((short)0, "success");
14754
 
14755
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14756
 
14757
      static {
14758
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14759
          byName.put(field.getFieldName(), field);
14760
        }
14761
      }
14762
 
14763
      /**
14764
       * Find the _Fields constant that matches fieldId, or null if its not found.
14765
       */
14766
      public static _Fields findByThriftId(int fieldId) {
14767
        switch(fieldId) {
14768
          case 0: // SUCCESS
14769
            return SUCCESS;
14770
          default:
14771
            return null;
14772
        }
14773
      }
14774
 
14775
      /**
14776
       * Find the _Fields constant that matches fieldId, throwing an exception
14777
       * if it is not found.
14778
       */
14779
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14780
        _Fields fields = findByThriftId(fieldId);
14781
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14782
        return fields;
14783
      }
14784
 
14785
      /**
14786
       * Find the _Fields constant that matches name, or null if its not found.
14787
       */
14788
      public static _Fields findByName(String name) {
14789
        return byName.get(name);
14790
      }
14791
 
14792
      private final short _thriftId;
14793
      private final String _fieldName;
14794
 
14795
      _Fields(short thriftId, String fieldName) {
14796
        _thriftId = thriftId;
14797
        _fieldName = fieldName;
14798
      }
14799
 
14800
      public short getThriftFieldId() {
14801
        return _thriftId;
14802
      }
14803
 
14804
      public String getFieldName() {
14805
        return _fieldName;
14806
      }
14807
    }
14808
 
14809
    // isset id assignments
14810
 
14811
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14812
    static {
14813
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14814
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14815
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14816
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAge.class))));
14817
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14818
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_result.class, metaDataMap);
14819
    }
14820
 
14821
    public getInventoryAge_result() {
14822
    }
14823
 
14824
    public getInventoryAge_result(
14825
      List<InventoryAge> success)
14826
    {
14827
      this();
14828
      this.success = success;
14829
    }
14830
 
14831
    /**
14832
     * Performs a deep copy on <i>other</i>.
14833
     */
14834
    public getInventoryAge_result(getInventoryAge_result other) {
14835
      if (other.isSetSuccess()) {
14836
        List<InventoryAge> __this__success = new ArrayList<InventoryAge>();
14837
        for (InventoryAge other_element : other.success) {
14838
          __this__success.add(new InventoryAge(other_element));
14839
        }
14840
        this.success = __this__success;
14841
      }
14842
    }
14843
 
14844
    public getInventoryAge_result deepCopy() {
14845
      return new getInventoryAge_result(this);
14846
    }
14847
 
14848
    @Override
14849
    public void clear() {
14850
      this.success = null;
14851
    }
14852
 
14853
    public int getSuccessSize() {
14854
      return (this.success == null) ? 0 : this.success.size();
14855
    }
14856
 
14857
    public java.util.Iterator<InventoryAge> getSuccessIterator() {
14858
      return (this.success == null) ? null : this.success.iterator();
14859
    }
14860
 
14861
    public void addToSuccess(InventoryAge elem) {
14862
      if (this.success == null) {
14863
        this.success = new ArrayList<InventoryAge>();
14864
      }
14865
      this.success.add(elem);
14866
    }
14867
 
14868
    public List<InventoryAge> getSuccess() {
14869
      return this.success;
14870
    }
14871
 
14872
    public void setSuccess(List<InventoryAge> success) {
14873
      this.success = success;
14874
    }
14875
 
14876
    public void unsetSuccess() {
14877
      this.success = null;
14878
    }
14879
 
14880
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14881
    public boolean isSetSuccess() {
14882
      return this.success != null;
14883
    }
14884
 
14885
    public void setSuccessIsSet(boolean value) {
14886
      if (!value) {
14887
        this.success = null;
14888
      }
14889
    }
14890
 
14891
    public void setFieldValue(_Fields field, Object value) {
14892
      switch (field) {
14893
      case SUCCESS:
14894
        if (value == null) {
14895
          unsetSuccess();
14896
        } else {
14897
          setSuccess((List<InventoryAge>)value);
14898
        }
14899
        break;
14900
 
14901
      }
14902
    }
14903
 
14904
    public Object getFieldValue(_Fields field) {
14905
      switch (field) {
14906
      case SUCCESS:
14907
        return getSuccess();
14908
 
14909
      }
14910
      throw new IllegalStateException();
14911
    }
14912
 
14913
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14914
    public boolean isSet(_Fields field) {
14915
      if (field == null) {
14916
        throw new IllegalArgumentException();
14917
      }
14918
 
14919
      switch (field) {
14920
      case SUCCESS:
14921
        return isSetSuccess();
14922
      }
14923
      throw new IllegalStateException();
14924
    }
14925
 
14926
    @Override
14927
    public boolean equals(Object that) {
14928
      if (that == null)
14929
        return false;
14930
      if (that instanceof getInventoryAge_result)
14931
        return this.equals((getInventoryAge_result)that);
14932
      return false;
14933
    }
14934
 
14935
    public boolean equals(getInventoryAge_result that) {
14936
      if (that == null)
14937
        return false;
14938
 
14939
      boolean this_present_success = true && this.isSetSuccess();
14940
      boolean that_present_success = true && that.isSetSuccess();
14941
      if (this_present_success || that_present_success) {
14942
        if (!(this_present_success && that_present_success))
14943
          return false;
14944
        if (!this.success.equals(that.success))
14945
          return false;
14946
      }
14947
 
14948
      return true;
14949
    }
14950
 
14951
    @Override
14952
    public int hashCode() {
14953
      return 0;
14954
    }
14955
 
14956
    public int compareTo(getInventoryAge_result other) {
14957
      if (!getClass().equals(other.getClass())) {
14958
        return getClass().getName().compareTo(other.getClass().getName());
14959
      }
14960
 
14961
      int lastComparison = 0;
14962
      getInventoryAge_result typedOther = (getInventoryAge_result)other;
14963
 
14964
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14965
      if (lastComparison != 0) {
14966
        return lastComparison;
14967
      }
14968
      if (isSetSuccess()) {
14969
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14970
        if (lastComparison != 0) {
14971
          return lastComparison;
14972
        }
14973
      }
14974
      return 0;
14975
    }
14976
 
14977
    public _Fields fieldForId(int fieldId) {
14978
      return _Fields.findByThriftId(fieldId);
14979
    }
14980
 
14981
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14982
      org.apache.thrift.protocol.TField field;
14983
      iprot.readStructBegin();
14984
      while (true)
14985
      {
14986
        field = iprot.readFieldBegin();
14987
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14988
          break;
14989
        }
14990
        switch (field.id) {
14991
          case 0: // SUCCESS
14992
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14993
              {
7210 amar.kumar 14994
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
14995
                this.success = new ArrayList<InventoryAge>(_list24.size);
14996
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
5711 mandeep.dh 14997
                {
7210 amar.kumar 14998
                  InventoryAge _elem26; // required
14999
                  _elem26 = new InventoryAge();
15000
                  _elem26.read(iprot);
15001
                  this.success.add(_elem26);
5711 mandeep.dh 15002
                }
15003
                iprot.readListEnd();
15004
              }
15005
            } else { 
15006
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15007
            }
15008
            break;
15009
          default:
15010
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15011
        }
15012
        iprot.readFieldEnd();
15013
      }
15014
      iprot.readStructEnd();
15015
      validate();
15016
    }
15017
 
15018
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15019
      oprot.writeStructBegin(STRUCT_DESC);
15020
 
15021
      if (this.isSetSuccess()) {
15022
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15023
        {
15024
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 15025
          for (InventoryAge _iter27 : this.success)
5711 mandeep.dh 15026
          {
7210 amar.kumar 15027
            _iter27.write(oprot);
5711 mandeep.dh 15028
          }
15029
          oprot.writeListEnd();
15030
        }
15031
        oprot.writeFieldEnd();
15032
      }
15033
      oprot.writeFieldStop();
15034
      oprot.writeStructEnd();
15035
    }
15036
 
15037
    @Override
15038
    public String toString() {
15039
      StringBuilder sb = new StringBuilder("getInventoryAge_result(");
15040
      boolean first = true;
15041
 
15042
      sb.append("success:");
15043
      if (this.success == null) {
15044
        sb.append("null");
15045
      } else {
15046
        sb.append(this.success);
15047
      }
15048
      first = false;
15049
      sb.append(")");
15050
      return sb.toString();
15051
    }
15052
 
15053
    public void validate() throws org.apache.thrift.TException {
15054
      // check for required fields
15055
    }
15056
 
15057
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15058
      try {
15059
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15060
      } catch (org.apache.thrift.TException te) {
15061
        throw new java.io.IOException(te);
15062
      }
15063
    }
15064
 
15065
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15066
      try {
15067
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15068
      } catch (org.apache.thrift.TException te) {
15069
        throw new java.io.IOException(te);
15070
      }
15071
    }
15072
 
15073
  }
15074
 
6322 amar.kumar 15075
  public static class getInventoryScansForItem_args implements org.apache.thrift.TBase<getInventoryScansForItem_args, getInventoryScansForItem_args._Fields>, java.io.Serializable, Cloneable   {
15076
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_args");
15077
 
15078
    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);
15079
    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);
15080
    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);
15081
 
15082
    private long itemId; // required
15083
    private long fromDate; // required
15084
    private long toDate; // required
15085
 
15086
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15087
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15088
      ITEM_ID((short)1, "itemId"),
15089
      FROM_DATE((short)2, "fromDate"),
15090
      TO_DATE((short)3, "toDate");
15091
 
15092
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15093
 
15094
      static {
15095
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15096
          byName.put(field.getFieldName(), field);
15097
        }
15098
      }
15099
 
15100
      /**
15101
       * Find the _Fields constant that matches fieldId, or null if its not found.
15102
       */
15103
      public static _Fields findByThriftId(int fieldId) {
15104
        switch(fieldId) {
15105
          case 1: // ITEM_ID
15106
            return ITEM_ID;
15107
          case 2: // FROM_DATE
15108
            return FROM_DATE;
15109
          case 3: // TO_DATE
15110
            return TO_DATE;
15111
          default:
15112
            return null;
15113
        }
15114
      }
15115
 
15116
      /**
15117
       * Find the _Fields constant that matches fieldId, throwing an exception
15118
       * if it is not found.
15119
       */
15120
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15121
        _Fields fields = findByThriftId(fieldId);
15122
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15123
        return fields;
15124
      }
15125
 
15126
      /**
15127
       * Find the _Fields constant that matches name, or null if its not found.
15128
       */
15129
      public static _Fields findByName(String name) {
15130
        return byName.get(name);
15131
      }
15132
 
15133
      private final short _thriftId;
15134
      private final String _fieldName;
15135
 
15136
      _Fields(short thriftId, String fieldName) {
15137
        _thriftId = thriftId;
15138
        _fieldName = fieldName;
15139
      }
15140
 
15141
      public short getThriftFieldId() {
15142
        return _thriftId;
15143
      }
15144
 
15145
      public String getFieldName() {
15146
        return _fieldName;
15147
      }
15148
    }
15149
 
15150
    // isset id assignments
15151
    private static final int __ITEMID_ISSET_ID = 0;
15152
    private static final int __FROMDATE_ISSET_ID = 1;
15153
    private static final int __TODATE_ISSET_ID = 2;
15154
    private BitSet __isset_bit_vector = new BitSet(3);
15155
 
15156
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15157
    static {
15158
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15159
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15160
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15161
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15162
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15163
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_args.class, metaDataMap);
15167
    }
15168
 
15169
    public getInventoryScansForItem_args() {
15170
    }
15171
 
15172
    public getInventoryScansForItem_args(
15173
      long itemId,
15174
      long fromDate,
15175
      long toDate)
15176
    {
15177
      this();
15178
      this.itemId = itemId;
15179
      setItemIdIsSet(true);
15180
      this.fromDate = fromDate;
15181
      setFromDateIsSet(true);
15182
      this.toDate = toDate;
15183
      setToDateIsSet(true);
15184
    }
15185
 
15186
    /**
15187
     * Performs a deep copy on <i>other</i>.
15188
     */
15189
    public getInventoryScansForItem_args(getInventoryScansForItem_args other) {
15190
      __isset_bit_vector.clear();
15191
      __isset_bit_vector.or(other.__isset_bit_vector);
15192
      this.itemId = other.itemId;
15193
      this.fromDate = other.fromDate;
15194
      this.toDate = other.toDate;
15195
    }
15196
 
15197
    public getInventoryScansForItem_args deepCopy() {
15198
      return new getInventoryScansForItem_args(this);
15199
    }
15200
 
15201
    @Override
15202
    public void clear() {
15203
      setItemIdIsSet(false);
15204
      this.itemId = 0;
15205
      setFromDateIsSet(false);
15206
      this.fromDate = 0;
15207
      setToDateIsSet(false);
15208
      this.toDate = 0;
15209
    }
15210
 
15211
    public long getItemId() {
15212
      return this.itemId;
15213
    }
15214
 
15215
    public void setItemId(long itemId) {
15216
      this.itemId = itemId;
15217
      setItemIdIsSet(true);
15218
    }
15219
 
15220
    public void unsetItemId() {
15221
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15222
    }
15223
 
15224
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15225
    public boolean isSetItemId() {
15226
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15227
    }
15228
 
15229
    public void setItemIdIsSet(boolean value) {
15230
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15231
    }
15232
 
15233
    public long getFromDate() {
15234
      return this.fromDate;
15235
    }
15236
 
15237
    public void setFromDate(long fromDate) {
15238
      this.fromDate = fromDate;
15239
      setFromDateIsSet(true);
15240
    }
15241
 
15242
    public void unsetFromDate() {
15243
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
15244
    }
15245
 
15246
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
15247
    public boolean isSetFromDate() {
15248
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
15249
    }
15250
 
15251
    public void setFromDateIsSet(boolean value) {
15252
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
15253
    }
15254
 
15255
    public long getToDate() {
15256
      return this.toDate;
15257
    }
15258
 
15259
    public void setToDate(long toDate) {
15260
      this.toDate = toDate;
15261
      setToDateIsSet(true);
15262
    }
15263
 
15264
    public void unsetToDate() {
15265
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
15266
    }
15267
 
15268
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
15269
    public boolean isSetToDate() {
15270
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
15271
    }
15272
 
15273
    public void setToDateIsSet(boolean value) {
15274
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
15275
    }
15276
 
15277
    public void setFieldValue(_Fields field, Object value) {
15278
      switch (field) {
15279
      case ITEM_ID:
15280
        if (value == null) {
15281
          unsetItemId();
15282
        } else {
15283
          setItemId((Long)value);
15284
        }
15285
        break;
15286
 
15287
      case FROM_DATE:
15288
        if (value == null) {
15289
          unsetFromDate();
15290
        } else {
15291
          setFromDate((Long)value);
15292
        }
15293
        break;
15294
 
15295
      case TO_DATE:
15296
        if (value == null) {
15297
          unsetToDate();
15298
        } else {
15299
          setToDate((Long)value);
15300
        }
15301
        break;
15302
 
15303
      }
15304
    }
15305
 
15306
    public Object getFieldValue(_Fields field) {
15307
      switch (field) {
15308
      case ITEM_ID:
15309
        return Long.valueOf(getItemId());
15310
 
15311
      case FROM_DATE:
15312
        return Long.valueOf(getFromDate());
15313
 
15314
      case TO_DATE:
15315
        return Long.valueOf(getToDate());
15316
 
15317
      }
15318
      throw new IllegalStateException();
15319
    }
15320
 
15321
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15322
    public boolean isSet(_Fields field) {
15323
      if (field == null) {
15324
        throw new IllegalArgumentException();
15325
      }
15326
 
15327
      switch (field) {
15328
      case ITEM_ID:
15329
        return isSetItemId();
15330
      case FROM_DATE:
15331
        return isSetFromDate();
15332
      case TO_DATE:
15333
        return isSetToDate();
15334
      }
15335
      throw new IllegalStateException();
15336
    }
15337
 
15338
    @Override
15339
    public boolean equals(Object that) {
15340
      if (that == null)
15341
        return false;
15342
      if (that instanceof getInventoryScansForItem_args)
15343
        return this.equals((getInventoryScansForItem_args)that);
15344
      return false;
15345
    }
15346
 
15347
    public boolean equals(getInventoryScansForItem_args that) {
15348
      if (that == null)
15349
        return false;
15350
 
15351
      boolean this_present_itemId = true;
15352
      boolean that_present_itemId = true;
15353
      if (this_present_itemId || that_present_itemId) {
15354
        if (!(this_present_itemId && that_present_itemId))
15355
          return false;
15356
        if (this.itemId != that.itemId)
15357
          return false;
15358
      }
15359
 
15360
      boolean this_present_fromDate = true;
15361
      boolean that_present_fromDate = true;
15362
      if (this_present_fromDate || that_present_fromDate) {
15363
        if (!(this_present_fromDate && that_present_fromDate))
15364
          return false;
15365
        if (this.fromDate != that.fromDate)
15366
          return false;
15367
      }
15368
 
15369
      boolean this_present_toDate = true;
15370
      boolean that_present_toDate = true;
15371
      if (this_present_toDate || that_present_toDate) {
15372
        if (!(this_present_toDate && that_present_toDate))
15373
          return false;
15374
        if (this.toDate != that.toDate)
15375
          return false;
15376
      }
15377
 
15378
      return true;
15379
    }
15380
 
15381
    @Override
15382
    public int hashCode() {
15383
      return 0;
15384
    }
15385
 
15386
    public int compareTo(getInventoryScansForItem_args other) {
15387
      if (!getClass().equals(other.getClass())) {
15388
        return getClass().getName().compareTo(other.getClass().getName());
15389
      }
15390
 
15391
      int lastComparison = 0;
15392
      getInventoryScansForItem_args typedOther = (getInventoryScansForItem_args)other;
15393
 
15394
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15395
      if (lastComparison != 0) {
15396
        return lastComparison;
15397
      }
15398
      if (isSetItemId()) {
15399
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15400
        if (lastComparison != 0) {
15401
          return lastComparison;
15402
        }
15403
      }
15404
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
15405
      if (lastComparison != 0) {
15406
        return lastComparison;
15407
      }
15408
      if (isSetFromDate()) {
15409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
15410
        if (lastComparison != 0) {
15411
          return lastComparison;
15412
        }
15413
      }
15414
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
15415
      if (lastComparison != 0) {
15416
        return lastComparison;
15417
      }
15418
      if (isSetToDate()) {
15419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
15420
        if (lastComparison != 0) {
15421
          return lastComparison;
15422
        }
15423
      }
15424
      return 0;
15425
    }
15426
 
15427
    public _Fields fieldForId(int fieldId) {
15428
      return _Fields.findByThriftId(fieldId);
15429
    }
15430
 
15431
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15432
      org.apache.thrift.protocol.TField field;
15433
      iprot.readStructBegin();
15434
      while (true)
15435
      {
15436
        field = iprot.readFieldBegin();
15437
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15438
          break;
15439
        }
15440
        switch (field.id) {
15441
          case 1: // ITEM_ID
15442
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15443
              this.itemId = iprot.readI64();
15444
              setItemIdIsSet(true);
15445
            } else { 
15446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15447
            }
15448
            break;
15449
          case 2: // FROM_DATE
15450
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15451
              this.fromDate = iprot.readI64();
15452
              setFromDateIsSet(true);
15453
            } else { 
15454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15455
            }
15456
            break;
15457
          case 3: // TO_DATE
15458
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15459
              this.toDate = iprot.readI64();
15460
              setToDateIsSet(true);
15461
            } else { 
15462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15463
            }
15464
            break;
15465
          default:
15466
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15467
        }
15468
        iprot.readFieldEnd();
15469
      }
15470
      iprot.readStructEnd();
15471
      validate();
15472
    }
15473
 
15474
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15475
      validate();
15476
 
15477
      oprot.writeStructBegin(STRUCT_DESC);
15478
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15479
      oprot.writeI64(this.itemId);
15480
      oprot.writeFieldEnd();
15481
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
15482
      oprot.writeI64(this.fromDate);
15483
      oprot.writeFieldEnd();
15484
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
15485
      oprot.writeI64(this.toDate);
15486
      oprot.writeFieldEnd();
15487
      oprot.writeFieldStop();
15488
      oprot.writeStructEnd();
15489
    }
15490
 
15491
    @Override
15492
    public String toString() {
15493
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_args(");
15494
      boolean first = true;
15495
 
15496
      sb.append("itemId:");
15497
      sb.append(this.itemId);
15498
      first = false;
15499
      if (!first) sb.append(", ");
15500
      sb.append("fromDate:");
15501
      sb.append(this.fromDate);
15502
      first = false;
15503
      if (!first) sb.append(", ");
15504
      sb.append("toDate:");
15505
      sb.append(this.toDate);
15506
      first = false;
15507
      sb.append(")");
15508
      return sb.toString();
15509
    }
15510
 
15511
    public void validate() throws org.apache.thrift.TException {
15512
      // check for required fields
15513
    }
15514
 
15515
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15516
      try {
15517
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15518
      } catch (org.apache.thrift.TException te) {
15519
        throw new java.io.IOException(te);
15520
      }
15521
    }
15522
 
15523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15524
      try {
15525
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15526
      } catch (org.apache.thrift.TException te) {
15527
        throw new java.io.IOException(te);
15528
      }
15529
    }
15530
 
15531
  }
15532
 
15533
  public static class getInventoryScansForItem_result implements org.apache.thrift.TBase<getInventoryScansForItem_result, getInventoryScansForItem_result._Fields>, java.io.Serializable, Cloneable   {
15534
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_result");
15535
 
15536
    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);
15537
 
15538
    private List<Scan> success; // required
15539
 
15540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15541
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15542
      SUCCESS((short)0, "success");
15543
 
15544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15545
 
15546
      static {
15547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15548
          byName.put(field.getFieldName(), field);
15549
        }
15550
      }
15551
 
15552
      /**
15553
       * Find the _Fields constant that matches fieldId, or null if its not found.
15554
       */
15555
      public static _Fields findByThriftId(int fieldId) {
15556
        switch(fieldId) {
15557
          case 0: // SUCCESS
15558
            return SUCCESS;
15559
          default:
15560
            return null;
15561
        }
15562
      }
15563
 
15564
      /**
15565
       * Find the _Fields constant that matches fieldId, throwing an exception
15566
       * if it is not found.
15567
       */
15568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15569
        _Fields fields = findByThriftId(fieldId);
15570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15571
        return fields;
15572
      }
15573
 
15574
      /**
15575
       * Find the _Fields constant that matches name, or null if its not found.
15576
       */
15577
      public static _Fields findByName(String name) {
15578
        return byName.get(name);
15579
      }
15580
 
15581
      private final short _thriftId;
15582
      private final String _fieldName;
15583
 
15584
      _Fields(short thriftId, String fieldName) {
15585
        _thriftId = thriftId;
15586
        _fieldName = fieldName;
15587
      }
15588
 
15589
      public short getThriftFieldId() {
15590
        return _thriftId;
15591
      }
15592
 
15593
      public String getFieldName() {
15594
        return _fieldName;
15595
      }
15596
    }
15597
 
15598
    // isset id assignments
15599
 
15600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15601
    static {
15602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15603
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15604
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15605
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
15606
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15607
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_result.class, metaDataMap);
15608
    }
15609
 
15610
    public getInventoryScansForItem_result() {
15611
    }
15612
 
15613
    public getInventoryScansForItem_result(
15614
      List<Scan> success)
15615
    {
15616
      this();
15617
      this.success = success;
15618
    }
15619
 
15620
    /**
15621
     * Performs a deep copy on <i>other</i>.
15622
     */
15623
    public getInventoryScansForItem_result(getInventoryScansForItem_result other) {
15624
      if (other.isSetSuccess()) {
15625
        List<Scan> __this__success = new ArrayList<Scan>();
15626
        for (Scan other_element : other.success) {
15627
          __this__success.add(new Scan(other_element));
15628
        }
15629
        this.success = __this__success;
15630
      }
15631
    }
15632
 
15633
    public getInventoryScansForItem_result deepCopy() {
15634
      return new getInventoryScansForItem_result(this);
15635
    }
15636
 
15637
    @Override
15638
    public void clear() {
15639
      this.success = null;
15640
    }
15641
 
15642
    public int getSuccessSize() {
15643
      return (this.success == null) ? 0 : this.success.size();
15644
    }
15645
 
15646
    public java.util.Iterator<Scan> getSuccessIterator() {
15647
      return (this.success == null) ? null : this.success.iterator();
15648
    }
15649
 
15650
    public void addToSuccess(Scan elem) {
15651
      if (this.success == null) {
15652
        this.success = new ArrayList<Scan>();
15653
      }
15654
      this.success.add(elem);
15655
    }
15656
 
15657
    public List<Scan> getSuccess() {
15658
      return this.success;
15659
    }
15660
 
15661
    public void setSuccess(List<Scan> success) {
15662
      this.success = success;
15663
    }
15664
 
15665
    public void unsetSuccess() {
15666
      this.success = null;
15667
    }
15668
 
15669
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15670
    public boolean isSetSuccess() {
15671
      return this.success != null;
15672
    }
15673
 
15674
    public void setSuccessIsSet(boolean value) {
15675
      if (!value) {
15676
        this.success = null;
15677
      }
15678
    }
15679
 
15680
    public void setFieldValue(_Fields field, Object value) {
15681
      switch (field) {
15682
      case SUCCESS:
15683
        if (value == null) {
15684
          unsetSuccess();
15685
        } else {
15686
          setSuccess((List<Scan>)value);
15687
        }
15688
        break;
15689
 
15690
      }
15691
    }
15692
 
15693
    public Object getFieldValue(_Fields field) {
15694
      switch (field) {
15695
      case SUCCESS:
15696
        return getSuccess();
15697
 
15698
      }
15699
      throw new IllegalStateException();
15700
    }
15701
 
15702
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15703
    public boolean isSet(_Fields field) {
15704
      if (field == null) {
15705
        throw new IllegalArgumentException();
15706
      }
15707
 
15708
      switch (field) {
15709
      case SUCCESS:
15710
        return isSetSuccess();
15711
      }
15712
      throw new IllegalStateException();
15713
    }
15714
 
15715
    @Override
15716
    public boolean equals(Object that) {
15717
      if (that == null)
15718
        return false;
15719
      if (that instanceof getInventoryScansForItem_result)
15720
        return this.equals((getInventoryScansForItem_result)that);
15721
      return false;
15722
    }
15723
 
15724
    public boolean equals(getInventoryScansForItem_result that) {
15725
      if (that == null)
15726
        return false;
15727
 
15728
      boolean this_present_success = true && this.isSetSuccess();
15729
      boolean that_present_success = true && that.isSetSuccess();
15730
      if (this_present_success || that_present_success) {
15731
        if (!(this_present_success && that_present_success))
15732
          return false;
15733
        if (!this.success.equals(that.success))
15734
          return false;
15735
      }
15736
 
15737
      return true;
15738
    }
15739
 
15740
    @Override
15741
    public int hashCode() {
15742
      return 0;
15743
    }
15744
 
15745
    public int compareTo(getInventoryScansForItem_result other) {
15746
      if (!getClass().equals(other.getClass())) {
15747
        return getClass().getName().compareTo(other.getClass().getName());
15748
      }
15749
 
15750
      int lastComparison = 0;
15751
      getInventoryScansForItem_result typedOther = (getInventoryScansForItem_result)other;
15752
 
15753
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15754
      if (lastComparison != 0) {
15755
        return lastComparison;
15756
      }
15757
      if (isSetSuccess()) {
15758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15759
        if (lastComparison != 0) {
15760
          return lastComparison;
15761
        }
15762
      }
15763
      return 0;
15764
    }
15765
 
15766
    public _Fields fieldForId(int fieldId) {
15767
      return _Fields.findByThriftId(fieldId);
15768
    }
15769
 
15770
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15771
      org.apache.thrift.protocol.TField field;
15772
      iprot.readStructBegin();
15773
      while (true)
15774
      {
15775
        field = iprot.readFieldBegin();
15776
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15777
          break;
15778
        }
15779
        switch (field.id) {
15780
          case 0: // SUCCESS
15781
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15782
              {
7210 amar.kumar 15783
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
15784
                this.success = new ArrayList<Scan>(_list28.size);
15785
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
6322 amar.kumar 15786
                {
7210 amar.kumar 15787
                  Scan _elem30; // required
15788
                  _elem30 = new Scan();
15789
                  _elem30.read(iprot);
15790
                  this.success.add(_elem30);
6322 amar.kumar 15791
                }
15792
                iprot.readListEnd();
15793
              }
15794
            } else { 
15795
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15796
            }
15797
            break;
15798
          default:
15799
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15800
        }
15801
        iprot.readFieldEnd();
15802
      }
15803
      iprot.readStructEnd();
15804
      validate();
15805
    }
15806
 
15807
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15808
      oprot.writeStructBegin(STRUCT_DESC);
15809
 
15810
      if (this.isSetSuccess()) {
15811
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15812
        {
15813
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 15814
          for (Scan _iter31 : this.success)
6322 amar.kumar 15815
          {
7210 amar.kumar 15816
            _iter31.write(oprot);
6322 amar.kumar 15817
          }
15818
          oprot.writeListEnd();
15819
        }
15820
        oprot.writeFieldEnd();
15821
      }
15822
      oprot.writeFieldStop();
15823
      oprot.writeStructEnd();
15824
    }
15825
 
15826
    @Override
15827
    public String toString() {
15828
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_result(");
15829
      boolean first = true;
15830
 
15831
      sb.append("success:");
15832
      if (this.success == null) {
15833
        sb.append("null");
15834
      } else {
15835
        sb.append(this.success);
15836
      }
15837
      first = false;
15838
      sb.append(")");
15839
      return sb.toString();
15840
    }
15841
 
15842
    public void validate() throws org.apache.thrift.TException {
15843
      // check for required fields
15844
    }
15845
 
15846
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15847
      try {
15848
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15849
      } catch (org.apache.thrift.TException te) {
15850
        throw new java.io.IOException(te);
15851
      }
15852
    }
15853
 
15854
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15855
      try {
15856
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15857
      } catch (org.apache.thrift.TException te) {
15858
        throw new java.io.IOException(te);
15859
      }
15860
    }
15861
 
15862
  }
15863
 
15864
  public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable   {
15865
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
15866
 
7410 amar.kumar 15867
    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 15868
 
7410 amar.kumar 15869
    private String serialNumber; // required
6322 amar.kumar 15870
 
15871
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15872
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15873
      SERIAL_NUMBER((short)1, "serialNumber");
15874
 
15875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15876
 
15877
      static {
15878
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15879
          byName.put(field.getFieldName(), field);
15880
        }
15881
      }
15882
 
15883
      /**
15884
       * Find the _Fields constant that matches fieldId, or null if its not found.
15885
       */
15886
      public static _Fields findByThriftId(int fieldId) {
15887
        switch(fieldId) {
15888
          case 1: // SERIAL_NUMBER
15889
            return SERIAL_NUMBER;
15890
          default:
15891
            return null;
15892
        }
15893
      }
15894
 
15895
      /**
15896
       * Find the _Fields constant that matches fieldId, throwing an exception
15897
       * if it is not found.
15898
       */
15899
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15900
        _Fields fields = findByThriftId(fieldId);
15901
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15902
        return fields;
15903
      }
15904
 
15905
      /**
15906
       * Find the _Fields constant that matches name, or null if its not found.
15907
       */
15908
      public static _Fields findByName(String name) {
15909
        return byName.get(name);
15910
      }
15911
 
15912
      private final short _thriftId;
15913
      private final String _fieldName;
15914
 
15915
      _Fields(short thriftId, String fieldName) {
15916
        _thriftId = thriftId;
15917
        _fieldName = fieldName;
15918
      }
15919
 
15920
      public short getThriftFieldId() {
15921
        return _thriftId;
15922
      }
15923
 
15924
      public String getFieldName() {
15925
        return _fieldName;
15926
      }
15927
    }
15928
 
15929
    // isset id assignments
15930
 
15931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15932
    static {
15933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15934
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7410 amar.kumar 15935
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6322 amar.kumar 15936
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15937
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
15938
    }
15939
 
15940
    public getScanRecordsForSerialNumber_args() {
15941
    }
15942
 
15943
    public getScanRecordsForSerialNumber_args(
7410 amar.kumar 15944
      String serialNumber)
6322 amar.kumar 15945
    {
15946
      this();
15947
      this.serialNumber = serialNumber;
15948
    }
15949
 
15950
    /**
15951
     * Performs a deep copy on <i>other</i>.
15952
     */
15953
    public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
7410 amar.kumar 15954
      if (other.isSetSerialNumber()) {
15955
        this.serialNumber = other.serialNumber;
15956
      }
6322 amar.kumar 15957
    }
15958
 
15959
    public getScanRecordsForSerialNumber_args deepCopy() {
15960
      return new getScanRecordsForSerialNumber_args(this);
15961
    }
15962
 
15963
    @Override
15964
    public void clear() {
7410 amar.kumar 15965
      this.serialNumber = null;
6322 amar.kumar 15966
    }
15967
 
7410 amar.kumar 15968
    public String getSerialNumber() {
6322 amar.kumar 15969
      return this.serialNumber;
15970
    }
15971
 
7410 amar.kumar 15972
    public void setSerialNumber(String serialNumber) {
6322 amar.kumar 15973
      this.serialNumber = serialNumber;
15974
    }
15975
 
15976
    public void unsetSerialNumber() {
7410 amar.kumar 15977
      this.serialNumber = null;
6322 amar.kumar 15978
    }
15979
 
15980
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
15981
    public boolean isSetSerialNumber() {
7410 amar.kumar 15982
      return this.serialNumber != null;
6322 amar.kumar 15983
    }
15984
 
15985
    public void setSerialNumberIsSet(boolean value) {
7410 amar.kumar 15986
      if (!value) {
15987
        this.serialNumber = null;
15988
      }
6322 amar.kumar 15989
    }
15990
 
15991
    public void setFieldValue(_Fields field, Object value) {
15992
      switch (field) {
15993
      case SERIAL_NUMBER:
15994
        if (value == null) {
15995
          unsetSerialNumber();
15996
        } else {
7410 amar.kumar 15997
          setSerialNumber((String)value);
6322 amar.kumar 15998
        }
15999
        break;
16000
 
16001
      }
16002
    }
16003
 
16004
    public Object getFieldValue(_Fields field) {
16005
      switch (field) {
16006
      case SERIAL_NUMBER:
7410 amar.kumar 16007
        return getSerialNumber();
6322 amar.kumar 16008
 
16009
      }
16010
      throw new IllegalStateException();
16011
    }
16012
 
16013
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16014
    public boolean isSet(_Fields field) {
16015
      if (field == null) {
16016
        throw new IllegalArgumentException();
16017
      }
16018
 
16019
      switch (field) {
16020
      case SERIAL_NUMBER:
16021
        return isSetSerialNumber();
16022
      }
16023
      throw new IllegalStateException();
16024
    }
16025
 
16026
    @Override
16027
    public boolean equals(Object that) {
16028
      if (that == null)
16029
        return false;
16030
      if (that instanceof getScanRecordsForSerialNumber_args)
16031
        return this.equals((getScanRecordsForSerialNumber_args)that);
16032
      return false;
16033
    }
16034
 
16035
    public boolean equals(getScanRecordsForSerialNumber_args that) {
16036
      if (that == null)
16037
        return false;
16038
 
7410 amar.kumar 16039
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
16040
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
6322 amar.kumar 16041
      if (this_present_serialNumber || that_present_serialNumber) {
16042
        if (!(this_present_serialNumber && that_present_serialNumber))
16043
          return false;
7410 amar.kumar 16044
        if (!this.serialNumber.equals(that.serialNumber))
6322 amar.kumar 16045
          return false;
16046
      }
16047
 
16048
      return true;
16049
    }
16050
 
16051
    @Override
16052
    public int hashCode() {
16053
      return 0;
16054
    }
16055
 
16056
    public int compareTo(getScanRecordsForSerialNumber_args other) {
16057
      if (!getClass().equals(other.getClass())) {
16058
        return getClass().getName().compareTo(other.getClass().getName());
16059
      }
16060
 
16061
      int lastComparison = 0;
16062
      getScanRecordsForSerialNumber_args typedOther = (getScanRecordsForSerialNumber_args)other;
16063
 
16064
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
16065
      if (lastComparison != 0) {
16066
        return lastComparison;
16067
      }
16068
      if (isSetSerialNumber()) {
16069
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
16070
        if (lastComparison != 0) {
16071
          return lastComparison;
16072
        }
16073
      }
16074
      return 0;
16075
    }
16076
 
16077
    public _Fields fieldForId(int fieldId) {
16078
      return _Fields.findByThriftId(fieldId);
16079
    }
16080
 
16081
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16082
      org.apache.thrift.protocol.TField field;
16083
      iprot.readStructBegin();
16084
      while (true)
16085
      {
16086
        field = iprot.readFieldBegin();
16087
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16088
          break;
16089
        }
16090
        switch (field.id) {
16091
          case 1: // SERIAL_NUMBER
7410 amar.kumar 16092
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16093
              this.serialNumber = iprot.readString();
6322 amar.kumar 16094
            } else { 
16095
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16096
            }
16097
            break;
16098
          default:
16099
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16100
        }
16101
        iprot.readFieldEnd();
16102
      }
16103
      iprot.readStructEnd();
16104
      validate();
16105
    }
16106
 
16107
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16108
      validate();
16109
 
16110
      oprot.writeStructBegin(STRUCT_DESC);
7410 amar.kumar 16111
      if (this.serialNumber != null) {
16112
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
16113
        oprot.writeString(this.serialNumber);
16114
        oprot.writeFieldEnd();
16115
      }
6322 amar.kumar 16116
      oprot.writeFieldStop();
16117
      oprot.writeStructEnd();
16118
    }
16119
 
16120
    @Override
16121
    public String toString() {
16122
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
16123
      boolean first = true;
16124
 
16125
      sb.append("serialNumber:");
7410 amar.kumar 16126
      if (this.serialNumber == null) {
16127
        sb.append("null");
16128
      } else {
16129
        sb.append(this.serialNumber);
16130
      }
6322 amar.kumar 16131
      first = false;
16132
      sb.append(")");
16133
      return sb.toString();
16134
    }
16135
 
16136
    public void validate() throws org.apache.thrift.TException {
16137
      // check for required fields
16138
    }
16139
 
16140
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16141
      try {
16142
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16143
      } catch (org.apache.thrift.TException te) {
16144
        throw new java.io.IOException(te);
16145
      }
16146
    }
16147
 
16148
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16149
      try {
16150
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16151
      } catch (org.apache.thrift.TException te) {
16152
        throw new java.io.IOException(te);
16153
      }
16154
    }
16155
 
16156
  }
16157
 
16158
  public static class getScanRecordsForSerialNumber_result implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_result, getScanRecordsForSerialNumber_result._Fields>, java.io.Serializable, Cloneable   {
16159
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_result");
16160
 
16161
    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);
16162
 
16163
    private List<Scan> success; // required
16164
 
16165
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16166
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16167
      SUCCESS((short)0, "success");
16168
 
16169
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16170
 
16171
      static {
16172
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16173
          byName.put(field.getFieldName(), field);
16174
        }
16175
      }
16176
 
16177
      /**
16178
       * Find the _Fields constant that matches fieldId, or null if its not found.
16179
       */
16180
      public static _Fields findByThriftId(int fieldId) {
16181
        switch(fieldId) {
16182
          case 0: // SUCCESS
16183
            return SUCCESS;
16184
          default:
16185
            return null;
16186
        }
16187
      }
16188
 
16189
      /**
16190
       * Find the _Fields constant that matches fieldId, throwing an exception
16191
       * if it is not found.
16192
       */
16193
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16194
        _Fields fields = findByThriftId(fieldId);
16195
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16196
        return fields;
16197
      }
16198
 
16199
      /**
16200
       * Find the _Fields constant that matches name, or null if its not found.
16201
       */
16202
      public static _Fields findByName(String name) {
16203
        return byName.get(name);
16204
      }
16205
 
16206
      private final short _thriftId;
16207
      private final String _fieldName;
16208
 
16209
      _Fields(short thriftId, String fieldName) {
16210
        _thriftId = thriftId;
16211
        _fieldName = fieldName;
16212
      }
16213
 
16214
      public short getThriftFieldId() {
16215
        return _thriftId;
16216
      }
16217
 
16218
      public String getFieldName() {
16219
        return _fieldName;
16220
      }
16221
    }
16222
 
16223
    // isset id assignments
16224
 
16225
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16226
    static {
16227
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16228
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16229
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16230
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
16231
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16232
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_result.class, metaDataMap);
16233
    }
16234
 
16235
    public getScanRecordsForSerialNumber_result() {
16236
    }
16237
 
16238
    public getScanRecordsForSerialNumber_result(
16239
      List<Scan> success)
16240
    {
16241
      this();
16242
      this.success = success;
16243
    }
16244
 
16245
    /**
16246
     * Performs a deep copy on <i>other</i>.
16247
     */
16248
    public getScanRecordsForSerialNumber_result(getScanRecordsForSerialNumber_result other) {
16249
      if (other.isSetSuccess()) {
16250
        List<Scan> __this__success = new ArrayList<Scan>();
16251
        for (Scan other_element : other.success) {
16252
          __this__success.add(new Scan(other_element));
16253
        }
16254
        this.success = __this__success;
16255
      }
16256
    }
16257
 
16258
    public getScanRecordsForSerialNumber_result deepCopy() {
16259
      return new getScanRecordsForSerialNumber_result(this);
16260
    }
16261
 
16262
    @Override
16263
    public void clear() {
16264
      this.success = null;
16265
    }
16266
 
16267
    public int getSuccessSize() {
16268
      return (this.success == null) ? 0 : this.success.size();
16269
    }
16270
 
16271
    public java.util.Iterator<Scan> getSuccessIterator() {
16272
      return (this.success == null) ? null : this.success.iterator();
16273
    }
16274
 
16275
    public void addToSuccess(Scan elem) {
16276
      if (this.success == null) {
16277
        this.success = new ArrayList<Scan>();
16278
      }
16279
      this.success.add(elem);
16280
    }
16281
 
16282
    public List<Scan> getSuccess() {
16283
      return this.success;
16284
    }
16285
 
16286
    public void setSuccess(List<Scan> success) {
16287
      this.success = success;
16288
    }
16289
 
16290
    public void unsetSuccess() {
16291
      this.success = null;
16292
    }
16293
 
16294
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16295
    public boolean isSetSuccess() {
16296
      return this.success != null;
16297
    }
16298
 
16299
    public void setSuccessIsSet(boolean value) {
16300
      if (!value) {
16301
        this.success = null;
16302
      }
16303
    }
16304
 
16305
    public void setFieldValue(_Fields field, Object value) {
16306
      switch (field) {
16307
      case SUCCESS:
16308
        if (value == null) {
16309
          unsetSuccess();
16310
        } else {
16311
          setSuccess((List<Scan>)value);
16312
        }
16313
        break;
16314
 
16315
      }
16316
    }
16317
 
16318
    public Object getFieldValue(_Fields field) {
16319
      switch (field) {
16320
      case SUCCESS:
16321
        return getSuccess();
16322
 
16323
      }
16324
      throw new IllegalStateException();
16325
    }
16326
 
16327
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16328
    public boolean isSet(_Fields field) {
16329
      if (field == null) {
16330
        throw new IllegalArgumentException();
16331
      }
16332
 
16333
      switch (field) {
16334
      case SUCCESS:
16335
        return isSetSuccess();
16336
      }
16337
      throw new IllegalStateException();
16338
    }
16339
 
16340
    @Override
16341
    public boolean equals(Object that) {
16342
      if (that == null)
16343
        return false;
16344
      if (that instanceof getScanRecordsForSerialNumber_result)
16345
        return this.equals((getScanRecordsForSerialNumber_result)that);
16346
      return false;
16347
    }
16348
 
16349
    public boolean equals(getScanRecordsForSerialNumber_result that) {
16350
      if (that == null)
16351
        return false;
16352
 
16353
      boolean this_present_success = true && this.isSetSuccess();
16354
      boolean that_present_success = true && that.isSetSuccess();
16355
      if (this_present_success || that_present_success) {
16356
        if (!(this_present_success && that_present_success))
16357
          return false;
16358
        if (!this.success.equals(that.success))
16359
          return false;
16360
      }
16361
 
16362
      return true;
16363
    }
16364
 
16365
    @Override
16366
    public int hashCode() {
16367
      return 0;
16368
    }
16369
 
16370
    public int compareTo(getScanRecordsForSerialNumber_result other) {
16371
      if (!getClass().equals(other.getClass())) {
16372
        return getClass().getName().compareTo(other.getClass().getName());
16373
      }
16374
 
16375
      int lastComparison = 0;
16376
      getScanRecordsForSerialNumber_result typedOther = (getScanRecordsForSerialNumber_result)other;
16377
 
16378
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16379
      if (lastComparison != 0) {
16380
        return lastComparison;
16381
      }
16382
      if (isSetSuccess()) {
16383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16384
        if (lastComparison != 0) {
16385
          return lastComparison;
16386
        }
16387
      }
16388
      return 0;
16389
    }
16390
 
16391
    public _Fields fieldForId(int fieldId) {
16392
      return _Fields.findByThriftId(fieldId);
16393
    }
16394
 
16395
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16396
      org.apache.thrift.protocol.TField field;
16397
      iprot.readStructBegin();
16398
      while (true)
16399
      {
16400
        field = iprot.readFieldBegin();
16401
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16402
          break;
16403
        }
16404
        switch (field.id) {
16405
          case 0: // SUCCESS
16406
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16407
              {
7210 amar.kumar 16408
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
16409
                this.success = new ArrayList<Scan>(_list32.size);
16410
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
6322 amar.kumar 16411
                {
7210 amar.kumar 16412
                  Scan _elem34; // required
16413
                  _elem34 = new Scan();
16414
                  _elem34.read(iprot);
16415
                  this.success.add(_elem34);
6322 amar.kumar 16416
                }
16417
                iprot.readListEnd();
16418
              }
16419
            } else { 
16420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16421
            }
16422
            break;
16423
          default:
16424
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16425
        }
16426
        iprot.readFieldEnd();
16427
      }
16428
      iprot.readStructEnd();
16429
      validate();
16430
    }
16431
 
16432
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16433
      oprot.writeStructBegin(STRUCT_DESC);
16434
 
16435
      if (this.isSetSuccess()) {
16436
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16437
        {
16438
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 16439
          for (Scan _iter35 : this.success)
6322 amar.kumar 16440
          {
7210 amar.kumar 16441
            _iter35.write(oprot);
6322 amar.kumar 16442
          }
16443
          oprot.writeListEnd();
16444
        }
16445
        oprot.writeFieldEnd();
16446
      }
16447
      oprot.writeFieldStop();
16448
      oprot.writeStructEnd();
16449
    }
16450
 
16451
    @Override
16452
    public String toString() {
16453
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_result(");
16454
      boolean first = true;
16455
 
16456
      sb.append("success:");
16457
      if (this.success == null) {
16458
        sb.append("null");
16459
      } else {
16460
        sb.append(this.success);
16461
      }
16462
      first = false;
16463
      sb.append(")");
16464
      return sb.toString();
16465
    }
16466
 
16467
    public void validate() throws org.apache.thrift.TException {
16468
      // check for required fields
16469
    }
16470
 
16471
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16472
      try {
16473
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16474
      } catch (org.apache.thrift.TException te) {
16475
        throw new java.io.IOException(te);
16476
      }
16477
    }
16478
 
16479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16480
      try {
16481
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16482
      } catch (org.apache.thrift.TException te) {
16483
        throw new java.io.IOException(te);
16484
      }
16485
    }
16486
 
16487
  }
16488
 
6467 amar.kumar 16489
  public static class scanForPurchaseReturn_args implements org.apache.thrift.TBase<scanForPurchaseReturn_args, scanForPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
16490
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_args");
16491
 
16492
    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);
16493
    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);
16494
 
16495
    private List<InventoryItem> saleReturnItems; // required
16496
    private long vendorId; // required
16497
 
16498
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16499
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16500
      SALE_RETURN_ITEMS((short)1, "saleReturnItems"),
16501
      VENDOR_ID((short)2, "vendorId");
16502
 
16503
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16504
 
16505
      static {
16506
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16507
          byName.put(field.getFieldName(), field);
16508
        }
16509
      }
16510
 
16511
      /**
16512
       * Find the _Fields constant that matches fieldId, or null if its not found.
16513
       */
16514
      public static _Fields findByThriftId(int fieldId) {
16515
        switch(fieldId) {
16516
          case 1: // SALE_RETURN_ITEMS
16517
            return SALE_RETURN_ITEMS;
16518
          case 2: // VENDOR_ID
16519
            return VENDOR_ID;
16520
          default:
16521
            return null;
16522
        }
16523
      }
16524
 
16525
      /**
16526
       * Find the _Fields constant that matches fieldId, throwing an exception
16527
       * if it is not found.
16528
       */
16529
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16530
        _Fields fields = findByThriftId(fieldId);
16531
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16532
        return fields;
16533
      }
16534
 
16535
      /**
16536
       * Find the _Fields constant that matches name, or null if its not found.
16537
       */
16538
      public static _Fields findByName(String name) {
16539
        return byName.get(name);
16540
      }
16541
 
16542
      private final short _thriftId;
16543
      private final String _fieldName;
16544
 
16545
      _Fields(short thriftId, String fieldName) {
16546
        _thriftId = thriftId;
16547
        _fieldName = fieldName;
16548
      }
16549
 
16550
      public short getThriftFieldId() {
16551
        return _thriftId;
16552
      }
16553
 
16554
      public String getFieldName() {
16555
        return _fieldName;
16556
      }
16557
    }
16558
 
16559
    // isset id assignments
16560
    private static final int __VENDORID_ISSET_ID = 0;
16561
    private BitSet __isset_bit_vector = new BitSet(1);
16562
 
16563
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16564
    static {
16565
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16566
      tmpMap.put(_Fields.SALE_RETURN_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("saleReturnItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16567
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16568
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
16569
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16570
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16571
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16572
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_args.class, metaDataMap);
16573
    }
16574
 
16575
    public scanForPurchaseReturn_args() {
16576
    }
16577
 
16578
    public scanForPurchaseReturn_args(
16579
      List<InventoryItem> saleReturnItems,
16580
      long vendorId)
16581
    {
16582
      this();
16583
      this.saleReturnItems = saleReturnItems;
16584
      this.vendorId = vendorId;
16585
      setVendorIdIsSet(true);
16586
    }
16587
 
16588
    /**
16589
     * Performs a deep copy on <i>other</i>.
16590
     */
16591
    public scanForPurchaseReturn_args(scanForPurchaseReturn_args other) {
16592
      __isset_bit_vector.clear();
16593
      __isset_bit_vector.or(other.__isset_bit_vector);
16594
      if (other.isSetSaleReturnItems()) {
16595
        List<InventoryItem> __this__saleReturnItems = new ArrayList<InventoryItem>();
16596
        for (InventoryItem other_element : other.saleReturnItems) {
16597
          __this__saleReturnItems.add(new InventoryItem(other_element));
16598
        }
16599
        this.saleReturnItems = __this__saleReturnItems;
16600
      }
16601
      this.vendorId = other.vendorId;
16602
    }
16603
 
16604
    public scanForPurchaseReturn_args deepCopy() {
16605
      return new scanForPurchaseReturn_args(this);
16606
    }
16607
 
16608
    @Override
16609
    public void clear() {
16610
      this.saleReturnItems = null;
16611
      setVendorIdIsSet(false);
16612
      this.vendorId = 0;
16613
    }
16614
 
16615
    public int getSaleReturnItemsSize() {
16616
      return (this.saleReturnItems == null) ? 0 : this.saleReturnItems.size();
16617
    }
16618
 
16619
    public java.util.Iterator<InventoryItem> getSaleReturnItemsIterator() {
16620
      return (this.saleReturnItems == null) ? null : this.saleReturnItems.iterator();
16621
    }
16622
 
16623
    public void addToSaleReturnItems(InventoryItem elem) {
16624
      if (this.saleReturnItems == null) {
16625
        this.saleReturnItems = new ArrayList<InventoryItem>();
16626
      }
16627
      this.saleReturnItems.add(elem);
16628
    }
16629
 
16630
    public List<InventoryItem> getSaleReturnItems() {
16631
      return this.saleReturnItems;
16632
    }
16633
 
16634
    public void setSaleReturnItems(List<InventoryItem> saleReturnItems) {
16635
      this.saleReturnItems = saleReturnItems;
16636
    }
16637
 
16638
    public void unsetSaleReturnItems() {
16639
      this.saleReturnItems = null;
16640
    }
16641
 
16642
    /** Returns true if field saleReturnItems is set (has been assigned a value) and false otherwise */
16643
    public boolean isSetSaleReturnItems() {
16644
      return this.saleReturnItems != null;
16645
    }
16646
 
16647
    public void setSaleReturnItemsIsSet(boolean value) {
16648
      if (!value) {
16649
        this.saleReturnItems = null;
16650
      }
16651
    }
16652
 
16653
    public long getVendorId() {
16654
      return this.vendorId;
16655
    }
16656
 
16657
    public void setVendorId(long vendorId) {
16658
      this.vendorId = vendorId;
16659
      setVendorIdIsSet(true);
16660
    }
16661
 
16662
    public void unsetVendorId() {
16663
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
16664
    }
16665
 
16666
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
16667
    public boolean isSetVendorId() {
16668
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
16669
    }
16670
 
16671
    public void setVendorIdIsSet(boolean value) {
16672
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
16673
    }
16674
 
16675
    public void setFieldValue(_Fields field, Object value) {
16676
      switch (field) {
16677
      case SALE_RETURN_ITEMS:
16678
        if (value == null) {
16679
          unsetSaleReturnItems();
16680
        } else {
16681
          setSaleReturnItems((List<InventoryItem>)value);
16682
        }
16683
        break;
16684
 
16685
      case VENDOR_ID:
16686
        if (value == null) {
16687
          unsetVendorId();
16688
        } else {
16689
          setVendorId((Long)value);
16690
        }
16691
        break;
16692
 
16693
      }
16694
    }
16695
 
16696
    public Object getFieldValue(_Fields field) {
16697
      switch (field) {
16698
      case SALE_RETURN_ITEMS:
16699
        return getSaleReturnItems();
16700
 
16701
      case VENDOR_ID:
16702
        return Long.valueOf(getVendorId());
16703
 
16704
      }
16705
      throw new IllegalStateException();
16706
    }
16707
 
16708
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16709
    public boolean isSet(_Fields field) {
16710
      if (field == null) {
16711
        throw new IllegalArgumentException();
16712
      }
16713
 
16714
      switch (field) {
16715
      case SALE_RETURN_ITEMS:
16716
        return isSetSaleReturnItems();
16717
      case VENDOR_ID:
16718
        return isSetVendorId();
16719
      }
16720
      throw new IllegalStateException();
16721
    }
16722
 
16723
    @Override
16724
    public boolean equals(Object that) {
16725
      if (that == null)
16726
        return false;
16727
      if (that instanceof scanForPurchaseReturn_args)
16728
        return this.equals((scanForPurchaseReturn_args)that);
16729
      return false;
16730
    }
16731
 
16732
    public boolean equals(scanForPurchaseReturn_args that) {
16733
      if (that == null)
16734
        return false;
16735
 
16736
      boolean this_present_saleReturnItems = true && this.isSetSaleReturnItems();
16737
      boolean that_present_saleReturnItems = true && that.isSetSaleReturnItems();
16738
      if (this_present_saleReturnItems || that_present_saleReturnItems) {
16739
        if (!(this_present_saleReturnItems && that_present_saleReturnItems))
16740
          return false;
16741
        if (!this.saleReturnItems.equals(that.saleReturnItems))
16742
          return false;
16743
      }
16744
 
16745
      boolean this_present_vendorId = true;
16746
      boolean that_present_vendorId = true;
16747
      if (this_present_vendorId || that_present_vendorId) {
16748
        if (!(this_present_vendorId && that_present_vendorId))
16749
          return false;
16750
        if (this.vendorId != that.vendorId)
16751
          return false;
16752
      }
16753
 
16754
      return true;
16755
    }
16756
 
16757
    @Override
16758
    public int hashCode() {
16759
      return 0;
16760
    }
16761
 
16762
    public int compareTo(scanForPurchaseReturn_args other) {
16763
      if (!getClass().equals(other.getClass())) {
16764
        return getClass().getName().compareTo(other.getClass().getName());
16765
      }
16766
 
16767
      int lastComparison = 0;
16768
      scanForPurchaseReturn_args typedOther = (scanForPurchaseReturn_args)other;
16769
 
16770
      lastComparison = Boolean.valueOf(isSetSaleReturnItems()).compareTo(typedOther.isSetSaleReturnItems());
16771
      if (lastComparison != 0) {
16772
        return lastComparison;
16773
      }
16774
      if (isSetSaleReturnItems()) {
16775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.saleReturnItems, typedOther.saleReturnItems);
16776
        if (lastComparison != 0) {
16777
          return lastComparison;
16778
        }
16779
      }
16780
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
16781
      if (lastComparison != 0) {
16782
        return lastComparison;
16783
      }
16784
      if (isSetVendorId()) {
16785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
16786
        if (lastComparison != 0) {
16787
          return lastComparison;
16788
        }
16789
      }
16790
      return 0;
16791
    }
16792
 
16793
    public _Fields fieldForId(int fieldId) {
16794
      return _Fields.findByThriftId(fieldId);
16795
    }
16796
 
16797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16798
      org.apache.thrift.protocol.TField field;
16799
      iprot.readStructBegin();
16800
      while (true)
16801
      {
16802
        field = iprot.readFieldBegin();
16803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16804
          break;
16805
        }
16806
        switch (field.id) {
16807
          case 1: // SALE_RETURN_ITEMS
16808
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16809
              {
7210 amar.kumar 16810
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
16811
                this.saleReturnItems = new ArrayList<InventoryItem>(_list36.size);
16812
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
6467 amar.kumar 16813
                {
7210 amar.kumar 16814
                  InventoryItem _elem38; // required
16815
                  _elem38 = new InventoryItem();
16816
                  _elem38.read(iprot);
16817
                  this.saleReturnItems.add(_elem38);
6467 amar.kumar 16818
                }
16819
                iprot.readListEnd();
16820
              }
16821
            } else { 
16822
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16823
            }
16824
            break;
16825
          case 2: // VENDOR_ID
16826
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16827
              this.vendorId = iprot.readI64();
16828
              setVendorIdIsSet(true);
16829
            } else { 
16830
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16831
            }
16832
            break;
16833
          default:
16834
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16835
        }
16836
        iprot.readFieldEnd();
16837
      }
16838
      iprot.readStructEnd();
16839
      validate();
16840
    }
16841
 
16842
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16843
      validate();
16844
 
16845
      oprot.writeStructBegin(STRUCT_DESC);
16846
      if (this.saleReturnItems != null) {
16847
        oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
16848
        {
16849
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
7210 amar.kumar 16850
          for (InventoryItem _iter39 : this.saleReturnItems)
6467 amar.kumar 16851
          {
7210 amar.kumar 16852
            _iter39.write(oprot);
6467 amar.kumar 16853
          }
16854
          oprot.writeListEnd();
16855
        }
16856
        oprot.writeFieldEnd();
16857
      }
16858
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
16859
      oprot.writeI64(this.vendorId);
16860
      oprot.writeFieldEnd();
16861
      oprot.writeFieldStop();
16862
      oprot.writeStructEnd();
16863
    }
16864
 
16865
    @Override
16866
    public String toString() {
16867
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_args(");
16868
      boolean first = true;
16869
 
16870
      sb.append("saleReturnItems:");
16871
      if (this.saleReturnItems == null) {
16872
        sb.append("null");
16873
      } else {
16874
        sb.append(this.saleReturnItems);
16875
      }
16876
      first = false;
16877
      if (!first) sb.append(", ");
16878
      sb.append("vendorId:");
16879
      sb.append(this.vendorId);
16880
      first = false;
16881
      sb.append(")");
16882
      return sb.toString();
16883
    }
16884
 
16885
    public void validate() throws org.apache.thrift.TException {
16886
      // check for required fields
16887
    }
16888
 
16889
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16890
      try {
16891
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16892
      } catch (org.apache.thrift.TException te) {
16893
        throw new java.io.IOException(te);
16894
      }
16895
    }
16896
 
16897
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16898
      try {
16899
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16900
      } catch (org.apache.thrift.TException te) {
16901
        throw new java.io.IOException(te);
16902
      }
16903
    }
16904
 
16905
  }
16906
 
16907
  public static class scanForPurchaseReturn_result implements org.apache.thrift.TBase<scanForPurchaseReturn_result, scanForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
16908
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_result");
16909
 
16910
    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);
16911
 
16912
    private WarehouseServiceException ex; // required
16913
 
16914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16916
      EX((short)1, "ex");
16917
 
16918
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16919
 
16920
      static {
16921
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16922
          byName.put(field.getFieldName(), field);
16923
        }
16924
      }
16925
 
16926
      /**
16927
       * Find the _Fields constant that matches fieldId, or null if its not found.
16928
       */
16929
      public static _Fields findByThriftId(int fieldId) {
16930
        switch(fieldId) {
16931
          case 1: // EX
16932
            return EX;
16933
          default:
16934
            return null;
16935
        }
16936
      }
16937
 
16938
      /**
16939
       * Find the _Fields constant that matches fieldId, throwing an exception
16940
       * if it is not found.
16941
       */
16942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16943
        _Fields fields = findByThriftId(fieldId);
16944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16945
        return fields;
16946
      }
16947
 
16948
      /**
16949
       * Find the _Fields constant that matches name, or null if its not found.
16950
       */
16951
      public static _Fields findByName(String name) {
16952
        return byName.get(name);
16953
      }
16954
 
16955
      private final short _thriftId;
16956
      private final String _fieldName;
16957
 
16958
      _Fields(short thriftId, String fieldName) {
16959
        _thriftId = thriftId;
16960
        _fieldName = fieldName;
16961
      }
16962
 
16963
      public short getThriftFieldId() {
16964
        return _thriftId;
16965
      }
16966
 
16967
      public String getFieldName() {
16968
        return _fieldName;
16969
      }
16970
    }
16971
 
16972
    // isset id assignments
16973
 
16974
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16975
    static {
16976
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16977
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_result.class, metaDataMap);
16981
    }
16982
 
16983
    public scanForPurchaseReturn_result() {
16984
    }
16985
 
16986
    public scanForPurchaseReturn_result(
16987
      WarehouseServiceException ex)
16988
    {
16989
      this();
16990
      this.ex = ex;
16991
    }
16992
 
16993
    /**
16994
     * Performs a deep copy on <i>other</i>.
16995
     */
16996
    public scanForPurchaseReturn_result(scanForPurchaseReturn_result other) {
16997
      if (other.isSetEx()) {
16998
        this.ex = new WarehouseServiceException(other.ex);
16999
      }
17000
    }
17001
 
17002
    public scanForPurchaseReturn_result deepCopy() {
17003
      return new scanForPurchaseReturn_result(this);
17004
    }
17005
 
17006
    @Override
17007
    public void clear() {
17008
      this.ex = null;
17009
    }
17010
 
17011
    public WarehouseServiceException getEx() {
17012
      return this.ex;
17013
    }
17014
 
17015
    public void setEx(WarehouseServiceException ex) {
17016
      this.ex = ex;
17017
    }
17018
 
17019
    public void unsetEx() {
17020
      this.ex = null;
17021
    }
17022
 
17023
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
17024
    public boolean isSetEx() {
17025
      return this.ex != null;
17026
    }
17027
 
17028
    public void setExIsSet(boolean value) {
17029
      if (!value) {
17030
        this.ex = null;
17031
      }
17032
    }
17033
 
17034
    public void setFieldValue(_Fields field, Object value) {
17035
      switch (field) {
17036
      case EX:
17037
        if (value == null) {
17038
          unsetEx();
17039
        } else {
17040
          setEx((WarehouseServiceException)value);
17041
        }
17042
        break;
17043
 
17044
      }
17045
    }
17046
 
17047
    public Object getFieldValue(_Fields field) {
17048
      switch (field) {
17049
      case EX:
17050
        return getEx();
17051
 
17052
      }
17053
      throw new IllegalStateException();
17054
    }
17055
 
17056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17057
    public boolean isSet(_Fields field) {
17058
      if (field == null) {
17059
        throw new IllegalArgumentException();
17060
      }
17061
 
17062
      switch (field) {
17063
      case EX:
17064
        return isSetEx();
17065
      }
17066
      throw new IllegalStateException();
17067
    }
17068
 
17069
    @Override
17070
    public boolean equals(Object that) {
17071
      if (that == null)
17072
        return false;
17073
      if (that instanceof scanForPurchaseReturn_result)
17074
        return this.equals((scanForPurchaseReturn_result)that);
17075
      return false;
17076
    }
17077
 
17078
    public boolean equals(scanForPurchaseReturn_result that) {
17079
      if (that == null)
17080
        return false;
17081
 
17082
      boolean this_present_ex = true && this.isSetEx();
17083
      boolean that_present_ex = true && that.isSetEx();
17084
      if (this_present_ex || that_present_ex) {
17085
        if (!(this_present_ex && that_present_ex))
17086
          return false;
17087
        if (!this.ex.equals(that.ex))
17088
          return false;
17089
      }
17090
 
17091
      return true;
17092
    }
17093
 
17094
    @Override
17095
    public int hashCode() {
17096
      return 0;
17097
    }
17098
 
17099
    public int compareTo(scanForPurchaseReturn_result other) {
17100
      if (!getClass().equals(other.getClass())) {
17101
        return getClass().getName().compareTo(other.getClass().getName());
17102
      }
17103
 
17104
      int lastComparison = 0;
17105
      scanForPurchaseReturn_result typedOther = (scanForPurchaseReturn_result)other;
17106
 
17107
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
17108
      if (lastComparison != 0) {
17109
        return lastComparison;
17110
      }
17111
      if (isSetEx()) {
17112
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17113
        if (lastComparison != 0) {
17114
          return lastComparison;
17115
        }
17116
      }
17117
      return 0;
17118
    }
17119
 
17120
    public _Fields fieldForId(int fieldId) {
17121
      return _Fields.findByThriftId(fieldId);
17122
    }
17123
 
17124
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17125
      org.apache.thrift.protocol.TField field;
17126
      iprot.readStructBegin();
17127
      while (true)
17128
      {
17129
        field = iprot.readFieldBegin();
17130
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17131
          break;
17132
        }
17133
        switch (field.id) {
17134
          case 1: // EX
17135
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17136
              this.ex = new WarehouseServiceException();
17137
              this.ex.read(iprot);
17138
            } else { 
17139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17140
            }
17141
            break;
17142
          default:
17143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17144
        }
17145
        iprot.readFieldEnd();
17146
      }
17147
      iprot.readStructEnd();
17148
      validate();
17149
    }
17150
 
17151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17152
      oprot.writeStructBegin(STRUCT_DESC);
17153
 
17154
      if (this.isSetEx()) {
17155
        oprot.writeFieldBegin(EX_FIELD_DESC);
17156
        this.ex.write(oprot);
17157
        oprot.writeFieldEnd();
17158
      }
17159
      oprot.writeFieldStop();
17160
      oprot.writeStructEnd();
17161
    }
17162
 
17163
    @Override
17164
    public String toString() {
17165
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_result(");
17166
      boolean first = true;
17167
 
17168
      sb.append("ex:");
17169
      if (this.ex == null) {
17170
        sb.append("null");
17171
      } else {
17172
        sb.append(this.ex);
17173
      }
17174
      first = false;
17175
      sb.append(")");
17176
      return sb.toString();
17177
    }
17178
 
17179
    public void validate() throws org.apache.thrift.TException {
17180
      // check for required fields
17181
    }
17182
 
17183
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17184
      try {
17185
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17186
      } catch (org.apache.thrift.TException te) {
17187
        throw new java.io.IOException(te);
17188
      }
17189
    }
17190
 
17191
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17192
      try {
17193
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17194
      } catch (org.apache.thrift.TException te) {
17195
        throw new java.io.IOException(te);
17196
      }
17197
    }
17198
 
17199
  }
17200
 
6548 amar.kumar 17201
  public static class scanForLostItem_args implements org.apache.thrift.TBase<scanForLostItem_args, scanForLostItem_args._Fields>, java.io.Serializable, Cloneable   {
17202
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_args");
17203
 
17204
    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);
17205
    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);
17206
 
17207
    private List<InventoryItem> lostItems; // required
17208
    private long vendorId; // required
17209
 
17210
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17211
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17212
      LOST_ITEMS((short)1, "lostItems"),
17213
      VENDOR_ID((short)2, "vendorId");
17214
 
17215
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17216
 
17217
      static {
17218
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17219
          byName.put(field.getFieldName(), field);
17220
        }
17221
      }
17222
 
17223
      /**
17224
       * Find the _Fields constant that matches fieldId, or null if its not found.
17225
       */
17226
      public static _Fields findByThriftId(int fieldId) {
17227
        switch(fieldId) {
17228
          case 1: // LOST_ITEMS
17229
            return LOST_ITEMS;
17230
          case 2: // VENDOR_ID
17231
            return VENDOR_ID;
17232
          default:
17233
            return null;
17234
        }
17235
      }
17236
 
17237
      /**
17238
       * Find the _Fields constant that matches fieldId, throwing an exception
17239
       * if it is not found.
17240
       */
17241
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17242
        _Fields fields = findByThriftId(fieldId);
17243
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17244
        return fields;
17245
      }
17246
 
17247
      /**
17248
       * Find the _Fields constant that matches name, or null if its not found.
17249
       */
17250
      public static _Fields findByName(String name) {
17251
        return byName.get(name);
17252
      }
17253
 
17254
      private final short _thriftId;
17255
      private final String _fieldName;
17256
 
17257
      _Fields(short thriftId, String fieldName) {
17258
        _thriftId = thriftId;
17259
        _fieldName = fieldName;
17260
      }
17261
 
17262
      public short getThriftFieldId() {
17263
        return _thriftId;
17264
      }
17265
 
17266
      public String getFieldName() {
17267
        return _fieldName;
17268
      }
17269
    }
17270
 
17271
    // isset id assignments
17272
    private static final int __VENDORID_ISSET_ID = 0;
17273
    private BitSet __isset_bit_vector = new BitSet(1);
17274
 
17275
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17276
    static {
17277
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17278
      tmpMap.put(_Fields.LOST_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("lostItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17279
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17280
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
17281
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17282
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17283
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17284
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_args.class, metaDataMap);
17285
    }
17286
 
17287
    public scanForLostItem_args() {
17288
    }
17289
 
17290
    public scanForLostItem_args(
17291
      List<InventoryItem> lostItems,
17292
      long vendorId)
17293
    {
17294
      this();
17295
      this.lostItems = lostItems;
17296
      this.vendorId = vendorId;
17297
      setVendorIdIsSet(true);
17298
    }
17299
 
17300
    /**
17301
     * Performs a deep copy on <i>other</i>.
17302
     */
17303
    public scanForLostItem_args(scanForLostItem_args other) {
17304
      __isset_bit_vector.clear();
17305
      __isset_bit_vector.or(other.__isset_bit_vector);
17306
      if (other.isSetLostItems()) {
17307
        List<InventoryItem> __this__lostItems = new ArrayList<InventoryItem>();
17308
        for (InventoryItem other_element : other.lostItems) {
17309
          __this__lostItems.add(new InventoryItem(other_element));
17310
        }
17311
        this.lostItems = __this__lostItems;
17312
      }
17313
      this.vendorId = other.vendorId;
17314
    }
17315
 
17316
    public scanForLostItem_args deepCopy() {
17317
      return new scanForLostItem_args(this);
17318
    }
17319
 
17320
    @Override
17321
    public void clear() {
17322
      this.lostItems = null;
17323
      setVendorIdIsSet(false);
17324
      this.vendorId = 0;
17325
    }
17326
 
17327
    public int getLostItemsSize() {
17328
      return (this.lostItems == null) ? 0 : this.lostItems.size();
17329
    }
17330
 
17331
    public java.util.Iterator<InventoryItem> getLostItemsIterator() {
17332
      return (this.lostItems == null) ? null : this.lostItems.iterator();
17333
    }
17334
 
17335
    public void addToLostItems(InventoryItem elem) {
17336
      if (this.lostItems == null) {
17337
        this.lostItems = new ArrayList<InventoryItem>();
17338
      }
17339
      this.lostItems.add(elem);
17340
    }
17341
 
17342
    public List<InventoryItem> getLostItems() {
17343
      return this.lostItems;
17344
    }
17345
 
17346
    public void setLostItems(List<InventoryItem> lostItems) {
17347
      this.lostItems = lostItems;
17348
    }
17349
 
17350
    public void unsetLostItems() {
17351
      this.lostItems = null;
17352
    }
17353
 
17354
    /** Returns true if field lostItems is set (has been assigned a value) and false otherwise */
17355
    public boolean isSetLostItems() {
17356
      return this.lostItems != null;
17357
    }
17358
 
17359
    public void setLostItemsIsSet(boolean value) {
17360
      if (!value) {
17361
        this.lostItems = null;
17362
      }
17363
    }
17364
 
17365
    public long getVendorId() {
17366
      return this.vendorId;
17367
    }
17368
 
17369
    public void setVendorId(long vendorId) {
17370
      this.vendorId = vendorId;
17371
      setVendorIdIsSet(true);
17372
    }
17373
 
17374
    public void unsetVendorId() {
17375
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17376
    }
17377
 
17378
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17379
    public boolean isSetVendorId() {
17380
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17381
    }
17382
 
17383
    public void setVendorIdIsSet(boolean value) {
17384
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17385
    }
17386
 
17387
    public void setFieldValue(_Fields field, Object value) {
17388
      switch (field) {
17389
      case LOST_ITEMS:
17390
        if (value == null) {
17391
          unsetLostItems();
17392
        } else {
17393
          setLostItems((List<InventoryItem>)value);
17394
        }
17395
        break;
17396
 
17397
      case VENDOR_ID:
17398
        if (value == null) {
17399
          unsetVendorId();
17400
        } else {
17401
          setVendorId((Long)value);
17402
        }
17403
        break;
17404
 
17405
      }
17406
    }
17407
 
17408
    public Object getFieldValue(_Fields field) {
17409
      switch (field) {
17410
      case LOST_ITEMS:
17411
        return getLostItems();
17412
 
17413
      case VENDOR_ID:
17414
        return Long.valueOf(getVendorId());
17415
 
17416
      }
17417
      throw new IllegalStateException();
17418
    }
17419
 
17420
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17421
    public boolean isSet(_Fields field) {
17422
      if (field == null) {
17423
        throw new IllegalArgumentException();
17424
      }
17425
 
17426
      switch (field) {
17427
      case LOST_ITEMS:
17428
        return isSetLostItems();
17429
      case VENDOR_ID:
17430
        return isSetVendorId();
17431
      }
17432
      throw new IllegalStateException();
17433
    }
17434
 
17435
    @Override
17436
    public boolean equals(Object that) {
17437
      if (that == null)
17438
        return false;
17439
      if (that instanceof scanForLostItem_args)
17440
        return this.equals((scanForLostItem_args)that);
17441
      return false;
17442
    }
17443
 
17444
    public boolean equals(scanForLostItem_args that) {
17445
      if (that == null)
17446
        return false;
17447
 
17448
      boolean this_present_lostItems = true && this.isSetLostItems();
17449
      boolean that_present_lostItems = true && that.isSetLostItems();
17450
      if (this_present_lostItems || that_present_lostItems) {
17451
        if (!(this_present_lostItems && that_present_lostItems))
17452
          return false;
17453
        if (!this.lostItems.equals(that.lostItems))
17454
          return false;
17455
      }
17456
 
17457
      boolean this_present_vendorId = true;
17458
      boolean that_present_vendorId = true;
17459
      if (this_present_vendorId || that_present_vendorId) {
17460
        if (!(this_present_vendorId && that_present_vendorId))
17461
          return false;
17462
        if (this.vendorId != that.vendorId)
17463
          return false;
17464
      }
17465
 
17466
      return true;
17467
    }
17468
 
17469
    @Override
17470
    public int hashCode() {
17471
      return 0;
17472
    }
17473
 
17474
    public int compareTo(scanForLostItem_args other) {
17475
      if (!getClass().equals(other.getClass())) {
17476
        return getClass().getName().compareTo(other.getClass().getName());
17477
      }
17478
 
17479
      int lastComparison = 0;
17480
      scanForLostItem_args typedOther = (scanForLostItem_args)other;
17481
 
17482
      lastComparison = Boolean.valueOf(isSetLostItems()).compareTo(typedOther.isSetLostItems());
17483
      if (lastComparison != 0) {
17484
        return lastComparison;
17485
      }
17486
      if (isSetLostItems()) {
17487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lostItems, typedOther.lostItems);
17488
        if (lastComparison != 0) {
17489
          return lastComparison;
17490
        }
17491
      }
17492
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
17493
      if (lastComparison != 0) {
17494
        return lastComparison;
17495
      }
17496
      if (isSetVendorId()) {
17497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
17498
        if (lastComparison != 0) {
17499
          return lastComparison;
17500
        }
17501
      }
17502
      return 0;
17503
    }
17504
 
17505
    public _Fields fieldForId(int fieldId) {
17506
      return _Fields.findByThriftId(fieldId);
17507
    }
17508
 
17509
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17510
      org.apache.thrift.protocol.TField field;
17511
      iprot.readStructBegin();
17512
      while (true)
17513
      {
17514
        field = iprot.readFieldBegin();
17515
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17516
          break;
17517
        }
17518
        switch (field.id) {
17519
          case 1: // LOST_ITEMS
17520
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17521
              {
7210 amar.kumar 17522
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
17523
                this.lostItems = new ArrayList<InventoryItem>(_list40.size);
17524
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
6548 amar.kumar 17525
                {
7210 amar.kumar 17526
                  InventoryItem _elem42; // required
17527
                  _elem42 = new InventoryItem();
17528
                  _elem42.read(iprot);
17529
                  this.lostItems.add(_elem42);
6548 amar.kumar 17530
                }
17531
                iprot.readListEnd();
17532
              }
17533
            } else { 
17534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17535
            }
17536
            break;
17537
          case 2: // VENDOR_ID
17538
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17539
              this.vendorId = iprot.readI64();
17540
              setVendorIdIsSet(true);
17541
            } else { 
17542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17543
            }
17544
            break;
17545
          default:
17546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17547
        }
17548
        iprot.readFieldEnd();
17549
      }
17550
      iprot.readStructEnd();
17551
      validate();
17552
    }
17553
 
17554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17555
      validate();
17556
 
17557
      oprot.writeStructBegin(STRUCT_DESC);
17558
      if (this.lostItems != null) {
17559
        oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
17560
        {
17561
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
7210 amar.kumar 17562
          for (InventoryItem _iter43 : this.lostItems)
6548 amar.kumar 17563
          {
7210 amar.kumar 17564
            _iter43.write(oprot);
6548 amar.kumar 17565
          }
17566
          oprot.writeListEnd();
17567
        }
17568
        oprot.writeFieldEnd();
17569
      }
17570
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
17571
      oprot.writeI64(this.vendorId);
17572
      oprot.writeFieldEnd();
17573
      oprot.writeFieldStop();
17574
      oprot.writeStructEnd();
17575
    }
17576
 
17577
    @Override
17578
    public String toString() {
17579
      StringBuilder sb = new StringBuilder("scanForLostItem_args(");
17580
      boolean first = true;
17581
 
17582
      sb.append("lostItems:");
17583
      if (this.lostItems == null) {
17584
        sb.append("null");
17585
      } else {
17586
        sb.append(this.lostItems);
17587
      }
17588
      first = false;
17589
      if (!first) sb.append(", ");
17590
      sb.append("vendorId:");
17591
      sb.append(this.vendorId);
17592
      first = false;
17593
      sb.append(")");
17594
      return sb.toString();
17595
    }
17596
 
17597
    public void validate() throws org.apache.thrift.TException {
17598
      // check for required fields
17599
    }
17600
 
17601
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17602
      try {
17603
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17604
      } catch (org.apache.thrift.TException te) {
17605
        throw new java.io.IOException(te);
17606
      }
17607
    }
17608
 
17609
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17610
      try {
17611
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17612
      } catch (org.apache.thrift.TException te) {
17613
        throw new java.io.IOException(te);
17614
      }
17615
    }
17616
 
17617
  }
17618
 
17619
  public static class scanForLostItem_result implements org.apache.thrift.TBase<scanForLostItem_result, scanForLostItem_result._Fields>, java.io.Serializable, Cloneable   {
17620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_result");
17621
 
17622
    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);
17623
 
17624
    private WarehouseServiceException ex; // required
17625
 
17626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17628
      EX((short)1, "ex");
17629
 
17630
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17631
 
17632
      static {
17633
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17634
          byName.put(field.getFieldName(), field);
17635
        }
17636
      }
17637
 
17638
      /**
17639
       * Find the _Fields constant that matches fieldId, or null if its not found.
17640
       */
17641
      public static _Fields findByThriftId(int fieldId) {
17642
        switch(fieldId) {
17643
          case 1: // EX
17644
            return EX;
17645
          default:
17646
            return null;
17647
        }
17648
      }
17649
 
17650
      /**
17651
       * Find the _Fields constant that matches fieldId, throwing an exception
17652
       * if it is not found.
17653
       */
17654
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17655
        _Fields fields = findByThriftId(fieldId);
17656
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17657
        return fields;
17658
      }
17659
 
17660
      /**
17661
       * Find the _Fields constant that matches name, or null if its not found.
17662
       */
17663
      public static _Fields findByName(String name) {
17664
        return byName.get(name);
17665
      }
17666
 
17667
      private final short _thriftId;
17668
      private final String _fieldName;
17669
 
17670
      _Fields(short thriftId, String fieldName) {
17671
        _thriftId = thriftId;
17672
        _fieldName = fieldName;
17673
      }
17674
 
17675
      public short getThriftFieldId() {
17676
        return _thriftId;
17677
      }
17678
 
17679
      public String getFieldName() {
17680
        return _fieldName;
17681
      }
17682
    }
17683
 
17684
    // isset id assignments
17685
 
17686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17687
    static {
17688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17689
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17690
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17691
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17692
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_result.class, metaDataMap);
17693
    }
17694
 
17695
    public scanForLostItem_result() {
17696
    }
17697
 
17698
    public scanForLostItem_result(
17699
      WarehouseServiceException ex)
17700
    {
17701
      this();
17702
      this.ex = ex;
17703
    }
17704
 
17705
    /**
17706
     * Performs a deep copy on <i>other</i>.
17707
     */
17708
    public scanForLostItem_result(scanForLostItem_result other) {
17709
      if (other.isSetEx()) {
17710
        this.ex = new WarehouseServiceException(other.ex);
17711
      }
17712
    }
17713
 
17714
    public scanForLostItem_result deepCopy() {
17715
      return new scanForLostItem_result(this);
17716
    }
17717
 
17718
    @Override
17719
    public void clear() {
17720
      this.ex = null;
17721
    }
17722
 
17723
    public WarehouseServiceException getEx() {
17724
      return this.ex;
17725
    }
17726
 
17727
    public void setEx(WarehouseServiceException ex) {
17728
      this.ex = ex;
17729
    }
17730
 
17731
    public void unsetEx() {
17732
      this.ex = null;
17733
    }
17734
 
17735
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
17736
    public boolean isSetEx() {
17737
      return this.ex != null;
17738
    }
17739
 
17740
    public void setExIsSet(boolean value) {
17741
      if (!value) {
17742
        this.ex = null;
17743
      }
17744
    }
17745
 
17746
    public void setFieldValue(_Fields field, Object value) {
17747
      switch (field) {
17748
      case EX:
17749
        if (value == null) {
17750
          unsetEx();
17751
        } else {
17752
          setEx((WarehouseServiceException)value);
17753
        }
17754
        break;
17755
 
17756
      }
17757
    }
17758
 
17759
    public Object getFieldValue(_Fields field) {
17760
      switch (field) {
17761
      case EX:
17762
        return getEx();
17763
 
17764
      }
17765
      throw new IllegalStateException();
17766
    }
17767
 
17768
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17769
    public boolean isSet(_Fields field) {
17770
      if (field == null) {
17771
        throw new IllegalArgumentException();
17772
      }
17773
 
17774
      switch (field) {
17775
      case EX:
17776
        return isSetEx();
17777
      }
17778
      throw new IllegalStateException();
17779
    }
17780
 
17781
    @Override
17782
    public boolean equals(Object that) {
17783
      if (that == null)
17784
        return false;
17785
      if (that instanceof scanForLostItem_result)
17786
        return this.equals((scanForLostItem_result)that);
17787
      return false;
17788
    }
17789
 
17790
    public boolean equals(scanForLostItem_result that) {
17791
      if (that == null)
17792
        return false;
17793
 
17794
      boolean this_present_ex = true && this.isSetEx();
17795
      boolean that_present_ex = true && that.isSetEx();
17796
      if (this_present_ex || that_present_ex) {
17797
        if (!(this_present_ex && that_present_ex))
17798
          return false;
17799
        if (!this.ex.equals(that.ex))
17800
          return false;
17801
      }
17802
 
17803
      return true;
17804
    }
17805
 
17806
    @Override
17807
    public int hashCode() {
17808
      return 0;
17809
    }
17810
 
17811
    public int compareTo(scanForLostItem_result other) {
17812
      if (!getClass().equals(other.getClass())) {
17813
        return getClass().getName().compareTo(other.getClass().getName());
17814
      }
17815
 
17816
      int lastComparison = 0;
17817
      scanForLostItem_result typedOther = (scanForLostItem_result)other;
17818
 
17819
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
17820
      if (lastComparison != 0) {
17821
        return lastComparison;
17822
      }
17823
      if (isSetEx()) {
17824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17825
        if (lastComparison != 0) {
17826
          return lastComparison;
17827
        }
17828
      }
17829
      return 0;
17830
    }
17831
 
17832
    public _Fields fieldForId(int fieldId) {
17833
      return _Fields.findByThriftId(fieldId);
17834
    }
17835
 
17836
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17837
      org.apache.thrift.protocol.TField field;
17838
      iprot.readStructBegin();
17839
      while (true)
17840
      {
17841
        field = iprot.readFieldBegin();
17842
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17843
          break;
17844
        }
17845
        switch (field.id) {
17846
          case 1: // EX
17847
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17848
              this.ex = new WarehouseServiceException();
17849
              this.ex.read(iprot);
17850
            } else { 
17851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17852
            }
17853
            break;
17854
          default:
17855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17856
        }
17857
        iprot.readFieldEnd();
17858
      }
17859
      iprot.readStructEnd();
17860
      validate();
17861
    }
17862
 
17863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17864
      oprot.writeStructBegin(STRUCT_DESC);
17865
 
17866
      if (this.isSetEx()) {
17867
        oprot.writeFieldBegin(EX_FIELD_DESC);
17868
        this.ex.write(oprot);
17869
        oprot.writeFieldEnd();
17870
      }
17871
      oprot.writeFieldStop();
17872
      oprot.writeStructEnd();
17873
    }
17874
 
17875
    @Override
17876
    public String toString() {
17877
      StringBuilder sb = new StringBuilder("scanForLostItem_result(");
17878
      boolean first = true;
17879
 
17880
      sb.append("ex:");
17881
      if (this.ex == null) {
17882
        sb.append("null");
17883
      } else {
17884
        sb.append(this.ex);
17885
      }
17886
      first = false;
17887
      sb.append(")");
17888
      return sb.toString();
17889
    }
17890
 
17891
    public void validate() throws org.apache.thrift.TException {
17892
      // check for required fields
17893
    }
17894
 
17895
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17896
      try {
17897
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17898
      } catch (org.apache.thrift.TException te) {
17899
        throw new java.io.IOException(te);
17900
      }
17901
    }
17902
 
17903
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17904
      try {
17905
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17906
      } catch (org.apache.thrift.TException te) {
17907
        throw new java.io.IOException(te);
17908
      }
17909
    }
17910
 
17911
  }
17912
 
17913
  public static class getCurrentSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_args, getCurrentSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
17914
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_args");
17915
 
17916
 
17917
 
17918
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17919
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17920
;
17921
 
17922
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17923
 
17924
      static {
17925
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17926
          byName.put(field.getFieldName(), field);
17927
        }
17928
      }
17929
 
17930
      /**
17931
       * Find the _Fields constant that matches fieldId, or null if its not found.
17932
       */
17933
      public static _Fields findByThriftId(int fieldId) {
17934
        switch(fieldId) {
17935
          default:
17936
            return null;
17937
        }
17938
      }
17939
 
17940
      /**
17941
       * Find the _Fields constant that matches fieldId, throwing an exception
17942
       * if it is not found.
17943
       */
17944
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17945
        _Fields fields = findByThriftId(fieldId);
17946
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17947
        return fields;
17948
      }
17949
 
17950
      /**
17951
       * Find the _Fields constant that matches name, or null if its not found.
17952
       */
17953
      public static _Fields findByName(String name) {
17954
        return byName.get(name);
17955
      }
17956
 
17957
      private final short _thriftId;
17958
      private final String _fieldName;
17959
 
17960
      _Fields(short thriftId, String fieldName) {
17961
        _thriftId = thriftId;
17962
        _fieldName = fieldName;
17963
      }
17964
 
17965
      public short getThriftFieldId() {
17966
        return _thriftId;
17967
      }
17968
 
17969
      public String getFieldName() {
17970
        return _fieldName;
17971
      }
17972
    }
17973
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17974
    static {
17975
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17976
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17977
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_args.class, metaDataMap);
17978
    }
17979
 
17980
    public getCurrentSerializedInventoryByScans_args() {
17981
    }
17982
 
17983
    /**
17984
     * Performs a deep copy on <i>other</i>.
17985
     */
17986
    public getCurrentSerializedInventoryByScans_args(getCurrentSerializedInventoryByScans_args other) {
17987
    }
17988
 
17989
    public getCurrentSerializedInventoryByScans_args deepCopy() {
17990
      return new getCurrentSerializedInventoryByScans_args(this);
17991
    }
17992
 
17993
    @Override
17994
    public void clear() {
17995
    }
17996
 
17997
    public void setFieldValue(_Fields field, Object value) {
17998
      switch (field) {
17999
      }
18000
    }
18001
 
18002
    public Object getFieldValue(_Fields field) {
18003
      switch (field) {
18004
      }
18005
      throw new IllegalStateException();
18006
    }
18007
 
18008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18009
    public boolean isSet(_Fields field) {
18010
      if (field == null) {
18011
        throw new IllegalArgumentException();
18012
      }
18013
 
18014
      switch (field) {
18015
      }
18016
      throw new IllegalStateException();
18017
    }
18018
 
18019
    @Override
18020
    public boolean equals(Object that) {
18021
      if (that == null)
18022
        return false;
18023
      if (that instanceof getCurrentSerializedInventoryByScans_args)
18024
        return this.equals((getCurrentSerializedInventoryByScans_args)that);
18025
      return false;
18026
    }
18027
 
18028
    public boolean equals(getCurrentSerializedInventoryByScans_args that) {
18029
      if (that == null)
18030
        return false;
18031
 
18032
      return true;
18033
    }
18034
 
18035
    @Override
18036
    public int hashCode() {
18037
      return 0;
18038
    }
18039
 
18040
    public int compareTo(getCurrentSerializedInventoryByScans_args other) {
18041
      if (!getClass().equals(other.getClass())) {
18042
        return getClass().getName().compareTo(other.getClass().getName());
18043
      }
18044
 
18045
      int lastComparison = 0;
18046
      getCurrentSerializedInventoryByScans_args typedOther = (getCurrentSerializedInventoryByScans_args)other;
18047
 
18048
      return 0;
18049
    }
18050
 
18051
    public _Fields fieldForId(int fieldId) {
18052
      return _Fields.findByThriftId(fieldId);
18053
    }
18054
 
18055
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18056
      org.apache.thrift.protocol.TField field;
18057
      iprot.readStructBegin();
18058
      while (true)
18059
      {
18060
        field = iprot.readFieldBegin();
18061
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18062
          break;
18063
        }
18064
        switch (field.id) {
18065
          default:
18066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18067
        }
18068
        iprot.readFieldEnd();
18069
      }
18070
      iprot.readStructEnd();
18071
      validate();
18072
    }
18073
 
18074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18075
      validate();
18076
 
18077
      oprot.writeStructBegin(STRUCT_DESC);
18078
      oprot.writeFieldStop();
18079
      oprot.writeStructEnd();
18080
    }
18081
 
18082
    @Override
18083
    public String toString() {
18084
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_args(");
18085
      boolean first = true;
18086
 
18087
      sb.append(")");
18088
      return sb.toString();
18089
    }
18090
 
18091
    public void validate() throws org.apache.thrift.TException {
18092
      // check for required fields
18093
    }
18094
 
18095
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18096
      try {
18097
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18098
      } catch (org.apache.thrift.TException te) {
18099
        throw new java.io.IOException(te);
18100
      }
18101
    }
18102
 
18103
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18104
      try {
18105
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18106
      } catch (org.apache.thrift.TException te) {
18107
        throw new java.io.IOException(te);
18108
      }
18109
    }
18110
 
18111
  }
18112
 
18113
  public static class getCurrentSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_result, getCurrentSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
18114
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_result");
18115
 
18116
    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);
18117
 
18118
    private List<InventoryAvailability> success; // required
18119
 
18120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18122
      SUCCESS((short)0, "success");
18123
 
18124
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18125
 
18126
      static {
18127
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18128
          byName.put(field.getFieldName(), field);
18129
        }
18130
      }
18131
 
18132
      /**
18133
       * Find the _Fields constant that matches fieldId, or null if its not found.
18134
       */
18135
      public static _Fields findByThriftId(int fieldId) {
18136
        switch(fieldId) {
18137
          case 0: // SUCCESS
18138
            return SUCCESS;
18139
          default:
18140
            return null;
18141
        }
18142
      }
18143
 
18144
      /**
18145
       * Find the _Fields constant that matches fieldId, throwing an exception
18146
       * if it is not found.
18147
       */
18148
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18149
        _Fields fields = findByThriftId(fieldId);
18150
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18151
        return fields;
18152
      }
18153
 
18154
      /**
18155
       * Find the _Fields constant that matches name, or null if its not found.
18156
       */
18157
      public static _Fields findByName(String name) {
18158
        return byName.get(name);
18159
      }
18160
 
18161
      private final short _thriftId;
18162
      private final String _fieldName;
18163
 
18164
      _Fields(short thriftId, String fieldName) {
18165
        _thriftId = thriftId;
18166
        _fieldName = fieldName;
18167
      }
18168
 
18169
      public short getThriftFieldId() {
18170
        return _thriftId;
18171
      }
18172
 
18173
      public String getFieldName() {
18174
        return _fieldName;
18175
      }
18176
    }
18177
 
18178
    // isset id assignments
18179
 
18180
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18181
    static {
18182
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18183
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18184
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18185
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
18186
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18187
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_result.class, metaDataMap);
18188
    }
18189
 
18190
    public getCurrentSerializedInventoryByScans_result() {
18191
    }
18192
 
18193
    public getCurrentSerializedInventoryByScans_result(
18194
      List<InventoryAvailability> success)
18195
    {
18196
      this();
18197
      this.success = success;
18198
    }
18199
 
18200
    /**
18201
     * Performs a deep copy on <i>other</i>.
18202
     */
18203
    public getCurrentSerializedInventoryByScans_result(getCurrentSerializedInventoryByScans_result other) {
18204
      if (other.isSetSuccess()) {
18205
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
18206
        for (InventoryAvailability other_element : other.success) {
18207
          __this__success.add(new InventoryAvailability(other_element));
18208
        }
18209
        this.success = __this__success;
18210
      }
18211
    }
18212
 
18213
    public getCurrentSerializedInventoryByScans_result deepCopy() {
18214
      return new getCurrentSerializedInventoryByScans_result(this);
18215
    }
18216
 
18217
    @Override
18218
    public void clear() {
18219
      this.success = null;
18220
    }
18221
 
18222
    public int getSuccessSize() {
18223
      return (this.success == null) ? 0 : this.success.size();
18224
    }
18225
 
18226
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
18227
      return (this.success == null) ? null : this.success.iterator();
18228
    }
18229
 
18230
    public void addToSuccess(InventoryAvailability elem) {
18231
      if (this.success == null) {
18232
        this.success = new ArrayList<InventoryAvailability>();
18233
      }
18234
      this.success.add(elem);
18235
    }
18236
 
18237
    public List<InventoryAvailability> getSuccess() {
18238
      return this.success;
18239
    }
18240
 
18241
    public void setSuccess(List<InventoryAvailability> success) {
18242
      this.success = success;
18243
    }
18244
 
18245
    public void unsetSuccess() {
18246
      this.success = null;
18247
    }
18248
 
18249
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18250
    public boolean isSetSuccess() {
18251
      return this.success != null;
18252
    }
18253
 
18254
    public void setSuccessIsSet(boolean value) {
18255
      if (!value) {
18256
        this.success = null;
18257
      }
18258
    }
18259
 
18260
    public void setFieldValue(_Fields field, Object value) {
18261
      switch (field) {
18262
      case SUCCESS:
18263
        if (value == null) {
18264
          unsetSuccess();
18265
        } else {
18266
          setSuccess((List<InventoryAvailability>)value);
18267
        }
18268
        break;
18269
 
18270
      }
18271
    }
18272
 
18273
    public Object getFieldValue(_Fields field) {
18274
      switch (field) {
18275
      case SUCCESS:
18276
        return getSuccess();
18277
 
18278
      }
18279
      throw new IllegalStateException();
18280
    }
18281
 
18282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18283
    public boolean isSet(_Fields field) {
18284
      if (field == null) {
18285
        throw new IllegalArgumentException();
18286
      }
18287
 
18288
      switch (field) {
18289
      case SUCCESS:
18290
        return isSetSuccess();
18291
      }
18292
      throw new IllegalStateException();
18293
    }
18294
 
18295
    @Override
18296
    public boolean equals(Object that) {
18297
      if (that == null)
18298
        return false;
18299
      if (that instanceof getCurrentSerializedInventoryByScans_result)
18300
        return this.equals((getCurrentSerializedInventoryByScans_result)that);
18301
      return false;
18302
    }
18303
 
18304
    public boolean equals(getCurrentSerializedInventoryByScans_result that) {
18305
      if (that == null)
18306
        return false;
18307
 
18308
      boolean this_present_success = true && this.isSetSuccess();
18309
      boolean that_present_success = true && that.isSetSuccess();
18310
      if (this_present_success || that_present_success) {
18311
        if (!(this_present_success && that_present_success))
18312
          return false;
18313
        if (!this.success.equals(that.success))
18314
          return false;
18315
      }
18316
 
18317
      return true;
18318
    }
18319
 
18320
    @Override
18321
    public int hashCode() {
18322
      return 0;
18323
    }
18324
 
18325
    public int compareTo(getCurrentSerializedInventoryByScans_result other) {
18326
      if (!getClass().equals(other.getClass())) {
18327
        return getClass().getName().compareTo(other.getClass().getName());
18328
      }
18329
 
18330
      int lastComparison = 0;
18331
      getCurrentSerializedInventoryByScans_result typedOther = (getCurrentSerializedInventoryByScans_result)other;
18332
 
18333
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18334
      if (lastComparison != 0) {
18335
        return lastComparison;
18336
      }
18337
      if (isSetSuccess()) {
18338
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18339
        if (lastComparison != 0) {
18340
          return lastComparison;
18341
        }
18342
      }
18343
      return 0;
18344
    }
18345
 
18346
    public _Fields fieldForId(int fieldId) {
18347
      return _Fields.findByThriftId(fieldId);
18348
    }
18349
 
18350
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18351
      org.apache.thrift.protocol.TField field;
18352
      iprot.readStructBegin();
18353
      while (true)
18354
      {
18355
        field = iprot.readFieldBegin();
18356
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18357
          break;
18358
        }
18359
        switch (field.id) {
18360
          case 0: // SUCCESS
18361
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18362
              {
7210 amar.kumar 18363
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
18364
                this.success = new ArrayList<InventoryAvailability>(_list44.size);
18365
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
6548 amar.kumar 18366
                {
7210 amar.kumar 18367
                  InventoryAvailability _elem46; // required
18368
                  _elem46 = new InventoryAvailability();
18369
                  _elem46.read(iprot);
18370
                  this.success.add(_elem46);
6548 amar.kumar 18371
                }
18372
                iprot.readListEnd();
18373
              }
18374
            } else { 
18375
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18376
            }
18377
            break;
18378
          default:
18379
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18380
        }
18381
        iprot.readFieldEnd();
18382
      }
18383
      iprot.readStructEnd();
18384
      validate();
18385
    }
18386
 
18387
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18388
      oprot.writeStructBegin(STRUCT_DESC);
18389
 
18390
      if (this.isSetSuccess()) {
18391
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18392
        {
18393
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 18394
          for (InventoryAvailability _iter47 : this.success)
6548 amar.kumar 18395
          {
7210 amar.kumar 18396
            _iter47.write(oprot);
6548 amar.kumar 18397
          }
18398
          oprot.writeListEnd();
18399
        }
18400
        oprot.writeFieldEnd();
18401
      }
18402
      oprot.writeFieldStop();
18403
      oprot.writeStructEnd();
18404
    }
18405
 
18406
    @Override
18407
    public String toString() {
18408
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_result(");
18409
      boolean first = true;
18410
 
18411
      sb.append("success:");
18412
      if (this.success == null) {
18413
        sb.append("null");
18414
      } else {
18415
        sb.append(this.success);
18416
      }
18417
      first = false;
18418
      sb.append(")");
18419
      return sb.toString();
18420
    }
18421
 
18422
    public void validate() throws org.apache.thrift.TException {
18423
      // check for required fields
18424
    }
18425
 
18426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18427
      try {
18428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18429
      } catch (org.apache.thrift.TException te) {
18430
        throw new java.io.IOException(te);
18431
      }
18432
    }
18433
 
18434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18435
      try {
18436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18437
      } catch (org.apache.thrift.TException te) {
18438
        throw new java.io.IOException(te);
18439
      }
18440
    }
18441
 
18442
  }
18443
 
6630 amar.kumar 18444
  public static class getCurrentNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_args, getCurrentNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
18445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_args");
18446
 
18447
 
18448
 
18449
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18450
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18451
;
18452
 
18453
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18454
 
18455
      static {
18456
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18457
          byName.put(field.getFieldName(), field);
18458
        }
18459
      }
18460
 
18461
      /**
18462
       * Find the _Fields constant that matches fieldId, or null if its not found.
18463
       */
18464
      public static _Fields findByThriftId(int fieldId) {
18465
        switch(fieldId) {
18466
          default:
18467
            return null;
18468
        }
18469
      }
18470
 
18471
      /**
18472
       * Find the _Fields constant that matches fieldId, throwing an exception
18473
       * if it is not found.
18474
       */
18475
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18476
        _Fields fields = findByThriftId(fieldId);
18477
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18478
        return fields;
18479
      }
18480
 
18481
      /**
18482
       * Find the _Fields constant that matches name, or null if its not found.
18483
       */
18484
      public static _Fields findByName(String name) {
18485
        return byName.get(name);
18486
      }
18487
 
18488
      private final short _thriftId;
18489
      private final String _fieldName;
18490
 
18491
      _Fields(short thriftId, String fieldName) {
18492
        _thriftId = thriftId;
18493
        _fieldName = fieldName;
18494
      }
18495
 
18496
      public short getThriftFieldId() {
18497
        return _thriftId;
18498
      }
18499
 
18500
      public String getFieldName() {
18501
        return _fieldName;
18502
      }
18503
    }
18504
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18505
    static {
18506
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18507
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18508
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_args.class, metaDataMap);
18509
    }
18510
 
18511
    public getCurrentNonSerializedInventoryByScans_args() {
18512
    }
18513
 
18514
    /**
18515
     * Performs a deep copy on <i>other</i>.
18516
     */
18517
    public getCurrentNonSerializedInventoryByScans_args(getCurrentNonSerializedInventoryByScans_args other) {
18518
    }
18519
 
18520
    public getCurrentNonSerializedInventoryByScans_args deepCopy() {
18521
      return new getCurrentNonSerializedInventoryByScans_args(this);
18522
    }
18523
 
18524
    @Override
18525
    public void clear() {
18526
    }
18527
 
18528
    public void setFieldValue(_Fields field, Object value) {
18529
      switch (field) {
18530
      }
18531
    }
18532
 
18533
    public Object getFieldValue(_Fields field) {
18534
      switch (field) {
18535
      }
18536
      throw new IllegalStateException();
18537
    }
18538
 
18539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18540
    public boolean isSet(_Fields field) {
18541
      if (field == null) {
18542
        throw new IllegalArgumentException();
18543
      }
18544
 
18545
      switch (field) {
18546
      }
18547
      throw new IllegalStateException();
18548
    }
18549
 
18550
    @Override
18551
    public boolean equals(Object that) {
18552
      if (that == null)
18553
        return false;
18554
      if (that instanceof getCurrentNonSerializedInventoryByScans_args)
18555
        return this.equals((getCurrentNonSerializedInventoryByScans_args)that);
18556
      return false;
18557
    }
18558
 
18559
    public boolean equals(getCurrentNonSerializedInventoryByScans_args that) {
18560
      if (that == null)
18561
        return false;
18562
 
18563
      return true;
18564
    }
18565
 
18566
    @Override
18567
    public int hashCode() {
18568
      return 0;
18569
    }
18570
 
18571
    public int compareTo(getCurrentNonSerializedInventoryByScans_args other) {
18572
      if (!getClass().equals(other.getClass())) {
18573
        return getClass().getName().compareTo(other.getClass().getName());
18574
      }
18575
 
18576
      int lastComparison = 0;
18577
      getCurrentNonSerializedInventoryByScans_args typedOther = (getCurrentNonSerializedInventoryByScans_args)other;
18578
 
18579
      return 0;
18580
    }
18581
 
18582
    public _Fields fieldForId(int fieldId) {
18583
      return _Fields.findByThriftId(fieldId);
18584
    }
18585
 
18586
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18587
      org.apache.thrift.protocol.TField field;
18588
      iprot.readStructBegin();
18589
      while (true)
18590
      {
18591
        field = iprot.readFieldBegin();
18592
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18593
          break;
18594
        }
18595
        switch (field.id) {
18596
          default:
18597
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18598
        }
18599
        iprot.readFieldEnd();
18600
      }
18601
      iprot.readStructEnd();
18602
      validate();
18603
    }
18604
 
18605
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18606
      validate();
18607
 
18608
      oprot.writeStructBegin(STRUCT_DESC);
18609
      oprot.writeFieldStop();
18610
      oprot.writeStructEnd();
18611
    }
18612
 
18613
    @Override
18614
    public String toString() {
18615
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_args(");
18616
      boolean first = true;
18617
 
18618
      sb.append(")");
18619
      return sb.toString();
18620
    }
18621
 
18622
    public void validate() throws org.apache.thrift.TException {
18623
      // check for required fields
18624
    }
18625
 
18626
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18627
      try {
18628
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18629
      } catch (org.apache.thrift.TException te) {
18630
        throw new java.io.IOException(te);
18631
      }
18632
    }
18633
 
18634
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18635
      try {
18636
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18637
      } catch (org.apache.thrift.TException te) {
18638
        throw new java.io.IOException(te);
18639
      }
18640
    }
18641
 
18642
  }
18643
 
18644
  public static class getCurrentNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_result, getCurrentNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
18645
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_result");
18646
 
18647
    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);
18648
 
18649
    private List<InventoryAvailability> success; // required
18650
 
18651
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18652
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18653
      SUCCESS((short)0, "success");
18654
 
18655
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18656
 
18657
      static {
18658
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18659
          byName.put(field.getFieldName(), field);
18660
        }
18661
      }
18662
 
18663
      /**
18664
       * Find the _Fields constant that matches fieldId, or null if its not found.
18665
       */
18666
      public static _Fields findByThriftId(int fieldId) {
18667
        switch(fieldId) {
18668
          case 0: // SUCCESS
18669
            return SUCCESS;
18670
          default:
18671
            return null;
18672
        }
18673
      }
18674
 
18675
      /**
18676
       * Find the _Fields constant that matches fieldId, throwing an exception
18677
       * if it is not found.
18678
       */
18679
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18680
        _Fields fields = findByThriftId(fieldId);
18681
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18682
        return fields;
18683
      }
18684
 
18685
      /**
18686
       * Find the _Fields constant that matches name, or null if its not found.
18687
       */
18688
      public static _Fields findByName(String name) {
18689
        return byName.get(name);
18690
      }
18691
 
18692
      private final short _thriftId;
18693
      private final String _fieldName;
18694
 
18695
      _Fields(short thriftId, String fieldName) {
18696
        _thriftId = thriftId;
18697
        _fieldName = fieldName;
18698
      }
18699
 
18700
      public short getThriftFieldId() {
18701
        return _thriftId;
18702
      }
18703
 
18704
      public String getFieldName() {
18705
        return _fieldName;
18706
      }
18707
    }
18708
 
18709
    // isset id assignments
18710
 
18711
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18712
    static {
18713
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18714
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18715
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18716
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
18717
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18718
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_result.class, metaDataMap);
18719
    }
18720
 
18721
    public getCurrentNonSerializedInventoryByScans_result() {
18722
    }
18723
 
18724
    public getCurrentNonSerializedInventoryByScans_result(
18725
      List<InventoryAvailability> success)
18726
    {
18727
      this();
18728
      this.success = success;
18729
    }
18730
 
18731
    /**
18732
     * Performs a deep copy on <i>other</i>.
18733
     */
18734
    public getCurrentNonSerializedInventoryByScans_result(getCurrentNonSerializedInventoryByScans_result other) {
18735
      if (other.isSetSuccess()) {
18736
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
18737
        for (InventoryAvailability other_element : other.success) {
18738
          __this__success.add(new InventoryAvailability(other_element));
18739
        }
18740
        this.success = __this__success;
18741
      }
18742
    }
18743
 
18744
    public getCurrentNonSerializedInventoryByScans_result deepCopy() {
18745
      return new getCurrentNonSerializedInventoryByScans_result(this);
18746
    }
18747
 
18748
    @Override
18749
    public void clear() {
18750
      this.success = null;
18751
    }
18752
 
18753
    public int getSuccessSize() {
18754
      return (this.success == null) ? 0 : this.success.size();
18755
    }
18756
 
18757
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
18758
      return (this.success == null) ? null : this.success.iterator();
18759
    }
18760
 
18761
    public void addToSuccess(InventoryAvailability elem) {
18762
      if (this.success == null) {
18763
        this.success = new ArrayList<InventoryAvailability>();
18764
      }
18765
      this.success.add(elem);
18766
    }
18767
 
18768
    public List<InventoryAvailability> getSuccess() {
18769
      return this.success;
18770
    }
18771
 
18772
    public void setSuccess(List<InventoryAvailability> success) {
18773
      this.success = success;
18774
    }
18775
 
18776
    public void unsetSuccess() {
18777
      this.success = null;
18778
    }
18779
 
18780
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18781
    public boolean isSetSuccess() {
18782
      return this.success != null;
18783
    }
18784
 
18785
    public void setSuccessIsSet(boolean value) {
18786
      if (!value) {
18787
        this.success = null;
18788
      }
18789
    }
18790
 
18791
    public void setFieldValue(_Fields field, Object value) {
18792
      switch (field) {
18793
      case SUCCESS:
18794
        if (value == null) {
18795
          unsetSuccess();
18796
        } else {
18797
          setSuccess((List<InventoryAvailability>)value);
18798
        }
18799
        break;
18800
 
18801
      }
18802
    }
18803
 
18804
    public Object getFieldValue(_Fields field) {
18805
      switch (field) {
18806
      case SUCCESS:
18807
        return getSuccess();
18808
 
18809
      }
18810
      throw new IllegalStateException();
18811
    }
18812
 
18813
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18814
    public boolean isSet(_Fields field) {
18815
      if (field == null) {
18816
        throw new IllegalArgumentException();
18817
      }
18818
 
18819
      switch (field) {
18820
      case SUCCESS:
18821
        return isSetSuccess();
18822
      }
18823
      throw new IllegalStateException();
18824
    }
18825
 
18826
    @Override
18827
    public boolean equals(Object that) {
18828
      if (that == null)
18829
        return false;
18830
      if (that instanceof getCurrentNonSerializedInventoryByScans_result)
18831
        return this.equals((getCurrentNonSerializedInventoryByScans_result)that);
18832
      return false;
18833
    }
18834
 
18835
    public boolean equals(getCurrentNonSerializedInventoryByScans_result that) {
18836
      if (that == null)
18837
        return false;
18838
 
18839
      boolean this_present_success = true && this.isSetSuccess();
18840
      boolean that_present_success = true && that.isSetSuccess();
18841
      if (this_present_success || that_present_success) {
18842
        if (!(this_present_success && that_present_success))
18843
          return false;
18844
        if (!this.success.equals(that.success))
18845
          return false;
18846
      }
18847
 
18848
      return true;
18849
    }
18850
 
18851
    @Override
18852
    public int hashCode() {
18853
      return 0;
18854
    }
18855
 
18856
    public int compareTo(getCurrentNonSerializedInventoryByScans_result other) {
18857
      if (!getClass().equals(other.getClass())) {
18858
        return getClass().getName().compareTo(other.getClass().getName());
18859
      }
18860
 
18861
      int lastComparison = 0;
18862
      getCurrentNonSerializedInventoryByScans_result typedOther = (getCurrentNonSerializedInventoryByScans_result)other;
18863
 
18864
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18865
      if (lastComparison != 0) {
18866
        return lastComparison;
18867
      }
18868
      if (isSetSuccess()) {
18869
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18870
        if (lastComparison != 0) {
18871
          return lastComparison;
18872
        }
18873
      }
18874
      return 0;
18875
    }
18876
 
18877
    public _Fields fieldForId(int fieldId) {
18878
      return _Fields.findByThriftId(fieldId);
18879
    }
18880
 
18881
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18882
      org.apache.thrift.protocol.TField field;
18883
      iprot.readStructBegin();
18884
      while (true)
18885
      {
18886
        field = iprot.readFieldBegin();
18887
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18888
          break;
18889
        }
18890
        switch (field.id) {
18891
          case 0: // SUCCESS
18892
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18893
              {
7210 amar.kumar 18894
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
18895
                this.success = new ArrayList<InventoryAvailability>(_list48.size);
18896
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
6630 amar.kumar 18897
                {
7210 amar.kumar 18898
                  InventoryAvailability _elem50; // required
18899
                  _elem50 = new InventoryAvailability();
18900
                  _elem50.read(iprot);
18901
                  this.success.add(_elem50);
6630 amar.kumar 18902
                }
18903
                iprot.readListEnd();
18904
              }
18905
            } else { 
18906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18907
            }
18908
            break;
18909
          default:
18910
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18911
        }
18912
        iprot.readFieldEnd();
18913
      }
18914
      iprot.readStructEnd();
18915
      validate();
18916
    }
18917
 
18918
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18919
      oprot.writeStructBegin(STRUCT_DESC);
18920
 
18921
      if (this.isSetSuccess()) {
18922
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18923
        {
18924
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 18925
          for (InventoryAvailability _iter51 : this.success)
6630 amar.kumar 18926
          {
7210 amar.kumar 18927
            _iter51.write(oprot);
6630 amar.kumar 18928
          }
18929
          oprot.writeListEnd();
18930
        }
18931
        oprot.writeFieldEnd();
18932
      }
18933
      oprot.writeFieldStop();
18934
      oprot.writeStructEnd();
18935
    }
18936
 
18937
    @Override
18938
    public String toString() {
18939
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_result(");
18940
      boolean first = true;
18941
 
18942
      sb.append("success:");
18943
      if (this.success == null) {
18944
        sb.append("null");
18945
      } else {
18946
        sb.append(this.success);
18947
      }
18948
      first = false;
18949
      sb.append(")");
18950
      return sb.toString();
18951
    }
18952
 
18953
    public void validate() throws org.apache.thrift.TException {
18954
      // check for required fields
18955
    }
18956
 
18957
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18958
      try {
18959
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18960
      } catch (org.apache.thrift.TException te) {
18961
        throw new java.io.IOException(te);
18962
      }
18963
    }
18964
 
18965
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18966
      try {
18967
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18968
      } catch (org.apache.thrift.TException te) {
18969
        throw new java.io.IOException(te);
18970
      }
18971
    }
18972
 
18973
  }
18974
 
6762 amar.kumar 18975
  public static class getHistoricSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_args, getHistoricSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
18976
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_args");
18977
 
18978
    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);
18979
 
18980
    private long date; // required
18981
 
18982
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18983
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18984
      DATE((short)1, "date");
18985
 
18986
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18987
 
18988
      static {
18989
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18990
          byName.put(field.getFieldName(), field);
18991
        }
18992
      }
18993
 
18994
      /**
18995
       * Find the _Fields constant that matches fieldId, or null if its not found.
18996
       */
18997
      public static _Fields findByThriftId(int fieldId) {
18998
        switch(fieldId) {
18999
          case 1: // DATE
19000
            return DATE;
19001
          default:
19002
            return null;
19003
        }
19004
      }
19005
 
19006
      /**
19007
       * Find the _Fields constant that matches fieldId, throwing an exception
19008
       * if it is not found.
19009
       */
19010
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19011
        _Fields fields = findByThriftId(fieldId);
19012
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19013
        return fields;
19014
      }
19015
 
19016
      /**
19017
       * Find the _Fields constant that matches name, or null if its not found.
19018
       */
19019
      public static _Fields findByName(String name) {
19020
        return byName.get(name);
19021
      }
19022
 
19023
      private final short _thriftId;
19024
      private final String _fieldName;
19025
 
19026
      _Fields(short thriftId, String fieldName) {
19027
        _thriftId = thriftId;
19028
        _fieldName = fieldName;
19029
      }
19030
 
19031
      public short getThriftFieldId() {
19032
        return _thriftId;
19033
      }
19034
 
19035
      public String getFieldName() {
19036
        return _fieldName;
19037
      }
19038
    }
19039
 
19040
    // isset id assignments
19041
    private static final int __DATE_ISSET_ID = 0;
19042
    private BitSet __isset_bit_vector = new BitSet(1);
19043
 
19044
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19045
    static {
19046
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19047
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19048
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19049
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19050
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_args.class, metaDataMap);
19051
    }
19052
 
19053
    public getHistoricSerializedInventoryByScans_args() {
19054
    }
19055
 
19056
    public getHistoricSerializedInventoryByScans_args(
19057
      long date)
19058
    {
19059
      this();
19060
      this.date = date;
19061
      setDateIsSet(true);
19062
    }
19063
 
19064
    /**
19065
     * Performs a deep copy on <i>other</i>.
19066
     */
19067
    public getHistoricSerializedInventoryByScans_args(getHistoricSerializedInventoryByScans_args other) {
19068
      __isset_bit_vector.clear();
19069
      __isset_bit_vector.or(other.__isset_bit_vector);
19070
      this.date = other.date;
19071
    }
19072
 
19073
    public getHistoricSerializedInventoryByScans_args deepCopy() {
19074
      return new getHistoricSerializedInventoryByScans_args(this);
19075
    }
19076
 
19077
    @Override
19078
    public void clear() {
19079
      setDateIsSet(false);
19080
      this.date = 0;
19081
    }
19082
 
19083
    public long getDate() {
19084
      return this.date;
19085
    }
19086
 
19087
    public void setDate(long date) {
19088
      this.date = date;
19089
      setDateIsSet(true);
19090
    }
19091
 
19092
    public void unsetDate() {
19093
      __isset_bit_vector.clear(__DATE_ISSET_ID);
19094
    }
19095
 
19096
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
19097
    public boolean isSetDate() {
19098
      return __isset_bit_vector.get(__DATE_ISSET_ID);
19099
    }
19100
 
19101
    public void setDateIsSet(boolean value) {
19102
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
19103
    }
19104
 
19105
    public void setFieldValue(_Fields field, Object value) {
19106
      switch (field) {
19107
      case DATE:
19108
        if (value == null) {
19109
          unsetDate();
19110
        } else {
19111
          setDate((Long)value);
19112
        }
19113
        break;
19114
 
19115
      }
19116
    }
19117
 
19118
    public Object getFieldValue(_Fields field) {
19119
      switch (field) {
19120
      case DATE:
19121
        return Long.valueOf(getDate());
19122
 
19123
      }
19124
      throw new IllegalStateException();
19125
    }
19126
 
19127
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19128
    public boolean isSet(_Fields field) {
19129
      if (field == null) {
19130
        throw new IllegalArgumentException();
19131
      }
19132
 
19133
      switch (field) {
19134
      case DATE:
19135
        return isSetDate();
19136
      }
19137
      throw new IllegalStateException();
19138
    }
19139
 
19140
    @Override
19141
    public boolean equals(Object that) {
19142
      if (that == null)
19143
        return false;
19144
      if (that instanceof getHistoricSerializedInventoryByScans_args)
19145
        return this.equals((getHistoricSerializedInventoryByScans_args)that);
19146
      return false;
19147
    }
19148
 
19149
    public boolean equals(getHistoricSerializedInventoryByScans_args that) {
19150
      if (that == null)
19151
        return false;
19152
 
19153
      boolean this_present_date = true;
19154
      boolean that_present_date = true;
19155
      if (this_present_date || that_present_date) {
19156
        if (!(this_present_date && that_present_date))
19157
          return false;
19158
        if (this.date != that.date)
19159
          return false;
19160
      }
19161
 
19162
      return true;
19163
    }
19164
 
19165
    @Override
19166
    public int hashCode() {
19167
      return 0;
19168
    }
19169
 
19170
    public int compareTo(getHistoricSerializedInventoryByScans_args other) {
19171
      if (!getClass().equals(other.getClass())) {
19172
        return getClass().getName().compareTo(other.getClass().getName());
19173
      }
19174
 
19175
      int lastComparison = 0;
19176
      getHistoricSerializedInventoryByScans_args typedOther = (getHistoricSerializedInventoryByScans_args)other;
19177
 
19178
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
19179
      if (lastComparison != 0) {
19180
        return lastComparison;
19181
      }
19182
      if (isSetDate()) {
19183
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
19184
        if (lastComparison != 0) {
19185
          return lastComparison;
19186
        }
19187
      }
19188
      return 0;
19189
    }
19190
 
19191
    public _Fields fieldForId(int fieldId) {
19192
      return _Fields.findByThriftId(fieldId);
19193
    }
19194
 
19195
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19196
      org.apache.thrift.protocol.TField field;
19197
      iprot.readStructBegin();
19198
      while (true)
19199
      {
19200
        field = iprot.readFieldBegin();
19201
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19202
          break;
19203
        }
19204
        switch (field.id) {
19205
          case 1: // DATE
19206
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19207
              this.date = iprot.readI64();
19208
              setDateIsSet(true);
19209
            } else { 
19210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19211
            }
19212
            break;
19213
          default:
19214
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19215
        }
19216
        iprot.readFieldEnd();
19217
      }
19218
      iprot.readStructEnd();
19219
      validate();
19220
    }
19221
 
19222
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19223
      validate();
19224
 
19225
      oprot.writeStructBegin(STRUCT_DESC);
19226
      oprot.writeFieldBegin(DATE_FIELD_DESC);
19227
      oprot.writeI64(this.date);
19228
      oprot.writeFieldEnd();
19229
      oprot.writeFieldStop();
19230
      oprot.writeStructEnd();
19231
    }
19232
 
19233
    @Override
19234
    public String toString() {
19235
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_args(");
19236
      boolean first = true;
19237
 
19238
      sb.append("date:");
19239
      sb.append(this.date);
19240
      first = false;
19241
      sb.append(")");
19242
      return sb.toString();
19243
    }
19244
 
19245
    public void validate() throws org.apache.thrift.TException {
19246
      // check for required fields
19247
    }
19248
 
19249
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19250
      try {
19251
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19252
      } catch (org.apache.thrift.TException te) {
19253
        throw new java.io.IOException(te);
19254
      }
19255
    }
19256
 
19257
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19258
      try {
19259
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19260
      } catch (org.apache.thrift.TException te) {
19261
        throw new java.io.IOException(te);
19262
      }
19263
    }
19264
 
19265
  }
19266
 
19267
  public static class getHistoricSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_result, getHistoricSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
19268
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_result");
19269
 
19270
    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);
19271
 
19272
    private List<InventoryAvailability> success; // required
19273
 
19274
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19275
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19276
      SUCCESS((short)0, "success");
19277
 
19278
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19279
 
19280
      static {
19281
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19282
          byName.put(field.getFieldName(), field);
19283
        }
19284
      }
19285
 
19286
      /**
19287
       * Find the _Fields constant that matches fieldId, or null if its not found.
19288
       */
19289
      public static _Fields findByThriftId(int fieldId) {
19290
        switch(fieldId) {
19291
          case 0: // SUCCESS
19292
            return SUCCESS;
19293
          default:
19294
            return null;
19295
        }
19296
      }
19297
 
19298
      /**
19299
       * Find the _Fields constant that matches fieldId, throwing an exception
19300
       * if it is not found.
19301
       */
19302
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19303
        _Fields fields = findByThriftId(fieldId);
19304
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19305
        return fields;
19306
      }
19307
 
19308
      /**
19309
       * Find the _Fields constant that matches name, or null if its not found.
19310
       */
19311
      public static _Fields findByName(String name) {
19312
        return byName.get(name);
19313
      }
19314
 
19315
      private final short _thriftId;
19316
      private final String _fieldName;
19317
 
19318
      _Fields(short thriftId, String fieldName) {
19319
        _thriftId = thriftId;
19320
        _fieldName = fieldName;
19321
      }
19322
 
19323
      public short getThriftFieldId() {
19324
        return _thriftId;
19325
      }
19326
 
19327
      public String getFieldName() {
19328
        return _fieldName;
19329
      }
19330
    }
19331
 
19332
    // isset id assignments
19333
 
19334
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19335
    static {
19336
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19337
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19338
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19339
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
19340
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19341
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_result.class, metaDataMap);
19342
    }
19343
 
19344
    public getHistoricSerializedInventoryByScans_result() {
19345
    }
19346
 
19347
    public getHistoricSerializedInventoryByScans_result(
19348
      List<InventoryAvailability> success)
19349
    {
19350
      this();
19351
      this.success = success;
19352
    }
19353
 
19354
    /**
19355
     * Performs a deep copy on <i>other</i>.
19356
     */
19357
    public getHistoricSerializedInventoryByScans_result(getHistoricSerializedInventoryByScans_result other) {
19358
      if (other.isSetSuccess()) {
19359
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
19360
        for (InventoryAvailability other_element : other.success) {
19361
          __this__success.add(new InventoryAvailability(other_element));
19362
        }
19363
        this.success = __this__success;
19364
      }
19365
    }
19366
 
19367
    public getHistoricSerializedInventoryByScans_result deepCopy() {
19368
      return new getHistoricSerializedInventoryByScans_result(this);
19369
    }
19370
 
19371
    @Override
19372
    public void clear() {
19373
      this.success = null;
19374
    }
19375
 
19376
    public int getSuccessSize() {
19377
      return (this.success == null) ? 0 : this.success.size();
19378
    }
19379
 
19380
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
19381
      return (this.success == null) ? null : this.success.iterator();
19382
    }
19383
 
19384
    public void addToSuccess(InventoryAvailability elem) {
19385
      if (this.success == null) {
19386
        this.success = new ArrayList<InventoryAvailability>();
19387
      }
19388
      this.success.add(elem);
19389
    }
19390
 
19391
    public List<InventoryAvailability> getSuccess() {
19392
      return this.success;
19393
    }
19394
 
19395
    public void setSuccess(List<InventoryAvailability> success) {
19396
      this.success = success;
19397
    }
19398
 
19399
    public void unsetSuccess() {
19400
      this.success = null;
19401
    }
19402
 
19403
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19404
    public boolean isSetSuccess() {
19405
      return this.success != null;
19406
    }
19407
 
19408
    public void setSuccessIsSet(boolean value) {
19409
      if (!value) {
19410
        this.success = null;
19411
      }
19412
    }
19413
 
19414
    public void setFieldValue(_Fields field, Object value) {
19415
      switch (field) {
19416
      case SUCCESS:
19417
        if (value == null) {
19418
          unsetSuccess();
19419
        } else {
19420
          setSuccess((List<InventoryAvailability>)value);
19421
        }
19422
        break;
19423
 
19424
      }
19425
    }
19426
 
19427
    public Object getFieldValue(_Fields field) {
19428
      switch (field) {
19429
      case SUCCESS:
19430
        return getSuccess();
19431
 
19432
      }
19433
      throw new IllegalStateException();
19434
    }
19435
 
19436
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19437
    public boolean isSet(_Fields field) {
19438
      if (field == null) {
19439
        throw new IllegalArgumentException();
19440
      }
19441
 
19442
      switch (field) {
19443
      case SUCCESS:
19444
        return isSetSuccess();
19445
      }
19446
      throw new IllegalStateException();
19447
    }
19448
 
19449
    @Override
19450
    public boolean equals(Object that) {
19451
      if (that == null)
19452
        return false;
19453
      if (that instanceof getHistoricSerializedInventoryByScans_result)
19454
        return this.equals((getHistoricSerializedInventoryByScans_result)that);
19455
      return false;
19456
    }
19457
 
19458
    public boolean equals(getHistoricSerializedInventoryByScans_result that) {
19459
      if (that == null)
19460
        return false;
19461
 
19462
      boolean this_present_success = true && this.isSetSuccess();
19463
      boolean that_present_success = true && that.isSetSuccess();
19464
      if (this_present_success || that_present_success) {
19465
        if (!(this_present_success && that_present_success))
19466
          return false;
19467
        if (!this.success.equals(that.success))
19468
          return false;
19469
      }
19470
 
19471
      return true;
19472
    }
19473
 
19474
    @Override
19475
    public int hashCode() {
19476
      return 0;
19477
    }
19478
 
19479
    public int compareTo(getHistoricSerializedInventoryByScans_result other) {
19480
      if (!getClass().equals(other.getClass())) {
19481
        return getClass().getName().compareTo(other.getClass().getName());
19482
      }
19483
 
19484
      int lastComparison = 0;
19485
      getHistoricSerializedInventoryByScans_result typedOther = (getHistoricSerializedInventoryByScans_result)other;
19486
 
19487
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19488
      if (lastComparison != 0) {
19489
        return lastComparison;
19490
      }
19491
      if (isSetSuccess()) {
19492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19493
        if (lastComparison != 0) {
19494
          return lastComparison;
19495
        }
19496
      }
19497
      return 0;
19498
    }
19499
 
19500
    public _Fields fieldForId(int fieldId) {
19501
      return _Fields.findByThriftId(fieldId);
19502
    }
19503
 
19504
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19505
      org.apache.thrift.protocol.TField field;
19506
      iprot.readStructBegin();
19507
      while (true)
19508
      {
19509
        field = iprot.readFieldBegin();
19510
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19511
          break;
19512
        }
19513
        switch (field.id) {
19514
          case 0: // SUCCESS
19515
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19516
              {
7210 amar.kumar 19517
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
19518
                this.success = new ArrayList<InventoryAvailability>(_list52.size);
19519
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
6762 amar.kumar 19520
                {
7210 amar.kumar 19521
                  InventoryAvailability _elem54; // required
19522
                  _elem54 = new InventoryAvailability();
19523
                  _elem54.read(iprot);
19524
                  this.success.add(_elem54);
6762 amar.kumar 19525
                }
19526
                iprot.readListEnd();
19527
              }
19528
            } else { 
19529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19530
            }
19531
            break;
19532
          default:
19533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19534
        }
19535
        iprot.readFieldEnd();
19536
      }
19537
      iprot.readStructEnd();
19538
      validate();
19539
    }
19540
 
19541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19542
      oprot.writeStructBegin(STRUCT_DESC);
19543
 
19544
      if (this.isSetSuccess()) {
19545
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19546
        {
19547
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 19548
          for (InventoryAvailability _iter55 : this.success)
6762 amar.kumar 19549
          {
7210 amar.kumar 19550
            _iter55.write(oprot);
6762 amar.kumar 19551
          }
19552
          oprot.writeListEnd();
19553
        }
19554
        oprot.writeFieldEnd();
19555
      }
19556
      oprot.writeFieldStop();
19557
      oprot.writeStructEnd();
19558
    }
19559
 
19560
    @Override
19561
    public String toString() {
19562
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_result(");
19563
      boolean first = true;
19564
 
19565
      sb.append("success:");
19566
      if (this.success == null) {
19567
        sb.append("null");
19568
      } else {
19569
        sb.append(this.success);
19570
      }
19571
      first = false;
19572
      sb.append(")");
19573
      return sb.toString();
19574
    }
19575
 
19576
    public void validate() throws org.apache.thrift.TException {
19577
      // check for required fields
19578
    }
19579
 
19580
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19581
      try {
19582
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19583
      } catch (org.apache.thrift.TException te) {
19584
        throw new java.io.IOException(te);
19585
      }
19586
    }
19587
 
19588
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19589
      try {
19590
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19591
      } catch (org.apache.thrift.TException te) {
19592
        throw new java.io.IOException(te);
19593
      }
19594
    }
19595
 
19596
  }
19597
 
19598
  public static class getHistoricNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_args, getHistoricNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
19599
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_args");
19600
 
19601
    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);
19602
 
19603
    private long date; // required
19604
 
19605
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19606
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19607
      DATE((short)1, "date");
19608
 
19609
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19610
 
19611
      static {
19612
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19613
          byName.put(field.getFieldName(), field);
19614
        }
19615
      }
19616
 
19617
      /**
19618
       * Find the _Fields constant that matches fieldId, or null if its not found.
19619
       */
19620
      public static _Fields findByThriftId(int fieldId) {
19621
        switch(fieldId) {
19622
          case 1: // DATE
19623
            return DATE;
19624
          default:
19625
            return null;
19626
        }
19627
      }
19628
 
19629
      /**
19630
       * Find the _Fields constant that matches fieldId, throwing an exception
19631
       * if it is not found.
19632
       */
19633
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19634
        _Fields fields = findByThriftId(fieldId);
19635
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19636
        return fields;
19637
      }
19638
 
19639
      /**
19640
       * Find the _Fields constant that matches name, or null if its not found.
19641
       */
19642
      public static _Fields findByName(String name) {
19643
        return byName.get(name);
19644
      }
19645
 
19646
      private final short _thriftId;
19647
      private final String _fieldName;
19648
 
19649
      _Fields(short thriftId, String fieldName) {
19650
        _thriftId = thriftId;
19651
        _fieldName = fieldName;
19652
      }
19653
 
19654
      public short getThriftFieldId() {
19655
        return _thriftId;
19656
      }
19657
 
19658
      public String getFieldName() {
19659
        return _fieldName;
19660
      }
19661
    }
19662
 
19663
    // isset id assignments
19664
    private static final int __DATE_ISSET_ID = 0;
19665
    private BitSet __isset_bit_vector = new BitSet(1);
19666
 
19667
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19668
    static {
19669
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19670
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_args.class, metaDataMap);
19674
    }
19675
 
19676
    public getHistoricNonSerializedInventoryByScans_args() {
19677
    }
19678
 
19679
    public getHistoricNonSerializedInventoryByScans_args(
19680
      long date)
19681
    {
19682
      this();
19683
      this.date = date;
19684
      setDateIsSet(true);
19685
    }
19686
 
19687
    /**
19688
     * Performs a deep copy on <i>other</i>.
19689
     */
19690
    public getHistoricNonSerializedInventoryByScans_args(getHistoricNonSerializedInventoryByScans_args other) {
19691
      __isset_bit_vector.clear();
19692
      __isset_bit_vector.or(other.__isset_bit_vector);
19693
      this.date = other.date;
19694
    }
19695
 
19696
    public getHistoricNonSerializedInventoryByScans_args deepCopy() {
19697
      return new getHistoricNonSerializedInventoryByScans_args(this);
19698
    }
19699
 
19700
    @Override
19701
    public void clear() {
19702
      setDateIsSet(false);
19703
      this.date = 0;
19704
    }
19705
 
19706
    public long getDate() {
19707
      return this.date;
19708
    }
19709
 
19710
    public void setDate(long date) {
19711
      this.date = date;
19712
      setDateIsSet(true);
19713
    }
19714
 
19715
    public void unsetDate() {
19716
      __isset_bit_vector.clear(__DATE_ISSET_ID);
19717
    }
19718
 
19719
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
19720
    public boolean isSetDate() {
19721
      return __isset_bit_vector.get(__DATE_ISSET_ID);
19722
    }
19723
 
19724
    public void setDateIsSet(boolean value) {
19725
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
19726
    }
19727
 
19728
    public void setFieldValue(_Fields field, Object value) {
19729
      switch (field) {
19730
      case DATE:
19731
        if (value == null) {
19732
          unsetDate();
19733
        } else {
19734
          setDate((Long)value);
19735
        }
19736
        break;
19737
 
19738
      }
19739
    }
19740
 
19741
    public Object getFieldValue(_Fields field) {
19742
      switch (field) {
19743
      case DATE:
19744
        return Long.valueOf(getDate());
19745
 
19746
      }
19747
      throw new IllegalStateException();
19748
    }
19749
 
19750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19751
    public boolean isSet(_Fields field) {
19752
      if (field == null) {
19753
        throw new IllegalArgumentException();
19754
      }
19755
 
19756
      switch (field) {
19757
      case DATE:
19758
        return isSetDate();
19759
      }
19760
      throw new IllegalStateException();
19761
    }
19762
 
19763
    @Override
19764
    public boolean equals(Object that) {
19765
      if (that == null)
19766
        return false;
19767
      if (that instanceof getHistoricNonSerializedInventoryByScans_args)
19768
        return this.equals((getHistoricNonSerializedInventoryByScans_args)that);
19769
      return false;
19770
    }
19771
 
19772
    public boolean equals(getHistoricNonSerializedInventoryByScans_args that) {
19773
      if (that == null)
19774
        return false;
19775
 
19776
      boolean this_present_date = true;
19777
      boolean that_present_date = true;
19778
      if (this_present_date || that_present_date) {
19779
        if (!(this_present_date && that_present_date))
19780
          return false;
19781
        if (this.date != that.date)
19782
          return false;
19783
      }
19784
 
19785
      return true;
19786
    }
19787
 
19788
    @Override
19789
    public int hashCode() {
19790
      return 0;
19791
    }
19792
 
19793
    public int compareTo(getHistoricNonSerializedInventoryByScans_args other) {
19794
      if (!getClass().equals(other.getClass())) {
19795
        return getClass().getName().compareTo(other.getClass().getName());
19796
      }
19797
 
19798
      int lastComparison = 0;
19799
      getHistoricNonSerializedInventoryByScans_args typedOther = (getHistoricNonSerializedInventoryByScans_args)other;
19800
 
19801
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
19802
      if (lastComparison != 0) {
19803
        return lastComparison;
19804
      }
19805
      if (isSetDate()) {
19806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
19807
        if (lastComparison != 0) {
19808
          return lastComparison;
19809
        }
19810
      }
19811
      return 0;
19812
    }
19813
 
19814
    public _Fields fieldForId(int fieldId) {
19815
      return _Fields.findByThriftId(fieldId);
19816
    }
19817
 
19818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19819
      org.apache.thrift.protocol.TField field;
19820
      iprot.readStructBegin();
19821
      while (true)
19822
      {
19823
        field = iprot.readFieldBegin();
19824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19825
          break;
19826
        }
19827
        switch (field.id) {
19828
          case 1: // DATE
19829
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19830
              this.date = iprot.readI64();
19831
              setDateIsSet(true);
19832
            } else { 
19833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19834
            }
19835
            break;
19836
          default:
19837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19838
        }
19839
        iprot.readFieldEnd();
19840
      }
19841
      iprot.readStructEnd();
19842
      validate();
19843
    }
19844
 
19845
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19846
      validate();
19847
 
19848
      oprot.writeStructBegin(STRUCT_DESC);
19849
      oprot.writeFieldBegin(DATE_FIELD_DESC);
19850
      oprot.writeI64(this.date);
19851
      oprot.writeFieldEnd();
19852
      oprot.writeFieldStop();
19853
      oprot.writeStructEnd();
19854
    }
19855
 
19856
    @Override
19857
    public String toString() {
19858
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_args(");
19859
      boolean first = true;
19860
 
19861
      sb.append("date:");
19862
      sb.append(this.date);
19863
      first = false;
19864
      sb.append(")");
19865
      return sb.toString();
19866
    }
19867
 
19868
    public void validate() throws org.apache.thrift.TException {
19869
      // check for required fields
19870
    }
19871
 
19872
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19873
      try {
19874
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19875
      } catch (org.apache.thrift.TException te) {
19876
        throw new java.io.IOException(te);
19877
      }
19878
    }
19879
 
19880
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19881
      try {
19882
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19883
        __isset_bit_vector = new BitSet(1);
19884
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19885
      } catch (org.apache.thrift.TException te) {
19886
        throw new java.io.IOException(te);
19887
      }
19888
    }
19889
 
19890
  }
19891
 
19892
  public static class getHistoricNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_result, getHistoricNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
19893
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_result");
19894
 
19895
    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);
19896
 
19897
    private List<InventoryAvailability> success; // required
19898
 
19899
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19900
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19901
      SUCCESS((short)0, "success");
19902
 
19903
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19904
 
19905
      static {
19906
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19907
          byName.put(field.getFieldName(), field);
19908
        }
19909
      }
19910
 
19911
      /**
19912
       * Find the _Fields constant that matches fieldId, or null if its not found.
19913
       */
19914
      public static _Fields findByThriftId(int fieldId) {
19915
        switch(fieldId) {
19916
          case 0: // SUCCESS
19917
            return SUCCESS;
19918
          default:
19919
            return null;
19920
        }
19921
      }
19922
 
19923
      /**
19924
       * Find the _Fields constant that matches fieldId, throwing an exception
19925
       * if it is not found.
19926
       */
19927
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19928
        _Fields fields = findByThriftId(fieldId);
19929
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19930
        return fields;
19931
      }
19932
 
19933
      /**
19934
       * Find the _Fields constant that matches name, or null if its not found.
19935
       */
19936
      public static _Fields findByName(String name) {
19937
        return byName.get(name);
19938
      }
19939
 
19940
      private final short _thriftId;
19941
      private final String _fieldName;
19942
 
19943
      _Fields(short thriftId, String fieldName) {
19944
        _thriftId = thriftId;
19945
        _fieldName = fieldName;
19946
      }
19947
 
19948
      public short getThriftFieldId() {
19949
        return _thriftId;
19950
      }
19951
 
19952
      public String getFieldName() {
19953
        return _fieldName;
19954
      }
19955
    }
19956
 
19957
    // isset id assignments
19958
 
19959
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19960
    static {
19961
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19962
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19963
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19964
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
19965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_result.class, metaDataMap);
19967
    }
19968
 
19969
    public getHistoricNonSerializedInventoryByScans_result() {
19970
    }
19971
 
19972
    public getHistoricNonSerializedInventoryByScans_result(
19973
      List<InventoryAvailability> success)
19974
    {
19975
      this();
19976
      this.success = success;
19977
    }
19978
 
19979
    /**
19980
     * Performs a deep copy on <i>other</i>.
19981
     */
19982
    public getHistoricNonSerializedInventoryByScans_result(getHistoricNonSerializedInventoryByScans_result other) {
19983
      if (other.isSetSuccess()) {
19984
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
19985
        for (InventoryAvailability other_element : other.success) {
19986
          __this__success.add(new InventoryAvailability(other_element));
19987
        }
19988
        this.success = __this__success;
19989
      }
19990
    }
19991
 
19992
    public getHistoricNonSerializedInventoryByScans_result deepCopy() {
19993
      return new getHistoricNonSerializedInventoryByScans_result(this);
19994
    }
19995
 
19996
    @Override
19997
    public void clear() {
19998
      this.success = null;
19999
    }
20000
 
20001
    public int getSuccessSize() {
20002
      return (this.success == null) ? 0 : this.success.size();
20003
    }
20004
 
20005
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
20006
      return (this.success == null) ? null : this.success.iterator();
20007
    }
20008
 
20009
    public void addToSuccess(InventoryAvailability elem) {
20010
      if (this.success == null) {
20011
        this.success = new ArrayList<InventoryAvailability>();
20012
      }
20013
      this.success.add(elem);
20014
    }
20015
 
20016
    public List<InventoryAvailability> getSuccess() {
20017
      return this.success;
20018
    }
20019
 
20020
    public void setSuccess(List<InventoryAvailability> success) {
20021
      this.success = success;
20022
    }
20023
 
20024
    public void unsetSuccess() {
20025
      this.success = null;
20026
    }
20027
 
20028
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20029
    public boolean isSetSuccess() {
20030
      return this.success != null;
20031
    }
20032
 
20033
    public void setSuccessIsSet(boolean value) {
20034
      if (!value) {
20035
        this.success = null;
20036
      }
20037
    }
20038
 
20039
    public void setFieldValue(_Fields field, Object value) {
20040
      switch (field) {
20041
      case SUCCESS:
20042
        if (value == null) {
20043
          unsetSuccess();
20044
        } else {
20045
          setSuccess((List<InventoryAvailability>)value);
20046
        }
20047
        break;
20048
 
20049
      }
20050
    }
20051
 
20052
    public Object getFieldValue(_Fields field) {
20053
      switch (field) {
20054
      case SUCCESS:
20055
        return getSuccess();
20056
 
20057
      }
20058
      throw new IllegalStateException();
20059
    }
20060
 
20061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20062
    public boolean isSet(_Fields field) {
20063
      if (field == null) {
20064
        throw new IllegalArgumentException();
20065
      }
20066
 
20067
      switch (field) {
20068
      case SUCCESS:
20069
        return isSetSuccess();
20070
      }
20071
      throw new IllegalStateException();
20072
    }
20073
 
20074
    @Override
20075
    public boolean equals(Object that) {
20076
      if (that == null)
20077
        return false;
20078
      if (that instanceof getHistoricNonSerializedInventoryByScans_result)
20079
        return this.equals((getHistoricNonSerializedInventoryByScans_result)that);
20080
      return false;
20081
    }
20082
 
20083
    public boolean equals(getHistoricNonSerializedInventoryByScans_result that) {
20084
      if (that == null)
20085
        return false;
20086
 
20087
      boolean this_present_success = true && this.isSetSuccess();
20088
      boolean that_present_success = true && that.isSetSuccess();
20089
      if (this_present_success || that_present_success) {
20090
        if (!(this_present_success && that_present_success))
20091
          return false;
20092
        if (!this.success.equals(that.success))
20093
          return false;
20094
      }
20095
 
20096
      return true;
20097
    }
20098
 
20099
    @Override
20100
    public int hashCode() {
20101
      return 0;
20102
    }
20103
 
20104
    public int compareTo(getHistoricNonSerializedInventoryByScans_result other) {
20105
      if (!getClass().equals(other.getClass())) {
20106
        return getClass().getName().compareTo(other.getClass().getName());
20107
      }
20108
 
20109
      int lastComparison = 0;
20110
      getHistoricNonSerializedInventoryByScans_result typedOther = (getHistoricNonSerializedInventoryByScans_result)other;
20111
 
20112
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20113
      if (lastComparison != 0) {
20114
        return lastComparison;
20115
      }
20116
      if (isSetSuccess()) {
20117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20118
        if (lastComparison != 0) {
20119
          return lastComparison;
20120
        }
20121
      }
20122
      return 0;
20123
    }
20124
 
20125
    public _Fields fieldForId(int fieldId) {
20126
      return _Fields.findByThriftId(fieldId);
20127
    }
20128
 
20129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20130
      org.apache.thrift.protocol.TField field;
20131
      iprot.readStructBegin();
20132
      while (true)
20133
      {
20134
        field = iprot.readFieldBegin();
20135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20136
          break;
20137
        }
20138
        switch (field.id) {
20139
          case 0: // SUCCESS
20140
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20141
              {
7210 amar.kumar 20142
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
20143
                this.success = new ArrayList<InventoryAvailability>(_list56.size);
20144
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
6762 amar.kumar 20145
                {
7210 amar.kumar 20146
                  InventoryAvailability _elem58; // required
20147
                  _elem58 = new InventoryAvailability();
20148
                  _elem58.read(iprot);
20149
                  this.success.add(_elem58);
6762 amar.kumar 20150
                }
20151
                iprot.readListEnd();
20152
              }
20153
            } else { 
20154
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20155
            }
20156
            break;
20157
          default:
20158
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20159
        }
20160
        iprot.readFieldEnd();
20161
      }
20162
      iprot.readStructEnd();
20163
      validate();
20164
    }
20165
 
20166
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20167
      oprot.writeStructBegin(STRUCT_DESC);
20168
 
20169
      if (this.isSetSuccess()) {
20170
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20171
        {
20172
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 20173
          for (InventoryAvailability _iter59 : this.success)
6762 amar.kumar 20174
          {
7210 amar.kumar 20175
            _iter59.write(oprot);
6762 amar.kumar 20176
          }
20177
          oprot.writeListEnd();
20178
        }
20179
        oprot.writeFieldEnd();
20180
      }
20181
      oprot.writeFieldStop();
20182
      oprot.writeStructEnd();
20183
    }
20184
 
20185
    @Override
20186
    public String toString() {
20187
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_result(");
20188
      boolean first = true;
20189
 
20190
      sb.append("success:");
20191
      if (this.success == null) {
20192
        sb.append("null");
20193
      } else {
20194
        sb.append(this.success);
20195
      }
20196
      first = false;
20197
      sb.append(")");
20198
      return sb.toString();
20199
    }
20200
 
20201
    public void validate() throws org.apache.thrift.TException {
20202
      // check for required fields
20203
    }
20204
 
20205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20206
      try {
20207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20208
      } catch (org.apache.thrift.TException te) {
20209
        throw new java.io.IOException(te);
20210
      }
20211
    }
20212
 
20213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20214
      try {
20215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20216
      } catch (org.apache.thrift.TException te) {
20217
        throw new java.io.IOException(te);
20218
      }
20219
    }
20220
 
20221
  }
20222
 
20223
  public static class scanForOursExternalSale_args implements org.apache.thrift.TBase<scanForOursExternalSale_args, scanForOursExternalSale_args._Fields>, java.io.Serializable, Cloneable   {
20224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_args");
20225
 
20226
    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);
20227
    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);
20228
    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);
20229
    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);
20230
    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);
20231
    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);
20232
    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);
20233
 
20234
    private long itemId; // required
20235
    private String serialNumber; // required
20236
    private String itemNumber; // required
20237
    private String invoiceNumber; // required
20238
    private long warehouseId; // required
20239
    private double unitPrice; // required
20240
    private long orderId; // required
20241
 
20242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20243
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20244
      ITEM_ID((short)1, "itemId"),
20245
      SERIAL_NUMBER((short)2, "serialNumber"),
20246
      ITEM_NUMBER((short)3, "itemNumber"),
20247
      INVOICE_NUMBER((short)4, "invoiceNumber"),
20248
      WAREHOUSE_ID((short)5, "warehouseId"),
20249
      UNIT_PRICE((short)6, "unitPrice"),
20250
      ORDER_ID((short)7, "orderId");
20251
 
20252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20253
 
20254
      static {
20255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20256
          byName.put(field.getFieldName(), field);
20257
        }
20258
      }
20259
 
20260
      /**
20261
       * Find the _Fields constant that matches fieldId, or null if its not found.
20262
       */
20263
      public static _Fields findByThriftId(int fieldId) {
20264
        switch(fieldId) {
20265
          case 1: // ITEM_ID
20266
            return ITEM_ID;
20267
          case 2: // SERIAL_NUMBER
20268
            return SERIAL_NUMBER;
20269
          case 3: // ITEM_NUMBER
20270
            return ITEM_NUMBER;
20271
          case 4: // INVOICE_NUMBER
20272
            return INVOICE_NUMBER;
20273
          case 5: // WAREHOUSE_ID
20274
            return WAREHOUSE_ID;
20275
          case 6: // UNIT_PRICE
20276
            return UNIT_PRICE;
20277
          case 7: // ORDER_ID
20278
            return ORDER_ID;
20279
          default:
20280
            return null;
20281
        }
20282
      }
20283
 
20284
      /**
20285
       * Find the _Fields constant that matches fieldId, throwing an exception
20286
       * if it is not found.
20287
       */
20288
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20289
        _Fields fields = findByThriftId(fieldId);
20290
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20291
        return fields;
20292
      }
20293
 
20294
      /**
20295
       * Find the _Fields constant that matches name, or null if its not found.
20296
       */
20297
      public static _Fields findByName(String name) {
20298
        return byName.get(name);
20299
      }
20300
 
20301
      private final short _thriftId;
20302
      private final String _fieldName;
20303
 
20304
      _Fields(short thriftId, String fieldName) {
20305
        _thriftId = thriftId;
20306
        _fieldName = fieldName;
20307
      }
20308
 
20309
      public short getThriftFieldId() {
20310
        return _thriftId;
20311
      }
20312
 
20313
      public String getFieldName() {
20314
        return _fieldName;
20315
      }
20316
    }
20317
 
20318
    // isset id assignments
20319
    private static final int __ITEMID_ISSET_ID = 0;
20320
    private static final int __WAREHOUSEID_ISSET_ID = 1;
20321
    private static final int __UNITPRICE_ISSET_ID = 2;
20322
    private static final int __ORDERID_ISSET_ID = 3;
20323
    private BitSet __isset_bit_vector = new BitSet(4);
20324
 
20325
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20326
    static {
20327
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20328
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20329
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20330
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20331
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20332
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20333
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20334
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20335
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20336
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20337
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20338
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20339
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
20340
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20341
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20342
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20343
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_args.class, metaDataMap);
20344
    }
20345
 
20346
    public scanForOursExternalSale_args() {
20347
    }
20348
 
20349
    public scanForOursExternalSale_args(
20350
      long itemId,
20351
      String serialNumber,
20352
      String itemNumber,
20353
      String invoiceNumber,
20354
      long warehouseId,
20355
      double unitPrice,
20356
      long orderId)
20357
    {
20358
      this();
20359
      this.itemId = itemId;
20360
      setItemIdIsSet(true);
20361
      this.serialNumber = serialNumber;
20362
      this.itemNumber = itemNumber;
20363
      this.invoiceNumber = invoiceNumber;
20364
      this.warehouseId = warehouseId;
20365
      setWarehouseIdIsSet(true);
20366
      this.unitPrice = unitPrice;
20367
      setUnitPriceIsSet(true);
20368
      this.orderId = orderId;
20369
      setOrderIdIsSet(true);
20370
    }
20371
 
20372
    /**
20373
     * Performs a deep copy on <i>other</i>.
20374
     */
20375
    public scanForOursExternalSale_args(scanForOursExternalSale_args other) {
20376
      __isset_bit_vector.clear();
20377
      __isset_bit_vector.or(other.__isset_bit_vector);
20378
      this.itemId = other.itemId;
20379
      if (other.isSetSerialNumber()) {
20380
        this.serialNumber = other.serialNumber;
20381
      }
20382
      if (other.isSetItemNumber()) {
20383
        this.itemNumber = other.itemNumber;
20384
      }
20385
      if (other.isSetInvoiceNumber()) {
20386
        this.invoiceNumber = other.invoiceNumber;
20387
      }
20388
      this.warehouseId = other.warehouseId;
20389
      this.unitPrice = other.unitPrice;
20390
      this.orderId = other.orderId;
20391
    }
20392
 
20393
    public scanForOursExternalSale_args deepCopy() {
20394
      return new scanForOursExternalSale_args(this);
20395
    }
20396
 
20397
    @Override
20398
    public void clear() {
20399
      setItemIdIsSet(false);
20400
      this.itemId = 0;
20401
      this.serialNumber = null;
20402
      this.itemNumber = null;
20403
      this.invoiceNumber = null;
20404
      setWarehouseIdIsSet(false);
20405
      this.warehouseId = 0;
20406
      setUnitPriceIsSet(false);
20407
      this.unitPrice = 0.0;
20408
      setOrderIdIsSet(false);
20409
      this.orderId = 0;
20410
    }
20411
 
20412
    public long getItemId() {
20413
      return this.itemId;
20414
    }
20415
 
20416
    public void setItemId(long itemId) {
20417
      this.itemId = itemId;
20418
      setItemIdIsSet(true);
20419
    }
20420
 
20421
    public void unsetItemId() {
20422
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
20423
    }
20424
 
20425
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
20426
    public boolean isSetItemId() {
20427
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
20428
    }
20429
 
20430
    public void setItemIdIsSet(boolean value) {
20431
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
20432
    }
20433
 
20434
    public String getSerialNumber() {
20435
      return this.serialNumber;
20436
    }
20437
 
20438
    public void setSerialNumber(String serialNumber) {
20439
      this.serialNumber = serialNumber;
20440
    }
20441
 
20442
    public void unsetSerialNumber() {
20443
      this.serialNumber = null;
20444
    }
20445
 
20446
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
20447
    public boolean isSetSerialNumber() {
20448
      return this.serialNumber != null;
20449
    }
20450
 
20451
    public void setSerialNumberIsSet(boolean value) {
20452
      if (!value) {
20453
        this.serialNumber = null;
20454
      }
20455
    }
20456
 
20457
    public String getItemNumber() {
20458
      return this.itemNumber;
20459
    }
20460
 
20461
    public void setItemNumber(String itemNumber) {
20462
      this.itemNumber = itemNumber;
20463
    }
20464
 
20465
    public void unsetItemNumber() {
20466
      this.itemNumber = null;
20467
    }
20468
 
20469
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
20470
    public boolean isSetItemNumber() {
20471
      return this.itemNumber != null;
20472
    }
20473
 
20474
    public void setItemNumberIsSet(boolean value) {
20475
      if (!value) {
20476
        this.itemNumber = null;
20477
      }
20478
    }
20479
 
20480
    public String getInvoiceNumber() {
20481
      return this.invoiceNumber;
20482
    }
20483
 
20484
    public void setInvoiceNumber(String invoiceNumber) {
20485
      this.invoiceNumber = invoiceNumber;
20486
    }
20487
 
20488
    public void unsetInvoiceNumber() {
20489
      this.invoiceNumber = null;
20490
    }
20491
 
20492
    /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
20493
    public boolean isSetInvoiceNumber() {
20494
      return this.invoiceNumber != null;
20495
    }
20496
 
20497
    public void setInvoiceNumberIsSet(boolean value) {
20498
      if (!value) {
20499
        this.invoiceNumber = null;
20500
      }
20501
    }
20502
 
20503
    public long getWarehouseId() {
20504
      return this.warehouseId;
20505
    }
20506
 
20507
    public void setWarehouseId(long warehouseId) {
20508
      this.warehouseId = warehouseId;
20509
      setWarehouseIdIsSet(true);
20510
    }
20511
 
20512
    public void unsetWarehouseId() {
20513
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
20514
    }
20515
 
20516
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
20517
    public boolean isSetWarehouseId() {
20518
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
20519
    }
20520
 
20521
    public void setWarehouseIdIsSet(boolean value) {
20522
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
20523
    }
20524
 
20525
    public double getUnitPrice() {
20526
      return this.unitPrice;
20527
    }
20528
 
20529
    public void setUnitPrice(double unitPrice) {
20530
      this.unitPrice = unitPrice;
20531
      setUnitPriceIsSet(true);
20532
    }
20533
 
20534
    public void unsetUnitPrice() {
20535
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
20536
    }
20537
 
20538
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
20539
    public boolean isSetUnitPrice() {
20540
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
20541
    }
20542
 
20543
    public void setUnitPriceIsSet(boolean value) {
20544
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
20545
    }
20546
 
20547
    public long getOrderId() {
20548
      return this.orderId;
20549
    }
20550
 
20551
    public void setOrderId(long orderId) {
20552
      this.orderId = orderId;
20553
      setOrderIdIsSet(true);
20554
    }
20555
 
20556
    public void unsetOrderId() {
20557
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
20558
    }
20559
 
20560
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
20561
    public boolean isSetOrderId() {
20562
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
20563
    }
20564
 
20565
    public void setOrderIdIsSet(boolean value) {
20566
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
20567
    }
20568
 
20569
    public void setFieldValue(_Fields field, Object value) {
20570
      switch (field) {
20571
      case ITEM_ID:
20572
        if (value == null) {
20573
          unsetItemId();
20574
        } else {
20575
          setItemId((Long)value);
20576
        }
20577
        break;
20578
 
20579
      case SERIAL_NUMBER:
20580
        if (value == null) {
20581
          unsetSerialNumber();
20582
        } else {
20583
          setSerialNumber((String)value);
20584
        }
20585
        break;
20586
 
20587
      case ITEM_NUMBER:
20588
        if (value == null) {
20589
          unsetItemNumber();
20590
        } else {
20591
          setItemNumber((String)value);
20592
        }
20593
        break;
20594
 
20595
      case INVOICE_NUMBER:
20596
        if (value == null) {
20597
          unsetInvoiceNumber();
20598
        } else {
20599
          setInvoiceNumber((String)value);
20600
        }
20601
        break;
20602
 
20603
      case WAREHOUSE_ID:
20604
        if (value == null) {
20605
          unsetWarehouseId();
20606
        } else {
20607
          setWarehouseId((Long)value);
20608
        }
20609
        break;
20610
 
20611
      case UNIT_PRICE:
20612
        if (value == null) {
20613
          unsetUnitPrice();
20614
        } else {
20615
          setUnitPrice((Double)value);
20616
        }
20617
        break;
20618
 
20619
      case ORDER_ID:
20620
        if (value == null) {
20621
          unsetOrderId();
20622
        } else {
20623
          setOrderId((Long)value);
20624
        }
20625
        break;
20626
 
20627
      }
20628
    }
20629
 
20630
    public Object getFieldValue(_Fields field) {
20631
      switch (field) {
20632
      case ITEM_ID:
20633
        return Long.valueOf(getItemId());
20634
 
20635
      case SERIAL_NUMBER:
20636
        return getSerialNumber();
20637
 
20638
      case ITEM_NUMBER:
20639
        return getItemNumber();
20640
 
20641
      case INVOICE_NUMBER:
20642
        return getInvoiceNumber();
20643
 
20644
      case WAREHOUSE_ID:
20645
        return Long.valueOf(getWarehouseId());
20646
 
20647
      case UNIT_PRICE:
20648
        return Double.valueOf(getUnitPrice());
20649
 
20650
      case ORDER_ID:
20651
        return Long.valueOf(getOrderId());
20652
 
20653
      }
20654
      throw new IllegalStateException();
20655
    }
20656
 
20657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20658
    public boolean isSet(_Fields field) {
20659
      if (field == null) {
20660
        throw new IllegalArgumentException();
20661
      }
20662
 
20663
      switch (field) {
20664
      case ITEM_ID:
20665
        return isSetItemId();
20666
      case SERIAL_NUMBER:
20667
        return isSetSerialNumber();
20668
      case ITEM_NUMBER:
20669
        return isSetItemNumber();
20670
      case INVOICE_NUMBER:
20671
        return isSetInvoiceNumber();
20672
      case WAREHOUSE_ID:
20673
        return isSetWarehouseId();
20674
      case UNIT_PRICE:
20675
        return isSetUnitPrice();
20676
      case ORDER_ID:
20677
        return isSetOrderId();
20678
      }
20679
      throw new IllegalStateException();
20680
    }
20681
 
20682
    @Override
20683
    public boolean equals(Object that) {
20684
      if (that == null)
20685
        return false;
20686
      if (that instanceof scanForOursExternalSale_args)
20687
        return this.equals((scanForOursExternalSale_args)that);
20688
      return false;
20689
    }
20690
 
20691
    public boolean equals(scanForOursExternalSale_args that) {
20692
      if (that == null)
20693
        return false;
20694
 
20695
      boolean this_present_itemId = true;
20696
      boolean that_present_itemId = true;
20697
      if (this_present_itemId || that_present_itemId) {
20698
        if (!(this_present_itemId && that_present_itemId))
20699
          return false;
20700
        if (this.itemId != that.itemId)
20701
          return false;
20702
      }
20703
 
20704
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
20705
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
20706
      if (this_present_serialNumber || that_present_serialNumber) {
20707
        if (!(this_present_serialNumber && that_present_serialNumber))
20708
          return false;
20709
        if (!this.serialNumber.equals(that.serialNumber))
20710
          return false;
20711
      }
20712
 
20713
      boolean this_present_itemNumber = true && this.isSetItemNumber();
20714
      boolean that_present_itemNumber = true && that.isSetItemNumber();
20715
      if (this_present_itemNumber || that_present_itemNumber) {
20716
        if (!(this_present_itemNumber && that_present_itemNumber))
20717
          return false;
20718
        if (!this.itemNumber.equals(that.itemNumber))
20719
          return false;
20720
      }
20721
 
20722
      boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
20723
      boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
20724
      if (this_present_invoiceNumber || that_present_invoiceNumber) {
20725
        if (!(this_present_invoiceNumber && that_present_invoiceNumber))
20726
          return false;
20727
        if (!this.invoiceNumber.equals(that.invoiceNumber))
20728
          return false;
20729
      }
20730
 
20731
      boolean this_present_warehouseId = true;
20732
      boolean that_present_warehouseId = true;
20733
      if (this_present_warehouseId || that_present_warehouseId) {
20734
        if (!(this_present_warehouseId && that_present_warehouseId))
20735
          return false;
20736
        if (this.warehouseId != that.warehouseId)
20737
          return false;
20738
      }
20739
 
20740
      boolean this_present_unitPrice = true;
20741
      boolean that_present_unitPrice = true;
20742
      if (this_present_unitPrice || that_present_unitPrice) {
20743
        if (!(this_present_unitPrice && that_present_unitPrice))
20744
          return false;
20745
        if (this.unitPrice != that.unitPrice)
20746
          return false;
20747
      }
20748
 
20749
      boolean this_present_orderId = true;
20750
      boolean that_present_orderId = true;
20751
      if (this_present_orderId || that_present_orderId) {
20752
        if (!(this_present_orderId && that_present_orderId))
20753
          return false;
20754
        if (this.orderId != that.orderId)
20755
          return false;
20756
      }
20757
 
20758
      return true;
20759
    }
20760
 
20761
    @Override
20762
    public int hashCode() {
20763
      return 0;
20764
    }
20765
 
20766
    public int compareTo(scanForOursExternalSale_args other) {
20767
      if (!getClass().equals(other.getClass())) {
20768
        return getClass().getName().compareTo(other.getClass().getName());
20769
      }
20770
 
20771
      int lastComparison = 0;
20772
      scanForOursExternalSale_args typedOther = (scanForOursExternalSale_args)other;
20773
 
20774
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
20775
      if (lastComparison != 0) {
20776
        return lastComparison;
20777
      }
20778
      if (isSetItemId()) {
20779
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
20780
        if (lastComparison != 0) {
20781
          return lastComparison;
20782
        }
20783
      }
20784
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
20785
      if (lastComparison != 0) {
20786
        return lastComparison;
20787
      }
20788
      if (isSetSerialNumber()) {
20789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
20790
        if (lastComparison != 0) {
20791
          return lastComparison;
20792
        }
20793
      }
20794
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
20795
      if (lastComparison != 0) {
20796
        return lastComparison;
20797
      }
20798
      if (isSetItemNumber()) {
20799
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
20800
        if (lastComparison != 0) {
20801
          return lastComparison;
20802
        }
20803
      }
20804
      lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
20805
      if (lastComparison != 0) {
20806
        return lastComparison;
20807
      }
20808
      if (isSetInvoiceNumber()) {
20809
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
20810
        if (lastComparison != 0) {
20811
          return lastComparison;
20812
        }
20813
      }
20814
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
20815
      if (lastComparison != 0) {
20816
        return lastComparison;
20817
      }
20818
      if (isSetWarehouseId()) {
20819
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
20820
        if (lastComparison != 0) {
20821
          return lastComparison;
20822
        }
20823
      }
20824
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
20825
      if (lastComparison != 0) {
20826
        return lastComparison;
20827
      }
20828
      if (isSetUnitPrice()) {
20829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
20830
        if (lastComparison != 0) {
20831
          return lastComparison;
20832
        }
20833
      }
20834
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
20835
      if (lastComparison != 0) {
20836
        return lastComparison;
20837
      }
20838
      if (isSetOrderId()) {
20839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
20840
        if (lastComparison != 0) {
20841
          return lastComparison;
20842
        }
20843
      }
20844
      return 0;
20845
    }
20846
 
20847
    public _Fields fieldForId(int fieldId) {
20848
      return _Fields.findByThriftId(fieldId);
20849
    }
20850
 
20851
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20852
      org.apache.thrift.protocol.TField field;
20853
      iprot.readStructBegin();
20854
      while (true)
20855
      {
20856
        field = iprot.readFieldBegin();
20857
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20858
          break;
20859
        }
20860
        switch (field.id) {
20861
          case 1: // ITEM_ID
20862
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20863
              this.itemId = iprot.readI64();
20864
              setItemIdIsSet(true);
20865
            } else { 
20866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20867
            }
20868
            break;
20869
          case 2: // SERIAL_NUMBER
20870
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20871
              this.serialNumber = iprot.readString();
20872
            } else { 
20873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20874
            }
20875
            break;
20876
          case 3: // ITEM_NUMBER
20877
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20878
              this.itemNumber = iprot.readString();
20879
            } else { 
20880
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20881
            }
20882
            break;
20883
          case 4: // INVOICE_NUMBER
20884
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20885
              this.invoiceNumber = iprot.readString();
20886
            } else { 
20887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20888
            }
20889
            break;
20890
          case 5: // WAREHOUSE_ID
20891
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20892
              this.warehouseId = iprot.readI64();
20893
              setWarehouseIdIsSet(true);
20894
            } else { 
20895
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20896
            }
20897
            break;
20898
          case 6: // UNIT_PRICE
20899
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
20900
              this.unitPrice = iprot.readDouble();
20901
              setUnitPriceIsSet(true);
20902
            } else { 
20903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20904
            }
20905
            break;
20906
          case 7: // ORDER_ID
20907
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20908
              this.orderId = iprot.readI64();
20909
              setOrderIdIsSet(true);
20910
            } else { 
20911
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20912
            }
20913
            break;
20914
          default:
20915
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20916
        }
20917
        iprot.readFieldEnd();
20918
      }
20919
      iprot.readStructEnd();
20920
      validate();
20921
    }
20922
 
20923
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20924
      validate();
20925
 
20926
      oprot.writeStructBegin(STRUCT_DESC);
20927
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
20928
      oprot.writeI64(this.itemId);
20929
      oprot.writeFieldEnd();
20930
      if (this.serialNumber != null) {
20931
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
20932
        oprot.writeString(this.serialNumber);
20933
        oprot.writeFieldEnd();
20934
      }
20935
      if (this.itemNumber != null) {
20936
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
20937
        oprot.writeString(this.itemNumber);
20938
        oprot.writeFieldEnd();
20939
      }
20940
      if (this.invoiceNumber != null) {
20941
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
20942
        oprot.writeString(this.invoiceNumber);
20943
        oprot.writeFieldEnd();
20944
      }
20945
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
20946
      oprot.writeI64(this.warehouseId);
20947
      oprot.writeFieldEnd();
20948
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
20949
      oprot.writeDouble(this.unitPrice);
20950
      oprot.writeFieldEnd();
20951
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
20952
      oprot.writeI64(this.orderId);
20953
      oprot.writeFieldEnd();
20954
      oprot.writeFieldStop();
20955
      oprot.writeStructEnd();
20956
    }
20957
 
20958
    @Override
20959
    public String toString() {
20960
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_args(");
20961
      boolean first = true;
20962
 
20963
      sb.append("itemId:");
20964
      sb.append(this.itemId);
20965
      first = false;
20966
      if (!first) sb.append(", ");
20967
      sb.append("serialNumber:");
20968
      if (this.serialNumber == null) {
20969
        sb.append("null");
20970
      } else {
20971
        sb.append(this.serialNumber);
20972
      }
20973
      first = false;
20974
      if (!first) sb.append(", ");
20975
      sb.append("itemNumber:");
20976
      if (this.itemNumber == null) {
20977
        sb.append("null");
20978
      } else {
20979
        sb.append(this.itemNumber);
20980
      }
20981
      first = false;
20982
      if (!first) sb.append(", ");
20983
      sb.append("invoiceNumber:");
20984
      if (this.invoiceNumber == null) {
20985
        sb.append("null");
20986
      } else {
20987
        sb.append(this.invoiceNumber);
20988
      }
20989
      first = false;
20990
      if (!first) sb.append(", ");
20991
      sb.append("warehouseId:");
20992
      sb.append(this.warehouseId);
20993
      first = false;
20994
      if (!first) sb.append(", ");
20995
      sb.append("unitPrice:");
20996
      sb.append(this.unitPrice);
20997
      first = false;
20998
      if (!first) sb.append(", ");
20999
      sb.append("orderId:");
21000
      sb.append(this.orderId);
21001
      first = false;
21002
      sb.append(")");
21003
      return sb.toString();
21004
    }
21005
 
21006
    public void validate() throws org.apache.thrift.TException {
21007
      // check for required fields
21008
    }
21009
 
21010
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21011
      try {
21012
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21013
      } catch (org.apache.thrift.TException te) {
21014
        throw new java.io.IOException(te);
21015
      }
21016
    }
21017
 
21018
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21019
      try {
21020
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21021
        __isset_bit_vector = new BitSet(1);
21022
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21023
      } catch (org.apache.thrift.TException te) {
21024
        throw new java.io.IOException(te);
21025
      }
21026
    }
21027
 
21028
  }
21029
 
21030
  public static class scanForOursExternalSale_result implements org.apache.thrift.TBase<scanForOursExternalSale_result, scanForOursExternalSale_result._Fields>, java.io.Serializable, Cloneable   {
21031
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_result");
21032
 
21033
    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);
21034
    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);
21035
 
21036
    private InventoryItem success; // required
21037
    private WarehouseServiceException ex; // required
21038
 
21039
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21040
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21041
      SUCCESS((short)0, "success"),
21042
      EX((short)1, "ex");
21043
 
21044
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21045
 
21046
      static {
21047
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21048
          byName.put(field.getFieldName(), field);
21049
        }
21050
      }
21051
 
21052
      /**
21053
       * Find the _Fields constant that matches fieldId, or null if its not found.
21054
       */
21055
      public static _Fields findByThriftId(int fieldId) {
21056
        switch(fieldId) {
21057
          case 0: // SUCCESS
21058
            return SUCCESS;
21059
          case 1: // EX
21060
            return EX;
21061
          default:
21062
            return null;
21063
        }
21064
      }
21065
 
21066
      /**
21067
       * Find the _Fields constant that matches fieldId, throwing an exception
21068
       * if it is not found.
21069
       */
21070
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21071
        _Fields fields = findByThriftId(fieldId);
21072
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21073
        return fields;
21074
      }
21075
 
21076
      /**
21077
       * Find the _Fields constant that matches name, or null if its not found.
21078
       */
21079
      public static _Fields findByName(String name) {
21080
        return byName.get(name);
21081
      }
21082
 
21083
      private final short _thriftId;
21084
      private final String _fieldName;
21085
 
21086
      _Fields(short thriftId, String fieldName) {
21087
        _thriftId = thriftId;
21088
        _fieldName = fieldName;
21089
      }
21090
 
21091
      public short getThriftFieldId() {
21092
        return _thriftId;
21093
      }
21094
 
21095
      public String getFieldName() {
21096
        return _fieldName;
21097
      }
21098
    }
21099
 
21100
    // isset id assignments
21101
 
21102
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21103
    static {
21104
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21105
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21106
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
21107
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21108
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21109
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21110
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_result.class, metaDataMap);
21111
    }
21112
 
21113
    public scanForOursExternalSale_result() {
21114
    }
21115
 
21116
    public scanForOursExternalSale_result(
21117
      InventoryItem success,
21118
      WarehouseServiceException ex)
21119
    {
21120
      this();
21121
      this.success = success;
21122
      this.ex = ex;
21123
    }
21124
 
21125
    /**
21126
     * Performs a deep copy on <i>other</i>.
21127
     */
21128
    public scanForOursExternalSale_result(scanForOursExternalSale_result other) {
21129
      if (other.isSetSuccess()) {
21130
        this.success = new InventoryItem(other.success);
21131
      }
21132
      if (other.isSetEx()) {
21133
        this.ex = new WarehouseServiceException(other.ex);
21134
      }
21135
    }
21136
 
21137
    public scanForOursExternalSale_result deepCopy() {
21138
      return new scanForOursExternalSale_result(this);
21139
    }
21140
 
21141
    @Override
21142
    public void clear() {
21143
      this.success = null;
21144
      this.ex = null;
21145
    }
21146
 
21147
    public InventoryItem getSuccess() {
21148
      return this.success;
21149
    }
21150
 
21151
    public void setSuccess(InventoryItem success) {
21152
      this.success = success;
21153
    }
21154
 
21155
    public void unsetSuccess() {
21156
      this.success = null;
21157
    }
21158
 
21159
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21160
    public boolean isSetSuccess() {
21161
      return this.success != null;
21162
    }
21163
 
21164
    public void setSuccessIsSet(boolean value) {
21165
      if (!value) {
21166
        this.success = null;
21167
      }
21168
    }
21169
 
21170
    public WarehouseServiceException getEx() {
21171
      return this.ex;
21172
    }
21173
 
21174
    public void setEx(WarehouseServiceException ex) {
21175
      this.ex = ex;
21176
    }
21177
 
21178
    public void unsetEx() {
21179
      this.ex = null;
21180
    }
21181
 
21182
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
21183
    public boolean isSetEx() {
21184
      return this.ex != null;
21185
    }
21186
 
21187
    public void setExIsSet(boolean value) {
21188
      if (!value) {
21189
        this.ex = null;
21190
      }
21191
    }
21192
 
21193
    public void setFieldValue(_Fields field, Object value) {
21194
      switch (field) {
21195
      case SUCCESS:
21196
        if (value == null) {
21197
          unsetSuccess();
21198
        } else {
21199
          setSuccess((InventoryItem)value);
21200
        }
21201
        break;
21202
 
21203
      case EX:
21204
        if (value == null) {
21205
          unsetEx();
21206
        } else {
21207
          setEx((WarehouseServiceException)value);
21208
        }
21209
        break;
21210
 
21211
      }
21212
    }
21213
 
21214
    public Object getFieldValue(_Fields field) {
21215
      switch (field) {
21216
      case SUCCESS:
21217
        return getSuccess();
21218
 
21219
      case EX:
21220
        return getEx();
21221
 
21222
      }
21223
      throw new IllegalStateException();
21224
    }
21225
 
21226
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21227
    public boolean isSet(_Fields field) {
21228
      if (field == null) {
21229
        throw new IllegalArgumentException();
21230
      }
21231
 
21232
      switch (field) {
21233
      case SUCCESS:
21234
        return isSetSuccess();
21235
      case EX:
21236
        return isSetEx();
21237
      }
21238
      throw new IllegalStateException();
21239
    }
21240
 
21241
    @Override
21242
    public boolean equals(Object that) {
21243
      if (that == null)
21244
        return false;
21245
      if (that instanceof scanForOursExternalSale_result)
21246
        return this.equals((scanForOursExternalSale_result)that);
21247
      return false;
21248
    }
21249
 
21250
    public boolean equals(scanForOursExternalSale_result that) {
21251
      if (that == null)
21252
        return false;
21253
 
21254
      boolean this_present_success = true && this.isSetSuccess();
21255
      boolean that_present_success = true && that.isSetSuccess();
21256
      if (this_present_success || that_present_success) {
21257
        if (!(this_present_success && that_present_success))
21258
          return false;
21259
        if (!this.success.equals(that.success))
21260
          return false;
21261
      }
21262
 
21263
      boolean this_present_ex = true && this.isSetEx();
21264
      boolean that_present_ex = true && that.isSetEx();
21265
      if (this_present_ex || that_present_ex) {
21266
        if (!(this_present_ex && that_present_ex))
21267
          return false;
21268
        if (!this.ex.equals(that.ex))
21269
          return false;
21270
      }
21271
 
21272
      return true;
21273
    }
21274
 
21275
    @Override
21276
    public int hashCode() {
21277
      return 0;
21278
    }
21279
 
21280
    public int compareTo(scanForOursExternalSale_result other) {
21281
      if (!getClass().equals(other.getClass())) {
21282
        return getClass().getName().compareTo(other.getClass().getName());
21283
      }
21284
 
21285
      int lastComparison = 0;
21286
      scanForOursExternalSale_result typedOther = (scanForOursExternalSale_result)other;
21287
 
21288
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21289
      if (lastComparison != 0) {
21290
        return lastComparison;
21291
      }
21292
      if (isSetSuccess()) {
21293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21294
        if (lastComparison != 0) {
21295
          return lastComparison;
21296
        }
21297
      }
21298
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
21299
      if (lastComparison != 0) {
21300
        return lastComparison;
21301
      }
21302
      if (isSetEx()) {
21303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21304
        if (lastComparison != 0) {
21305
          return lastComparison;
21306
        }
21307
      }
21308
      return 0;
21309
    }
21310
 
21311
    public _Fields fieldForId(int fieldId) {
21312
      return _Fields.findByThriftId(fieldId);
21313
    }
21314
 
21315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21316
      org.apache.thrift.protocol.TField field;
21317
      iprot.readStructBegin();
21318
      while (true)
21319
      {
21320
        field = iprot.readFieldBegin();
21321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21322
          break;
21323
        }
21324
        switch (field.id) {
21325
          case 0: // SUCCESS
21326
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21327
              this.success = new InventoryItem();
21328
              this.success.read(iprot);
21329
            } else { 
21330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21331
            }
21332
            break;
21333
          case 1: // EX
21334
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21335
              this.ex = new WarehouseServiceException();
21336
              this.ex.read(iprot);
21337
            } else { 
21338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21339
            }
21340
            break;
21341
          default:
21342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21343
        }
21344
        iprot.readFieldEnd();
21345
      }
21346
      iprot.readStructEnd();
21347
      validate();
21348
    }
21349
 
21350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21351
      oprot.writeStructBegin(STRUCT_DESC);
21352
 
21353
      if (this.isSetSuccess()) {
21354
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21355
        this.success.write(oprot);
21356
        oprot.writeFieldEnd();
21357
      } else if (this.isSetEx()) {
21358
        oprot.writeFieldBegin(EX_FIELD_DESC);
21359
        this.ex.write(oprot);
21360
        oprot.writeFieldEnd();
21361
      }
21362
      oprot.writeFieldStop();
21363
      oprot.writeStructEnd();
21364
    }
21365
 
21366
    @Override
21367
    public String toString() {
21368
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_result(");
21369
      boolean first = true;
21370
 
21371
      sb.append("success:");
21372
      if (this.success == null) {
21373
        sb.append("null");
21374
      } else {
21375
        sb.append(this.success);
21376
      }
21377
      first = false;
21378
      if (!first) sb.append(", ");
21379
      sb.append("ex:");
21380
      if (this.ex == null) {
21381
        sb.append("null");
21382
      } else {
21383
        sb.append(this.ex);
21384
      }
21385
      first = false;
21386
      sb.append(")");
21387
      return sb.toString();
21388
    }
21389
 
21390
    public void validate() throws org.apache.thrift.TException {
21391
      // check for required fields
21392
    }
21393
 
21394
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21395
      try {
21396
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21397
      } catch (org.apache.thrift.TException te) {
21398
        throw new java.io.IOException(te);
21399
      }
21400
    }
21401
 
21402
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21403
      try {
21404
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21405
      } catch (org.apache.thrift.TException te) {
21406
        throw new java.io.IOException(te);
21407
      }
21408
    }
21409
 
21410
  }
21411
 
21412
  public static class scanForOursExternalSaleReturn_args implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_args, scanForOursExternalSaleReturn_args._Fields>, java.io.Serializable, Cloneable   {
21413
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_args");
21414
 
21415
    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);
21416
    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);
21417
 
21418
    private long orderId; // required
21419
    private double unitPrice; // required
21420
 
21421
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21422
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21423
      ORDER_ID((short)1, "orderId"),
21424
      UNIT_PRICE((short)2, "unitPrice");
21425
 
21426
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21427
 
21428
      static {
21429
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21430
          byName.put(field.getFieldName(), field);
21431
        }
21432
      }
21433
 
21434
      /**
21435
       * Find the _Fields constant that matches fieldId, or null if its not found.
21436
       */
21437
      public static _Fields findByThriftId(int fieldId) {
21438
        switch(fieldId) {
21439
          case 1: // ORDER_ID
21440
            return ORDER_ID;
21441
          case 2: // UNIT_PRICE
21442
            return UNIT_PRICE;
21443
          default:
21444
            return null;
21445
        }
21446
      }
21447
 
21448
      /**
21449
       * Find the _Fields constant that matches fieldId, throwing an exception
21450
       * if it is not found.
21451
       */
21452
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21453
        _Fields fields = findByThriftId(fieldId);
21454
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21455
        return fields;
21456
      }
21457
 
21458
      /**
21459
       * Find the _Fields constant that matches name, or null if its not found.
21460
       */
21461
      public static _Fields findByName(String name) {
21462
        return byName.get(name);
21463
      }
21464
 
21465
      private final short _thriftId;
21466
      private final String _fieldName;
21467
 
21468
      _Fields(short thriftId, String fieldName) {
21469
        _thriftId = thriftId;
21470
        _fieldName = fieldName;
21471
      }
21472
 
21473
      public short getThriftFieldId() {
21474
        return _thriftId;
21475
      }
21476
 
21477
      public String getFieldName() {
21478
        return _fieldName;
21479
      }
21480
    }
21481
 
21482
    // isset id assignments
21483
    private static final int __ORDERID_ISSET_ID = 0;
21484
    private static final int __UNITPRICE_ISSET_ID = 1;
21485
    private BitSet __isset_bit_vector = new BitSet(2);
21486
 
21487
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21488
    static {
21489
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21490
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21491
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21492
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21493
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21494
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21495
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_args.class, metaDataMap);
21496
    }
21497
 
21498
    public scanForOursExternalSaleReturn_args() {
21499
    }
21500
 
21501
    public scanForOursExternalSaleReturn_args(
21502
      long orderId,
21503
      double unitPrice)
21504
    {
21505
      this();
21506
      this.orderId = orderId;
21507
      setOrderIdIsSet(true);
21508
      this.unitPrice = unitPrice;
21509
      setUnitPriceIsSet(true);
21510
    }
21511
 
21512
    /**
21513
     * Performs a deep copy on <i>other</i>.
21514
     */
21515
    public scanForOursExternalSaleReturn_args(scanForOursExternalSaleReturn_args other) {
21516
      __isset_bit_vector.clear();
21517
      __isset_bit_vector.or(other.__isset_bit_vector);
21518
      this.orderId = other.orderId;
21519
      this.unitPrice = other.unitPrice;
21520
    }
21521
 
21522
    public scanForOursExternalSaleReturn_args deepCopy() {
21523
      return new scanForOursExternalSaleReturn_args(this);
21524
    }
21525
 
21526
    @Override
21527
    public void clear() {
21528
      setOrderIdIsSet(false);
21529
      this.orderId = 0;
21530
      setUnitPriceIsSet(false);
21531
      this.unitPrice = 0.0;
21532
    }
21533
 
21534
    public long getOrderId() {
21535
      return this.orderId;
21536
    }
21537
 
21538
    public void setOrderId(long orderId) {
21539
      this.orderId = orderId;
21540
      setOrderIdIsSet(true);
21541
    }
21542
 
21543
    public void unsetOrderId() {
21544
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
21545
    }
21546
 
21547
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
21548
    public boolean isSetOrderId() {
21549
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
21550
    }
21551
 
21552
    public void setOrderIdIsSet(boolean value) {
21553
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
21554
    }
21555
 
21556
    public double getUnitPrice() {
21557
      return this.unitPrice;
21558
    }
21559
 
21560
    public void setUnitPrice(double unitPrice) {
21561
      this.unitPrice = unitPrice;
21562
      setUnitPriceIsSet(true);
21563
    }
21564
 
21565
    public void unsetUnitPrice() {
21566
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
21567
    }
21568
 
21569
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
21570
    public boolean isSetUnitPrice() {
21571
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
21572
    }
21573
 
21574
    public void setUnitPriceIsSet(boolean value) {
21575
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
21576
    }
21577
 
21578
    public void setFieldValue(_Fields field, Object value) {
21579
      switch (field) {
21580
      case ORDER_ID:
21581
        if (value == null) {
21582
          unsetOrderId();
21583
        } else {
21584
          setOrderId((Long)value);
21585
        }
21586
        break;
21587
 
21588
      case UNIT_PRICE:
21589
        if (value == null) {
21590
          unsetUnitPrice();
21591
        } else {
21592
          setUnitPrice((Double)value);
21593
        }
21594
        break;
21595
 
21596
      }
21597
    }
21598
 
21599
    public Object getFieldValue(_Fields field) {
21600
      switch (field) {
21601
      case ORDER_ID:
21602
        return Long.valueOf(getOrderId());
21603
 
21604
      case UNIT_PRICE:
21605
        return Double.valueOf(getUnitPrice());
21606
 
21607
      }
21608
      throw new IllegalStateException();
21609
    }
21610
 
21611
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21612
    public boolean isSet(_Fields field) {
21613
      if (field == null) {
21614
        throw new IllegalArgumentException();
21615
      }
21616
 
21617
      switch (field) {
21618
      case ORDER_ID:
21619
        return isSetOrderId();
21620
      case UNIT_PRICE:
21621
        return isSetUnitPrice();
21622
      }
21623
      throw new IllegalStateException();
21624
    }
21625
 
21626
    @Override
21627
    public boolean equals(Object that) {
21628
      if (that == null)
21629
        return false;
21630
      if (that instanceof scanForOursExternalSaleReturn_args)
21631
        return this.equals((scanForOursExternalSaleReturn_args)that);
21632
      return false;
21633
    }
21634
 
21635
    public boolean equals(scanForOursExternalSaleReturn_args that) {
21636
      if (that == null)
21637
        return false;
21638
 
21639
      boolean this_present_orderId = true;
21640
      boolean that_present_orderId = true;
21641
      if (this_present_orderId || that_present_orderId) {
21642
        if (!(this_present_orderId && that_present_orderId))
21643
          return false;
21644
        if (this.orderId != that.orderId)
21645
          return false;
21646
      }
21647
 
21648
      boolean this_present_unitPrice = true;
21649
      boolean that_present_unitPrice = true;
21650
      if (this_present_unitPrice || that_present_unitPrice) {
21651
        if (!(this_present_unitPrice && that_present_unitPrice))
21652
          return false;
21653
        if (this.unitPrice != that.unitPrice)
21654
          return false;
21655
      }
21656
 
21657
      return true;
21658
    }
21659
 
21660
    @Override
21661
    public int hashCode() {
21662
      return 0;
21663
    }
21664
 
21665
    public int compareTo(scanForOursExternalSaleReturn_args other) {
21666
      if (!getClass().equals(other.getClass())) {
21667
        return getClass().getName().compareTo(other.getClass().getName());
21668
      }
21669
 
21670
      int lastComparison = 0;
21671
      scanForOursExternalSaleReturn_args typedOther = (scanForOursExternalSaleReturn_args)other;
21672
 
21673
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
21674
      if (lastComparison != 0) {
21675
        return lastComparison;
21676
      }
21677
      if (isSetOrderId()) {
21678
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21679
        if (lastComparison != 0) {
21680
          return lastComparison;
21681
        }
21682
      }
21683
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
21684
      if (lastComparison != 0) {
21685
        return lastComparison;
21686
      }
21687
      if (isSetUnitPrice()) {
21688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
21689
        if (lastComparison != 0) {
21690
          return lastComparison;
21691
        }
21692
      }
21693
      return 0;
21694
    }
21695
 
21696
    public _Fields fieldForId(int fieldId) {
21697
      return _Fields.findByThriftId(fieldId);
21698
    }
21699
 
21700
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21701
      org.apache.thrift.protocol.TField field;
21702
      iprot.readStructBegin();
21703
      while (true)
21704
      {
21705
        field = iprot.readFieldBegin();
21706
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21707
          break;
21708
        }
21709
        switch (field.id) {
21710
          case 1: // ORDER_ID
21711
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21712
              this.orderId = iprot.readI64();
21713
              setOrderIdIsSet(true);
21714
            } else { 
21715
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21716
            }
21717
            break;
21718
          case 2: // UNIT_PRICE
21719
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21720
              this.unitPrice = iprot.readDouble();
21721
              setUnitPriceIsSet(true);
21722
            } else { 
21723
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21724
            }
21725
            break;
21726
          default:
21727
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21728
        }
21729
        iprot.readFieldEnd();
21730
      }
21731
      iprot.readStructEnd();
21732
      validate();
21733
    }
21734
 
21735
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21736
      validate();
21737
 
21738
      oprot.writeStructBegin(STRUCT_DESC);
21739
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21740
      oprot.writeI64(this.orderId);
21741
      oprot.writeFieldEnd();
21742
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
21743
      oprot.writeDouble(this.unitPrice);
21744
      oprot.writeFieldEnd();
21745
      oprot.writeFieldStop();
21746
      oprot.writeStructEnd();
21747
    }
21748
 
21749
    @Override
21750
    public String toString() {
21751
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_args(");
21752
      boolean first = true;
21753
 
21754
      sb.append("orderId:");
21755
      sb.append(this.orderId);
21756
      first = false;
21757
      if (!first) sb.append(", ");
21758
      sb.append("unitPrice:");
21759
      sb.append(this.unitPrice);
21760
      first = false;
21761
      sb.append(")");
21762
      return sb.toString();
21763
    }
21764
 
21765
    public void validate() throws org.apache.thrift.TException {
21766
      // check for required fields
21767
    }
21768
 
21769
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21770
      try {
21771
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21772
      } catch (org.apache.thrift.TException te) {
21773
        throw new java.io.IOException(te);
21774
      }
21775
    }
21776
 
21777
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21778
      try {
21779
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21780
      } catch (org.apache.thrift.TException te) {
21781
        throw new java.io.IOException(te);
21782
      }
21783
    }
21784
 
21785
  }
21786
 
21787
  public static class scanForOursExternalSaleReturn_result implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_result, scanForOursExternalSaleReturn_result._Fields>, java.io.Serializable, Cloneable   {
21788
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_result");
21789
 
7410 amar.kumar 21790
    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 21791
 
7410 amar.kumar 21792
    private WarehouseServiceException ex; // required
6762 amar.kumar 21793
 
21794
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21795
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7410 amar.kumar 21796
      EX((short)1, "ex");
6762 amar.kumar 21797
 
21798
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21799
 
21800
      static {
21801
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21802
          byName.put(field.getFieldName(), field);
21803
        }
21804
      }
21805
 
21806
      /**
21807
       * Find the _Fields constant that matches fieldId, or null if its not found.
21808
       */
21809
      public static _Fields findByThriftId(int fieldId) {
21810
        switch(fieldId) {
7410 amar.kumar 21811
          case 1: // EX
21812
            return EX;
6762 amar.kumar 21813
          default:
21814
            return null;
21815
        }
21816
      }
21817
 
21818
      /**
21819
       * Find the _Fields constant that matches fieldId, throwing an exception
21820
       * if it is not found.
21821
       */
21822
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21823
        _Fields fields = findByThriftId(fieldId);
21824
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21825
        return fields;
21826
      }
21827
 
21828
      /**
21829
       * Find the _Fields constant that matches name, or null if its not found.
21830
       */
21831
      public static _Fields findByName(String name) {
21832
        return byName.get(name);
21833
      }
21834
 
21835
      private final short _thriftId;
21836
      private final String _fieldName;
21837
 
21838
      _Fields(short thriftId, String fieldName) {
21839
        _thriftId = thriftId;
21840
        _fieldName = fieldName;
21841
      }
21842
 
21843
      public short getThriftFieldId() {
21844
        return _thriftId;
21845
      }
21846
 
21847
      public String getFieldName() {
21848
        return _fieldName;
21849
      }
21850
    }
7410 amar.kumar 21851
 
21852
    // isset id assignments
21853
 
6762 amar.kumar 21854
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21855
    static {
21856
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7410 amar.kumar 21857
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21858
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6762 amar.kumar 21859
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21860
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_result.class, metaDataMap);
21861
    }
21862
 
21863
    public scanForOursExternalSaleReturn_result() {
21864
    }
21865
 
7410 amar.kumar 21866
    public scanForOursExternalSaleReturn_result(
21867
      WarehouseServiceException ex)
21868
    {
21869
      this();
21870
      this.ex = ex;
21871
    }
21872
 
6762 amar.kumar 21873
    /**
21874
     * Performs a deep copy on <i>other</i>.
21875
     */
21876
    public scanForOursExternalSaleReturn_result(scanForOursExternalSaleReturn_result other) {
7410 amar.kumar 21877
      if (other.isSetEx()) {
21878
        this.ex = new WarehouseServiceException(other.ex);
21879
      }
6762 amar.kumar 21880
    }
21881
 
21882
    public scanForOursExternalSaleReturn_result deepCopy() {
21883
      return new scanForOursExternalSaleReturn_result(this);
21884
    }
21885
 
21886
    @Override
21887
    public void clear() {
7410 amar.kumar 21888
      this.ex = null;
6762 amar.kumar 21889
    }
21890
 
7410 amar.kumar 21891
    public WarehouseServiceException getEx() {
21892
      return this.ex;
21893
    }
21894
 
21895
    public void setEx(WarehouseServiceException ex) {
21896
      this.ex = ex;
21897
    }
21898
 
21899
    public void unsetEx() {
21900
      this.ex = null;
21901
    }
21902
 
21903
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
21904
    public boolean isSetEx() {
21905
      return this.ex != null;
21906
    }
21907
 
21908
    public void setExIsSet(boolean value) {
21909
      if (!value) {
21910
        this.ex = null;
21911
      }
21912
    }
21913
 
6762 amar.kumar 21914
    public void setFieldValue(_Fields field, Object value) {
21915
      switch (field) {
7410 amar.kumar 21916
      case EX:
21917
        if (value == null) {
21918
          unsetEx();
21919
        } else {
21920
          setEx((WarehouseServiceException)value);
21921
        }
21922
        break;
21923
 
6762 amar.kumar 21924
      }
21925
    }
21926
 
21927
    public Object getFieldValue(_Fields field) {
21928
      switch (field) {
7410 amar.kumar 21929
      case EX:
21930
        return getEx();
21931
 
6762 amar.kumar 21932
      }
21933
      throw new IllegalStateException();
21934
    }
21935
 
21936
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21937
    public boolean isSet(_Fields field) {
21938
      if (field == null) {
21939
        throw new IllegalArgumentException();
21940
      }
21941
 
21942
      switch (field) {
7410 amar.kumar 21943
      case EX:
21944
        return isSetEx();
6762 amar.kumar 21945
      }
21946
      throw new IllegalStateException();
21947
    }
21948
 
21949
    @Override
21950
    public boolean equals(Object that) {
21951
      if (that == null)
21952
        return false;
21953
      if (that instanceof scanForOursExternalSaleReturn_result)
21954
        return this.equals((scanForOursExternalSaleReturn_result)that);
21955
      return false;
21956
    }
21957
 
21958
    public boolean equals(scanForOursExternalSaleReturn_result that) {
21959
      if (that == null)
21960
        return false;
21961
 
7410 amar.kumar 21962
      boolean this_present_ex = true && this.isSetEx();
21963
      boolean that_present_ex = true && that.isSetEx();
21964
      if (this_present_ex || that_present_ex) {
21965
        if (!(this_present_ex && that_present_ex))
21966
          return false;
21967
        if (!this.ex.equals(that.ex))
21968
          return false;
21969
      }
21970
 
6762 amar.kumar 21971
      return true;
21972
    }
21973
 
21974
    @Override
21975
    public int hashCode() {
21976
      return 0;
21977
    }
21978
 
21979
    public int compareTo(scanForOursExternalSaleReturn_result other) {
21980
      if (!getClass().equals(other.getClass())) {
21981
        return getClass().getName().compareTo(other.getClass().getName());
21982
      }
21983
 
21984
      int lastComparison = 0;
21985
      scanForOursExternalSaleReturn_result typedOther = (scanForOursExternalSaleReturn_result)other;
21986
 
7410 amar.kumar 21987
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
21988
      if (lastComparison != 0) {
21989
        return lastComparison;
21990
      }
21991
      if (isSetEx()) {
21992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21993
        if (lastComparison != 0) {
21994
          return lastComparison;
21995
        }
21996
      }
6762 amar.kumar 21997
      return 0;
21998
    }
21999
 
22000
    public _Fields fieldForId(int fieldId) {
22001
      return _Fields.findByThriftId(fieldId);
22002
    }
22003
 
22004
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22005
      org.apache.thrift.protocol.TField field;
22006
      iprot.readStructBegin();
22007
      while (true)
22008
      {
22009
        field = iprot.readFieldBegin();
22010
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22011
          break;
22012
        }
22013
        switch (field.id) {
7410 amar.kumar 22014
          case 1: // EX
22015
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22016
              this.ex = new WarehouseServiceException();
22017
              this.ex.read(iprot);
22018
            } else { 
22019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22020
            }
22021
            break;
6762 amar.kumar 22022
          default:
22023
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22024
        }
22025
        iprot.readFieldEnd();
22026
      }
22027
      iprot.readStructEnd();
22028
      validate();
22029
    }
22030
 
22031
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22032
      oprot.writeStructBegin(STRUCT_DESC);
22033
 
7410 amar.kumar 22034
      if (this.isSetEx()) {
22035
        oprot.writeFieldBegin(EX_FIELD_DESC);
22036
        this.ex.write(oprot);
22037
        oprot.writeFieldEnd();
22038
      }
6762 amar.kumar 22039
      oprot.writeFieldStop();
22040
      oprot.writeStructEnd();
22041
    }
22042
 
22043
    @Override
22044
    public String toString() {
22045
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_result(");
22046
      boolean first = true;
22047
 
7410 amar.kumar 22048
      sb.append("ex:");
22049
      if (this.ex == null) {
22050
        sb.append("null");
22051
      } else {
22052
        sb.append(this.ex);
22053
      }
22054
      first = false;
6762 amar.kumar 22055
      sb.append(")");
22056
      return sb.toString();
22057
    }
22058
 
22059
    public void validate() throws org.apache.thrift.TException {
22060
      // check for required fields
22061
    }
22062
 
22063
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22064
      try {
22065
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22066
      } catch (org.apache.thrift.TException te) {
22067
        throw new java.io.IOException(te);
22068
      }
22069
    }
22070
 
22071
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22072
      try {
22073
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22074
      } catch (org.apache.thrift.TException te) {
22075
        throw new java.io.IOException(te);
22076
      }
22077
    }
22078
 
22079
  }
22080
 
6880 amar.kumar 22081
  public static class getMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_args, getMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
22082
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_args");
22083
 
22084
    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);
22085
    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);
22086
 
22087
    private long startDate; // required
22088
    private long endDate; // required
22089
 
22090
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22091
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22092
      START_DATE((short)1, "startDate"),
22093
      END_DATE((short)2, "endDate");
22094
 
22095
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22096
 
22097
      static {
22098
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22099
          byName.put(field.getFieldName(), field);
22100
        }
22101
      }
22102
 
22103
      /**
22104
       * Find the _Fields constant that matches fieldId, or null if its not found.
22105
       */
22106
      public static _Fields findByThriftId(int fieldId) {
22107
        switch(fieldId) {
22108
          case 1: // START_DATE
22109
            return START_DATE;
22110
          case 2: // END_DATE
22111
            return END_DATE;
22112
          default:
22113
            return null;
22114
        }
22115
      }
22116
 
22117
      /**
22118
       * Find the _Fields constant that matches fieldId, throwing an exception
22119
       * if it is not found.
22120
       */
22121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22122
        _Fields fields = findByThriftId(fieldId);
22123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22124
        return fields;
22125
      }
22126
 
22127
      /**
22128
       * Find the _Fields constant that matches name, or null if its not found.
22129
       */
22130
      public static _Fields findByName(String name) {
22131
        return byName.get(name);
22132
      }
22133
 
22134
      private final short _thriftId;
22135
      private final String _fieldName;
22136
 
22137
      _Fields(short thriftId, String fieldName) {
22138
        _thriftId = thriftId;
22139
        _fieldName = fieldName;
22140
      }
22141
 
22142
      public short getThriftFieldId() {
22143
        return _thriftId;
22144
      }
22145
 
22146
      public String getFieldName() {
22147
        return _fieldName;
22148
      }
22149
    }
22150
 
22151
    // isset id assignments
22152
    private static final int __STARTDATE_ISSET_ID = 0;
22153
    private static final int __ENDDATE_ISSET_ID = 1;
22154
    private BitSet __isset_bit_vector = new BitSet(2);
22155
 
22156
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22157
    static {
22158
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22159
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22160
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22161
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22162
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22163
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22164
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_args.class, metaDataMap);
22165
    }
22166
 
22167
    public getMovementNonSerializedInventoryByScans_args() {
22168
    }
22169
 
22170
    public getMovementNonSerializedInventoryByScans_args(
22171
      long startDate,
22172
      long endDate)
22173
    {
22174
      this();
22175
      this.startDate = startDate;
22176
      setStartDateIsSet(true);
22177
      this.endDate = endDate;
22178
      setEndDateIsSet(true);
22179
    }
22180
 
22181
    /**
22182
     * Performs a deep copy on <i>other</i>.
22183
     */
22184
    public getMovementNonSerializedInventoryByScans_args(getMovementNonSerializedInventoryByScans_args other) {
22185
      __isset_bit_vector.clear();
22186
      __isset_bit_vector.or(other.__isset_bit_vector);
22187
      this.startDate = other.startDate;
22188
      this.endDate = other.endDate;
22189
    }
22190
 
22191
    public getMovementNonSerializedInventoryByScans_args deepCopy() {
22192
      return new getMovementNonSerializedInventoryByScans_args(this);
22193
    }
22194
 
22195
    @Override
22196
    public void clear() {
22197
      setStartDateIsSet(false);
22198
      this.startDate = 0;
22199
      setEndDateIsSet(false);
22200
      this.endDate = 0;
22201
    }
22202
 
22203
    public long getStartDate() {
22204
      return this.startDate;
22205
    }
22206
 
22207
    public void setStartDate(long startDate) {
22208
      this.startDate = startDate;
22209
      setStartDateIsSet(true);
22210
    }
22211
 
22212
    public void unsetStartDate() {
22213
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
22214
    }
22215
 
22216
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
22217
    public boolean isSetStartDate() {
22218
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
22219
    }
22220
 
22221
    public void setStartDateIsSet(boolean value) {
22222
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
22223
    }
22224
 
22225
    public long getEndDate() {
22226
      return this.endDate;
22227
    }
22228
 
22229
    public void setEndDate(long endDate) {
22230
      this.endDate = endDate;
22231
      setEndDateIsSet(true);
22232
    }
22233
 
22234
    public void unsetEndDate() {
22235
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
22236
    }
22237
 
22238
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
22239
    public boolean isSetEndDate() {
22240
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
22241
    }
22242
 
22243
    public void setEndDateIsSet(boolean value) {
22244
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
22245
    }
22246
 
22247
    public void setFieldValue(_Fields field, Object value) {
22248
      switch (field) {
22249
      case START_DATE:
22250
        if (value == null) {
22251
          unsetStartDate();
22252
        } else {
22253
          setStartDate((Long)value);
22254
        }
22255
        break;
22256
 
22257
      case END_DATE:
22258
        if (value == null) {
22259
          unsetEndDate();
22260
        } else {
22261
          setEndDate((Long)value);
22262
        }
22263
        break;
22264
 
22265
      }
22266
    }
22267
 
22268
    public Object getFieldValue(_Fields field) {
22269
      switch (field) {
22270
      case START_DATE:
22271
        return Long.valueOf(getStartDate());
22272
 
22273
      case END_DATE:
22274
        return Long.valueOf(getEndDate());
22275
 
22276
      }
22277
      throw new IllegalStateException();
22278
    }
22279
 
22280
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22281
    public boolean isSet(_Fields field) {
22282
      if (field == null) {
22283
        throw new IllegalArgumentException();
22284
      }
22285
 
22286
      switch (field) {
22287
      case START_DATE:
22288
        return isSetStartDate();
22289
      case END_DATE:
22290
        return isSetEndDate();
22291
      }
22292
      throw new IllegalStateException();
22293
    }
22294
 
22295
    @Override
22296
    public boolean equals(Object that) {
22297
      if (that == null)
22298
        return false;
22299
      if (that instanceof getMovementNonSerializedInventoryByScans_args)
22300
        return this.equals((getMovementNonSerializedInventoryByScans_args)that);
22301
      return false;
22302
    }
22303
 
22304
    public boolean equals(getMovementNonSerializedInventoryByScans_args that) {
22305
      if (that == null)
22306
        return false;
22307
 
22308
      boolean this_present_startDate = true;
22309
      boolean that_present_startDate = true;
22310
      if (this_present_startDate || that_present_startDate) {
22311
        if (!(this_present_startDate && that_present_startDate))
22312
          return false;
22313
        if (this.startDate != that.startDate)
22314
          return false;
22315
      }
22316
 
22317
      boolean this_present_endDate = true;
22318
      boolean that_present_endDate = true;
22319
      if (this_present_endDate || that_present_endDate) {
22320
        if (!(this_present_endDate && that_present_endDate))
22321
          return false;
22322
        if (this.endDate != that.endDate)
22323
          return false;
22324
      }
22325
 
22326
      return true;
22327
    }
22328
 
22329
    @Override
22330
    public int hashCode() {
22331
      return 0;
22332
    }
22333
 
22334
    public int compareTo(getMovementNonSerializedInventoryByScans_args other) {
22335
      if (!getClass().equals(other.getClass())) {
22336
        return getClass().getName().compareTo(other.getClass().getName());
22337
      }
22338
 
22339
      int lastComparison = 0;
22340
      getMovementNonSerializedInventoryByScans_args typedOther = (getMovementNonSerializedInventoryByScans_args)other;
22341
 
22342
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
22343
      if (lastComparison != 0) {
22344
        return lastComparison;
22345
      }
22346
      if (isSetStartDate()) {
22347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
22348
        if (lastComparison != 0) {
22349
          return lastComparison;
22350
        }
22351
      }
22352
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
22353
      if (lastComparison != 0) {
22354
        return lastComparison;
22355
      }
22356
      if (isSetEndDate()) {
22357
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
22358
        if (lastComparison != 0) {
22359
          return lastComparison;
22360
        }
22361
      }
22362
      return 0;
22363
    }
22364
 
22365
    public _Fields fieldForId(int fieldId) {
22366
      return _Fields.findByThriftId(fieldId);
22367
    }
22368
 
22369
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22370
      org.apache.thrift.protocol.TField field;
22371
      iprot.readStructBegin();
22372
      while (true)
22373
      {
22374
        field = iprot.readFieldBegin();
22375
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22376
          break;
22377
        }
22378
        switch (field.id) {
22379
          case 1: // START_DATE
22380
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22381
              this.startDate = iprot.readI64();
22382
              setStartDateIsSet(true);
22383
            } else { 
22384
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22385
            }
22386
            break;
22387
          case 2: // END_DATE
22388
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22389
              this.endDate = iprot.readI64();
22390
              setEndDateIsSet(true);
22391
            } else { 
22392
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22393
            }
22394
            break;
22395
          default:
22396
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22397
        }
22398
        iprot.readFieldEnd();
22399
      }
22400
      iprot.readStructEnd();
22401
      validate();
22402
    }
22403
 
22404
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22405
      validate();
22406
 
22407
      oprot.writeStructBegin(STRUCT_DESC);
22408
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
22409
      oprot.writeI64(this.startDate);
22410
      oprot.writeFieldEnd();
22411
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
22412
      oprot.writeI64(this.endDate);
22413
      oprot.writeFieldEnd();
22414
      oprot.writeFieldStop();
22415
      oprot.writeStructEnd();
22416
    }
22417
 
22418
    @Override
22419
    public String toString() {
22420
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_args(");
22421
      boolean first = true;
22422
 
22423
      sb.append("startDate:");
22424
      sb.append(this.startDate);
22425
      first = false;
22426
      if (!first) sb.append(", ");
22427
      sb.append("endDate:");
22428
      sb.append(this.endDate);
22429
      first = false;
22430
      sb.append(")");
22431
      return sb.toString();
22432
    }
22433
 
22434
    public void validate() throws org.apache.thrift.TException {
22435
      // check for required fields
22436
    }
22437
 
22438
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22439
      try {
22440
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22441
      } catch (org.apache.thrift.TException te) {
22442
        throw new java.io.IOException(te);
22443
      }
22444
    }
22445
 
22446
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22447
      try {
22448
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22449
        __isset_bit_vector = new BitSet(1);
22450
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22451
      } catch (org.apache.thrift.TException te) {
22452
        throw new java.io.IOException(te);
22453
      }
22454
    }
22455
 
22456
  }
22457
 
22458
  public static class getMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_result, getMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
22459
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_result");
22460
 
22461
    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);
22462
 
22463
    private List<InventoryMovement> success; // required
22464
 
22465
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22466
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22467
      SUCCESS((short)0, "success");
22468
 
22469
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22470
 
22471
      static {
22472
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22473
          byName.put(field.getFieldName(), field);
22474
        }
22475
      }
22476
 
22477
      /**
22478
       * Find the _Fields constant that matches fieldId, or null if its not found.
22479
       */
22480
      public static _Fields findByThriftId(int fieldId) {
22481
        switch(fieldId) {
22482
          case 0: // SUCCESS
22483
            return SUCCESS;
22484
          default:
22485
            return null;
22486
        }
22487
      }
22488
 
22489
      /**
22490
       * Find the _Fields constant that matches fieldId, throwing an exception
22491
       * if it is not found.
22492
       */
22493
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22494
        _Fields fields = findByThriftId(fieldId);
22495
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22496
        return fields;
22497
      }
22498
 
22499
      /**
22500
       * Find the _Fields constant that matches name, or null if its not found.
22501
       */
22502
      public static _Fields findByName(String name) {
22503
        return byName.get(name);
22504
      }
22505
 
22506
      private final short _thriftId;
22507
      private final String _fieldName;
22508
 
22509
      _Fields(short thriftId, String fieldName) {
22510
        _thriftId = thriftId;
22511
        _fieldName = fieldName;
22512
      }
22513
 
22514
      public short getThriftFieldId() {
22515
        return _thriftId;
22516
      }
22517
 
22518
      public String getFieldName() {
22519
        return _fieldName;
22520
      }
22521
    }
22522
 
22523
    // isset id assignments
22524
 
22525
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22526
    static {
22527
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22528
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22529
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22530
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
22531
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22532
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_result.class, metaDataMap);
22533
    }
22534
 
22535
    public getMovementNonSerializedInventoryByScans_result() {
22536
    }
22537
 
22538
    public getMovementNonSerializedInventoryByScans_result(
22539
      List<InventoryMovement> success)
22540
    {
22541
      this();
22542
      this.success = success;
22543
    }
22544
 
22545
    /**
22546
     * Performs a deep copy on <i>other</i>.
22547
     */
22548
    public getMovementNonSerializedInventoryByScans_result(getMovementNonSerializedInventoryByScans_result other) {
22549
      if (other.isSetSuccess()) {
22550
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
22551
        for (InventoryMovement other_element : other.success) {
22552
          __this__success.add(new InventoryMovement(other_element));
22553
        }
22554
        this.success = __this__success;
22555
      }
22556
    }
22557
 
22558
    public getMovementNonSerializedInventoryByScans_result deepCopy() {
22559
      return new getMovementNonSerializedInventoryByScans_result(this);
22560
    }
22561
 
22562
    @Override
22563
    public void clear() {
22564
      this.success = null;
22565
    }
22566
 
22567
    public int getSuccessSize() {
22568
      return (this.success == null) ? 0 : this.success.size();
22569
    }
22570
 
22571
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
22572
      return (this.success == null) ? null : this.success.iterator();
22573
    }
22574
 
22575
    public void addToSuccess(InventoryMovement elem) {
22576
      if (this.success == null) {
22577
        this.success = new ArrayList<InventoryMovement>();
22578
      }
22579
      this.success.add(elem);
22580
    }
22581
 
22582
    public List<InventoryMovement> getSuccess() {
22583
      return this.success;
22584
    }
22585
 
22586
    public void setSuccess(List<InventoryMovement> success) {
22587
      this.success = success;
22588
    }
22589
 
22590
    public void unsetSuccess() {
22591
      this.success = null;
22592
    }
22593
 
22594
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22595
    public boolean isSetSuccess() {
22596
      return this.success != null;
22597
    }
22598
 
22599
    public void setSuccessIsSet(boolean value) {
22600
      if (!value) {
22601
        this.success = null;
22602
      }
22603
    }
22604
 
22605
    public void setFieldValue(_Fields field, Object value) {
22606
      switch (field) {
22607
      case SUCCESS:
22608
        if (value == null) {
22609
          unsetSuccess();
22610
        } else {
22611
          setSuccess((List<InventoryMovement>)value);
22612
        }
22613
        break;
22614
 
22615
      }
22616
    }
22617
 
22618
    public Object getFieldValue(_Fields field) {
22619
      switch (field) {
22620
      case SUCCESS:
22621
        return getSuccess();
22622
 
22623
      }
22624
      throw new IllegalStateException();
22625
    }
22626
 
22627
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22628
    public boolean isSet(_Fields field) {
22629
      if (field == null) {
22630
        throw new IllegalArgumentException();
22631
      }
22632
 
22633
      switch (field) {
22634
      case SUCCESS:
22635
        return isSetSuccess();
22636
      }
22637
      throw new IllegalStateException();
22638
    }
22639
 
22640
    @Override
22641
    public boolean equals(Object that) {
22642
      if (that == null)
22643
        return false;
22644
      if (that instanceof getMovementNonSerializedInventoryByScans_result)
22645
        return this.equals((getMovementNonSerializedInventoryByScans_result)that);
22646
      return false;
22647
    }
22648
 
22649
    public boolean equals(getMovementNonSerializedInventoryByScans_result that) {
22650
      if (that == null)
22651
        return false;
22652
 
22653
      boolean this_present_success = true && this.isSetSuccess();
22654
      boolean that_present_success = true && that.isSetSuccess();
22655
      if (this_present_success || that_present_success) {
22656
        if (!(this_present_success && that_present_success))
22657
          return false;
22658
        if (!this.success.equals(that.success))
22659
          return false;
22660
      }
22661
 
22662
      return true;
22663
    }
22664
 
22665
    @Override
22666
    public int hashCode() {
22667
      return 0;
22668
    }
22669
 
22670
    public int compareTo(getMovementNonSerializedInventoryByScans_result other) {
22671
      if (!getClass().equals(other.getClass())) {
22672
        return getClass().getName().compareTo(other.getClass().getName());
22673
      }
22674
 
22675
      int lastComparison = 0;
22676
      getMovementNonSerializedInventoryByScans_result typedOther = (getMovementNonSerializedInventoryByScans_result)other;
22677
 
22678
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22679
      if (lastComparison != 0) {
22680
        return lastComparison;
22681
      }
22682
      if (isSetSuccess()) {
22683
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22684
        if (lastComparison != 0) {
22685
          return lastComparison;
22686
        }
22687
      }
22688
      return 0;
22689
    }
22690
 
22691
    public _Fields fieldForId(int fieldId) {
22692
      return _Fields.findByThriftId(fieldId);
22693
    }
22694
 
22695
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22696
      org.apache.thrift.protocol.TField field;
22697
      iprot.readStructBegin();
22698
      while (true)
22699
      {
22700
        field = iprot.readFieldBegin();
22701
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22702
          break;
22703
        }
22704
        switch (field.id) {
22705
          case 0: // SUCCESS
22706
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22707
              {
7210 amar.kumar 22708
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
22709
                this.success = new ArrayList<InventoryMovement>(_list60.size);
22710
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
6880 amar.kumar 22711
                {
7210 amar.kumar 22712
                  InventoryMovement _elem62; // required
22713
                  _elem62 = new InventoryMovement();
22714
                  _elem62.read(iprot);
22715
                  this.success.add(_elem62);
6880 amar.kumar 22716
                }
22717
                iprot.readListEnd();
22718
              }
22719
            } else { 
22720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22721
            }
22722
            break;
22723
          default:
22724
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22725
        }
22726
        iprot.readFieldEnd();
22727
      }
22728
      iprot.readStructEnd();
22729
      validate();
22730
    }
22731
 
22732
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22733
      oprot.writeStructBegin(STRUCT_DESC);
22734
 
22735
      if (this.isSetSuccess()) {
22736
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22737
        {
22738
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 22739
          for (InventoryMovement _iter63 : this.success)
6880 amar.kumar 22740
          {
7210 amar.kumar 22741
            _iter63.write(oprot);
6880 amar.kumar 22742
          }
22743
          oprot.writeListEnd();
22744
        }
22745
        oprot.writeFieldEnd();
22746
      }
22747
      oprot.writeFieldStop();
22748
      oprot.writeStructEnd();
22749
    }
22750
 
22751
    @Override
22752
    public String toString() {
22753
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_result(");
22754
      boolean first = true;
22755
 
22756
      sb.append("success:");
22757
      if (this.success == null) {
22758
        sb.append("null");
22759
      } else {
22760
        sb.append(this.success);
22761
      }
22762
      first = false;
22763
      sb.append(")");
22764
      return sb.toString();
22765
    }
22766
 
22767
    public void validate() throws org.apache.thrift.TException {
22768
      // check for required fields
22769
    }
22770
 
22771
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22772
      try {
22773
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22774
      } catch (org.apache.thrift.TException te) {
22775
        throw new java.io.IOException(te);
22776
      }
22777
    }
22778
 
22779
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22780
      try {
22781
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22782
      } catch (org.apache.thrift.TException te) {
22783
        throw new java.io.IOException(te);
22784
      }
22785
    }
22786
 
22787
  }
22788
 
22789
  public static class getMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_args, getMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
22790
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_args");
22791
 
22792
    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);
22793
    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);
22794
 
22795
    private long startDate; // required
22796
    private long endDate; // required
22797
 
22798
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22799
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22800
      START_DATE((short)1, "startDate"),
22801
      END_DATE((short)2, "endDate");
22802
 
22803
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22804
 
22805
      static {
22806
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22807
          byName.put(field.getFieldName(), field);
22808
        }
22809
      }
22810
 
22811
      /**
22812
       * Find the _Fields constant that matches fieldId, or null if its not found.
22813
       */
22814
      public static _Fields findByThriftId(int fieldId) {
22815
        switch(fieldId) {
22816
          case 1: // START_DATE
22817
            return START_DATE;
22818
          case 2: // END_DATE
22819
            return END_DATE;
22820
          default:
22821
            return null;
22822
        }
22823
      }
22824
 
22825
      /**
22826
       * Find the _Fields constant that matches fieldId, throwing an exception
22827
       * if it is not found.
22828
       */
22829
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22830
        _Fields fields = findByThriftId(fieldId);
22831
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22832
        return fields;
22833
      }
22834
 
22835
      /**
22836
       * Find the _Fields constant that matches name, or null if its not found.
22837
       */
22838
      public static _Fields findByName(String name) {
22839
        return byName.get(name);
22840
      }
22841
 
22842
      private final short _thriftId;
22843
      private final String _fieldName;
22844
 
22845
      _Fields(short thriftId, String fieldName) {
22846
        _thriftId = thriftId;
22847
        _fieldName = fieldName;
22848
      }
22849
 
22850
      public short getThriftFieldId() {
22851
        return _thriftId;
22852
      }
22853
 
22854
      public String getFieldName() {
22855
        return _fieldName;
22856
      }
22857
    }
22858
 
22859
    // isset id assignments
22860
    private static final int __STARTDATE_ISSET_ID = 0;
22861
    private static final int __ENDDATE_ISSET_ID = 1;
22862
    private BitSet __isset_bit_vector = new BitSet(2);
22863
 
22864
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22865
    static {
22866
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22867
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22869
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22870
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22871
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22872
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_args.class, metaDataMap);
22873
    }
22874
 
22875
    public getMovementSerializedInventoryByScans_args() {
22876
    }
22877
 
22878
    public getMovementSerializedInventoryByScans_args(
22879
      long startDate,
22880
      long endDate)
22881
    {
22882
      this();
22883
      this.startDate = startDate;
22884
      setStartDateIsSet(true);
22885
      this.endDate = endDate;
22886
      setEndDateIsSet(true);
22887
    }
22888
 
22889
    /**
22890
     * Performs a deep copy on <i>other</i>.
22891
     */
22892
    public getMovementSerializedInventoryByScans_args(getMovementSerializedInventoryByScans_args other) {
22893
      __isset_bit_vector.clear();
22894
      __isset_bit_vector.or(other.__isset_bit_vector);
22895
      this.startDate = other.startDate;
22896
      this.endDate = other.endDate;
22897
    }
22898
 
22899
    public getMovementSerializedInventoryByScans_args deepCopy() {
22900
      return new getMovementSerializedInventoryByScans_args(this);
22901
    }
22902
 
22903
    @Override
22904
    public void clear() {
22905
      setStartDateIsSet(false);
22906
      this.startDate = 0;
22907
      setEndDateIsSet(false);
22908
      this.endDate = 0;
22909
    }
22910
 
22911
    public long getStartDate() {
22912
      return this.startDate;
22913
    }
22914
 
22915
    public void setStartDate(long startDate) {
22916
      this.startDate = startDate;
22917
      setStartDateIsSet(true);
22918
    }
22919
 
22920
    public void unsetStartDate() {
22921
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
22922
    }
22923
 
22924
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
22925
    public boolean isSetStartDate() {
22926
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
22927
    }
22928
 
22929
    public void setStartDateIsSet(boolean value) {
22930
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
22931
    }
22932
 
22933
    public long getEndDate() {
22934
      return this.endDate;
22935
    }
22936
 
22937
    public void setEndDate(long endDate) {
22938
      this.endDate = endDate;
22939
      setEndDateIsSet(true);
22940
    }
22941
 
22942
    public void unsetEndDate() {
22943
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
22944
    }
22945
 
22946
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
22947
    public boolean isSetEndDate() {
22948
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
22949
    }
22950
 
22951
    public void setEndDateIsSet(boolean value) {
22952
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
22953
    }
22954
 
22955
    public void setFieldValue(_Fields field, Object value) {
22956
      switch (field) {
22957
      case START_DATE:
22958
        if (value == null) {
22959
          unsetStartDate();
22960
        } else {
22961
          setStartDate((Long)value);
22962
        }
22963
        break;
22964
 
22965
      case END_DATE:
22966
        if (value == null) {
22967
          unsetEndDate();
22968
        } else {
22969
          setEndDate((Long)value);
22970
        }
22971
        break;
22972
 
22973
      }
22974
    }
22975
 
22976
    public Object getFieldValue(_Fields field) {
22977
      switch (field) {
22978
      case START_DATE:
22979
        return Long.valueOf(getStartDate());
22980
 
22981
      case END_DATE:
22982
        return Long.valueOf(getEndDate());
22983
 
22984
      }
22985
      throw new IllegalStateException();
22986
    }
22987
 
22988
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22989
    public boolean isSet(_Fields field) {
22990
      if (field == null) {
22991
        throw new IllegalArgumentException();
22992
      }
22993
 
22994
      switch (field) {
22995
      case START_DATE:
22996
        return isSetStartDate();
22997
      case END_DATE:
22998
        return isSetEndDate();
22999
      }
23000
      throw new IllegalStateException();
23001
    }
23002
 
23003
    @Override
23004
    public boolean equals(Object that) {
23005
      if (that == null)
23006
        return false;
23007
      if (that instanceof getMovementSerializedInventoryByScans_args)
23008
        return this.equals((getMovementSerializedInventoryByScans_args)that);
23009
      return false;
23010
    }
23011
 
23012
    public boolean equals(getMovementSerializedInventoryByScans_args that) {
23013
      if (that == null)
23014
        return false;
23015
 
23016
      boolean this_present_startDate = true;
23017
      boolean that_present_startDate = true;
23018
      if (this_present_startDate || that_present_startDate) {
23019
        if (!(this_present_startDate && that_present_startDate))
23020
          return false;
23021
        if (this.startDate != that.startDate)
23022
          return false;
23023
      }
23024
 
23025
      boolean this_present_endDate = true;
23026
      boolean that_present_endDate = true;
23027
      if (this_present_endDate || that_present_endDate) {
23028
        if (!(this_present_endDate && that_present_endDate))
23029
          return false;
23030
        if (this.endDate != that.endDate)
23031
          return false;
23032
      }
23033
 
23034
      return true;
23035
    }
23036
 
23037
    @Override
23038
    public int hashCode() {
23039
      return 0;
23040
    }
23041
 
23042
    public int compareTo(getMovementSerializedInventoryByScans_args other) {
23043
      if (!getClass().equals(other.getClass())) {
23044
        return getClass().getName().compareTo(other.getClass().getName());
23045
      }
23046
 
23047
      int lastComparison = 0;
23048
      getMovementSerializedInventoryByScans_args typedOther = (getMovementSerializedInventoryByScans_args)other;
23049
 
23050
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
23051
      if (lastComparison != 0) {
23052
        return lastComparison;
23053
      }
23054
      if (isSetStartDate()) {
23055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
23056
        if (lastComparison != 0) {
23057
          return lastComparison;
23058
        }
23059
      }
23060
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
23061
      if (lastComparison != 0) {
23062
        return lastComparison;
23063
      }
23064
      if (isSetEndDate()) {
23065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
23066
        if (lastComparison != 0) {
23067
          return lastComparison;
23068
        }
23069
      }
23070
      return 0;
23071
    }
23072
 
23073
    public _Fields fieldForId(int fieldId) {
23074
      return _Fields.findByThriftId(fieldId);
23075
    }
23076
 
23077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23078
      org.apache.thrift.protocol.TField field;
23079
      iprot.readStructBegin();
23080
      while (true)
23081
      {
23082
        field = iprot.readFieldBegin();
23083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23084
          break;
23085
        }
23086
        switch (field.id) {
23087
          case 1: // START_DATE
23088
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23089
              this.startDate = iprot.readI64();
23090
              setStartDateIsSet(true);
23091
            } else { 
23092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23093
            }
23094
            break;
23095
          case 2: // END_DATE
23096
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23097
              this.endDate = iprot.readI64();
23098
              setEndDateIsSet(true);
23099
            } else { 
23100
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23101
            }
23102
            break;
23103
          default:
23104
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23105
        }
23106
        iprot.readFieldEnd();
23107
      }
23108
      iprot.readStructEnd();
23109
      validate();
23110
    }
23111
 
23112
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23113
      validate();
23114
 
23115
      oprot.writeStructBegin(STRUCT_DESC);
23116
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
23117
      oprot.writeI64(this.startDate);
23118
      oprot.writeFieldEnd();
23119
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
23120
      oprot.writeI64(this.endDate);
23121
      oprot.writeFieldEnd();
23122
      oprot.writeFieldStop();
23123
      oprot.writeStructEnd();
23124
    }
23125
 
23126
    @Override
23127
    public String toString() {
23128
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_args(");
23129
      boolean first = true;
23130
 
23131
      sb.append("startDate:");
23132
      sb.append(this.startDate);
23133
      first = false;
23134
      if (!first) sb.append(", ");
23135
      sb.append("endDate:");
23136
      sb.append(this.endDate);
23137
      first = false;
23138
      sb.append(")");
23139
      return sb.toString();
23140
    }
23141
 
23142
    public void validate() throws org.apache.thrift.TException {
23143
      // check for required fields
23144
    }
23145
 
23146
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23147
      try {
23148
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23149
      } catch (org.apache.thrift.TException te) {
23150
        throw new java.io.IOException(te);
23151
      }
23152
    }
23153
 
23154
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23155
      try {
23156
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23157
        __isset_bit_vector = new BitSet(1);
23158
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23159
      } catch (org.apache.thrift.TException te) {
23160
        throw new java.io.IOException(te);
23161
      }
23162
    }
23163
 
23164
  }
23165
 
23166
  public static class getMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_result, getMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
23167
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_result");
23168
 
23169
    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);
23170
 
23171
    private List<InventoryMovement> success; // required
23172
 
23173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23175
      SUCCESS((short)0, "success");
23176
 
23177
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23178
 
23179
      static {
23180
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23181
          byName.put(field.getFieldName(), field);
23182
        }
23183
      }
23184
 
23185
      /**
23186
       * Find the _Fields constant that matches fieldId, or null if its not found.
23187
       */
23188
      public static _Fields findByThriftId(int fieldId) {
23189
        switch(fieldId) {
23190
          case 0: // SUCCESS
23191
            return SUCCESS;
23192
          default:
23193
            return null;
23194
        }
23195
      }
23196
 
23197
      /**
23198
       * Find the _Fields constant that matches fieldId, throwing an exception
23199
       * if it is not found.
23200
       */
23201
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23202
        _Fields fields = findByThriftId(fieldId);
23203
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23204
        return fields;
23205
      }
23206
 
23207
      /**
23208
       * Find the _Fields constant that matches name, or null if its not found.
23209
       */
23210
      public static _Fields findByName(String name) {
23211
        return byName.get(name);
23212
      }
23213
 
23214
      private final short _thriftId;
23215
      private final String _fieldName;
23216
 
23217
      _Fields(short thriftId, String fieldName) {
23218
        _thriftId = thriftId;
23219
        _fieldName = fieldName;
23220
      }
23221
 
23222
      public short getThriftFieldId() {
23223
        return _thriftId;
23224
      }
23225
 
23226
      public String getFieldName() {
23227
        return _fieldName;
23228
      }
23229
    }
23230
 
23231
    // isset id assignments
23232
 
23233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23234
    static {
23235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23236
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23237
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23238
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
23239
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23240
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_result.class, metaDataMap);
23241
    }
23242
 
23243
    public getMovementSerializedInventoryByScans_result() {
23244
    }
23245
 
23246
    public getMovementSerializedInventoryByScans_result(
23247
      List<InventoryMovement> success)
23248
    {
23249
      this();
23250
      this.success = success;
23251
    }
23252
 
23253
    /**
23254
     * Performs a deep copy on <i>other</i>.
23255
     */
23256
    public getMovementSerializedInventoryByScans_result(getMovementSerializedInventoryByScans_result other) {
23257
      if (other.isSetSuccess()) {
23258
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
23259
        for (InventoryMovement other_element : other.success) {
23260
          __this__success.add(new InventoryMovement(other_element));
23261
        }
23262
        this.success = __this__success;
23263
      }
23264
    }
23265
 
23266
    public getMovementSerializedInventoryByScans_result deepCopy() {
23267
      return new getMovementSerializedInventoryByScans_result(this);
23268
    }
23269
 
23270
    @Override
23271
    public void clear() {
23272
      this.success = null;
23273
    }
23274
 
23275
    public int getSuccessSize() {
23276
      return (this.success == null) ? 0 : this.success.size();
23277
    }
23278
 
23279
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
23280
      return (this.success == null) ? null : this.success.iterator();
23281
    }
23282
 
23283
    public void addToSuccess(InventoryMovement elem) {
23284
      if (this.success == null) {
23285
        this.success = new ArrayList<InventoryMovement>();
23286
      }
23287
      this.success.add(elem);
23288
    }
23289
 
23290
    public List<InventoryMovement> getSuccess() {
23291
      return this.success;
23292
    }
23293
 
23294
    public void setSuccess(List<InventoryMovement> success) {
23295
      this.success = success;
23296
    }
23297
 
23298
    public void unsetSuccess() {
23299
      this.success = null;
23300
    }
23301
 
23302
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23303
    public boolean isSetSuccess() {
23304
      return this.success != null;
23305
    }
23306
 
23307
    public void setSuccessIsSet(boolean value) {
23308
      if (!value) {
23309
        this.success = null;
23310
      }
23311
    }
23312
 
23313
    public void setFieldValue(_Fields field, Object value) {
23314
      switch (field) {
23315
      case SUCCESS:
23316
        if (value == null) {
23317
          unsetSuccess();
23318
        } else {
23319
          setSuccess((List<InventoryMovement>)value);
23320
        }
23321
        break;
23322
 
23323
      }
23324
    }
23325
 
23326
    public Object getFieldValue(_Fields field) {
23327
      switch (field) {
23328
      case SUCCESS:
23329
        return getSuccess();
23330
 
23331
      }
23332
      throw new IllegalStateException();
23333
    }
23334
 
23335
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23336
    public boolean isSet(_Fields field) {
23337
      if (field == null) {
23338
        throw new IllegalArgumentException();
23339
      }
23340
 
23341
      switch (field) {
23342
      case SUCCESS:
23343
        return isSetSuccess();
23344
      }
23345
      throw new IllegalStateException();
23346
    }
23347
 
23348
    @Override
23349
    public boolean equals(Object that) {
23350
      if (that == null)
23351
        return false;
23352
      if (that instanceof getMovementSerializedInventoryByScans_result)
23353
        return this.equals((getMovementSerializedInventoryByScans_result)that);
23354
      return false;
23355
    }
23356
 
23357
    public boolean equals(getMovementSerializedInventoryByScans_result that) {
23358
      if (that == null)
23359
        return false;
23360
 
23361
      boolean this_present_success = true && this.isSetSuccess();
23362
      boolean that_present_success = true && that.isSetSuccess();
23363
      if (this_present_success || that_present_success) {
23364
        if (!(this_present_success && that_present_success))
23365
          return false;
23366
        if (!this.success.equals(that.success))
23367
          return false;
23368
      }
23369
 
23370
      return true;
23371
    }
23372
 
23373
    @Override
23374
    public int hashCode() {
23375
      return 0;
23376
    }
23377
 
23378
    public int compareTo(getMovementSerializedInventoryByScans_result other) {
23379
      if (!getClass().equals(other.getClass())) {
23380
        return getClass().getName().compareTo(other.getClass().getName());
23381
      }
23382
 
23383
      int lastComparison = 0;
23384
      getMovementSerializedInventoryByScans_result typedOther = (getMovementSerializedInventoryByScans_result)other;
23385
 
23386
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23387
      if (lastComparison != 0) {
23388
        return lastComparison;
23389
      }
23390
      if (isSetSuccess()) {
23391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23392
        if (lastComparison != 0) {
23393
          return lastComparison;
23394
        }
23395
      }
23396
      return 0;
23397
    }
23398
 
23399
    public _Fields fieldForId(int fieldId) {
23400
      return _Fields.findByThriftId(fieldId);
23401
    }
23402
 
23403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23404
      org.apache.thrift.protocol.TField field;
23405
      iprot.readStructBegin();
23406
      while (true)
23407
      {
23408
        field = iprot.readFieldBegin();
23409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23410
          break;
23411
        }
23412
        switch (field.id) {
23413
          case 0: // SUCCESS
23414
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23415
              {
7210 amar.kumar 23416
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
23417
                this.success = new ArrayList<InventoryMovement>(_list64.size);
23418
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
6880 amar.kumar 23419
                {
7210 amar.kumar 23420
                  InventoryMovement _elem66; // required
23421
                  _elem66 = new InventoryMovement();
23422
                  _elem66.read(iprot);
23423
                  this.success.add(_elem66);
6880 amar.kumar 23424
                }
23425
                iprot.readListEnd();
23426
              }
23427
            } else { 
23428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23429
            }
23430
            break;
23431
          default:
23432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23433
        }
23434
        iprot.readFieldEnd();
23435
      }
23436
      iprot.readStructEnd();
23437
      validate();
23438
    }
23439
 
23440
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23441
      oprot.writeStructBegin(STRUCT_DESC);
23442
 
23443
      if (this.isSetSuccess()) {
23444
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23445
        {
23446
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 23447
          for (InventoryMovement _iter67 : this.success)
6880 amar.kumar 23448
          {
7210 amar.kumar 23449
            _iter67.write(oprot);
6880 amar.kumar 23450
          }
23451
          oprot.writeListEnd();
23452
        }
23453
        oprot.writeFieldEnd();
23454
      }
23455
      oprot.writeFieldStop();
23456
      oprot.writeStructEnd();
23457
    }
23458
 
23459
    @Override
23460
    public String toString() {
23461
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_result(");
23462
      boolean first = true;
23463
 
23464
      sb.append("success:");
23465
      if (this.success == null) {
23466
        sb.append("null");
23467
      } else {
23468
        sb.append(this.success);
23469
      }
23470
      first = false;
23471
      sb.append(")");
23472
      return sb.toString();
23473
    }
23474
 
23475
    public void validate() throws org.apache.thrift.TException {
23476
      // check for required fields
23477
    }
23478
 
23479
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23480
      try {
23481
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23482
      } catch (org.apache.thrift.TException te) {
23483
        throw new java.io.IOException(te);
23484
      }
23485
    }
23486
 
23487
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23488
      try {
23489
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23490
      } catch (org.apache.thrift.TException te) {
23491
        throw new java.io.IOException(te);
23492
      }
23493
    }
23494
 
23495
  }
23496
 
7216 amar.kumar 23497
  public static class getCompleteMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_args, getCompleteMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
23498
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_args");
23499
 
23500
    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);
23501
    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);
23502
 
23503
    private long startDate; // required
23504
    private long endDate; // required
23505
 
23506
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23507
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23508
      START_DATE((short)1, "startDate"),
23509
      END_DATE((short)2, "endDate");
23510
 
23511
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23512
 
23513
      static {
23514
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23515
          byName.put(field.getFieldName(), field);
23516
        }
23517
      }
23518
 
23519
      /**
23520
       * Find the _Fields constant that matches fieldId, or null if its not found.
23521
       */
23522
      public static _Fields findByThriftId(int fieldId) {
23523
        switch(fieldId) {
23524
          case 1: // START_DATE
23525
            return START_DATE;
23526
          case 2: // END_DATE
23527
            return END_DATE;
23528
          default:
23529
            return null;
23530
        }
23531
      }
23532
 
23533
      /**
23534
       * Find the _Fields constant that matches fieldId, throwing an exception
23535
       * if it is not found.
23536
       */
23537
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23538
        _Fields fields = findByThriftId(fieldId);
23539
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23540
        return fields;
23541
      }
23542
 
23543
      /**
23544
       * Find the _Fields constant that matches name, or null if its not found.
23545
       */
23546
      public static _Fields findByName(String name) {
23547
        return byName.get(name);
23548
      }
23549
 
23550
      private final short _thriftId;
23551
      private final String _fieldName;
23552
 
23553
      _Fields(short thriftId, String fieldName) {
23554
        _thriftId = thriftId;
23555
        _fieldName = fieldName;
23556
      }
23557
 
23558
      public short getThriftFieldId() {
23559
        return _thriftId;
23560
      }
23561
 
23562
      public String getFieldName() {
23563
        return _fieldName;
23564
      }
23565
    }
23566
 
23567
    // isset id assignments
23568
    private static final int __STARTDATE_ISSET_ID = 0;
23569
    private static final int __ENDDATE_ISSET_ID = 1;
23570
    private BitSet __isset_bit_vector = new BitSet(2);
23571
 
23572
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23573
    static {
23574
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23575
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23576
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23577
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23578
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23579
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23580
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_args.class, metaDataMap);
23581
    }
23582
 
23583
    public getCompleteMovementSerializedInventoryByScans_args() {
23584
    }
23585
 
23586
    public getCompleteMovementSerializedInventoryByScans_args(
23587
      long startDate,
23588
      long endDate)
23589
    {
23590
      this();
23591
      this.startDate = startDate;
23592
      setStartDateIsSet(true);
23593
      this.endDate = endDate;
23594
      setEndDateIsSet(true);
23595
    }
23596
 
23597
    /**
23598
     * Performs a deep copy on <i>other</i>.
23599
     */
23600
    public getCompleteMovementSerializedInventoryByScans_args(getCompleteMovementSerializedInventoryByScans_args other) {
23601
      __isset_bit_vector.clear();
23602
      __isset_bit_vector.or(other.__isset_bit_vector);
23603
      this.startDate = other.startDate;
23604
      this.endDate = other.endDate;
23605
    }
23606
 
23607
    public getCompleteMovementSerializedInventoryByScans_args deepCopy() {
23608
      return new getCompleteMovementSerializedInventoryByScans_args(this);
23609
    }
23610
 
23611
    @Override
23612
    public void clear() {
23613
      setStartDateIsSet(false);
23614
      this.startDate = 0;
23615
      setEndDateIsSet(false);
23616
      this.endDate = 0;
23617
    }
23618
 
23619
    public long getStartDate() {
23620
      return this.startDate;
23621
    }
23622
 
23623
    public void setStartDate(long startDate) {
23624
      this.startDate = startDate;
23625
      setStartDateIsSet(true);
23626
    }
23627
 
23628
    public void unsetStartDate() {
23629
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
23630
    }
23631
 
23632
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
23633
    public boolean isSetStartDate() {
23634
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
23635
    }
23636
 
23637
    public void setStartDateIsSet(boolean value) {
23638
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
23639
    }
23640
 
23641
    public long getEndDate() {
23642
      return this.endDate;
23643
    }
23644
 
23645
    public void setEndDate(long endDate) {
23646
      this.endDate = endDate;
23647
      setEndDateIsSet(true);
23648
    }
23649
 
23650
    public void unsetEndDate() {
23651
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
23652
    }
23653
 
23654
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
23655
    public boolean isSetEndDate() {
23656
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
23657
    }
23658
 
23659
    public void setEndDateIsSet(boolean value) {
23660
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
23661
    }
23662
 
23663
    public void setFieldValue(_Fields field, Object value) {
23664
      switch (field) {
23665
      case START_DATE:
23666
        if (value == null) {
23667
          unsetStartDate();
23668
        } else {
23669
          setStartDate((Long)value);
23670
        }
23671
        break;
23672
 
23673
      case END_DATE:
23674
        if (value == null) {
23675
          unsetEndDate();
23676
        } else {
23677
          setEndDate((Long)value);
23678
        }
23679
        break;
23680
 
23681
      }
23682
    }
23683
 
23684
    public Object getFieldValue(_Fields field) {
23685
      switch (field) {
23686
      case START_DATE:
23687
        return Long.valueOf(getStartDate());
23688
 
23689
      case END_DATE:
23690
        return Long.valueOf(getEndDate());
23691
 
23692
      }
23693
      throw new IllegalStateException();
23694
    }
23695
 
23696
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23697
    public boolean isSet(_Fields field) {
23698
      if (field == null) {
23699
        throw new IllegalArgumentException();
23700
      }
23701
 
23702
      switch (field) {
23703
      case START_DATE:
23704
        return isSetStartDate();
23705
      case END_DATE:
23706
        return isSetEndDate();
23707
      }
23708
      throw new IllegalStateException();
23709
    }
23710
 
23711
    @Override
23712
    public boolean equals(Object that) {
23713
      if (that == null)
23714
        return false;
23715
      if (that instanceof getCompleteMovementSerializedInventoryByScans_args)
23716
        return this.equals((getCompleteMovementSerializedInventoryByScans_args)that);
23717
      return false;
23718
    }
23719
 
23720
    public boolean equals(getCompleteMovementSerializedInventoryByScans_args that) {
23721
      if (that == null)
23722
        return false;
23723
 
23724
      boolean this_present_startDate = true;
23725
      boolean that_present_startDate = true;
23726
      if (this_present_startDate || that_present_startDate) {
23727
        if (!(this_present_startDate && that_present_startDate))
23728
          return false;
23729
        if (this.startDate != that.startDate)
23730
          return false;
23731
      }
23732
 
23733
      boolean this_present_endDate = true;
23734
      boolean that_present_endDate = true;
23735
      if (this_present_endDate || that_present_endDate) {
23736
        if (!(this_present_endDate && that_present_endDate))
23737
          return false;
23738
        if (this.endDate != that.endDate)
23739
          return false;
23740
      }
23741
 
23742
      return true;
23743
    }
23744
 
23745
    @Override
23746
    public int hashCode() {
23747
      return 0;
23748
    }
23749
 
23750
    public int compareTo(getCompleteMovementSerializedInventoryByScans_args other) {
23751
      if (!getClass().equals(other.getClass())) {
23752
        return getClass().getName().compareTo(other.getClass().getName());
23753
      }
23754
 
23755
      int lastComparison = 0;
23756
      getCompleteMovementSerializedInventoryByScans_args typedOther = (getCompleteMovementSerializedInventoryByScans_args)other;
23757
 
23758
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
23759
      if (lastComparison != 0) {
23760
        return lastComparison;
23761
      }
23762
      if (isSetStartDate()) {
23763
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
23764
        if (lastComparison != 0) {
23765
          return lastComparison;
23766
        }
23767
      }
23768
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
23769
      if (lastComparison != 0) {
23770
        return lastComparison;
23771
      }
23772
      if (isSetEndDate()) {
23773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
23774
        if (lastComparison != 0) {
23775
          return lastComparison;
23776
        }
23777
      }
23778
      return 0;
23779
    }
23780
 
23781
    public _Fields fieldForId(int fieldId) {
23782
      return _Fields.findByThriftId(fieldId);
23783
    }
23784
 
23785
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23786
      org.apache.thrift.protocol.TField field;
23787
      iprot.readStructBegin();
23788
      while (true)
23789
      {
23790
        field = iprot.readFieldBegin();
23791
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23792
          break;
23793
        }
23794
        switch (field.id) {
23795
          case 1: // START_DATE
23796
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23797
              this.startDate = iprot.readI64();
23798
              setStartDateIsSet(true);
23799
            } else { 
23800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23801
            }
23802
            break;
23803
          case 2: // END_DATE
23804
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23805
              this.endDate = iprot.readI64();
23806
              setEndDateIsSet(true);
23807
            } else { 
23808
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23809
            }
23810
            break;
23811
          default:
23812
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23813
        }
23814
        iprot.readFieldEnd();
23815
      }
23816
      iprot.readStructEnd();
23817
      validate();
23818
    }
23819
 
23820
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23821
      validate();
23822
 
23823
      oprot.writeStructBegin(STRUCT_DESC);
23824
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
23825
      oprot.writeI64(this.startDate);
23826
      oprot.writeFieldEnd();
23827
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
23828
      oprot.writeI64(this.endDate);
23829
      oprot.writeFieldEnd();
23830
      oprot.writeFieldStop();
23831
      oprot.writeStructEnd();
23832
    }
23833
 
23834
    @Override
23835
    public String toString() {
23836
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_args(");
23837
      boolean first = true;
23838
 
23839
      sb.append("startDate:");
23840
      sb.append(this.startDate);
23841
      first = false;
23842
      if (!first) sb.append(", ");
23843
      sb.append("endDate:");
23844
      sb.append(this.endDate);
23845
      first = false;
23846
      sb.append(")");
23847
      return sb.toString();
23848
    }
23849
 
23850
    public void validate() throws org.apache.thrift.TException {
23851
      // check for required fields
23852
    }
23853
 
23854
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23855
      try {
23856
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23857
      } catch (org.apache.thrift.TException te) {
23858
        throw new java.io.IOException(te);
23859
      }
23860
    }
23861
 
23862
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23863
      try {
23864
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23865
        __isset_bit_vector = new BitSet(1);
23866
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23867
      } catch (org.apache.thrift.TException te) {
23868
        throw new java.io.IOException(te);
23869
      }
23870
    }
23871
 
23872
  }
23873
 
23874
  public static class getCompleteMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_result, getCompleteMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
23875
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_result");
23876
 
23877
    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);
23878
 
23879
    private List<InventoryMovement> success; // required
23880
 
23881
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23882
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23883
      SUCCESS((short)0, "success");
23884
 
23885
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23886
 
23887
      static {
23888
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23889
          byName.put(field.getFieldName(), field);
23890
        }
23891
      }
23892
 
23893
      /**
23894
       * Find the _Fields constant that matches fieldId, or null if its not found.
23895
       */
23896
      public static _Fields findByThriftId(int fieldId) {
23897
        switch(fieldId) {
23898
          case 0: // SUCCESS
23899
            return SUCCESS;
23900
          default:
23901
            return null;
23902
        }
23903
      }
23904
 
23905
      /**
23906
       * Find the _Fields constant that matches fieldId, throwing an exception
23907
       * if it is not found.
23908
       */
23909
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23910
        _Fields fields = findByThriftId(fieldId);
23911
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23912
        return fields;
23913
      }
23914
 
23915
      /**
23916
       * Find the _Fields constant that matches name, or null if its not found.
23917
       */
23918
      public static _Fields findByName(String name) {
23919
        return byName.get(name);
23920
      }
23921
 
23922
      private final short _thriftId;
23923
      private final String _fieldName;
23924
 
23925
      _Fields(short thriftId, String fieldName) {
23926
        _thriftId = thriftId;
23927
        _fieldName = fieldName;
23928
      }
23929
 
23930
      public short getThriftFieldId() {
23931
        return _thriftId;
23932
      }
23933
 
23934
      public String getFieldName() {
23935
        return _fieldName;
23936
      }
23937
    }
23938
 
23939
    // isset id assignments
23940
 
23941
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23942
    static {
23943
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23944
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23945
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23946
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
23947
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23948
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_result.class, metaDataMap);
23949
    }
23950
 
23951
    public getCompleteMovementSerializedInventoryByScans_result() {
23952
    }
23953
 
23954
    public getCompleteMovementSerializedInventoryByScans_result(
23955
      List<InventoryMovement> success)
23956
    {
23957
      this();
23958
      this.success = success;
23959
    }
23960
 
23961
    /**
23962
     * Performs a deep copy on <i>other</i>.
23963
     */
23964
    public getCompleteMovementSerializedInventoryByScans_result(getCompleteMovementSerializedInventoryByScans_result other) {
23965
      if (other.isSetSuccess()) {
23966
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
23967
        for (InventoryMovement other_element : other.success) {
23968
          __this__success.add(new InventoryMovement(other_element));
23969
        }
23970
        this.success = __this__success;
23971
      }
23972
    }
23973
 
23974
    public getCompleteMovementSerializedInventoryByScans_result deepCopy() {
23975
      return new getCompleteMovementSerializedInventoryByScans_result(this);
23976
    }
23977
 
23978
    @Override
23979
    public void clear() {
23980
      this.success = null;
23981
    }
23982
 
23983
    public int getSuccessSize() {
23984
      return (this.success == null) ? 0 : this.success.size();
23985
    }
23986
 
23987
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
23988
      return (this.success == null) ? null : this.success.iterator();
23989
    }
23990
 
23991
    public void addToSuccess(InventoryMovement elem) {
23992
      if (this.success == null) {
23993
        this.success = new ArrayList<InventoryMovement>();
23994
      }
23995
      this.success.add(elem);
23996
    }
23997
 
23998
    public List<InventoryMovement> getSuccess() {
23999
      return this.success;
24000
    }
24001
 
24002
    public void setSuccess(List<InventoryMovement> success) {
24003
      this.success = success;
24004
    }
24005
 
24006
    public void unsetSuccess() {
24007
      this.success = null;
24008
    }
24009
 
24010
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24011
    public boolean isSetSuccess() {
24012
      return this.success != null;
24013
    }
24014
 
24015
    public void setSuccessIsSet(boolean value) {
24016
      if (!value) {
24017
        this.success = null;
24018
      }
24019
    }
24020
 
24021
    public void setFieldValue(_Fields field, Object value) {
24022
      switch (field) {
24023
      case SUCCESS:
24024
        if (value == null) {
24025
          unsetSuccess();
24026
        } else {
24027
          setSuccess((List<InventoryMovement>)value);
24028
        }
24029
        break;
24030
 
24031
      }
24032
    }
24033
 
24034
    public Object getFieldValue(_Fields field) {
24035
      switch (field) {
24036
      case SUCCESS:
24037
        return getSuccess();
24038
 
24039
      }
24040
      throw new IllegalStateException();
24041
    }
24042
 
24043
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24044
    public boolean isSet(_Fields field) {
24045
      if (field == null) {
24046
        throw new IllegalArgumentException();
24047
      }
24048
 
24049
      switch (field) {
24050
      case SUCCESS:
24051
        return isSetSuccess();
24052
      }
24053
      throw new IllegalStateException();
24054
    }
24055
 
24056
    @Override
24057
    public boolean equals(Object that) {
24058
      if (that == null)
24059
        return false;
24060
      if (that instanceof getCompleteMovementSerializedInventoryByScans_result)
24061
        return this.equals((getCompleteMovementSerializedInventoryByScans_result)that);
24062
      return false;
24063
    }
24064
 
24065
    public boolean equals(getCompleteMovementSerializedInventoryByScans_result that) {
24066
      if (that == null)
24067
        return false;
24068
 
24069
      boolean this_present_success = true && this.isSetSuccess();
24070
      boolean that_present_success = true && that.isSetSuccess();
24071
      if (this_present_success || that_present_success) {
24072
        if (!(this_present_success && that_present_success))
24073
          return false;
24074
        if (!this.success.equals(that.success))
24075
          return false;
24076
      }
24077
 
24078
      return true;
24079
    }
24080
 
24081
    @Override
24082
    public int hashCode() {
24083
      return 0;
24084
    }
24085
 
24086
    public int compareTo(getCompleteMovementSerializedInventoryByScans_result other) {
24087
      if (!getClass().equals(other.getClass())) {
24088
        return getClass().getName().compareTo(other.getClass().getName());
24089
      }
24090
 
24091
      int lastComparison = 0;
24092
      getCompleteMovementSerializedInventoryByScans_result typedOther = (getCompleteMovementSerializedInventoryByScans_result)other;
24093
 
24094
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24095
      if (lastComparison != 0) {
24096
        return lastComparison;
24097
      }
24098
      if (isSetSuccess()) {
24099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24100
        if (lastComparison != 0) {
24101
          return lastComparison;
24102
        }
24103
      }
24104
      return 0;
24105
    }
24106
 
24107
    public _Fields fieldForId(int fieldId) {
24108
      return _Fields.findByThriftId(fieldId);
24109
    }
24110
 
24111
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24112
      org.apache.thrift.protocol.TField field;
24113
      iprot.readStructBegin();
24114
      while (true)
24115
      {
24116
        field = iprot.readFieldBegin();
24117
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24118
          break;
24119
        }
24120
        switch (field.id) {
24121
          case 0: // SUCCESS
24122
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24123
              {
24124
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
24125
                this.success = new ArrayList<InventoryMovement>(_list68.size);
24126
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
24127
                {
24128
                  InventoryMovement _elem70; // required
24129
                  _elem70 = new InventoryMovement();
24130
                  _elem70.read(iprot);
24131
                  this.success.add(_elem70);
24132
                }
24133
                iprot.readListEnd();
24134
              }
24135
            } else { 
24136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24137
            }
24138
            break;
24139
          default:
24140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24141
        }
24142
        iprot.readFieldEnd();
24143
      }
24144
      iprot.readStructEnd();
24145
      validate();
24146
    }
24147
 
24148
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24149
      oprot.writeStructBegin(STRUCT_DESC);
24150
 
24151
      if (this.isSetSuccess()) {
24152
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24153
        {
24154
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24155
          for (InventoryMovement _iter71 : this.success)
24156
          {
24157
            _iter71.write(oprot);
24158
          }
24159
          oprot.writeListEnd();
24160
        }
24161
        oprot.writeFieldEnd();
24162
      }
24163
      oprot.writeFieldStop();
24164
      oprot.writeStructEnd();
24165
    }
24166
 
24167
    @Override
24168
    public String toString() {
24169
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_result(");
24170
      boolean first = true;
24171
 
24172
      sb.append("success:");
24173
      if (this.success == null) {
24174
        sb.append("null");
24175
      } else {
24176
        sb.append(this.success);
24177
      }
24178
      first = false;
24179
      sb.append(")");
24180
      return sb.toString();
24181
    }
24182
 
24183
    public void validate() throws org.apache.thrift.TException {
24184
      // check for required fields
24185
    }
24186
 
24187
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24188
      try {
24189
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24190
      } catch (org.apache.thrift.TException te) {
24191
        throw new java.io.IOException(te);
24192
      }
24193
    }
24194
 
24195
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24196
      try {
24197
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24198
      } catch (org.apache.thrift.TException te) {
24199
        throw new java.io.IOException(te);
24200
      }
24201
    }
24202
 
24203
  }
24204
 
24205
  public static class getCompleteMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_args, getCompleteMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
24206
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_args");
24207
 
24208
    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);
24209
    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);
24210
 
24211
    private long startDate; // required
24212
    private long endDate; // required
24213
 
24214
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24215
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24216
      START_DATE((short)1, "startDate"),
24217
      END_DATE((short)2, "endDate");
24218
 
24219
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24220
 
24221
      static {
24222
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24223
          byName.put(field.getFieldName(), field);
24224
        }
24225
      }
24226
 
24227
      /**
24228
       * Find the _Fields constant that matches fieldId, or null if its not found.
24229
       */
24230
      public static _Fields findByThriftId(int fieldId) {
24231
        switch(fieldId) {
24232
          case 1: // START_DATE
24233
            return START_DATE;
24234
          case 2: // END_DATE
24235
            return END_DATE;
24236
          default:
24237
            return null;
24238
        }
24239
      }
24240
 
24241
      /**
24242
       * Find the _Fields constant that matches fieldId, throwing an exception
24243
       * if it is not found.
24244
       */
24245
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24246
        _Fields fields = findByThriftId(fieldId);
24247
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24248
        return fields;
24249
      }
24250
 
24251
      /**
24252
       * Find the _Fields constant that matches name, or null if its not found.
24253
       */
24254
      public static _Fields findByName(String name) {
24255
        return byName.get(name);
24256
      }
24257
 
24258
      private final short _thriftId;
24259
      private final String _fieldName;
24260
 
24261
      _Fields(short thriftId, String fieldName) {
24262
        _thriftId = thriftId;
24263
        _fieldName = fieldName;
24264
      }
24265
 
24266
      public short getThriftFieldId() {
24267
        return _thriftId;
24268
      }
24269
 
24270
      public String getFieldName() {
24271
        return _fieldName;
24272
      }
24273
    }
24274
 
24275
    // isset id assignments
24276
    private static final int __STARTDATE_ISSET_ID = 0;
24277
    private static final int __ENDDATE_ISSET_ID = 1;
24278
    private BitSet __isset_bit_vector = new BitSet(2);
24279
 
24280
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24281
    static {
24282
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24283
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24284
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24285
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24286
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24287
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24288
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_args.class, metaDataMap);
24289
    }
24290
 
24291
    public getCompleteMovementNonSerializedInventoryByScans_args() {
24292
    }
24293
 
24294
    public getCompleteMovementNonSerializedInventoryByScans_args(
24295
      long startDate,
24296
      long endDate)
24297
    {
24298
      this();
24299
      this.startDate = startDate;
24300
      setStartDateIsSet(true);
24301
      this.endDate = endDate;
24302
      setEndDateIsSet(true);
24303
    }
24304
 
24305
    /**
24306
     * Performs a deep copy on <i>other</i>.
24307
     */
24308
    public getCompleteMovementNonSerializedInventoryByScans_args(getCompleteMovementNonSerializedInventoryByScans_args other) {
24309
      __isset_bit_vector.clear();
24310
      __isset_bit_vector.or(other.__isset_bit_vector);
24311
      this.startDate = other.startDate;
24312
      this.endDate = other.endDate;
24313
    }
24314
 
24315
    public getCompleteMovementNonSerializedInventoryByScans_args deepCopy() {
24316
      return new getCompleteMovementNonSerializedInventoryByScans_args(this);
24317
    }
24318
 
24319
    @Override
24320
    public void clear() {
24321
      setStartDateIsSet(false);
24322
      this.startDate = 0;
24323
      setEndDateIsSet(false);
24324
      this.endDate = 0;
24325
    }
24326
 
24327
    public long getStartDate() {
24328
      return this.startDate;
24329
    }
24330
 
24331
    public void setStartDate(long startDate) {
24332
      this.startDate = startDate;
24333
      setStartDateIsSet(true);
24334
    }
24335
 
24336
    public void unsetStartDate() {
24337
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
24338
    }
24339
 
24340
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
24341
    public boolean isSetStartDate() {
24342
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
24343
    }
24344
 
24345
    public void setStartDateIsSet(boolean value) {
24346
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
24347
    }
24348
 
24349
    public long getEndDate() {
24350
      return this.endDate;
24351
    }
24352
 
24353
    public void setEndDate(long endDate) {
24354
      this.endDate = endDate;
24355
      setEndDateIsSet(true);
24356
    }
24357
 
24358
    public void unsetEndDate() {
24359
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
24360
    }
24361
 
24362
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
24363
    public boolean isSetEndDate() {
24364
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
24365
    }
24366
 
24367
    public void setEndDateIsSet(boolean value) {
24368
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
24369
    }
24370
 
24371
    public void setFieldValue(_Fields field, Object value) {
24372
      switch (field) {
24373
      case START_DATE:
24374
        if (value == null) {
24375
          unsetStartDate();
24376
        } else {
24377
          setStartDate((Long)value);
24378
        }
24379
        break;
24380
 
24381
      case END_DATE:
24382
        if (value == null) {
24383
          unsetEndDate();
24384
        } else {
24385
          setEndDate((Long)value);
24386
        }
24387
        break;
24388
 
24389
      }
24390
    }
24391
 
24392
    public Object getFieldValue(_Fields field) {
24393
      switch (field) {
24394
      case START_DATE:
24395
        return Long.valueOf(getStartDate());
24396
 
24397
      case END_DATE:
24398
        return Long.valueOf(getEndDate());
24399
 
24400
      }
24401
      throw new IllegalStateException();
24402
    }
24403
 
24404
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24405
    public boolean isSet(_Fields field) {
24406
      if (field == null) {
24407
        throw new IllegalArgumentException();
24408
      }
24409
 
24410
      switch (field) {
24411
      case START_DATE:
24412
        return isSetStartDate();
24413
      case END_DATE:
24414
        return isSetEndDate();
24415
      }
24416
      throw new IllegalStateException();
24417
    }
24418
 
24419
    @Override
24420
    public boolean equals(Object that) {
24421
      if (that == null)
24422
        return false;
24423
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_args)
24424
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_args)that);
24425
      return false;
24426
    }
24427
 
24428
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_args that) {
24429
      if (that == null)
24430
        return false;
24431
 
24432
      boolean this_present_startDate = true;
24433
      boolean that_present_startDate = true;
24434
      if (this_present_startDate || that_present_startDate) {
24435
        if (!(this_present_startDate && that_present_startDate))
24436
          return false;
24437
        if (this.startDate != that.startDate)
24438
          return false;
24439
      }
24440
 
24441
      boolean this_present_endDate = true;
24442
      boolean that_present_endDate = true;
24443
      if (this_present_endDate || that_present_endDate) {
24444
        if (!(this_present_endDate && that_present_endDate))
24445
          return false;
24446
        if (this.endDate != that.endDate)
24447
          return false;
24448
      }
24449
 
24450
      return true;
24451
    }
24452
 
24453
    @Override
24454
    public int hashCode() {
24455
      return 0;
24456
    }
24457
 
24458
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_args other) {
24459
      if (!getClass().equals(other.getClass())) {
24460
        return getClass().getName().compareTo(other.getClass().getName());
24461
      }
24462
 
24463
      int lastComparison = 0;
24464
      getCompleteMovementNonSerializedInventoryByScans_args typedOther = (getCompleteMovementNonSerializedInventoryByScans_args)other;
24465
 
24466
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
24467
      if (lastComparison != 0) {
24468
        return lastComparison;
24469
      }
24470
      if (isSetStartDate()) {
24471
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
24472
        if (lastComparison != 0) {
24473
          return lastComparison;
24474
        }
24475
      }
24476
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
24477
      if (lastComparison != 0) {
24478
        return lastComparison;
24479
      }
24480
      if (isSetEndDate()) {
24481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
24482
        if (lastComparison != 0) {
24483
          return lastComparison;
24484
        }
24485
      }
24486
      return 0;
24487
    }
24488
 
24489
    public _Fields fieldForId(int fieldId) {
24490
      return _Fields.findByThriftId(fieldId);
24491
    }
24492
 
24493
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24494
      org.apache.thrift.protocol.TField field;
24495
      iprot.readStructBegin();
24496
      while (true)
24497
      {
24498
        field = iprot.readFieldBegin();
24499
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24500
          break;
24501
        }
24502
        switch (field.id) {
24503
          case 1: // START_DATE
24504
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24505
              this.startDate = iprot.readI64();
24506
              setStartDateIsSet(true);
24507
            } else { 
24508
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24509
            }
24510
            break;
24511
          case 2: // END_DATE
24512
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24513
              this.endDate = iprot.readI64();
24514
              setEndDateIsSet(true);
24515
            } else { 
24516
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24517
            }
24518
            break;
24519
          default:
24520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24521
        }
24522
        iprot.readFieldEnd();
24523
      }
24524
      iprot.readStructEnd();
24525
      validate();
24526
    }
24527
 
24528
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24529
      validate();
24530
 
24531
      oprot.writeStructBegin(STRUCT_DESC);
24532
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
24533
      oprot.writeI64(this.startDate);
24534
      oprot.writeFieldEnd();
24535
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
24536
      oprot.writeI64(this.endDate);
24537
      oprot.writeFieldEnd();
24538
      oprot.writeFieldStop();
24539
      oprot.writeStructEnd();
24540
    }
24541
 
24542
    @Override
24543
    public String toString() {
24544
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_args(");
24545
      boolean first = true;
24546
 
24547
      sb.append("startDate:");
24548
      sb.append(this.startDate);
24549
      first = false;
24550
      if (!first) sb.append(", ");
24551
      sb.append("endDate:");
24552
      sb.append(this.endDate);
24553
      first = false;
24554
      sb.append(")");
24555
      return sb.toString();
24556
    }
24557
 
24558
    public void validate() throws org.apache.thrift.TException {
24559
      // check for required fields
24560
    }
24561
 
24562
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24563
      try {
24564
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24565
      } catch (org.apache.thrift.TException te) {
24566
        throw new java.io.IOException(te);
24567
      }
24568
    }
24569
 
24570
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24571
      try {
24572
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24573
        __isset_bit_vector = new BitSet(1);
24574
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24575
      } catch (org.apache.thrift.TException te) {
24576
        throw new java.io.IOException(te);
24577
      }
24578
    }
24579
 
24580
  }
24581
 
24582
  public static class getCompleteMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_result, getCompleteMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
24583
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_result");
24584
 
24585
    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);
24586
 
24587
    private List<InventoryMovement> success; // required
24588
 
24589
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24590
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24591
      SUCCESS((short)0, "success");
24592
 
24593
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24594
 
24595
      static {
24596
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24597
          byName.put(field.getFieldName(), field);
24598
        }
24599
      }
24600
 
24601
      /**
24602
       * Find the _Fields constant that matches fieldId, or null if its not found.
24603
       */
24604
      public static _Fields findByThriftId(int fieldId) {
24605
        switch(fieldId) {
24606
          case 0: // SUCCESS
24607
            return SUCCESS;
24608
          default:
24609
            return null;
24610
        }
24611
      }
24612
 
24613
      /**
24614
       * Find the _Fields constant that matches fieldId, throwing an exception
24615
       * if it is not found.
24616
       */
24617
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24618
        _Fields fields = findByThriftId(fieldId);
24619
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24620
        return fields;
24621
      }
24622
 
24623
      /**
24624
       * Find the _Fields constant that matches name, or null if its not found.
24625
       */
24626
      public static _Fields findByName(String name) {
24627
        return byName.get(name);
24628
      }
24629
 
24630
      private final short _thriftId;
24631
      private final String _fieldName;
24632
 
24633
      _Fields(short thriftId, String fieldName) {
24634
        _thriftId = thriftId;
24635
        _fieldName = fieldName;
24636
      }
24637
 
24638
      public short getThriftFieldId() {
24639
        return _thriftId;
24640
      }
24641
 
24642
      public String getFieldName() {
24643
        return _fieldName;
24644
      }
24645
    }
24646
 
24647
    // isset id assignments
24648
 
24649
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24650
    static {
24651
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24652
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24653
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24654
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
24655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_result.class, metaDataMap);
24657
    }
24658
 
24659
    public getCompleteMovementNonSerializedInventoryByScans_result() {
24660
    }
24661
 
24662
    public getCompleteMovementNonSerializedInventoryByScans_result(
24663
      List<InventoryMovement> success)
24664
    {
24665
      this();
24666
      this.success = success;
24667
    }
24668
 
24669
    /**
24670
     * Performs a deep copy on <i>other</i>.
24671
     */
24672
    public getCompleteMovementNonSerializedInventoryByScans_result(getCompleteMovementNonSerializedInventoryByScans_result other) {
24673
      if (other.isSetSuccess()) {
24674
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
24675
        for (InventoryMovement other_element : other.success) {
24676
          __this__success.add(new InventoryMovement(other_element));
24677
        }
24678
        this.success = __this__success;
24679
      }
24680
    }
24681
 
24682
    public getCompleteMovementNonSerializedInventoryByScans_result deepCopy() {
24683
      return new getCompleteMovementNonSerializedInventoryByScans_result(this);
24684
    }
24685
 
24686
    @Override
24687
    public void clear() {
24688
      this.success = null;
24689
    }
24690
 
24691
    public int getSuccessSize() {
24692
      return (this.success == null) ? 0 : this.success.size();
24693
    }
24694
 
24695
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
24696
      return (this.success == null) ? null : this.success.iterator();
24697
    }
24698
 
24699
    public void addToSuccess(InventoryMovement elem) {
24700
      if (this.success == null) {
24701
        this.success = new ArrayList<InventoryMovement>();
24702
      }
24703
      this.success.add(elem);
24704
    }
24705
 
24706
    public List<InventoryMovement> getSuccess() {
24707
      return this.success;
24708
    }
24709
 
24710
    public void setSuccess(List<InventoryMovement> success) {
24711
      this.success = success;
24712
    }
24713
 
24714
    public void unsetSuccess() {
24715
      this.success = null;
24716
    }
24717
 
24718
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24719
    public boolean isSetSuccess() {
24720
      return this.success != null;
24721
    }
24722
 
24723
    public void setSuccessIsSet(boolean value) {
24724
      if (!value) {
24725
        this.success = null;
24726
      }
24727
    }
24728
 
24729
    public void setFieldValue(_Fields field, Object value) {
24730
      switch (field) {
24731
      case SUCCESS:
24732
        if (value == null) {
24733
          unsetSuccess();
24734
        } else {
24735
          setSuccess((List<InventoryMovement>)value);
24736
        }
24737
        break;
24738
 
24739
      }
24740
    }
24741
 
24742
    public Object getFieldValue(_Fields field) {
24743
      switch (field) {
24744
      case SUCCESS:
24745
        return getSuccess();
24746
 
24747
      }
24748
      throw new IllegalStateException();
24749
    }
24750
 
24751
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24752
    public boolean isSet(_Fields field) {
24753
      if (field == null) {
24754
        throw new IllegalArgumentException();
24755
      }
24756
 
24757
      switch (field) {
24758
      case SUCCESS:
24759
        return isSetSuccess();
24760
      }
24761
      throw new IllegalStateException();
24762
    }
24763
 
24764
    @Override
24765
    public boolean equals(Object that) {
24766
      if (that == null)
24767
        return false;
24768
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_result)
24769
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_result)that);
24770
      return false;
24771
    }
24772
 
24773
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_result that) {
24774
      if (that == null)
24775
        return false;
24776
 
24777
      boolean this_present_success = true && this.isSetSuccess();
24778
      boolean that_present_success = true && that.isSetSuccess();
24779
      if (this_present_success || that_present_success) {
24780
        if (!(this_present_success && that_present_success))
24781
          return false;
24782
        if (!this.success.equals(that.success))
24783
          return false;
24784
      }
24785
 
24786
      return true;
24787
    }
24788
 
24789
    @Override
24790
    public int hashCode() {
24791
      return 0;
24792
    }
24793
 
24794
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_result other) {
24795
      if (!getClass().equals(other.getClass())) {
24796
        return getClass().getName().compareTo(other.getClass().getName());
24797
      }
24798
 
24799
      int lastComparison = 0;
24800
      getCompleteMovementNonSerializedInventoryByScans_result typedOther = (getCompleteMovementNonSerializedInventoryByScans_result)other;
24801
 
24802
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24803
      if (lastComparison != 0) {
24804
        return lastComparison;
24805
      }
24806
      if (isSetSuccess()) {
24807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24808
        if (lastComparison != 0) {
24809
          return lastComparison;
24810
        }
24811
      }
24812
      return 0;
24813
    }
24814
 
24815
    public _Fields fieldForId(int fieldId) {
24816
      return _Fields.findByThriftId(fieldId);
24817
    }
24818
 
24819
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24820
      org.apache.thrift.protocol.TField field;
24821
      iprot.readStructBegin();
24822
      while (true)
24823
      {
24824
        field = iprot.readFieldBegin();
24825
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24826
          break;
24827
        }
24828
        switch (field.id) {
24829
          case 0: // SUCCESS
24830
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24831
              {
24832
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
24833
                this.success = new ArrayList<InventoryMovement>(_list72.size);
24834
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
24835
                {
24836
                  InventoryMovement _elem74; // required
24837
                  _elem74 = new InventoryMovement();
24838
                  _elem74.read(iprot);
24839
                  this.success.add(_elem74);
24840
                }
24841
                iprot.readListEnd();
24842
              }
24843
            } else { 
24844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24845
            }
24846
            break;
24847
          default:
24848
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24849
        }
24850
        iprot.readFieldEnd();
24851
      }
24852
      iprot.readStructEnd();
24853
      validate();
24854
    }
24855
 
24856
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24857
      oprot.writeStructBegin(STRUCT_DESC);
24858
 
24859
      if (this.isSetSuccess()) {
24860
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24861
        {
24862
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24863
          for (InventoryMovement _iter75 : this.success)
24864
          {
24865
            _iter75.write(oprot);
24866
          }
24867
          oprot.writeListEnd();
24868
        }
24869
        oprot.writeFieldEnd();
24870
      }
24871
      oprot.writeFieldStop();
24872
      oprot.writeStructEnd();
24873
    }
24874
 
24875
    @Override
24876
    public String toString() {
24877
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_result(");
24878
      boolean first = true;
24879
 
24880
      sb.append("success:");
24881
      if (this.success == null) {
24882
        sb.append("null");
24883
      } else {
24884
        sb.append(this.success);
24885
      }
24886
      first = false;
24887
      sb.append(")");
24888
      return sb.toString();
24889
    }
24890
 
24891
    public void validate() throws org.apache.thrift.TException {
24892
      // check for required fields
24893
    }
24894
 
24895
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24896
      try {
24897
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24898
      } catch (org.apache.thrift.TException te) {
24899
        throw new java.io.IOException(te);
24900
      }
24901
    }
24902
 
24903
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24904
      try {
24905
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24906
      } catch (org.apache.thrift.TException te) {
24907
        throw new java.io.IOException(te);
24908
      }
24909
    }
24910
 
24911
  }
24912
 
7190 amar.kumar 24913
  public static class scanfreebie_args implements org.apache.thrift.TBase<scanfreebie_args, scanfreebie_args._Fields>, java.io.Serializable, Cloneable   {
24914
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_args");
24915
 
24916
    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);
24917
    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);
24918
    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);
24919
    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);
24920
 
24921
    private long orderId; // required
24922
    private long freebieItemId; // required
24923
    private long freebieWarehouseId; // required
24924
    private ScanType scanType; // required
24925
 
24926
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24927
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24928
      ORDER_ID((short)1, "orderId"),
24929
      FREEBIE_ITEM_ID((short)2, "freebieItemId"),
24930
      FREEBIE_WAREHOUSE_ID((short)3, "freebieWarehouseId"),
24931
      /**
24932
       * 
24933
       * @see ScanType
24934
       */
24935
      SCAN_TYPE((short)4, "scanType");
24936
 
24937
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24938
 
24939
      static {
24940
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24941
          byName.put(field.getFieldName(), field);
24942
        }
24943
      }
24944
 
24945
      /**
24946
       * Find the _Fields constant that matches fieldId, or null if its not found.
24947
       */
24948
      public static _Fields findByThriftId(int fieldId) {
24949
        switch(fieldId) {
24950
          case 1: // ORDER_ID
24951
            return ORDER_ID;
24952
          case 2: // FREEBIE_ITEM_ID
24953
            return FREEBIE_ITEM_ID;
24954
          case 3: // FREEBIE_WAREHOUSE_ID
24955
            return FREEBIE_WAREHOUSE_ID;
24956
          case 4: // SCAN_TYPE
24957
            return SCAN_TYPE;
24958
          default:
24959
            return null;
24960
        }
24961
      }
24962
 
24963
      /**
24964
       * Find the _Fields constant that matches fieldId, throwing an exception
24965
       * if it is not found.
24966
       */
24967
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24968
        _Fields fields = findByThriftId(fieldId);
24969
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24970
        return fields;
24971
      }
24972
 
24973
      /**
24974
       * Find the _Fields constant that matches name, or null if its not found.
24975
       */
24976
      public static _Fields findByName(String name) {
24977
        return byName.get(name);
24978
      }
24979
 
24980
      private final short _thriftId;
24981
      private final String _fieldName;
24982
 
24983
      _Fields(short thriftId, String fieldName) {
24984
        _thriftId = thriftId;
24985
        _fieldName = fieldName;
24986
      }
24987
 
24988
      public short getThriftFieldId() {
24989
        return _thriftId;
24990
      }
24991
 
24992
      public String getFieldName() {
24993
        return _fieldName;
24994
      }
24995
    }
24996
 
24997
    // isset id assignments
24998
    private static final int __ORDERID_ISSET_ID = 0;
24999
    private static final int __FREEBIEITEMID_ISSET_ID = 1;
25000
    private static final int __FREEBIEWAREHOUSEID_ISSET_ID = 2;
25001
    private BitSet __isset_bit_vector = new BitSet(3);
25002
 
25003
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25004
    static {
25005
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25006
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25007
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25008
      tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25009
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25010
      tmpMap.put(_Fields.FREEBIE_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25012
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25013
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
25014
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25015
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_args.class, metaDataMap);
25016
    }
25017
 
25018
    public scanfreebie_args() {
25019
    }
25020
 
25021
    public scanfreebie_args(
25022
      long orderId,
25023
      long freebieItemId,
25024
      long freebieWarehouseId,
25025
      ScanType scanType)
25026
    {
25027
      this();
25028
      this.orderId = orderId;
25029
      setOrderIdIsSet(true);
25030
      this.freebieItemId = freebieItemId;
25031
      setFreebieItemIdIsSet(true);
25032
      this.freebieWarehouseId = freebieWarehouseId;
25033
      setFreebieWarehouseIdIsSet(true);
25034
      this.scanType = scanType;
25035
    }
25036
 
25037
    /**
25038
     * Performs a deep copy on <i>other</i>.
25039
     */
25040
    public scanfreebie_args(scanfreebie_args other) {
25041
      __isset_bit_vector.clear();
25042
      __isset_bit_vector.or(other.__isset_bit_vector);
25043
      this.orderId = other.orderId;
25044
      this.freebieItemId = other.freebieItemId;
25045
      this.freebieWarehouseId = other.freebieWarehouseId;
25046
      if (other.isSetScanType()) {
25047
        this.scanType = other.scanType;
25048
      }
25049
    }
25050
 
25051
    public scanfreebie_args deepCopy() {
25052
      return new scanfreebie_args(this);
25053
    }
25054
 
25055
    @Override
25056
    public void clear() {
25057
      setOrderIdIsSet(false);
25058
      this.orderId = 0;
25059
      setFreebieItemIdIsSet(false);
25060
      this.freebieItemId = 0;
25061
      setFreebieWarehouseIdIsSet(false);
25062
      this.freebieWarehouseId = 0;
25063
      this.scanType = null;
25064
    }
25065
 
25066
    public long getOrderId() {
25067
      return this.orderId;
25068
    }
25069
 
25070
    public void setOrderId(long orderId) {
25071
      this.orderId = orderId;
25072
      setOrderIdIsSet(true);
25073
    }
25074
 
25075
    public void unsetOrderId() {
25076
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
25077
    }
25078
 
25079
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
25080
    public boolean isSetOrderId() {
25081
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
25082
    }
25083
 
25084
    public void setOrderIdIsSet(boolean value) {
25085
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
25086
    }
25087
 
25088
    public long getFreebieItemId() {
25089
      return this.freebieItemId;
25090
    }
25091
 
25092
    public void setFreebieItemId(long freebieItemId) {
25093
      this.freebieItemId = freebieItemId;
25094
      setFreebieItemIdIsSet(true);
25095
    }
25096
 
25097
    public void unsetFreebieItemId() {
25098
      __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
25099
    }
25100
 
25101
    /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
25102
    public boolean isSetFreebieItemId() {
25103
      return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
25104
    }
25105
 
25106
    public void setFreebieItemIdIsSet(boolean value) {
25107
      __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
25108
    }
25109
 
25110
    public long getFreebieWarehouseId() {
25111
      return this.freebieWarehouseId;
25112
    }
25113
 
25114
    public void setFreebieWarehouseId(long freebieWarehouseId) {
25115
      this.freebieWarehouseId = freebieWarehouseId;
25116
      setFreebieWarehouseIdIsSet(true);
25117
    }
25118
 
25119
    public void unsetFreebieWarehouseId() {
25120
      __isset_bit_vector.clear(__FREEBIEWAREHOUSEID_ISSET_ID);
25121
    }
25122
 
25123
    /** Returns true if field freebieWarehouseId is set (has been assigned a value) and false otherwise */
25124
    public boolean isSetFreebieWarehouseId() {
25125
      return __isset_bit_vector.get(__FREEBIEWAREHOUSEID_ISSET_ID);
25126
    }
25127
 
25128
    public void setFreebieWarehouseIdIsSet(boolean value) {
25129
      __isset_bit_vector.set(__FREEBIEWAREHOUSEID_ISSET_ID, value);
25130
    }
25131
 
25132
    /**
25133
     * 
25134
     * @see ScanType
25135
     */
25136
    public ScanType getScanType() {
25137
      return this.scanType;
25138
    }
25139
 
25140
    /**
25141
     * 
25142
     * @see ScanType
25143
     */
25144
    public void setScanType(ScanType scanType) {
25145
      this.scanType = scanType;
25146
    }
25147
 
25148
    public void unsetScanType() {
25149
      this.scanType = null;
25150
    }
25151
 
25152
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
25153
    public boolean isSetScanType() {
25154
      return this.scanType != null;
25155
    }
25156
 
25157
    public void setScanTypeIsSet(boolean value) {
25158
      if (!value) {
25159
        this.scanType = null;
25160
      }
25161
    }
25162
 
25163
    public void setFieldValue(_Fields field, Object value) {
25164
      switch (field) {
25165
      case ORDER_ID:
25166
        if (value == null) {
25167
          unsetOrderId();
25168
        } else {
25169
          setOrderId((Long)value);
25170
        }
25171
        break;
25172
 
25173
      case FREEBIE_ITEM_ID:
25174
        if (value == null) {
25175
          unsetFreebieItemId();
25176
        } else {
25177
          setFreebieItemId((Long)value);
25178
        }
25179
        break;
25180
 
25181
      case FREEBIE_WAREHOUSE_ID:
25182
        if (value == null) {
25183
          unsetFreebieWarehouseId();
25184
        } else {
25185
          setFreebieWarehouseId((Long)value);
25186
        }
25187
        break;
25188
 
25189
      case SCAN_TYPE:
25190
        if (value == null) {
25191
          unsetScanType();
25192
        } else {
25193
          setScanType((ScanType)value);
25194
        }
25195
        break;
25196
 
25197
      }
25198
    }
25199
 
25200
    public Object getFieldValue(_Fields field) {
25201
      switch (field) {
25202
      case ORDER_ID:
25203
        return Long.valueOf(getOrderId());
25204
 
25205
      case FREEBIE_ITEM_ID:
25206
        return Long.valueOf(getFreebieItemId());
25207
 
25208
      case FREEBIE_WAREHOUSE_ID:
25209
        return Long.valueOf(getFreebieWarehouseId());
25210
 
25211
      case SCAN_TYPE:
25212
        return getScanType();
25213
 
25214
      }
25215
      throw new IllegalStateException();
25216
    }
25217
 
25218
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25219
    public boolean isSet(_Fields field) {
25220
      if (field == null) {
25221
        throw new IllegalArgumentException();
25222
      }
25223
 
25224
      switch (field) {
25225
      case ORDER_ID:
25226
        return isSetOrderId();
25227
      case FREEBIE_ITEM_ID:
25228
        return isSetFreebieItemId();
25229
      case FREEBIE_WAREHOUSE_ID:
25230
        return isSetFreebieWarehouseId();
25231
      case SCAN_TYPE:
25232
        return isSetScanType();
25233
      }
25234
      throw new IllegalStateException();
25235
    }
25236
 
25237
    @Override
25238
    public boolean equals(Object that) {
25239
      if (that == null)
25240
        return false;
25241
      if (that instanceof scanfreebie_args)
25242
        return this.equals((scanfreebie_args)that);
25243
      return false;
25244
    }
25245
 
25246
    public boolean equals(scanfreebie_args that) {
25247
      if (that == null)
25248
        return false;
25249
 
25250
      boolean this_present_orderId = true;
25251
      boolean that_present_orderId = true;
25252
      if (this_present_orderId || that_present_orderId) {
25253
        if (!(this_present_orderId && that_present_orderId))
25254
          return false;
25255
        if (this.orderId != that.orderId)
25256
          return false;
25257
      }
25258
 
25259
      boolean this_present_freebieItemId = true;
25260
      boolean that_present_freebieItemId = true;
25261
      if (this_present_freebieItemId || that_present_freebieItemId) {
25262
        if (!(this_present_freebieItemId && that_present_freebieItemId))
25263
          return false;
25264
        if (this.freebieItemId != that.freebieItemId)
25265
          return false;
25266
      }
25267
 
25268
      boolean this_present_freebieWarehouseId = true;
25269
      boolean that_present_freebieWarehouseId = true;
25270
      if (this_present_freebieWarehouseId || that_present_freebieWarehouseId) {
25271
        if (!(this_present_freebieWarehouseId && that_present_freebieWarehouseId))
25272
          return false;
25273
        if (this.freebieWarehouseId != that.freebieWarehouseId)
25274
          return false;
25275
      }
25276
 
25277
      boolean this_present_scanType = true && this.isSetScanType();
25278
      boolean that_present_scanType = true && that.isSetScanType();
25279
      if (this_present_scanType || that_present_scanType) {
25280
        if (!(this_present_scanType && that_present_scanType))
25281
          return false;
25282
        if (!this.scanType.equals(that.scanType))
25283
          return false;
25284
      }
25285
 
25286
      return true;
25287
    }
25288
 
25289
    @Override
25290
    public int hashCode() {
25291
      return 0;
25292
    }
25293
 
25294
    public int compareTo(scanfreebie_args other) {
25295
      if (!getClass().equals(other.getClass())) {
25296
        return getClass().getName().compareTo(other.getClass().getName());
25297
      }
25298
 
25299
      int lastComparison = 0;
25300
      scanfreebie_args typedOther = (scanfreebie_args)other;
25301
 
25302
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
25303
      if (lastComparison != 0) {
25304
        return lastComparison;
25305
      }
25306
      if (isSetOrderId()) {
25307
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
25308
        if (lastComparison != 0) {
25309
          return lastComparison;
25310
        }
25311
      }
25312
      lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
25313
      if (lastComparison != 0) {
25314
        return lastComparison;
25315
      }
25316
      if (isSetFreebieItemId()) {
25317
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
25318
        if (lastComparison != 0) {
25319
          return lastComparison;
25320
        }
25321
      }
25322
      lastComparison = Boolean.valueOf(isSetFreebieWarehouseId()).compareTo(typedOther.isSetFreebieWarehouseId());
25323
      if (lastComparison != 0) {
25324
        return lastComparison;
25325
      }
25326
      if (isSetFreebieWarehouseId()) {
25327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieWarehouseId, typedOther.freebieWarehouseId);
25328
        if (lastComparison != 0) {
25329
          return lastComparison;
25330
        }
25331
      }
25332
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
25333
      if (lastComparison != 0) {
25334
        return lastComparison;
25335
      }
25336
      if (isSetScanType()) {
25337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
25338
        if (lastComparison != 0) {
25339
          return lastComparison;
25340
        }
25341
      }
25342
      return 0;
25343
    }
25344
 
25345
    public _Fields fieldForId(int fieldId) {
25346
      return _Fields.findByThriftId(fieldId);
25347
    }
25348
 
25349
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25350
      org.apache.thrift.protocol.TField field;
25351
      iprot.readStructBegin();
25352
      while (true)
25353
      {
25354
        field = iprot.readFieldBegin();
25355
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25356
          break;
25357
        }
25358
        switch (field.id) {
25359
          case 1: // ORDER_ID
25360
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25361
              this.orderId = iprot.readI64();
25362
              setOrderIdIsSet(true);
25363
            } else { 
25364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25365
            }
25366
            break;
25367
          case 2: // FREEBIE_ITEM_ID
25368
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25369
              this.freebieItemId = iprot.readI64();
25370
              setFreebieItemIdIsSet(true);
25371
            } else { 
25372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25373
            }
25374
            break;
25375
          case 3: // FREEBIE_WAREHOUSE_ID
25376
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25377
              this.freebieWarehouseId = iprot.readI64();
25378
              setFreebieWarehouseIdIsSet(true);
25379
            } else { 
25380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25381
            }
25382
            break;
25383
          case 4: // SCAN_TYPE
25384
            if (field.type == org.apache.thrift.protocol.TType.I32) {
25385
              this.scanType = ScanType.findByValue(iprot.readI32());
25386
            } else { 
25387
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25388
            }
25389
            break;
25390
          default:
25391
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25392
        }
25393
        iprot.readFieldEnd();
25394
      }
25395
      iprot.readStructEnd();
25396
      validate();
25397
    }
25398
 
25399
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25400
      validate();
25401
 
25402
      oprot.writeStructBegin(STRUCT_DESC);
25403
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
25404
      oprot.writeI64(this.orderId);
25405
      oprot.writeFieldEnd();
25406
      oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
25407
      oprot.writeI64(this.freebieItemId);
25408
      oprot.writeFieldEnd();
25409
      oprot.writeFieldBegin(FREEBIE_WAREHOUSE_ID_FIELD_DESC);
25410
      oprot.writeI64(this.freebieWarehouseId);
25411
      oprot.writeFieldEnd();
25412
      if (this.scanType != null) {
25413
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
25414
        oprot.writeI32(this.scanType.getValue());
25415
        oprot.writeFieldEnd();
25416
      }
25417
      oprot.writeFieldStop();
25418
      oprot.writeStructEnd();
25419
    }
25420
 
25421
    @Override
25422
    public String toString() {
25423
      StringBuilder sb = new StringBuilder("scanfreebie_args(");
25424
      boolean first = true;
25425
 
25426
      sb.append("orderId:");
25427
      sb.append(this.orderId);
25428
      first = false;
25429
      if (!first) sb.append(", ");
25430
      sb.append("freebieItemId:");
25431
      sb.append(this.freebieItemId);
25432
      first = false;
25433
      if (!first) sb.append(", ");
25434
      sb.append("freebieWarehouseId:");
25435
      sb.append(this.freebieWarehouseId);
25436
      first = false;
25437
      if (!first) sb.append(", ");
25438
      sb.append("scanType:");
25439
      if (this.scanType == null) {
25440
        sb.append("null");
25441
      } else {
25442
        sb.append(this.scanType);
25443
      }
25444
      first = false;
25445
      sb.append(")");
25446
      return sb.toString();
25447
    }
25448
 
25449
    public void validate() throws org.apache.thrift.TException {
25450
      // check for required fields
25451
    }
25452
 
25453
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25454
      try {
25455
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25456
      } catch (org.apache.thrift.TException te) {
25457
        throw new java.io.IOException(te);
25458
      }
25459
    }
25460
 
25461
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25462
      try {
25463
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25464
        __isset_bit_vector = new BitSet(1);
25465
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25466
      } catch (org.apache.thrift.TException te) {
25467
        throw new java.io.IOException(te);
25468
      }
25469
    }
25470
 
25471
  }
25472
 
25473
  public static class scanfreebie_result implements org.apache.thrift.TBase<scanfreebie_result, scanfreebie_result._Fields>, java.io.Serializable, Cloneable   {
25474
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_result");
25475
 
25476
    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);
25477
    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);
25478
 
25479
    private InventoryItem success; // required
25480
    private WarehouseServiceException wex; // required
25481
 
25482
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25483
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25484
      SUCCESS((short)0, "success"),
25485
      WEX((short)1, "wex");
25486
 
25487
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25488
 
25489
      static {
25490
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25491
          byName.put(field.getFieldName(), field);
25492
        }
25493
      }
25494
 
25495
      /**
25496
       * Find the _Fields constant that matches fieldId, or null if its not found.
25497
       */
25498
      public static _Fields findByThriftId(int fieldId) {
25499
        switch(fieldId) {
25500
          case 0: // SUCCESS
25501
            return SUCCESS;
25502
          case 1: // WEX
25503
            return WEX;
25504
          default:
25505
            return null;
25506
        }
25507
      }
25508
 
25509
      /**
25510
       * Find the _Fields constant that matches fieldId, throwing an exception
25511
       * if it is not found.
25512
       */
25513
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25514
        _Fields fields = findByThriftId(fieldId);
25515
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25516
        return fields;
25517
      }
25518
 
25519
      /**
25520
       * Find the _Fields constant that matches name, or null if its not found.
25521
       */
25522
      public static _Fields findByName(String name) {
25523
        return byName.get(name);
25524
      }
25525
 
25526
      private final short _thriftId;
25527
      private final String _fieldName;
25528
 
25529
      _Fields(short thriftId, String fieldName) {
25530
        _thriftId = thriftId;
25531
        _fieldName = fieldName;
25532
      }
25533
 
25534
      public short getThriftFieldId() {
25535
        return _thriftId;
25536
      }
25537
 
25538
      public String getFieldName() {
25539
        return _fieldName;
25540
      }
25541
    }
25542
 
25543
    // isset id assignments
25544
 
25545
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25546
    static {
25547
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25548
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25549
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
25550
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25551
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25552
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25553
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_result.class, metaDataMap);
25554
    }
25555
 
25556
    public scanfreebie_result() {
25557
    }
25558
 
25559
    public scanfreebie_result(
25560
      InventoryItem success,
25561
      WarehouseServiceException wex)
25562
    {
25563
      this();
25564
      this.success = success;
25565
      this.wex = wex;
25566
    }
25567
 
25568
    /**
25569
     * Performs a deep copy on <i>other</i>.
25570
     */
25571
    public scanfreebie_result(scanfreebie_result other) {
25572
      if (other.isSetSuccess()) {
25573
        this.success = new InventoryItem(other.success);
25574
      }
25575
      if (other.isSetWex()) {
25576
        this.wex = new WarehouseServiceException(other.wex);
25577
      }
25578
    }
25579
 
25580
    public scanfreebie_result deepCopy() {
25581
      return new scanfreebie_result(this);
25582
    }
25583
 
25584
    @Override
25585
    public void clear() {
25586
      this.success = null;
25587
      this.wex = null;
25588
    }
25589
 
25590
    public InventoryItem getSuccess() {
25591
      return this.success;
25592
    }
25593
 
25594
    public void setSuccess(InventoryItem success) {
25595
      this.success = success;
25596
    }
25597
 
25598
    public void unsetSuccess() {
25599
      this.success = null;
25600
    }
25601
 
25602
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25603
    public boolean isSetSuccess() {
25604
      return this.success != null;
25605
    }
25606
 
25607
    public void setSuccessIsSet(boolean value) {
25608
      if (!value) {
25609
        this.success = null;
25610
      }
25611
    }
25612
 
25613
    public WarehouseServiceException getWex() {
25614
      return this.wex;
25615
    }
25616
 
25617
    public void setWex(WarehouseServiceException wex) {
25618
      this.wex = wex;
25619
    }
25620
 
25621
    public void unsetWex() {
25622
      this.wex = null;
25623
    }
25624
 
25625
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
25626
    public boolean isSetWex() {
25627
      return this.wex != null;
25628
    }
25629
 
25630
    public void setWexIsSet(boolean value) {
25631
      if (!value) {
25632
        this.wex = null;
25633
      }
25634
    }
25635
 
25636
    public void setFieldValue(_Fields field, Object value) {
25637
      switch (field) {
25638
      case SUCCESS:
25639
        if (value == null) {
25640
          unsetSuccess();
25641
        } else {
25642
          setSuccess((InventoryItem)value);
25643
        }
25644
        break;
25645
 
25646
      case WEX:
25647
        if (value == null) {
25648
          unsetWex();
25649
        } else {
25650
          setWex((WarehouseServiceException)value);
25651
        }
25652
        break;
25653
 
25654
      }
25655
    }
25656
 
25657
    public Object getFieldValue(_Fields field) {
25658
      switch (field) {
25659
      case SUCCESS:
25660
        return getSuccess();
25661
 
25662
      case WEX:
25663
        return getWex();
25664
 
25665
      }
25666
      throw new IllegalStateException();
25667
    }
25668
 
25669
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25670
    public boolean isSet(_Fields field) {
25671
      if (field == null) {
25672
        throw new IllegalArgumentException();
25673
      }
25674
 
25675
      switch (field) {
25676
      case SUCCESS:
25677
        return isSetSuccess();
25678
      case WEX:
25679
        return isSetWex();
25680
      }
25681
      throw new IllegalStateException();
25682
    }
25683
 
25684
    @Override
25685
    public boolean equals(Object that) {
25686
      if (that == null)
25687
        return false;
25688
      if (that instanceof scanfreebie_result)
25689
        return this.equals((scanfreebie_result)that);
25690
      return false;
25691
    }
25692
 
25693
    public boolean equals(scanfreebie_result that) {
25694
      if (that == null)
25695
        return false;
25696
 
25697
      boolean this_present_success = true && this.isSetSuccess();
25698
      boolean that_present_success = true && that.isSetSuccess();
25699
      if (this_present_success || that_present_success) {
25700
        if (!(this_present_success && that_present_success))
25701
          return false;
25702
        if (!this.success.equals(that.success))
25703
          return false;
25704
      }
25705
 
25706
      boolean this_present_wex = true && this.isSetWex();
25707
      boolean that_present_wex = true && that.isSetWex();
25708
      if (this_present_wex || that_present_wex) {
25709
        if (!(this_present_wex && that_present_wex))
25710
          return false;
25711
        if (!this.wex.equals(that.wex))
25712
          return false;
25713
      }
25714
 
25715
      return true;
25716
    }
25717
 
25718
    @Override
25719
    public int hashCode() {
25720
      return 0;
25721
    }
25722
 
25723
    public int compareTo(scanfreebie_result other) {
25724
      if (!getClass().equals(other.getClass())) {
25725
        return getClass().getName().compareTo(other.getClass().getName());
25726
      }
25727
 
25728
      int lastComparison = 0;
25729
      scanfreebie_result typedOther = (scanfreebie_result)other;
25730
 
25731
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25732
      if (lastComparison != 0) {
25733
        return lastComparison;
25734
      }
25735
      if (isSetSuccess()) {
25736
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25737
        if (lastComparison != 0) {
25738
          return lastComparison;
25739
        }
25740
      }
25741
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
25742
      if (lastComparison != 0) {
25743
        return lastComparison;
25744
      }
25745
      if (isSetWex()) {
25746
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
25747
        if (lastComparison != 0) {
25748
          return lastComparison;
25749
        }
25750
      }
25751
      return 0;
25752
    }
25753
 
25754
    public _Fields fieldForId(int fieldId) {
25755
      return _Fields.findByThriftId(fieldId);
25756
    }
25757
 
25758
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25759
      org.apache.thrift.protocol.TField field;
25760
      iprot.readStructBegin();
25761
      while (true)
25762
      {
25763
        field = iprot.readFieldBegin();
25764
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25765
          break;
25766
        }
25767
        switch (field.id) {
25768
          case 0: // SUCCESS
25769
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25770
              this.success = new InventoryItem();
25771
              this.success.read(iprot);
25772
            } else { 
25773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25774
            }
25775
            break;
25776
          case 1: // WEX
25777
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25778
              this.wex = new WarehouseServiceException();
25779
              this.wex.read(iprot);
25780
            } else { 
25781
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25782
            }
25783
            break;
25784
          default:
25785
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25786
        }
25787
        iprot.readFieldEnd();
25788
      }
25789
      iprot.readStructEnd();
25790
      validate();
25791
    }
25792
 
25793
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25794
      oprot.writeStructBegin(STRUCT_DESC);
25795
 
25796
      if (this.isSetSuccess()) {
25797
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25798
        this.success.write(oprot);
25799
        oprot.writeFieldEnd();
25800
      } else if (this.isSetWex()) {
25801
        oprot.writeFieldBegin(WEX_FIELD_DESC);
25802
        this.wex.write(oprot);
25803
        oprot.writeFieldEnd();
25804
      }
25805
      oprot.writeFieldStop();
25806
      oprot.writeStructEnd();
25807
    }
25808
 
25809
    @Override
25810
    public String toString() {
25811
      StringBuilder sb = new StringBuilder("scanfreebie_result(");
25812
      boolean first = true;
25813
 
25814
      sb.append("success:");
25815
      if (this.success == null) {
25816
        sb.append("null");
25817
      } else {
25818
        sb.append(this.success);
25819
      }
25820
      first = false;
25821
      if (!first) sb.append(", ");
25822
      sb.append("wex:");
25823
      if (this.wex == null) {
25824
        sb.append("null");
25825
      } else {
25826
        sb.append(this.wex);
25827
      }
25828
      first = false;
25829
      sb.append(")");
25830
      return sb.toString();
25831
    }
25832
 
25833
    public void validate() throws org.apache.thrift.TException {
25834
      // check for required fields
25835
    }
25836
 
25837
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25838
      try {
25839
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25840
      } catch (org.apache.thrift.TException te) {
25841
        throw new java.io.IOException(te);
25842
      }
25843
    }
25844
 
25845
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25846
      try {
25847
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25848
      } catch (org.apache.thrift.TException te) {
25849
        throw new java.io.IOException(te);
25850
      }
25851
    }
25852
 
25853
  }
25854
 
7199 amar.kumar 25855
  public static class reshipfreebie_args implements org.apache.thrift.TBase<reshipfreebie_args, reshipfreebie_args._Fields>, java.io.Serializable, Cloneable   {
25856
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_args");
25857
 
25858
    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);
25859
    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);
25860
    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);
25861
    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);
25862
 
25863
    private long oldOrderId; // required
25864
    private long newOrderId; // required
25865
    private long freebieItemId; // required
25866
    private ScanType scanType; // required
25867
 
25868
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25869
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25870
      OLD_ORDER_ID((short)1, "oldOrderId"),
25871
      NEW_ORDER_ID((short)2, "newOrderId"),
25872
      FREEBIE_ITEM_ID((short)3, "freebieItemId"),
25873
      /**
25874
       * 
25875
       * @see ScanType
25876
       */
25877
      SCAN_TYPE((short)4, "scanType");
25878
 
25879
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25880
 
25881
      static {
25882
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25883
          byName.put(field.getFieldName(), field);
25884
        }
25885
      }
25886
 
25887
      /**
25888
       * Find the _Fields constant that matches fieldId, or null if its not found.
25889
       */
25890
      public static _Fields findByThriftId(int fieldId) {
25891
        switch(fieldId) {
25892
          case 1: // OLD_ORDER_ID
25893
            return OLD_ORDER_ID;
25894
          case 2: // NEW_ORDER_ID
25895
            return NEW_ORDER_ID;
25896
          case 3: // FREEBIE_ITEM_ID
25897
            return FREEBIE_ITEM_ID;
25898
          case 4: // SCAN_TYPE
25899
            return SCAN_TYPE;
25900
          default:
25901
            return null;
25902
        }
25903
      }
25904
 
25905
      /**
25906
       * Find the _Fields constant that matches fieldId, throwing an exception
25907
       * if it is not found.
25908
       */
25909
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25910
        _Fields fields = findByThriftId(fieldId);
25911
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25912
        return fields;
25913
      }
25914
 
25915
      /**
25916
       * Find the _Fields constant that matches name, or null if its not found.
25917
       */
25918
      public static _Fields findByName(String name) {
25919
        return byName.get(name);
25920
      }
25921
 
25922
      private final short _thriftId;
25923
      private final String _fieldName;
25924
 
25925
      _Fields(short thriftId, String fieldName) {
25926
        _thriftId = thriftId;
25927
        _fieldName = fieldName;
25928
      }
25929
 
25930
      public short getThriftFieldId() {
25931
        return _thriftId;
25932
      }
25933
 
25934
      public String getFieldName() {
25935
        return _fieldName;
25936
      }
25937
    }
25938
 
25939
    // isset id assignments
25940
    private static final int __OLDORDERID_ISSET_ID = 0;
25941
    private static final int __NEWORDERID_ISSET_ID = 1;
25942
    private static final int __FREEBIEITEMID_ISSET_ID = 2;
25943
    private BitSet __isset_bit_vector = new BitSet(3);
25944
 
25945
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25946
    static {
25947
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25948
      tmpMap.put(_Fields.OLD_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("oldOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25949
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25950
      tmpMap.put(_Fields.NEW_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25952
      tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25953
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25954
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25955
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
25956
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25957
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_args.class, metaDataMap);
25958
    }
25959
 
25960
    public reshipfreebie_args() {
25961
    }
25962
 
25963
    public reshipfreebie_args(
25964
      long oldOrderId,
25965
      long newOrderId,
25966
      long freebieItemId,
25967
      ScanType scanType)
25968
    {
25969
      this();
25970
      this.oldOrderId = oldOrderId;
25971
      setOldOrderIdIsSet(true);
25972
      this.newOrderId = newOrderId;
25973
      setNewOrderIdIsSet(true);
25974
      this.freebieItemId = freebieItemId;
25975
      setFreebieItemIdIsSet(true);
25976
      this.scanType = scanType;
25977
    }
25978
 
25979
    /**
25980
     * Performs a deep copy on <i>other</i>.
25981
     */
25982
    public reshipfreebie_args(reshipfreebie_args other) {
25983
      __isset_bit_vector.clear();
25984
      __isset_bit_vector.or(other.__isset_bit_vector);
25985
      this.oldOrderId = other.oldOrderId;
25986
      this.newOrderId = other.newOrderId;
25987
      this.freebieItemId = other.freebieItemId;
25988
      if (other.isSetScanType()) {
25989
        this.scanType = other.scanType;
25990
      }
25991
    }
25992
 
25993
    public reshipfreebie_args deepCopy() {
25994
      return new reshipfreebie_args(this);
25995
    }
25996
 
25997
    @Override
25998
    public void clear() {
25999
      setOldOrderIdIsSet(false);
26000
      this.oldOrderId = 0;
26001
      setNewOrderIdIsSet(false);
26002
      this.newOrderId = 0;
26003
      setFreebieItemIdIsSet(false);
26004
      this.freebieItemId = 0;
26005
      this.scanType = null;
26006
    }
26007
 
26008
    public long getOldOrderId() {
26009
      return this.oldOrderId;
26010
    }
26011
 
26012
    public void setOldOrderId(long oldOrderId) {
26013
      this.oldOrderId = oldOrderId;
26014
      setOldOrderIdIsSet(true);
26015
    }
26016
 
26017
    public void unsetOldOrderId() {
26018
      __isset_bit_vector.clear(__OLDORDERID_ISSET_ID);
26019
    }
26020
 
26021
    /** Returns true if field oldOrderId is set (has been assigned a value) and false otherwise */
26022
    public boolean isSetOldOrderId() {
26023
      return __isset_bit_vector.get(__OLDORDERID_ISSET_ID);
26024
    }
26025
 
26026
    public void setOldOrderIdIsSet(boolean value) {
26027
      __isset_bit_vector.set(__OLDORDERID_ISSET_ID, value);
26028
    }
26029
 
26030
    public long getNewOrderId() {
26031
      return this.newOrderId;
26032
    }
26033
 
26034
    public void setNewOrderId(long newOrderId) {
26035
      this.newOrderId = newOrderId;
26036
      setNewOrderIdIsSet(true);
26037
    }
26038
 
26039
    public void unsetNewOrderId() {
26040
      __isset_bit_vector.clear(__NEWORDERID_ISSET_ID);
26041
    }
26042
 
26043
    /** Returns true if field newOrderId is set (has been assigned a value) and false otherwise */
26044
    public boolean isSetNewOrderId() {
26045
      return __isset_bit_vector.get(__NEWORDERID_ISSET_ID);
26046
    }
26047
 
26048
    public void setNewOrderIdIsSet(boolean value) {
26049
      __isset_bit_vector.set(__NEWORDERID_ISSET_ID, value);
26050
    }
26051
 
26052
    public long getFreebieItemId() {
26053
      return this.freebieItemId;
26054
    }
26055
 
26056
    public void setFreebieItemId(long freebieItemId) {
26057
      this.freebieItemId = freebieItemId;
26058
      setFreebieItemIdIsSet(true);
26059
    }
26060
 
26061
    public void unsetFreebieItemId() {
26062
      __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
26063
    }
26064
 
26065
    /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
26066
    public boolean isSetFreebieItemId() {
26067
      return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
26068
    }
26069
 
26070
    public void setFreebieItemIdIsSet(boolean value) {
26071
      __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
26072
    }
26073
 
26074
    /**
26075
     * 
26076
     * @see ScanType
26077
     */
26078
    public ScanType getScanType() {
26079
      return this.scanType;
26080
    }
26081
 
26082
    /**
26083
     * 
26084
     * @see ScanType
26085
     */
26086
    public void setScanType(ScanType scanType) {
26087
      this.scanType = scanType;
26088
    }
26089
 
26090
    public void unsetScanType() {
26091
      this.scanType = null;
26092
    }
26093
 
26094
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
26095
    public boolean isSetScanType() {
26096
      return this.scanType != null;
26097
    }
26098
 
26099
    public void setScanTypeIsSet(boolean value) {
26100
      if (!value) {
26101
        this.scanType = null;
26102
      }
26103
    }
26104
 
26105
    public void setFieldValue(_Fields field, Object value) {
26106
      switch (field) {
26107
      case OLD_ORDER_ID:
26108
        if (value == null) {
26109
          unsetOldOrderId();
26110
        } else {
26111
          setOldOrderId((Long)value);
26112
        }
26113
        break;
26114
 
26115
      case NEW_ORDER_ID:
26116
        if (value == null) {
26117
          unsetNewOrderId();
26118
        } else {
26119
          setNewOrderId((Long)value);
26120
        }
26121
        break;
26122
 
26123
      case FREEBIE_ITEM_ID:
26124
        if (value == null) {
26125
          unsetFreebieItemId();
26126
        } else {
26127
          setFreebieItemId((Long)value);
26128
        }
26129
        break;
26130
 
26131
      case SCAN_TYPE:
26132
        if (value == null) {
26133
          unsetScanType();
26134
        } else {
26135
          setScanType((ScanType)value);
26136
        }
26137
        break;
26138
 
26139
      }
26140
    }
26141
 
26142
    public Object getFieldValue(_Fields field) {
26143
      switch (field) {
26144
      case OLD_ORDER_ID:
26145
        return Long.valueOf(getOldOrderId());
26146
 
26147
      case NEW_ORDER_ID:
26148
        return Long.valueOf(getNewOrderId());
26149
 
26150
      case FREEBIE_ITEM_ID:
26151
        return Long.valueOf(getFreebieItemId());
26152
 
26153
      case SCAN_TYPE:
26154
        return getScanType();
26155
 
26156
      }
26157
      throw new IllegalStateException();
26158
    }
26159
 
26160
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26161
    public boolean isSet(_Fields field) {
26162
      if (field == null) {
26163
        throw new IllegalArgumentException();
26164
      }
26165
 
26166
      switch (field) {
26167
      case OLD_ORDER_ID:
26168
        return isSetOldOrderId();
26169
      case NEW_ORDER_ID:
26170
        return isSetNewOrderId();
26171
      case FREEBIE_ITEM_ID:
26172
        return isSetFreebieItemId();
26173
      case SCAN_TYPE:
26174
        return isSetScanType();
26175
      }
26176
      throw new IllegalStateException();
26177
    }
26178
 
26179
    @Override
26180
    public boolean equals(Object that) {
26181
      if (that == null)
26182
        return false;
26183
      if (that instanceof reshipfreebie_args)
26184
        return this.equals((reshipfreebie_args)that);
26185
      return false;
26186
    }
26187
 
26188
    public boolean equals(reshipfreebie_args that) {
26189
      if (that == null)
26190
        return false;
26191
 
26192
      boolean this_present_oldOrderId = true;
26193
      boolean that_present_oldOrderId = true;
26194
      if (this_present_oldOrderId || that_present_oldOrderId) {
26195
        if (!(this_present_oldOrderId && that_present_oldOrderId))
26196
          return false;
26197
        if (this.oldOrderId != that.oldOrderId)
26198
          return false;
26199
      }
26200
 
26201
      boolean this_present_newOrderId = true;
26202
      boolean that_present_newOrderId = true;
26203
      if (this_present_newOrderId || that_present_newOrderId) {
26204
        if (!(this_present_newOrderId && that_present_newOrderId))
26205
          return false;
26206
        if (this.newOrderId != that.newOrderId)
26207
          return false;
26208
      }
26209
 
26210
      boolean this_present_freebieItemId = true;
26211
      boolean that_present_freebieItemId = true;
26212
      if (this_present_freebieItemId || that_present_freebieItemId) {
26213
        if (!(this_present_freebieItemId && that_present_freebieItemId))
26214
          return false;
26215
        if (this.freebieItemId != that.freebieItemId)
26216
          return false;
26217
      }
26218
 
26219
      boolean this_present_scanType = true && this.isSetScanType();
26220
      boolean that_present_scanType = true && that.isSetScanType();
26221
      if (this_present_scanType || that_present_scanType) {
26222
        if (!(this_present_scanType && that_present_scanType))
26223
          return false;
26224
        if (!this.scanType.equals(that.scanType))
26225
          return false;
26226
      }
26227
 
26228
      return true;
26229
    }
26230
 
26231
    @Override
26232
    public int hashCode() {
26233
      return 0;
26234
    }
26235
 
26236
    public int compareTo(reshipfreebie_args other) {
26237
      if (!getClass().equals(other.getClass())) {
26238
        return getClass().getName().compareTo(other.getClass().getName());
26239
      }
26240
 
26241
      int lastComparison = 0;
26242
      reshipfreebie_args typedOther = (reshipfreebie_args)other;
26243
 
26244
      lastComparison = Boolean.valueOf(isSetOldOrderId()).compareTo(typedOther.isSetOldOrderId());
26245
      if (lastComparison != 0) {
26246
        return lastComparison;
26247
      }
26248
      if (isSetOldOrderId()) {
26249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldOrderId, typedOther.oldOrderId);
26250
        if (lastComparison != 0) {
26251
          return lastComparison;
26252
        }
26253
      }
26254
      lastComparison = Boolean.valueOf(isSetNewOrderId()).compareTo(typedOther.isSetNewOrderId());
26255
      if (lastComparison != 0) {
26256
        return lastComparison;
26257
      }
26258
      if (isSetNewOrderId()) {
26259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOrderId, typedOther.newOrderId);
26260
        if (lastComparison != 0) {
26261
          return lastComparison;
26262
        }
26263
      }
26264
      lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
26265
      if (lastComparison != 0) {
26266
        return lastComparison;
26267
      }
26268
      if (isSetFreebieItemId()) {
26269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
26270
        if (lastComparison != 0) {
26271
          return lastComparison;
26272
        }
26273
      }
26274
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
26275
      if (lastComparison != 0) {
26276
        return lastComparison;
26277
      }
26278
      if (isSetScanType()) {
26279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
26280
        if (lastComparison != 0) {
26281
          return lastComparison;
26282
        }
26283
      }
26284
      return 0;
26285
    }
26286
 
26287
    public _Fields fieldForId(int fieldId) {
26288
      return _Fields.findByThriftId(fieldId);
26289
    }
26290
 
26291
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26292
      org.apache.thrift.protocol.TField field;
26293
      iprot.readStructBegin();
26294
      while (true)
26295
      {
26296
        field = iprot.readFieldBegin();
26297
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26298
          break;
26299
        }
26300
        switch (field.id) {
26301
          case 1: // OLD_ORDER_ID
26302
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26303
              this.oldOrderId = iprot.readI64();
26304
              setOldOrderIdIsSet(true);
26305
            } else { 
26306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26307
            }
26308
            break;
26309
          case 2: // NEW_ORDER_ID
26310
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26311
              this.newOrderId = iprot.readI64();
26312
              setNewOrderIdIsSet(true);
26313
            } else { 
26314
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26315
            }
26316
            break;
26317
          case 3: // FREEBIE_ITEM_ID
26318
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26319
              this.freebieItemId = iprot.readI64();
26320
              setFreebieItemIdIsSet(true);
26321
            } else { 
26322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26323
            }
26324
            break;
26325
          case 4: // SCAN_TYPE
26326
            if (field.type == org.apache.thrift.protocol.TType.I32) {
26327
              this.scanType = ScanType.findByValue(iprot.readI32());
26328
            } else { 
26329
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26330
            }
26331
            break;
26332
          default:
26333
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26334
        }
26335
        iprot.readFieldEnd();
26336
      }
26337
      iprot.readStructEnd();
26338
      validate();
26339
    }
26340
 
26341
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26342
      validate();
26343
 
26344
      oprot.writeStructBegin(STRUCT_DESC);
26345
      oprot.writeFieldBegin(OLD_ORDER_ID_FIELD_DESC);
26346
      oprot.writeI64(this.oldOrderId);
26347
      oprot.writeFieldEnd();
26348
      oprot.writeFieldBegin(NEW_ORDER_ID_FIELD_DESC);
26349
      oprot.writeI64(this.newOrderId);
26350
      oprot.writeFieldEnd();
26351
      oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
26352
      oprot.writeI64(this.freebieItemId);
26353
      oprot.writeFieldEnd();
26354
      if (this.scanType != null) {
26355
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
26356
        oprot.writeI32(this.scanType.getValue());
26357
        oprot.writeFieldEnd();
26358
      }
26359
      oprot.writeFieldStop();
26360
      oprot.writeStructEnd();
26361
    }
26362
 
26363
    @Override
26364
    public String toString() {
26365
      StringBuilder sb = new StringBuilder("reshipfreebie_args(");
26366
      boolean first = true;
26367
 
26368
      sb.append("oldOrderId:");
26369
      sb.append(this.oldOrderId);
26370
      first = false;
26371
      if (!first) sb.append(", ");
26372
      sb.append("newOrderId:");
26373
      sb.append(this.newOrderId);
26374
      first = false;
26375
      if (!first) sb.append(", ");
26376
      sb.append("freebieItemId:");
26377
      sb.append(this.freebieItemId);
26378
      first = false;
26379
      if (!first) sb.append(", ");
26380
      sb.append("scanType:");
26381
      if (this.scanType == null) {
26382
        sb.append("null");
26383
      } else {
26384
        sb.append(this.scanType);
26385
      }
26386
      first = false;
26387
      sb.append(")");
26388
      return sb.toString();
26389
    }
26390
 
26391
    public void validate() throws org.apache.thrift.TException {
26392
      // check for required fields
26393
    }
26394
 
26395
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26396
      try {
26397
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26398
      } catch (org.apache.thrift.TException te) {
26399
        throw new java.io.IOException(te);
26400
      }
26401
    }
26402
 
26403
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26404
      try {
26405
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26406
        __isset_bit_vector = new BitSet(1);
26407
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26408
      } catch (org.apache.thrift.TException te) {
26409
        throw new java.io.IOException(te);
26410
      }
26411
    }
26412
 
26413
  }
26414
 
26415
  public static class reshipfreebie_result implements org.apache.thrift.TBase<reshipfreebie_result, reshipfreebie_result._Fields>, java.io.Serializable, Cloneable   {
26416
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_result");
26417
 
26418
    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);
26419
 
26420
    private WarehouseServiceException wex; // required
26421
 
26422
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26423
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26424
      WEX((short)1, "wex");
26425
 
26426
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26427
 
26428
      static {
26429
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26430
          byName.put(field.getFieldName(), field);
26431
        }
26432
      }
26433
 
26434
      /**
26435
       * Find the _Fields constant that matches fieldId, or null if its not found.
26436
       */
26437
      public static _Fields findByThriftId(int fieldId) {
26438
        switch(fieldId) {
26439
          case 1: // WEX
26440
            return WEX;
26441
          default:
26442
            return null;
26443
        }
26444
      }
26445
 
26446
      /**
26447
       * Find the _Fields constant that matches fieldId, throwing an exception
26448
       * if it is not found.
26449
       */
26450
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26451
        _Fields fields = findByThriftId(fieldId);
26452
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26453
        return fields;
26454
      }
26455
 
26456
      /**
26457
       * Find the _Fields constant that matches name, or null if its not found.
26458
       */
26459
      public static _Fields findByName(String name) {
26460
        return byName.get(name);
26461
      }
26462
 
26463
      private final short _thriftId;
26464
      private final String _fieldName;
26465
 
26466
      _Fields(short thriftId, String fieldName) {
26467
        _thriftId = thriftId;
26468
        _fieldName = fieldName;
26469
      }
26470
 
26471
      public short getThriftFieldId() {
26472
        return _thriftId;
26473
      }
26474
 
26475
      public String getFieldName() {
26476
        return _fieldName;
26477
      }
26478
    }
26479
 
26480
    // isset id assignments
26481
 
26482
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26483
    static {
26484
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26485
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26486
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26487
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26488
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_result.class, metaDataMap);
26489
    }
26490
 
26491
    public reshipfreebie_result() {
26492
    }
26493
 
26494
    public reshipfreebie_result(
26495
      WarehouseServiceException wex)
26496
    {
26497
      this();
26498
      this.wex = wex;
26499
    }
26500
 
26501
    /**
26502
     * Performs a deep copy on <i>other</i>.
26503
     */
26504
    public reshipfreebie_result(reshipfreebie_result other) {
26505
      if (other.isSetWex()) {
26506
        this.wex = new WarehouseServiceException(other.wex);
26507
      }
26508
    }
26509
 
26510
    public reshipfreebie_result deepCopy() {
26511
      return new reshipfreebie_result(this);
26512
    }
26513
 
26514
    @Override
26515
    public void clear() {
26516
      this.wex = null;
26517
    }
26518
 
26519
    public WarehouseServiceException getWex() {
26520
      return this.wex;
26521
    }
26522
 
26523
    public void setWex(WarehouseServiceException wex) {
26524
      this.wex = wex;
26525
    }
26526
 
26527
    public void unsetWex() {
26528
      this.wex = null;
26529
    }
26530
 
26531
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
26532
    public boolean isSetWex() {
26533
      return this.wex != null;
26534
    }
26535
 
26536
    public void setWexIsSet(boolean value) {
26537
      if (!value) {
26538
        this.wex = null;
26539
      }
26540
    }
26541
 
26542
    public void setFieldValue(_Fields field, Object value) {
26543
      switch (field) {
26544
      case WEX:
26545
        if (value == null) {
26546
          unsetWex();
26547
        } else {
26548
          setWex((WarehouseServiceException)value);
26549
        }
26550
        break;
26551
 
26552
      }
26553
    }
26554
 
26555
    public Object getFieldValue(_Fields field) {
26556
      switch (field) {
26557
      case WEX:
26558
        return getWex();
26559
 
26560
      }
26561
      throw new IllegalStateException();
26562
    }
26563
 
26564
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26565
    public boolean isSet(_Fields field) {
26566
      if (field == null) {
26567
        throw new IllegalArgumentException();
26568
      }
26569
 
26570
      switch (field) {
26571
      case WEX:
26572
        return isSetWex();
26573
      }
26574
      throw new IllegalStateException();
26575
    }
26576
 
26577
    @Override
26578
    public boolean equals(Object that) {
26579
      if (that == null)
26580
        return false;
26581
      if (that instanceof reshipfreebie_result)
26582
        return this.equals((reshipfreebie_result)that);
26583
      return false;
26584
    }
26585
 
26586
    public boolean equals(reshipfreebie_result that) {
26587
      if (that == null)
26588
        return false;
26589
 
26590
      boolean this_present_wex = true && this.isSetWex();
26591
      boolean that_present_wex = true && that.isSetWex();
26592
      if (this_present_wex || that_present_wex) {
26593
        if (!(this_present_wex && that_present_wex))
26594
          return false;
26595
        if (!this.wex.equals(that.wex))
26596
          return false;
26597
      }
26598
 
26599
      return true;
26600
    }
26601
 
26602
    @Override
26603
    public int hashCode() {
26604
      return 0;
26605
    }
26606
 
26607
    public int compareTo(reshipfreebie_result other) {
26608
      if (!getClass().equals(other.getClass())) {
26609
        return getClass().getName().compareTo(other.getClass().getName());
26610
      }
26611
 
26612
      int lastComparison = 0;
26613
      reshipfreebie_result typedOther = (reshipfreebie_result)other;
26614
 
26615
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
26616
      if (lastComparison != 0) {
26617
        return lastComparison;
26618
      }
26619
      if (isSetWex()) {
26620
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
26621
        if (lastComparison != 0) {
26622
          return lastComparison;
26623
        }
26624
      }
26625
      return 0;
26626
    }
26627
 
26628
    public _Fields fieldForId(int fieldId) {
26629
      return _Fields.findByThriftId(fieldId);
26630
    }
26631
 
26632
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26633
      org.apache.thrift.protocol.TField field;
26634
      iprot.readStructBegin();
26635
      while (true)
26636
      {
26637
        field = iprot.readFieldBegin();
26638
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26639
          break;
26640
        }
26641
        switch (field.id) {
26642
          case 1: // WEX
26643
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26644
              this.wex = new WarehouseServiceException();
26645
              this.wex.read(iprot);
26646
            } else { 
26647
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26648
            }
26649
            break;
26650
          default:
26651
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26652
        }
26653
        iprot.readFieldEnd();
26654
      }
26655
      iprot.readStructEnd();
26656
      validate();
26657
    }
26658
 
26659
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26660
      oprot.writeStructBegin(STRUCT_DESC);
26661
 
26662
      if (this.isSetWex()) {
26663
        oprot.writeFieldBegin(WEX_FIELD_DESC);
26664
        this.wex.write(oprot);
26665
        oprot.writeFieldEnd();
26666
      }
26667
      oprot.writeFieldStop();
26668
      oprot.writeStructEnd();
26669
    }
26670
 
26671
    @Override
26672
    public String toString() {
26673
      StringBuilder sb = new StringBuilder("reshipfreebie_result(");
26674
      boolean first = true;
26675
 
26676
      sb.append("wex:");
26677
      if (this.wex == null) {
26678
        sb.append("null");
26679
      } else {
26680
        sb.append(this.wex);
26681
      }
26682
      first = false;
26683
      sb.append(")");
26684
      return sb.toString();
26685
    }
26686
 
26687
    public void validate() throws org.apache.thrift.TException {
26688
      // check for required fields
26689
    }
26690
 
26691
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26692
      try {
26693
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26694
      } catch (org.apache.thrift.TException te) {
26695
        throw new java.io.IOException(te);
26696
      }
26697
    }
26698
 
26699
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26700
      try {
26701
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26702
      } catch (org.apache.thrift.TException te) {
26703
        throw new java.io.IOException(te);
26704
      }
26705
    }
26706
 
26707
  }
26708
 
7410 amar.kumar 26709
  public static class isItemTransferAllowed_args implements org.apache.thrift.TBase<isItemTransferAllowed_args, isItemTransferAllowed_args._Fields>, java.io.Serializable, Cloneable   {
26710
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_args");
26711
 
26712
    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);
26713
    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);
26714
 
26715
    private long warehouseId; // required
26716
    private long transferWarehouseId; // required
26717
 
26718
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26719
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26720
      WAREHOUSE_ID((short)1, "warehouseId"),
26721
      TRANSFER_WAREHOUSE_ID((short)2, "transferWarehouseId");
26722
 
26723
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26724
 
26725
      static {
26726
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26727
          byName.put(field.getFieldName(), field);
26728
        }
26729
      }
26730
 
26731
      /**
26732
       * Find the _Fields constant that matches fieldId, or null if its not found.
26733
       */
26734
      public static _Fields findByThriftId(int fieldId) {
26735
        switch(fieldId) {
26736
          case 1: // WAREHOUSE_ID
26737
            return WAREHOUSE_ID;
26738
          case 2: // TRANSFER_WAREHOUSE_ID
26739
            return TRANSFER_WAREHOUSE_ID;
26740
          default:
26741
            return null;
26742
        }
26743
      }
26744
 
26745
      /**
26746
       * Find the _Fields constant that matches fieldId, throwing an exception
26747
       * if it is not found.
26748
       */
26749
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26750
        _Fields fields = findByThriftId(fieldId);
26751
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26752
        return fields;
26753
      }
26754
 
26755
      /**
26756
       * Find the _Fields constant that matches name, or null if its not found.
26757
       */
26758
      public static _Fields findByName(String name) {
26759
        return byName.get(name);
26760
      }
26761
 
26762
      private final short _thriftId;
26763
      private final String _fieldName;
26764
 
26765
      _Fields(short thriftId, String fieldName) {
26766
        _thriftId = thriftId;
26767
        _fieldName = fieldName;
26768
      }
26769
 
26770
      public short getThriftFieldId() {
26771
        return _thriftId;
26772
      }
26773
 
26774
      public String getFieldName() {
26775
        return _fieldName;
26776
      }
26777
    }
26778
 
26779
    // isset id assignments
26780
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26781
    private static final int __TRANSFERWAREHOUSEID_ISSET_ID = 1;
26782
    private BitSet __isset_bit_vector = new BitSet(2);
26783
 
26784
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26785
    static {
26786
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26787
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26789
      tmpMap.put(_Fields.TRANSFER_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("transferWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26790
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26791
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26792
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_args.class, metaDataMap);
26793
    }
26794
 
26795
    public isItemTransferAllowed_args() {
26796
    }
26797
 
26798
    public isItemTransferAllowed_args(
26799
      long warehouseId,
26800
      long transferWarehouseId)
26801
    {
26802
      this();
26803
      this.warehouseId = warehouseId;
26804
      setWarehouseIdIsSet(true);
26805
      this.transferWarehouseId = transferWarehouseId;
26806
      setTransferWarehouseIdIsSet(true);
26807
    }
26808
 
26809
    /**
26810
     * Performs a deep copy on <i>other</i>.
26811
     */
26812
    public isItemTransferAllowed_args(isItemTransferAllowed_args other) {
26813
      __isset_bit_vector.clear();
26814
      __isset_bit_vector.or(other.__isset_bit_vector);
26815
      this.warehouseId = other.warehouseId;
26816
      this.transferWarehouseId = other.transferWarehouseId;
26817
    }
26818
 
26819
    public isItemTransferAllowed_args deepCopy() {
26820
      return new isItemTransferAllowed_args(this);
26821
    }
26822
 
26823
    @Override
26824
    public void clear() {
26825
      setWarehouseIdIsSet(false);
26826
      this.warehouseId = 0;
26827
      setTransferWarehouseIdIsSet(false);
26828
      this.transferWarehouseId = 0;
26829
    }
26830
 
26831
    public long getWarehouseId() {
26832
      return this.warehouseId;
26833
    }
26834
 
26835
    public void setWarehouseId(long warehouseId) {
26836
      this.warehouseId = warehouseId;
26837
      setWarehouseIdIsSet(true);
26838
    }
26839
 
26840
    public void unsetWarehouseId() {
26841
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26842
    }
26843
 
26844
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26845
    public boolean isSetWarehouseId() {
26846
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26847
    }
26848
 
26849
    public void setWarehouseIdIsSet(boolean value) {
26850
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26851
    }
26852
 
26853
    public long getTransferWarehouseId() {
26854
      return this.transferWarehouseId;
26855
    }
26856
 
26857
    public void setTransferWarehouseId(long transferWarehouseId) {
26858
      this.transferWarehouseId = transferWarehouseId;
26859
      setTransferWarehouseIdIsSet(true);
26860
    }
26861
 
26862
    public void unsetTransferWarehouseId() {
26863
      __isset_bit_vector.clear(__TRANSFERWAREHOUSEID_ISSET_ID);
26864
    }
26865
 
26866
    /** Returns true if field transferWarehouseId is set (has been assigned a value) and false otherwise */
26867
    public boolean isSetTransferWarehouseId() {
26868
      return __isset_bit_vector.get(__TRANSFERWAREHOUSEID_ISSET_ID);
26869
    }
26870
 
26871
    public void setTransferWarehouseIdIsSet(boolean value) {
26872
      __isset_bit_vector.set(__TRANSFERWAREHOUSEID_ISSET_ID, value);
26873
    }
26874
 
26875
    public void setFieldValue(_Fields field, Object value) {
26876
      switch (field) {
26877
      case WAREHOUSE_ID:
26878
        if (value == null) {
26879
          unsetWarehouseId();
26880
        } else {
26881
          setWarehouseId((Long)value);
26882
        }
26883
        break;
26884
 
26885
      case TRANSFER_WAREHOUSE_ID:
26886
        if (value == null) {
26887
          unsetTransferWarehouseId();
26888
        } else {
26889
          setTransferWarehouseId((Long)value);
26890
        }
26891
        break;
26892
 
26893
      }
26894
    }
26895
 
26896
    public Object getFieldValue(_Fields field) {
26897
      switch (field) {
26898
      case WAREHOUSE_ID:
26899
        return Long.valueOf(getWarehouseId());
26900
 
26901
      case TRANSFER_WAREHOUSE_ID:
26902
        return Long.valueOf(getTransferWarehouseId());
26903
 
26904
      }
26905
      throw new IllegalStateException();
26906
    }
26907
 
26908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26909
    public boolean isSet(_Fields field) {
26910
      if (field == null) {
26911
        throw new IllegalArgumentException();
26912
      }
26913
 
26914
      switch (field) {
26915
      case WAREHOUSE_ID:
26916
        return isSetWarehouseId();
26917
      case TRANSFER_WAREHOUSE_ID:
26918
        return isSetTransferWarehouseId();
26919
      }
26920
      throw new IllegalStateException();
26921
    }
26922
 
26923
    @Override
26924
    public boolean equals(Object that) {
26925
      if (that == null)
26926
        return false;
26927
      if (that instanceof isItemTransferAllowed_args)
26928
        return this.equals((isItemTransferAllowed_args)that);
26929
      return false;
26930
    }
26931
 
26932
    public boolean equals(isItemTransferAllowed_args that) {
26933
      if (that == null)
26934
        return false;
26935
 
26936
      boolean this_present_warehouseId = true;
26937
      boolean that_present_warehouseId = true;
26938
      if (this_present_warehouseId || that_present_warehouseId) {
26939
        if (!(this_present_warehouseId && that_present_warehouseId))
26940
          return false;
26941
        if (this.warehouseId != that.warehouseId)
26942
          return false;
26943
      }
26944
 
26945
      boolean this_present_transferWarehouseId = true;
26946
      boolean that_present_transferWarehouseId = true;
26947
      if (this_present_transferWarehouseId || that_present_transferWarehouseId) {
26948
        if (!(this_present_transferWarehouseId && that_present_transferWarehouseId))
26949
          return false;
26950
        if (this.transferWarehouseId != that.transferWarehouseId)
26951
          return false;
26952
      }
26953
 
26954
      return true;
26955
    }
26956
 
26957
    @Override
26958
    public int hashCode() {
26959
      return 0;
26960
    }
26961
 
26962
    public int compareTo(isItemTransferAllowed_args other) {
26963
      if (!getClass().equals(other.getClass())) {
26964
        return getClass().getName().compareTo(other.getClass().getName());
26965
      }
26966
 
26967
      int lastComparison = 0;
26968
      isItemTransferAllowed_args typedOther = (isItemTransferAllowed_args)other;
26969
 
26970
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26971
      if (lastComparison != 0) {
26972
        return lastComparison;
26973
      }
26974
      if (isSetWarehouseId()) {
26975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26976
        if (lastComparison != 0) {
26977
          return lastComparison;
26978
        }
26979
      }
26980
      lastComparison = Boolean.valueOf(isSetTransferWarehouseId()).compareTo(typedOther.isSetTransferWarehouseId());
26981
      if (lastComparison != 0) {
26982
        return lastComparison;
26983
      }
26984
      if (isSetTransferWarehouseId()) {
26985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferWarehouseId, typedOther.transferWarehouseId);
26986
        if (lastComparison != 0) {
26987
          return lastComparison;
26988
        }
26989
      }
26990
      return 0;
26991
    }
26992
 
26993
    public _Fields fieldForId(int fieldId) {
26994
      return _Fields.findByThriftId(fieldId);
26995
    }
26996
 
26997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26998
      org.apache.thrift.protocol.TField field;
26999
      iprot.readStructBegin();
27000
      while (true)
27001
      {
27002
        field = iprot.readFieldBegin();
27003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27004
          break;
27005
        }
27006
        switch (field.id) {
27007
          case 1: // WAREHOUSE_ID
27008
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27009
              this.warehouseId = iprot.readI64();
27010
              setWarehouseIdIsSet(true);
27011
            } else { 
27012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27013
            }
27014
            break;
27015
          case 2: // TRANSFER_WAREHOUSE_ID
27016
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27017
              this.transferWarehouseId = iprot.readI64();
27018
              setTransferWarehouseIdIsSet(true);
27019
            } else { 
27020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27021
            }
27022
            break;
27023
          default:
27024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27025
        }
27026
        iprot.readFieldEnd();
27027
      }
27028
      iprot.readStructEnd();
27029
      validate();
27030
    }
27031
 
27032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27033
      validate();
27034
 
27035
      oprot.writeStructBegin(STRUCT_DESC);
27036
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27037
      oprot.writeI64(this.warehouseId);
27038
      oprot.writeFieldEnd();
27039
      oprot.writeFieldBegin(TRANSFER_WAREHOUSE_ID_FIELD_DESC);
27040
      oprot.writeI64(this.transferWarehouseId);
27041
      oprot.writeFieldEnd();
27042
      oprot.writeFieldStop();
27043
      oprot.writeStructEnd();
27044
    }
27045
 
27046
    @Override
27047
    public String toString() {
27048
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_args(");
27049
      boolean first = true;
27050
 
27051
      sb.append("warehouseId:");
27052
      sb.append(this.warehouseId);
27053
      first = false;
27054
      if (!first) sb.append(", ");
27055
      sb.append("transferWarehouseId:");
27056
      sb.append(this.transferWarehouseId);
27057
      first = false;
27058
      sb.append(")");
27059
      return sb.toString();
27060
    }
27061
 
27062
    public void validate() throws org.apache.thrift.TException {
27063
      // check for required fields
27064
    }
27065
 
27066
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27067
      try {
27068
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27069
      } catch (org.apache.thrift.TException te) {
27070
        throw new java.io.IOException(te);
27071
      }
27072
    }
27073
 
27074
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27075
      try {
27076
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27077
        __isset_bit_vector = new BitSet(1);
27078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27079
      } catch (org.apache.thrift.TException te) {
27080
        throw new java.io.IOException(te);
27081
      }
27082
    }
27083
 
27084
  }
27085
 
27086
  public static class isItemTransferAllowed_result implements org.apache.thrift.TBase<isItemTransferAllowed_result, isItemTransferAllowed_result._Fields>, java.io.Serializable, Cloneable   {
27087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_result");
27088
 
27089
    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);
27090
 
27091
    private boolean success; // required
27092
 
27093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27095
      SUCCESS((short)0, "success");
27096
 
27097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27098
 
27099
      static {
27100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27101
          byName.put(field.getFieldName(), field);
27102
        }
27103
      }
27104
 
27105
      /**
27106
       * Find the _Fields constant that matches fieldId, or null if its not found.
27107
       */
27108
      public static _Fields findByThriftId(int fieldId) {
27109
        switch(fieldId) {
27110
          case 0: // SUCCESS
27111
            return SUCCESS;
27112
          default:
27113
            return null;
27114
        }
27115
      }
27116
 
27117
      /**
27118
       * Find the _Fields constant that matches fieldId, throwing an exception
27119
       * if it is not found.
27120
       */
27121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27122
        _Fields fields = findByThriftId(fieldId);
27123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27124
        return fields;
27125
      }
27126
 
27127
      /**
27128
       * Find the _Fields constant that matches name, or null if its not found.
27129
       */
27130
      public static _Fields findByName(String name) {
27131
        return byName.get(name);
27132
      }
27133
 
27134
      private final short _thriftId;
27135
      private final String _fieldName;
27136
 
27137
      _Fields(short thriftId, String fieldName) {
27138
        _thriftId = thriftId;
27139
        _fieldName = fieldName;
27140
      }
27141
 
27142
      public short getThriftFieldId() {
27143
        return _thriftId;
27144
      }
27145
 
27146
      public String getFieldName() {
27147
        return _fieldName;
27148
      }
27149
    }
27150
 
27151
    // isset id assignments
27152
    private static final int __SUCCESS_ISSET_ID = 0;
27153
    private BitSet __isset_bit_vector = new BitSet(1);
27154
 
27155
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27156
    static {
27157
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27158
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
27160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_result.class, metaDataMap);
27162
    }
27163
 
27164
    public isItemTransferAllowed_result() {
27165
    }
27166
 
27167
    public isItemTransferAllowed_result(
27168
      boolean success)
27169
    {
27170
      this();
27171
      this.success = success;
27172
      setSuccessIsSet(true);
27173
    }
27174
 
27175
    /**
27176
     * Performs a deep copy on <i>other</i>.
27177
     */
27178
    public isItemTransferAllowed_result(isItemTransferAllowed_result other) {
27179
      __isset_bit_vector.clear();
27180
      __isset_bit_vector.or(other.__isset_bit_vector);
27181
      this.success = other.success;
27182
    }
27183
 
27184
    public isItemTransferAllowed_result deepCopy() {
27185
      return new isItemTransferAllowed_result(this);
27186
    }
27187
 
27188
    @Override
27189
    public void clear() {
27190
      setSuccessIsSet(false);
27191
      this.success = false;
27192
    }
27193
 
27194
    public boolean isSuccess() {
27195
      return this.success;
27196
    }
27197
 
27198
    public void setSuccess(boolean success) {
27199
      this.success = success;
27200
      setSuccessIsSet(true);
27201
    }
27202
 
27203
    public void unsetSuccess() {
27204
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27205
    }
27206
 
27207
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27208
    public boolean isSetSuccess() {
27209
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27210
    }
27211
 
27212
    public void setSuccessIsSet(boolean value) {
27213
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27214
    }
27215
 
27216
    public void setFieldValue(_Fields field, Object value) {
27217
      switch (field) {
27218
      case SUCCESS:
27219
        if (value == null) {
27220
          unsetSuccess();
27221
        } else {
27222
          setSuccess((Boolean)value);
27223
        }
27224
        break;
27225
 
27226
      }
27227
    }
27228
 
27229
    public Object getFieldValue(_Fields field) {
27230
      switch (field) {
27231
      case SUCCESS:
27232
        return Boolean.valueOf(isSuccess());
27233
 
27234
      }
27235
      throw new IllegalStateException();
27236
    }
27237
 
27238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27239
    public boolean isSet(_Fields field) {
27240
      if (field == null) {
27241
        throw new IllegalArgumentException();
27242
      }
27243
 
27244
      switch (field) {
27245
      case SUCCESS:
27246
        return isSetSuccess();
27247
      }
27248
      throw new IllegalStateException();
27249
    }
27250
 
27251
    @Override
27252
    public boolean equals(Object that) {
27253
      if (that == null)
27254
        return false;
27255
      if (that instanceof isItemTransferAllowed_result)
27256
        return this.equals((isItemTransferAllowed_result)that);
27257
      return false;
27258
    }
27259
 
27260
    public boolean equals(isItemTransferAllowed_result that) {
27261
      if (that == null)
27262
        return false;
27263
 
27264
      boolean this_present_success = true;
27265
      boolean that_present_success = true;
27266
      if (this_present_success || that_present_success) {
27267
        if (!(this_present_success && that_present_success))
27268
          return false;
27269
        if (this.success != that.success)
27270
          return false;
27271
      }
27272
 
27273
      return true;
27274
    }
27275
 
27276
    @Override
27277
    public int hashCode() {
27278
      return 0;
27279
    }
27280
 
27281
    public int compareTo(isItemTransferAllowed_result other) {
27282
      if (!getClass().equals(other.getClass())) {
27283
        return getClass().getName().compareTo(other.getClass().getName());
27284
      }
27285
 
27286
      int lastComparison = 0;
27287
      isItemTransferAllowed_result typedOther = (isItemTransferAllowed_result)other;
27288
 
27289
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27290
      if (lastComparison != 0) {
27291
        return lastComparison;
27292
      }
27293
      if (isSetSuccess()) {
27294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27295
        if (lastComparison != 0) {
27296
          return lastComparison;
27297
        }
27298
      }
27299
      return 0;
27300
    }
27301
 
27302
    public _Fields fieldForId(int fieldId) {
27303
      return _Fields.findByThriftId(fieldId);
27304
    }
27305
 
27306
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27307
      org.apache.thrift.protocol.TField field;
27308
      iprot.readStructBegin();
27309
      while (true)
27310
      {
27311
        field = iprot.readFieldBegin();
27312
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27313
          break;
27314
        }
27315
        switch (field.id) {
27316
          case 0: // SUCCESS
27317
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
27318
              this.success = iprot.readBool();
27319
              setSuccessIsSet(true);
27320
            } else { 
27321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27322
            }
27323
            break;
27324
          default:
27325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27326
        }
27327
        iprot.readFieldEnd();
27328
      }
27329
      iprot.readStructEnd();
27330
      validate();
27331
    }
27332
 
27333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27334
      oprot.writeStructBegin(STRUCT_DESC);
27335
 
27336
      if (this.isSetSuccess()) {
27337
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27338
        oprot.writeBool(this.success);
27339
        oprot.writeFieldEnd();
27340
      }
27341
      oprot.writeFieldStop();
27342
      oprot.writeStructEnd();
27343
    }
27344
 
27345
    @Override
27346
    public String toString() {
27347
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_result(");
27348
      boolean first = true;
27349
 
27350
      sb.append("success:");
27351
      sb.append(this.success);
27352
      first = false;
27353
      sb.append(")");
27354
      return sb.toString();
27355
    }
27356
 
27357
    public void validate() throws org.apache.thrift.TException {
27358
      // check for required fields
27359
    }
27360
 
27361
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27362
      try {
27363
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27364
      } catch (org.apache.thrift.TException te) {
27365
        throw new java.io.IOException(te);
27366
      }
27367
    }
27368
 
27369
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27370
      try {
27371
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27372
      } catch (org.apache.thrift.TException te) {
27373
        throw new java.io.IOException(te);
27374
      }
27375
    }
27376
 
27377
  }
27378
 
27379
  public static class createTransferLot_args implements org.apache.thrift.TBase<createTransferLot_args, createTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
27380
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_args");
27381
 
27382
    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);
27383
    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);
27384
 
27385
    private long originWarehouseId; // required
27386
    private long destWarehouseId; // required
27387
 
27388
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27389
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27390
      ORIGIN_WAREHOUSE_ID((short)1, "originWarehouseId"),
27391
      DEST_WAREHOUSE_ID((short)2, "destWarehouseId");
27392
 
27393
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27394
 
27395
      static {
27396
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27397
          byName.put(field.getFieldName(), field);
27398
        }
27399
      }
27400
 
27401
      /**
27402
       * Find the _Fields constant that matches fieldId, or null if its not found.
27403
       */
27404
      public static _Fields findByThriftId(int fieldId) {
27405
        switch(fieldId) {
27406
          case 1: // ORIGIN_WAREHOUSE_ID
27407
            return ORIGIN_WAREHOUSE_ID;
27408
          case 2: // DEST_WAREHOUSE_ID
27409
            return DEST_WAREHOUSE_ID;
27410
          default:
27411
            return null;
27412
        }
27413
      }
27414
 
27415
      /**
27416
       * Find the _Fields constant that matches fieldId, throwing an exception
27417
       * if it is not found.
27418
       */
27419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27420
        _Fields fields = findByThriftId(fieldId);
27421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27422
        return fields;
27423
      }
27424
 
27425
      /**
27426
       * Find the _Fields constant that matches name, or null if its not found.
27427
       */
27428
      public static _Fields findByName(String name) {
27429
        return byName.get(name);
27430
      }
27431
 
27432
      private final short _thriftId;
27433
      private final String _fieldName;
27434
 
27435
      _Fields(short thriftId, String fieldName) {
27436
        _thriftId = thriftId;
27437
        _fieldName = fieldName;
27438
      }
27439
 
27440
      public short getThriftFieldId() {
27441
        return _thriftId;
27442
      }
27443
 
27444
      public String getFieldName() {
27445
        return _fieldName;
27446
      }
27447
    }
27448
 
27449
    // isset id assignments
27450
    private static final int __ORIGINWAREHOUSEID_ISSET_ID = 0;
27451
    private static final int __DESTWAREHOUSEID_ISSET_ID = 1;
27452
    private BitSet __isset_bit_vector = new BitSet(2);
27453
 
27454
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27455
    static {
27456
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27457
      tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27458
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27459
      tmpMap.put(_Fields.DEST_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27460
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27461
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27462
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_args.class, metaDataMap);
27463
    }
27464
 
27465
    public createTransferLot_args() {
27466
    }
27467
 
27468
    public createTransferLot_args(
27469
      long originWarehouseId,
27470
      long destWarehouseId)
27471
    {
27472
      this();
27473
      this.originWarehouseId = originWarehouseId;
27474
      setOriginWarehouseIdIsSet(true);
27475
      this.destWarehouseId = destWarehouseId;
27476
      setDestWarehouseIdIsSet(true);
27477
    }
27478
 
27479
    /**
27480
     * Performs a deep copy on <i>other</i>.
27481
     */
27482
    public createTransferLot_args(createTransferLot_args other) {
27483
      __isset_bit_vector.clear();
27484
      __isset_bit_vector.or(other.__isset_bit_vector);
27485
      this.originWarehouseId = other.originWarehouseId;
27486
      this.destWarehouseId = other.destWarehouseId;
27487
    }
27488
 
27489
    public createTransferLot_args deepCopy() {
27490
      return new createTransferLot_args(this);
27491
    }
27492
 
27493
    @Override
27494
    public void clear() {
27495
      setOriginWarehouseIdIsSet(false);
27496
      this.originWarehouseId = 0;
27497
      setDestWarehouseIdIsSet(false);
27498
      this.destWarehouseId = 0;
27499
    }
27500
 
27501
    public long getOriginWarehouseId() {
27502
      return this.originWarehouseId;
27503
    }
27504
 
27505
    public void setOriginWarehouseId(long originWarehouseId) {
27506
      this.originWarehouseId = originWarehouseId;
27507
      setOriginWarehouseIdIsSet(true);
27508
    }
27509
 
27510
    public void unsetOriginWarehouseId() {
27511
      __isset_bit_vector.clear(__ORIGINWAREHOUSEID_ISSET_ID);
27512
    }
27513
 
27514
    /** Returns true if field originWarehouseId is set (has been assigned a value) and false otherwise */
27515
    public boolean isSetOriginWarehouseId() {
27516
      return __isset_bit_vector.get(__ORIGINWAREHOUSEID_ISSET_ID);
27517
    }
27518
 
27519
    public void setOriginWarehouseIdIsSet(boolean value) {
27520
      __isset_bit_vector.set(__ORIGINWAREHOUSEID_ISSET_ID, value);
27521
    }
27522
 
27523
    public long getDestWarehouseId() {
27524
      return this.destWarehouseId;
27525
    }
27526
 
27527
    public void setDestWarehouseId(long destWarehouseId) {
27528
      this.destWarehouseId = destWarehouseId;
27529
      setDestWarehouseIdIsSet(true);
27530
    }
27531
 
27532
    public void unsetDestWarehouseId() {
27533
      __isset_bit_vector.clear(__DESTWAREHOUSEID_ISSET_ID);
27534
    }
27535
 
27536
    /** Returns true if field destWarehouseId is set (has been assigned a value) and false otherwise */
27537
    public boolean isSetDestWarehouseId() {
27538
      return __isset_bit_vector.get(__DESTWAREHOUSEID_ISSET_ID);
27539
    }
27540
 
27541
    public void setDestWarehouseIdIsSet(boolean value) {
27542
      __isset_bit_vector.set(__DESTWAREHOUSEID_ISSET_ID, value);
27543
    }
27544
 
27545
    public void setFieldValue(_Fields field, Object value) {
27546
      switch (field) {
27547
      case ORIGIN_WAREHOUSE_ID:
27548
        if (value == null) {
27549
          unsetOriginWarehouseId();
27550
        } else {
27551
          setOriginWarehouseId((Long)value);
27552
        }
27553
        break;
27554
 
27555
      case DEST_WAREHOUSE_ID:
27556
        if (value == null) {
27557
          unsetDestWarehouseId();
27558
        } else {
27559
          setDestWarehouseId((Long)value);
27560
        }
27561
        break;
27562
 
27563
      }
27564
    }
27565
 
27566
    public Object getFieldValue(_Fields field) {
27567
      switch (field) {
27568
      case ORIGIN_WAREHOUSE_ID:
27569
        return Long.valueOf(getOriginWarehouseId());
27570
 
27571
      case DEST_WAREHOUSE_ID:
27572
        return Long.valueOf(getDestWarehouseId());
27573
 
27574
      }
27575
      throw new IllegalStateException();
27576
    }
27577
 
27578
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27579
    public boolean isSet(_Fields field) {
27580
      if (field == null) {
27581
        throw new IllegalArgumentException();
27582
      }
27583
 
27584
      switch (field) {
27585
      case ORIGIN_WAREHOUSE_ID:
27586
        return isSetOriginWarehouseId();
27587
      case DEST_WAREHOUSE_ID:
27588
        return isSetDestWarehouseId();
27589
      }
27590
      throw new IllegalStateException();
27591
    }
27592
 
27593
    @Override
27594
    public boolean equals(Object that) {
27595
      if (that == null)
27596
        return false;
27597
      if (that instanceof createTransferLot_args)
27598
        return this.equals((createTransferLot_args)that);
27599
      return false;
27600
    }
27601
 
27602
    public boolean equals(createTransferLot_args that) {
27603
      if (that == null)
27604
        return false;
27605
 
27606
      boolean this_present_originWarehouseId = true;
27607
      boolean that_present_originWarehouseId = true;
27608
      if (this_present_originWarehouseId || that_present_originWarehouseId) {
27609
        if (!(this_present_originWarehouseId && that_present_originWarehouseId))
27610
          return false;
27611
        if (this.originWarehouseId != that.originWarehouseId)
27612
          return false;
27613
      }
27614
 
27615
      boolean this_present_destWarehouseId = true;
27616
      boolean that_present_destWarehouseId = true;
27617
      if (this_present_destWarehouseId || that_present_destWarehouseId) {
27618
        if (!(this_present_destWarehouseId && that_present_destWarehouseId))
27619
          return false;
27620
        if (this.destWarehouseId != that.destWarehouseId)
27621
          return false;
27622
      }
27623
 
27624
      return true;
27625
    }
27626
 
27627
    @Override
27628
    public int hashCode() {
27629
      return 0;
27630
    }
27631
 
27632
    public int compareTo(createTransferLot_args other) {
27633
      if (!getClass().equals(other.getClass())) {
27634
        return getClass().getName().compareTo(other.getClass().getName());
27635
      }
27636
 
27637
      int lastComparison = 0;
27638
      createTransferLot_args typedOther = (createTransferLot_args)other;
27639
 
27640
      lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
27641
      if (lastComparison != 0) {
27642
        return lastComparison;
27643
      }
27644
      if (isSetOriginWarehouseId()) {
27645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originWarehouseId, typedOther.originWarehouseId);
27646
        if (lastComparison != 0) {
27647
          return lastComparison;
27648
        }
27649
      }
27650
      lastComparison = Boolean.valueOf(isSetDestWarehouseId()).compareTo(typedOther.isSetDestWarehouseId());
27651
      if (lastComparison != 0) {
27652
        return lastComparison;
27653
      }
27654
      if (isSetDestWarehouseId()) {
27655
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destWarehouseId, typedOther.destWarehouseId);
27656
        if (lastComparison != 0) {
27657
          return lastComparison;
27658
        }
27659
      }
27660
      return 0;
27661
    }
27662
 
27663
    public _Fields fieldForId(int fieldId) {
27664
      return _Fields.findByThriftId(fieldId);
27665
    }
27666
 
27667
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27668
      org.apache.thrift.protocol.TField field;
27669
      iprot.readStructBegin();
27670
      while (true)
27671
      {
27672
        field = iprot.readFieldBegin();
27673
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27674
          break;
27675
        }
27676
        switch (field.id) {
27677
          case 1: // ORIGIN_WAREHOUSE_ID
27678
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27679
              this.originWarehouseId = iprot.readI64();
27680
              setOriginWarehouseIdIsSet(true);
27681
            } else { 
27682
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27683
            }
27684
            break;
27685
          case 2: // DEST_WAREHOUSE_ID
27686
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27687
              this.destWarehouseId = iprot.readI64();
27688
              setDestWarehouseIdIsSet(true);
27689
            } else { 
27690
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27691
            }
27692
            break;
27693
          default:
27694
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27695
        }
27696
        iprot.readFieldEnd();
27697
      }
27698
      iprot.readStructEnd();
27699
      validate();
27700
    }
27701
 
27702
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27703
      validate();
27704
 
27705
      oprot.writeStructBegin(STRUCT_DESC);
27706
      oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
27707
      oprot.writeI64(this.originWarehouseId);
27708
      oprot.writeFieldEnd();
27709
      oprot.writeFieldBegin(DEST_WAREHOUSE_ID_FIELD_DESC);
27710
      oprot.writeI64(this.destWarehouseId);
27711
      oprot.writeFieldEnd();
27712
      oprot.writeFieldStop();
27713
      oprot.writeStructEnd();
27714
    }
27715
 
27716
    @Override
27717
    public String toString() {
27718
      StringBuilder sb = new StringBuilder("createTransferLot_args(");
27719
      boolean first = true;
27720
 
27721
      sb.append("originWarehouseId:");
27722
      sb.append(this.originWarehouseId);
27723
      first = false;
27724
      if (!first) sb.append(", ");
27725
      sb.append("destWarehouseId:");
27726
      sb.append(this.destWarehouseId);
27727
      first = false;
27728
      sb.append(")");
27729
      return sb.toString();
27730
    }
27731
 
27732
    public void validate() throws org.apache.thrift.TException {
27733
      // check for required fields
27734
    }
27735
 
27736
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27737
      try {
27738
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27739
      } catch (org.apache.thrift.TException te) {
27740
        throw new java.io.IOException(te);
27741
      }
27742
    }
27743
 
27744
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27745
      try {
27746
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27747
        __isset_bit_vector = new BitSet(1);
27748
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27749
      } catch (org.apache.thrift.TException te) {
27750
        throw new java.io.IOException(te);
27751
      }
27752
    }
27753
 
27754
  }
27755
 
27756
  public static class createTransferLot_result implements org.apache.thrift.TBase<createTransferLot_result, createTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
27757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_result");
27758
 
27759
    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);
27760
    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);
27761
 
27762
    private long success; // required
27763
    private WarehouseServiceException wex; // required
27764
 
27765
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27766
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27767
      SUCCESS((short)0, "success"),
27768
      WEX((short)1, "wex");
27769
 
27770
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27771
 
27772
      static {
27773
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27774
          byName.put(field.getFieldName(), field);
27775
        }
27776
      }
27777
 
27778
      /**
27779
       * Find the _Fields constant that matches fieldId, or null if its not found.
27780
       */
27781
      public static _Fields findByThriftId(int fieldId) {
27782
        switch(fieldId) {
27783
          case 0: // SUCCESS
27784
            return SUCCESS;
27785
          case 1: // WEX
27786
            return WEX;
27787
          default:
27788
            return null;
27789
        }
27790
      }
27791
 
27792
      /**
27793
       * Find the _Fields constant that matches fieldId, throwing an exception
27794
       * if it is not found.
27795
       */
27796
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27797
        _Fields fields = findByThriftId(fieldId);
27798
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27799
        return fields;
27800
      }
27801
 
27802
      /**
27803
       * Find the _Fields constant that matches name, or null if its not found.
27804
       */
27805
      public static _Fields findByName(String name) {
27806
        return byName.get(name);
27807
      }
27808
 
27809
      private final short _thriftId;
27810
      private final String _fieldName;
27811
 
27812
      _Fields(short thriftId, String fieldName) {
27813
        _thriftId = thriftId;
27814
        _fieldName = fieldName;
27815
      }
27816
 
27817
      public short getThriftFieldId() {
27818
        return _thriftId;
27819
      }
27820
 
27821
      public String getFieldName() {
27822
        return _fieldName;
27823
      }
27824
    }
27825
 
27826
    // isset id assignments
27827
    private static final int __SUCCESS_ISSET_ID = 0;
27828
    private BitSet __isset_bit_vector = new BitSet(1);
27829
 
27830
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27831
    static {
27832
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27833
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27834
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27835
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27836
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27837
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27838
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_result.class, metaDataMap);
27839
    }
27840
 
27841
    public createTransferLot_result() {
27842
    }
27843
 
27844
    public createTransferLot_result(
27845
      long success,
27846
      WarehouseServiceException wex)
27847
    {
27848
      this();
27849
      this.success = success;
27850
      setSuccessIsSet(true);
27851
      this.wex = wex;
27852
    }
27853
 
27854
    /**
27855
     * Performs a deep copy on <i>other</i>.
27856
     */
27857
    public createTransferLot_result(createTransferLot_result other) {
27858
      __isset_bit_vector.clear();
27859
      __isset_bit_vector.or(other.__isset_bit_vector);
27860
      this.success = other.success;
27861
      if (other.isSetWex()) {
27862
        this.wex = new WarehouseServiceException(other.wex);
27863
      }
27864
    }
27865
 
27866
    public createTransferLot_result deepCopy() {
27867
      return new createTransferLot_result(this);
27868
    }
27869
 
27870
    @Override
27871
    public void clear() {
27872
      setSuccessIsSet(false);
27873
      this.success = 0;
27874
      this.wex = null;
27875
    }
27876
 
27877
    public long getSuccess() {
27878
      return this.success;
27879
    }
27880
 
27881
    public void setSuccess(long success) {
27882
      this.success = success;
27883
      setSuccessIsSet(true);
27884
    }
27885
 
27886
    public void unsetSuccess() {
27887
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27888
    }
27889
 
27890
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27891
    public boolean isSetSuccess() {
27892
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27893
    }
27894
 
27895
    public void setSuccessIsSet(boolean value) {
27896
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27897
    }
27898
 
27899
    public WarehouseServiceException getWex() {
27900
      return this.wex;
27901
    }
27902
 
27903
    public void setWex(WarehouseServiceException wex) {
27904
      this.wex = wex;
27905
    }
27906
 
27907
    public void unsetWex() {
27908
      this.wex = null;
27909
    }
27910
 
27911
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
27912
    public boolean isSetWex() {
27913
      return this.wex != null;
27914
    }
27915
 
27916
    public void setWexIsSet(boolean value) {
27917
      if (!value) {
27918
        this.wex = null;
27919
      }
27920
    }
27921
 
27922
    public void setFieldValue(_Fields field, Object value) {
27923
      switch (field) {
27924
      case SUCCESS:
27925
        if (value == null) {
27926
          unsetSuccess();
27927
        } else {
27928
          setSuccess((Long)value);
27929
        }
27930
        break;
27931
 
27932
      case WEX:
27933
        if (value == null) {
27934
          unsetWex();
27935
        } else {
27936
          setWex((WarehouseServiceException)value);
27937
        }
27938
        break;
27939
 
27940
      }
27941
    }
27942
 
27943
    public Object getFieldValue(_Fields field) {
27944
      switch (field) {
27945
      case SUCCESS:
27946
        return Long.valueOf(getSuccess());
27947
 
27948
      case WEX:
27949
        return getWex();
27950
 
27951
      }
27952
      throw new IllegalStateException();
27953
    }
27954
 
27955
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27956
    public boolean isSet(_Fields field) {
27957
      if (field == null) {
27958
        throw new IllegalArgumentException();
27959
      }
27960
 
27961
      switch (field) {
27962
      case SUCCESS:
27963
        return isSetSuccess();
27964
      case WEX:
27965
        return isSetWex();
27966
      }
27967
      throw new IllegalStateException();
27968
    }
27969
 
27970
    @Override
27971
    public boolean equals(Object that) {
27972
      if (that == null)
27973
        return false;
27974
      if (that instanceof createTransferLot_result)
27975
        return this.equals((createTransferLot_result)that);
27976
      return false;
27977
    }
27978
 
27979
    public boolean equals(createTransferLot_result that) {
27980
      if (that == null)
27981
        return false;
27982
 
27983
      boolean this_present_success = true;
27984
      boolean that_present_success = true;
27985
      if (this_present_success || that_present_success) {
27986
        if (!(this_present_success && that_present_success))
27987
          return false;
27988
        if (this.success != that.success)
27989
          return false;
27990
      }
27991
 
27992
      boolean this_present_wex = true && this.isSetWex();
27993
      boolean that_present_wex = true && that.isSetWex();
27994
      if (this_present_wex || that_present_wex) {
27995
        if (!(this_present_wex && that_present_wex))
27996
          return false;
27997
        if (!this.wex.equals(that.wex))
27998
          return false;
27999
      }
28000
 
28001
      return true;
28002
    }
28003
 
28004
    @Override
28005
    public int hashCode() {
28006
      return 0;
28007
    }
28008
 
28009
    public int compareTo(createTransferLot_result other) {
28010
      if (!getClass().equals(other.getClass())) {
28011
        return getClass().getName().compareTo(other.getClass().getName());
28012
      }
28013
 
28014
      int lastComparison = 0;
28015
      createTransferLot_result typedOther = (createTransferLot_result)other;
28016
 
28017
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28018
      if (lastComparison != 0) {
28019
        return lastComparison;
28020
      }
28021
      if (isSetSuccess()) {
28022
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28023
        if (lastComparison != 0) {
28024
          return lastComparison;
28025
        }
28026
      }
28027
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
28028
      if (lastComparison != 0) {
28029
        return lastComparison;
28030
      }
28031
      if (isSetWex()) {
28032
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
28033
        if (lastComparison != 0) {
28034
          return lastComparison;
28035
        }
28036
      }
28037
      return 0;
28038
    }
28039
 
28040
    public _Fields fieldForId(int fieldId) {
28041
      return _Fields.findByThriftId(fieldId);
28042
    }
28043
 
28044
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28045
      org.apache.thrift.protocol.TField field;
28046
      iprot.readStructBegin();
28047
      while (true)
28048
      {
28049
        field = iprot.readFieldBegin();
28050
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28051
          break;
28052
        }
28053
        switch (field.id) {
28054
          case 0: // SUCCESS
28055
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28056
              this.success = iprot.readI64();
28057
              setSuccessIsSet(true);
28058
            } else { 
28059
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28060
            }
28061
            break;
28062
          case 1: // WEX
28063
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28064
              this.wex = new WarehouseServiceException();
28065
              this.wex.read(iprot);
28066
            } else { 
28067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28068
            }
28069
            break;
28070
          default:
28071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28072
        }
28073
        iprot.readFieldEnd();
28074
      }
28075
      iprot.readStructEnd();
28076
      validate();
28077
    }
28078
 
28079
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28080
      oprot.writeStructBegin(STRUCT_DESC);
28081
 
28082
      if (this.isSetSuccess()) {
28083
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28084
        oprot.writeI64(this.success);
28085
        oprot.writeFieldEnd();
28086
      } else if (this.isSetWex()) {
28087
        oprot.writeFieldBegin(WEX_FIELD_DESC);
28088
        this.wex.write(oprot);
28089
        oprot.writeFieldEnd();
28090
      }
28091
      oprot.writeFieldStop();
28092
      oprot.writeStructEnd();
28093
    }
28094
 
28095
    @Override
28096
    public String toString() {
28097
      StringBuilder sb = new StringBuilder("createTransferLot_result(");
28098
      boolean first = true;
28099
 
28100
      sb.append("success:");
28101
      sb.append(this.success);
28102
      first = false;
28103
      if (!first) sb.append(", ");
28104
      sb.append("wex:");
28105
      if (this.wex == null) {
28106
        sb.append("null");
28107
      } else {
28108
        sb.append(this.wex);
28109
      }
28110
      first = false;
28111
      sb.append(")");
28112
      return sb.toString();
28113
    }
28114
 
28115
    public void validate() throws org.apache.thrift.TException {
28116
      // check for required fields
28117
    }
28118
 
28119
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28120
      try {
28121
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28122
      } catch (org.apache.thrift.TException te) {
28123
        throw new java.io.IOException(te);
28124
      }
28125
    }
28126
 
28127
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28128
      try {
28129
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28130
      } catch (org.apache.thrift.TException te) {
28131
        throw new java.io.IOException(te);
28132
      }
28133
    }
28134
 
28135
  }
28136
 
28137
  public static class getTransferLot_args implements org.apache.thrift.TBase<getTransferLot_args, getTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
28138
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_args");
28139
 
28140
    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);
28141
 
28142
    private long transferLotId; // required
28143
 
28144
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28145
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28146
      TRANSFER_LOT_ID((short)1, "transferLotId");
28147
 
28148
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28149
 
28150
      static {
28151
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28152
          byName.put(field.getFieldName(), field);
28153
        }
28154
      }
28155
 
28156
      /**
28157
       * Find the _Fields constant that matches fieldId, or null if its not found.
28158
       */
28159
      public static _Fields findByThriftId(int fieldId) {
28160
        switch(fieldId) {
28161
          case 1: // TRANSFER_LOT_ID
28162
            return TRANSFER_LOT_ID;
28163
          default:
28164
            return null;
28165
        }
28166
      }
28167
 
28168
      /**
28169
       * Find the _Fields constant that matches fieldId, throwing an exception
28170
       * if it is not found.
28171
       */
28172
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28173
        _Fields fields = findByThriftId(fieldId);
28174
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28175
        return fields;
28176
      }
28177
 
28178
      /**
28179
       * Find the _Fields constant that matches name, or null if its not found.
28180
       */
28181
      public static _Fields findByName(String name) {
28182
        return byName.get(name);
28183
      }
28184
 
28185
      private final short _thriftId;
28186
      private final String _fieldName;
28187
 
28188
      _Fields(short thriftId, String fieldName) {
28189
        _thriftId = thriftId;
28190
        _fieldName = fieldName;
28191
      }
28192
 
28193
      public short getThriftFieldId() {
28194
        return _thriftId;
28195
      }
28196
 
28197
      public String getFieldName() {
28198
        return _fieldName;
28199
      }
28200
    }
28201
 
28202
    // isset id assignments
28203
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
28204
    private BitSet __isset_bit_vector = new BitSet(1);
28205
 
28206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28207
    static {
28208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28209
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28211
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28212
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_args.class, metaDataMap);
28213
    }
28214
 
28215
    public getTransferLot_args() {
28216
    }
28217
 
28218
    public getTransferLot_args(
28219
      long transferLotId)
28220
    {
28221
      this();
28222
      this.transferLotId = transferLotId;
28223
      setTransferLotIdIsSet(true);
28224
    }
28225
 
28226
    /**
28227
     * Performs a deep copy on <i>other</i>.
28228
     */
28229
    public getTransferLot_args(getTransferLot_args other) {
28230
      __isset_bit_vector.clear();
28231
      __isset_bit_vector.or(other.__isset_bit_vector);
28232
      this.transferLotId = other.transferLotId;
28233
    }
28234
 
28235
    public getTransferLot_args deepCopy() {
28236
      return new getTransferLot_args(this);
28237
    }
28238
 
28239
    @Override
28240
    public void clear() {
28241
      setTransferLotIdIsSet(false);
28242
      this.transferLotId = 0;
28243
    }
28244
 
28245
    public long getTransferLotId() {
28246
      return this.transferLotId;
28247
    }
28248
 
28249
    public void setTransferLotId(long transferLotId) {
28250
      this.transferLotId = transferLotId;
28251
      setTransferLotIdIsSet(true);
28252
    }
28253
 
28254
    public void unsetTransferLotId() {
28255
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
28256
    }
28257
 
28258
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
28259
    public boolean isSetTransferLotId() {
28260
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
28261
    }
28262
 
28263
    public void setTransferLotIdIsSet(boolean value) {
28264
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
28265
    }
28266
 
28267
    public void setFieldValue(_Fields field, Object value) {
28268
      switch (field) {
28269
      case TRANSFER_LOT_ID:
28270
        if (value == null) {
28271
          unsetTransferLotId();
28272
        } else {
28273
          setTransferLotId((Long)value);
28274
        }
28275
        break;
28276
 
28277
      }
28278
    }
28279
 
28280
    public Object getFieldValue(_Fields field) {
28281
      switch (field) {
28282
      case TRANSFER_LOT_ID:
28283
        return Long.valueOf(getTransferLotId());
28284
 
28285
      }
28286
      throw new IllegalStateException();
28287
    }
28288
 
28289
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28290
    public boolean isSet(_Fields field) {
28291
      if (field == null) {
28292
        throw new IllegalArgumentException();
28293
      }
28294
 
28295
      switch (field) {
28296
      case TRANSFER_LOT_ID:
28297
        return isSetTransferLotId();
28298
      }
28299
      throw new IllegalStateException();
28300
    }
28301
 
28302
    @Override
28303
    public boolean equals(Object that) {
28304
      if (that == null)
28305
        return false;
28306
      if (that instanceof getTransferLot_args)
28307
        return this.equals((getTransferLot_args)that);
28308
      return false;
28309
    }
28310
 
28311
    public boolean equals(getTransferLot_args that) {
28312
      if (that == null)
28313
        return false;
28314
 
28315
      boolean this_present_transferLotId = true;
28316
      boolean that_present_transferLotId = true;
28317
      if (this_present_transferLotId || that_present_transferLotId) {
28318
        if (!(this_present_transferLotId && that_present_transferLotId))
28319
          return false;
28320
        if (this.transferLotId != that.transferLotId)
28321
          return false;
28322
      }
28323
 
28324
      return true;
28325
    }
28326
 
28327
    @Override
28328
    public int hashCode() {
28329
      return 0;
28330
    }
28331
 
28332
    public int compareTo(getTransferLot_args other) {
28333
      if (!getClass().equals(other.getClass())) {
28334
        return getClass().getName().compareTo(other.getClass().getName());
28335
      }
28336
 
28337
      int lastComparison = 0;
28338
      getTransferLot_args typedOther = (getTransferLot_args)other;
28339
 
28340
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
28341
      if (lastComparison != 0) {
28342
        return lastComparison;
28343
      }
28344
      if (isSetTransferLotId()) {
28345
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
28346
        if (lastComparison != 0) {
28347
          return lastComparison;
28348
        }
28349
      }
28350
      return 0;
28351
    }
28352
 
28353
    public _Fields fieldForId(int fieldId) {
28354
      return _Fields.findByThriftId(fieldId);
28355
    }
28356
 
28357
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28358
      org.apache.thrift.protocol.TField field;
28359
      iprot.readStructBegin();
28360
      while (true)
28361
      {
28362
        field = iprot.readFieldBegin();
28363
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28364
          break;
28365
        }
28366
        switch (field.id) {
28367
          case 1: // TRANSFER_LOT_ID
28368
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28369
              this.transferLotId = iprot.readI64();
28370
              setTransferLotIdIsSet(true);
28371
            } else { 
28372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28373
            }
28374
            break;
28375
          default:
28376
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28377
        }
28378
        iprot.readFieldEnd();
28379
      }
28380
      iprot.readStructEnd();
28381
      validate();
28382
    }
28383
 
28384
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28385
      validate();
28386
 
28387
      oprot.writeStructBegin(STRUCT_DESC);
28388
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
28389
      oprot.writeI64(this.transferLotId);
28390
      oprot.writeFieldEnd();
28391
      oprot.writeFieldStop();
28392
      oprot.writeStructEnd();
28393
    }
28394
 
28395
    @Override
28396
    public String toString() {
28397
      StringBuilder sb = new StringBuilder("getTransferLot_args(");
28398
      boolean first = true;
28399
 
28400
      sb.append("transferLotId:");
28401
      sb.append(this.transferLotId);
28402
      first = false;
28403
      sb.append(")");
28404
      return sb.toString();
28405
    }
28406
 
28407
    public void validate() throws org.apache.thrift.TException {
28408
      // check for required fields
28409
    }
28410
 
28411
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28412
      try {
28413
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28414
      } catch (org.apache.thrift.TException te) {
28415
        throw new java.io.IOException(te);
28416
      }
28417
    }
28418
 
28419
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28420
      try {
28421
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28422
        __isset_bit_vector = new BitSet(1);
28423
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28424
      } catch (org.apache.thrift.TException te) {
28425
        throw new java.io.IOException(te);
28426
      }
28427
    }
28428
 
28429
  }
28430
 
28431
  public static class getTransferLot_result implements org.apache.thrift.TBase<getTransferLot_result, getTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
28432
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_result");
28433
 
28434
    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);
28435
    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);
28436
 
28437
    private TransferLot success; // required
28438
    private WarehouseServiceException wex; // required
28439
 
28440
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28441
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28442
      SUCCESS((short)0, "success"),
28443
      WEX((short)1, "wex");
28444
 
28445
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28446
 
28447
      static {
28448
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28449
          byName.put(field.getFieldName(), field);
28450
        }
28451
      }
28452
 
28453
      /**
28454
       * Find the _Fields constant that matches fieldId, or null if its not found.
28455
       */
28456
      public static _Fields findByThriftId(int fieldId) {
28457
        switch(fieldId) {
28458
          case 0: // SUCCESS
28459
            return SUCCESS;
28460
          case 1: // WEX
28461
            return WEX;
28462
          default:
28463
            return null;
28464
        }
28465
      }
28466
 
28467
      /**
28468
       * Find the _Fields constant that matches fieldId, throwing an exception
28469
       * if it is not found.
28470
       */
28471
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28472
        _Fields fields = findByThriftId(fieldId);
28473
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28474
        return fields;
28475
      }
28476
 
28477
      /**
28478
       * Find the _Fields constant that matches name, or null if its not found.
28479
       */
28480
      public static _Fields findByName(String name) {
28481
        return byName.get(name);
28482
      }
28483
 
28484
      private final short _thriftId;
28485
      private final String _fieldName;
28486
 
28487
      _Fields(short thriftId, String fieldName) {
28488
        _thriftId = thriftId;
28489
        _fieldName = fieldName;
28490
      }
28491
 
28492
      public short getThriftFieldId() {
28493
        return _thriftId;
28494
      }
28495
 
28496
      public String getFieldName() {
28497
        return _fieldName;
28498
      }
28499
    }
28500
 
28501
    // isset id assignments
28502
 
28503
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28504
    static {
28505
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28506
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28507
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class)));
28508
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28510
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28511
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_result.class, metaDataMap);
28512
    }
28513
 
28514
    public getTransferLot_result() {
28515
    }
28516
 
28517
    public getTransferLot_result(
28518
      TransferLot success,
28519
      WarehouseServiceException wex)
28520
    {
28521
      this();
28522
      this.success = success;
28523
      this.wex = wex;
28524
    }
28525
 
28526
    /**
28527
     * Performs a deep copy on <i>other</i>.
28528
     */
28529
    public getTransferLot_result(getTransferLot_result other) {
28530
      if (other.isSetSuccess()) {
28531
        this.success = new TransferLot(other.success);
28532
      }
28533
      if (other.isSetWex()) {
28534
        this.wex = new WarehouseServiceException(other.wex);
28535
      }
28536
    }
28537
 
28538
    public getTransferLot_result deepCopy() {
28539
      return new getTransferLot_result(this);
28540
    }
28541
 
28542
    @Override
28543
    public void clear() {
28544
      this.success = null;
28545
      this.wex = null;
28546
    }
28547
 
28548
    public TransferLot getSuccess() {
28549
      return this.success;
28550
    }
28551
 
28552
    public void setSuccess(TransferLot success) {
28553
      this.success = success;
28554
    }
28555
 
28556
    public void unsetSuccess() {
28557
      this.success = null;
28558
    }
28559
 
28560
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28561
    public boolean isSetSuccess() {
28562
      return this.success != null;
28563
    }
28564
 
28565
    public void setSuccessIsSet(boolean value) {
28566
      if (!value) {
28567
        this.success = null;
28568
      }
28569
    }
28570
 
28571
    public WarehouseServiceException getWex() {
28572
      return this.wex;
28573
    }
28574
 
28575
    public void setWex(WarehouseServiceException wex) {
28576
      this.wex = wex;
28577
    }
28578
 
28579
    public void unsetWex() {
28580
      this.wex = null;
28581
    }
28582
 
28583
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
28584
    public boolean isSetWex() {
28585
      return this.wex != null;
28586
    }
28587
 
28588
    public void setWexIsSet(boolean value) {
28589
      if (!value) {
28590
        this.wex = null;
28591
      }
28592
    }
28593
 
28594
    public void setFieldValue(_Fields field, Object value) {
28595
      switch (field) {
28596
      case SUCCESS:
28597
        if (value == null) {
28598
          unsetSuccess();
28599
        } else {
28600
          setSuccess((TransferLot)value);
28601
        }
28602
        break;
28603
 
28604
      case WEX:
28605
        if (value == null) {
28606
          unsetWex();
28607
        } else {
28608
          setWex((WarehouseServiceException)value);
28609
        }
28610
        break;
28611
 
28612
      }
28613
    }
28614
 
28615
    public Object getFieldValue(_Fields field) {
28616
      switch (field) {
28617
      case SUCCESS:
28618
        return getSuccess();
28619
 
28620
      case WEX:
28621
        return getWex();
28622
 
28623
      }
28624
      throw new IllegalStateException();
28625
    }
28626
 
28627
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28628
    public boolean isSet(_Fields field) {
28629
      if (field == null) {
28630
        throw new IllegalArgumentException();
28631
      }
28632
 
28633
      switch (field) {
28634
      case SUCCESS:
28635
        return isSetSuccess();
28636
      case WEX:
28637
        return isSetWex();
28638
      }
28639
      throw new IllegalStateException();
28640
    }
28641
 
28642
    @Override
28643
    public boolean equals(Object that) {
28644
      if (that == null)
28645
        return false;
28646
      if (that instanceof getTransferLot_result)
28647
        return this.equals((getTransferLot_result)that);
28648
      return false;
28649
    }
28650
 
28651
    public boolean equals(getTransferLot_result that) {
28652
      if (that == null)
28653
        return false;
28654
 
28655
      boolean this_present_success = true && this.isSetSuccess();
28656
      boolean that_present_success = true && that.isSetSuccess();
28657
      if (this_present_success || that_present_success) {
28658
        if (!(this_present_success && that_present_success))
28659
          return false;
28660
        if (!this.success.equals(that.success))
28661
          return false;
28662
      }
28663
 
28664
      boolean this_present_wex = true && this.isSetWex();
28665
      boolean that_present_wex = true && that.isSetWex();
28666
      if (this_present_wex || that_present_wex) {
28667
        if (!(this_present_wex && that_present_wex))
28668
          return false;
28669
        if (!this.wex.equals(that.wex))
28670
          return false;
28671
      }
28672
 
28673
      return true;
28674
    }
28675
 
28676
    @Override
28677
    public int hashCode() {
28678
      return 0;
28679
    }
28680
 
28681
    public int compareTo(getTransferLot_result other) {
28682
      if (!getClass().equals(other.getClass())) {
28683
        return getClass().getName().compareTo(other.getClass().getName());
28684
      }
28685
 
28686
      int lastComparison = 0;
28687
      getTransferLot_result typedOther = (getTransferLot_result)other;
28688
 
28689
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28690
      if (lastComparison != 0) {
28691
        return lastComparison;
28692
      }
28693
      if (isSetSuccess()) {
28694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28695
        if (lastComparison != 0) {
28696
          return lastComparison;
28697
        }
28698
      }
28699
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
28700
      if (lastComparison != 0) {
28701
        return lastComparison;
28702
      }
28703
      if (isSetWex()) {
28704
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
28705
        if (lastComparison != 0) {
28706
          return lastComparison;
28707
        }
28708
      }
28709
      return 0;
28710
    }
28711
 
28712
    public _Fields fieldForId(int fieldId) {
28713
      return _Fields.findByThriftId(fieldId);
28714
    }
28715
 
28716
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28717
      org.apache.thrift.protocol.TField field;
28718
      iprot.readStructBegin();
28719
      while (true)
28720
      {
28721
        field = iprot.readFieldBegin();
28722
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28723
          break;
28724
        }
28725
        switch (field.id) {
28726
          case 0: // SUCCESS
28727
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28728
              this.success = new TransferLot();
28729
              this.success.read(iprot);
28730
            } else { 
28731
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28732
            }
28733
            break;
28734
          case 1: // WEX
28735
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28736
              this.wex = new WarehouseServiceException();
28737
              this.wex.read(iprot);
28738
            } else { 
28739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28740
            }
28741
            break;
28742
          default:
28743
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28744
        }
28745
        iprot.readFieldEnd();
28746
      }
28747
      iprot.readStructEnd();
28748
      validate();
28749
    }
28750
 
28751
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28752
      oprot.writeStructBegin(STRUCT_DESC);
28753
 
28754
      if (this.isSetSuccess()) {
28755
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28756
        this.success.write(oprot);
28757
        oprot.writeFieldEnd();
28758
      } else if (this.isSetWex()) {
28759
        oprot.writeFieldBegin(WEX_FIELD_DESC);
28760
        this.wex.write(oprot);
28761
        oprot.writeFieldEnd();
28762
      }
28763
      oprot.writeFieldStop();
28764
      oprot.writeStructEnd();
28765
    }
28766
 
28767
    @Override
28768
    public String toString() {
28769
      StringBuilder sb = new StringBuilder("getTransferLot_result(");
28770
      boolean first = true;
28771
 
28772
      sb.append("success:");
28773
      if (this.success == null) {
28774
        sb.append("null");
28775
      } else {
28776
        sb.append(this.success);
28777
      }
28778
      first = false;
28779
      if (!first) sb.append(", ");
28780
      sb.append("wex:");
28781
      if (this.wex == null) {
28782
        sb.append("null");
28783
      } else {
28784
        sb.append(this.wex);
28785
      }
28786
      first = false;
28787
      sb.append(")");
28788
      return sb.toString();
28789
    }
28790
 
28791
    public void validate() throws org.apache.thrift.TException {
28792
      // check for required fields
28793
    }
28794
 
28795
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28796
      try {
28797
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28798
      } catch (org.apache.thrift.TException te) {
28799
        throw new java.io.IOException(te);
28800
      }
28801
    }
28802
 
28803
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28804
      try {
28805
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28806
      } catch (org.apache.thrift.TException te) {
28807
        throw new java.io.IOException(te);
28808
      }
28809
    }
28810
 
28811
  }
28812
 
28813
  public static class markTransferLotAsReceived_args implements org.apache.thrift.TBase<markTransferLotAsReceived_args, markTransferLotAsReceived_args._Fields>, java.io.Serializable, Cloneable   {
28814
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_args");
28815
 
28816
    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);
28817
    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);
28818
 
28819
    private long id; // required
28820
    private String remoteTransferRefNumber; // required
28821
 
28822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28824
      ID((short)1, "id"),
28825
      REMOTE_TRANSFER_REF_NUMBER((short)2, "remoteTransferRefNumber");
28826
 
28827
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28828
 
28829
      static {
28830
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28831
          byName.put(field.getFieldName(), field);
28832
        }
28833
      }
28834
 
28835
      /**
28836
       * Find the _Fields constant that matches fieldId, or null if its not found.
28837
       */
28838
      public static _Fields findByThriftId(int fieldId) {
28839
        switch(fieldId) {
28840
          case 1: // ID
28841
            return ID;
28842
          case 2: // REMOTE_TRANSFER_REF_NUMBER
28843
            return REMOTE_TRANSFER_REF_NUMBER;
28844
          default:
28845
            return null;
28846
        }
28847
      }
28848
 
28849
      /**
28850
       * Find the _Fields constant that matches fieldId, throwing an exception
28851
       * if it is not found.
28852
       */
28853
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28854
        _Fields fields = findByThriftId(fieldId);
28855
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28856
        return fields;
28857
      }
28858
 
28859
      /**
28860
       * Find the _Fields constant that matches name, or null if its not found.
28861
       */
28862
      public static _Fields findByName(String name) {
28863
        return byName.get(name);
28864
      }
28865
 
28866
      private final short _thriftId;
28867
      private final String _fieldName;
28868
 
28869
      _Fields(short thriftId, String fieldName) {
28870
        _thriftId = thriftId;
28871
        _fieldName = fieldName;
28872
      }
28873
 
28874
      public short getThriftFieldId() {
28875
        return _thriftId;
28876
      }
28877
 
28878
      public String getFieldName() {
28879
        return _fieldName;
28880
      }
28881
    }
28882
 
28883
    // isset id assignments
28884
    private static final int __ID_ISSET_ID = 0;
28885
    private BitSet __isset_bit_vector = new BitSet(1);
28886
 
28887
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28888
    static {
28889
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28890
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28892
      tmpMap.put(_Fields.REMOTE_TRANSFER_REF_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("remoteTransferRefNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28893
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28894
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28895
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_args.class, metaDataMap);
28896
    }
28897
 
28898
    public markTransferLotAsReceived_args() {
28899
    }
28900
 
28901
    public markTransferLotAsReceived_args(
28902
      long id,
28903
      String remoteTransferRefNumber)
28904
    {
28905
      this();
28906
      this.id = id;
28907
      setIdIsSet(true);
28908
      this.remoteTransferRefNumber = remoteTransferRefNumber;
28909
    }
28910
 
28911
    /**
28912
     * Performs a deep copy on <i>other</i>.
28913
     */
28914
    public markTransferLotAsReceived_args(markTransferLotAsReceived_args other) {
28915
      __isset_bit_vector.clear();
28916
      __isset_bit_vector.or(other.__isset_bit_vector);
28917
      this.id = other.id;
28918
      if (other.isSetRemoteTransferRefNumber()) {
28919
        this.remoteTransferRefNumber = other.remoteTransferRefNumber;
28920
      }
28921
    }
28922
 
28923
    public markTransferLotAsReceived_args deepCopy() {
28924
      return new markTransferLotAsReceived_args(this);
28925
    }
28926
 
28927
    @Override
28928
    public void clear() {
28929
      setIdIsSet(false);
28930
      this.id = 0;
28931
      this.remoteTransferRefNumber = null;
28932
    }
28933
 
28934
    public long getId() {
28935
      return this.id;
28936
    }
28937
 
28938
    public void setId(long id) {
28939
      this.id = id;
28940
      setIdIsSet(true);
28941
    }
28942
 
28943
    public void unsetId() {
28944
      __isset_bit_vector.clear(__ID_ISSET_ID);
28945
    }
28946
 
28947
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
28948
    public boolean isSetId() {
28949
      return __isset_bit_vector.get(__ID_ISSET_ID);
28950
    }
28951
 
28952
    public void setIdIsSet(boolean value) {
28953
      __isset_bit_vector.set(__ID_ISSET_ID, value);
28954
    }
28955
 
28956
    public String getRemoteTransferRefNumber() {
28957
      return this.remoteTransferRefNumber;
28958
    }
28959
 
28960
    public void setRemoteTransferRefNumber(String remoteTransferRefNumber) {
28961
      this.remoteTransferRefNumber = remoteTransferRefNumber;
28962
    }
28963
 
28964
    public void unsetRemoteTransferRefNumber() {
28965
      this.remoteTransferRefNumber = null;
28966
    }
28967
 
28968
    /** Returns true if field remoteTransferRefNumber is set (has been assigned a value) and false otherwise */
28969
    public boolean isSetRemoteTransferRefNumber() {
28970
      return this.remoteTransferRefNumber != null;
28971
    }
28972
 
28973
    public void setRemoteTransferRefNumberIsSet(boolean value) {
28974
      if (!value) {
28975
        this.remoteTransferRefNumber = null;
28976
      }
28977
    }
28978
 
28979
    public void setFieldValue(_Fields field, Object value) {
28980
      switch (field) {
28981
      case ID:
28982
        if (value == null) {
28983
          unsetId();
28984
        } else {
28985
          setId((Long)value);
28986
        }
28987
        break;
28988
 
28989
      case REMOTE_TRANSFER_REF_NUMBER:
28990
        if (value == null) {
28991
          unsetRemoteTransferRefNumber();
28992
        } else {
28993
          setRemoteTransferRefNumber((String)value);
28994
        }
28995
        break;
28996
 
28997
      }
28998
    }
28999
 
29000
    public Object getFieldValue(_Fields field) {
29001
      switch (field) {
29002
      case ID:
29003
        return Long.valueOf(getId());
29004
 
29005
      case REMOTE_TRANSFER_REF_NUMBER:
29006
        return getRemoteTransferRefNumber();
29007
 
29008
      }
29009
      throw new IllegalStateException();
29010
    }
29011
 
29012
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29013
    public boolean isSet(_Fields field) {
29014
      if (field == null) {
29015
        throw new IllegalArgumentException();
29016
      }
29017
 
29018
      switch (field) {
29019
      case ID:
29020
        return isSetId();
29021
      case REMOTE_TRANSFER_REF_NUMBER:
29022
        return isSetRemoteTransferRefNumber();
29023
      }
29024
      throw new IllegalStateException();
29025
    }
29026
 
29027
    @Override
29028
    public boolean equals(Object that) {
29029
      if (that == null)
29030
        return false;
29031
      if (that instanceof markTransferLotAsReceived_args)
29032
        return this.equals((markTransferLotAsReceived_args)that);
29033
      return false;
29034
    }
29035
 
29036
    public boolean equals(markTransferLotAsReceived_args that) {
29037
      if (that == null)
29038
        return false;
29039
 
29040
      boolean this_present_id = true;
29041
      boolean that_present_id = true;
29042
      if (this_present_id || that_present_id) {
29043
        if (!(this_present_id && that_present_id))
29044
          return false;
29045
        if (this.id != that.id)
29046
          return false;
29047
      }
29048
 
29049
      boolean this_present_remoteTransferRefNumber = true && this.isSetRemoteTransferRefNumber();
29050
      boolean that_present_remoteTransferRefNumber = true && that.isSetRemoteTransferRefNumber();
29051
      if (this_present_remoteTransferRefNumber || that_present_remoteTransferRefNumber) {
29052
        if (!(this_present_remoteTransferRefNumber && that_present_remoteTransferRefNumber))
29053
          return false;
29054
        if (!this.remoteTransferRefNumber.equals(that.remoteTransferRefNumber))
29055
          return false;
29056
      }
29057
 
29058
      return true;
29059
    }
29060
 
29061
    @Override
29062
    public int hashCode() {
29063
      return 0;
29064
    }
29065
 
29066
    public int compareTo(markTransferLotAsReceived_args other) {
29067
      if (!getClass().equals(other.getClass())) {
29068
        return getClass().getName().compareTo(other.getClass().getName());
29069
      }
29070
 
29071
      int lastComparison = 0;
29072
      markTransferLotAsReceived_args typedOther = (markTransferLotAsReceived_args)other;
29073
 
29074
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
29075
      if (lastComparison != 0) {
29076
        return lastComparison;
29077
      }
29078
      if (isSetId()) {
29079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
29080
        if (lastComparison != 0) {
29081
          return lastComparison;
29082
        }
29083
      }
29084
      lastComparison = Boolean.valueOf(isSetRemoteTransferRefNumber()).compareTo(typedOther.isSetRemoteTransferRefNumber());
29085
      if (lastComparison != 0) {
29086
        return lastComparison;
29087
      }
29088
      if (isSetRemoteTransferRefNumber()) {
29089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remoteTransferRefNumber, typedOther.remoteTransferRefNumber);
29090
        if (lastComparison != 0) {
29091
          return lastComparison;
29092
        }
29093
      }
29094
      return 0;
29095
    }
29096
 
29097
    public _Fields fieldForId(int fieldId) {
29098
      return _Fields.findByThriftId(fieldId);
29099
    }
29100
 
29101
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29102
      org.apache.thrift.protocol.TField field;
29103
      iprot.readStructBegin();
29104
      while (true)
29105
      {
29106
        field = iprot.readFieldBegin();
29107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29108
          break;
29109
        }
29110
        switch (field.id) {
29111
          case 1: // ID
29112
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29113
              this.id = iprot.readI64();
29114
              setIdIsSet(true);
29115
            } else { 
29116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29117
            }
29118
            break;
29119
          case 2: // REMOTE_TRANSFER_REF_NUMBER
29120
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
29121
              this.remoteTransferRefNumber = iprot.readString();
29122
            } else { 
29123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29124
            }
29125
            break;
29126
          default:
29127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29128
        }
29129
        iprot.readFieldEnd();
29130
      }
29131
      iprot.readStructEnd();
29132
      validate();
29133
    }
29134
 
29135
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29136
      validate();
29137
 
29138
      oprot.writeStructBegin(STRUCT_DESC);
29139
      oprot.writeFieldBegin(ID_FIELD_DESC);
29140
      oprot.writeI64(this.id);
29141
      oprot.writeFieldEnd();
29142
      if (this.remoteTransferRefNumber != null) {
29143
        oprot.writeFieldBegin(REMOTE_TRANSFER_REF_NUMBER_FIELD_DESC);
29144
        oprot.writeString(this.remoteTransferRefNumber);
29145
        oprot.writeFieldEnd();
29146
      }
29147
      oprot.writeFieldStop();
29148
      oprot.writeStructEnd();
29149
    }
29150
 
29151
    @Override
29152
    public String toString() {
29153
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_args(");
29154
      boolean first = true;
29155
 
29156
      sb.append("id:");
29157
      sb.append(this.id);
29158
      first = false;
29159
      if (!first) sb.append(", ");
29160
      sb.append("remoteTransferRefNumber:");
29161
      if (this.remoteTransferRefNumber == null) {
29162
        sb.append("null");
29163
      } else {
29164
        sb.append(this.remoteTransferRefNumber);
29165
      }
29166
      first = false;
29167
      sb.append(")");
29168
      return sb.toString();
29169
    }
29170
 
29171
    public void validate() throws org.apache.thrift.TException {
29172
      // check for required fields
29173
    }
29174
 
29175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29176
      try {
29177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29178
      } catch (org.apache.thrift.TException te) {
29179
        throw new java.io.IOException(te);
29180
      }
29181
    }
29182
 
29183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29184
      try {
29185
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29186
        __isset_bit_vector = new BitSet(1);
29187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29188
      } catch (org.apache.thrift.TException te) {
29189
        throw new java.io.IOException(te);
29190
      }
29191
    }
29192
 
29193
  }
29194
 
29195
  public static class markTransferLotAsReceived_result implements org.apache.thrift.TBase<markTransferLotAsReceived_result, markTransferLotAsReceived_result._Fields>, java.io.Serializable, Cloneable   {
29196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_result");
29197
 
29198
    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);
29199
 
29200
    private WarehouseServiceException wex; // required
29201
 
29202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29204
      WEX((short)1, "wex");
29205
 
29206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29207
 
29208
      static {
29209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29210
          byName.put(field.getFieldName(), field);
29211
        }
29212
      }
29213
 
29214
      /**
29215
       * Find the _Fields constant that matches fieldId, or null if its not found.
29216
       */
29217
      public static _Fields findByThriftId(int fieldId) {
29218
        switch(fieldId) {
29219
          case 1: // WEX
29220
            return WEX;
29221
          default:
29222
            return null;
29223
        }
29224
      }
29225
 
29226
      /**
29227
       * Find the _Fields constant that matches fieldId, throwing an exception
29228
       * if it is not found.
29229
       */
29230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29231
        _Fields fields = findByThriftId(fieldId);
29232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29233
        return fields;
29234
      }
29235
 
29236
      /**
29237
       * Find the _Fields constant that matches name, or null if its not found.
29238
       */
29239
      public static _Fields findByName(String name) {
29240
        return byName.get(name);
29241
      }
29242
 
29243
      private final short _thriftId;
29244
      private final String _fieldName;
29245
 
29246
      _Fields(short thriftId, String fieldName) {
29247
        _thriftId = thriftId;
29248
        _fieldName = fieldName;
29249
      }
29250
 
29251
      public short getThriftFieldId() {
29252
        return _thriftId;
29253
      }
29254
 
29255
      public String getFieldName() {
29256
        return _fieldName;
29257
      }
29258
    }
29259
 
29260
    // isset id assignments
29261
 
29262
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29263
    static {
29264
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29265
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29266
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_result.class, metaDataMap);
29269
    }
29270
 
29271
    public markTransferLotAsReceived_result() {
29272
    }
29273
 
29274
    public markTransferLotAsReceived_result(
29275
      WarehouseServiceException wex)
29276
    {
29277
      this();
29278
      this.wex = wex;
29279
    }
29280
 
29281
    /**
29282
     * Performs a deep copy on <i>other</i>.
29283
     */
29284
    public markTransferLotAsReceived_result(markTransferLotAsReceived_result other) {
29285
      if (other.isSetWex()) {
29286
        this.wex = new WarehouseServiceException(other.wex);
29287
      }
29288
    }
29289
 
29290
    public markTransferLotAsReceived_result deepCopy() {
29291
      return new markTransferLotAsReceived_result(this);
29292
    }
29293
 
29294
    @Override
29295
    public void clear() {
29296
      this.wex = null;
29297
    }
29298
 
29299
    public WarehouseServiceException getWex() {
29300
      return this.wex;
29301
    }
29302
 
29303
    public void setWex(WarehouseServiceException wex) {
29304
      this.wex = wex;
29305
    }
29306
 
29307
    public void unsetWex() {
29308
      this.wex = null;
29309
    }
29310
 
29311
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
29312
    public boolean isSetWex() {
29313
      return this.wex != null;
29314
    }
29315
 
29316
    public void setWexIsSet(boolean value) {
29317
      if (!value) {
29318
        this.wex = null;
29319
      }
29320
    }
29321
 
29322
    public void setFieldValue(_Fields field, Object value) {
29323
      switch (field) {
29324
      case WEX:
29325
        if (value == null) {
29326
          unsetWex();
29327
        } else {
29328
          setWex((WarehouseServiceException)value);
29329
        }
29330
        break;
29331
 
29332
      }
29333
    }
29334
 
29335
    public Object getFieldValue(_Fields field) {
29336
      switch (field) {
29337
      case WEX:
29338
        return getWex();
29339
 
29340
      }
29341
      throw new IllegalStateException();
29342
    }
29343
 
29344
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29345
    public boolean isSet(_Fields field) {
29346
      if (field == null) {
29347
        throw new IllegalArgumentException();
29348
      }
29349
 
29350
      switch (field) {
29351
      case WEX:
29352
        return isSetWex();
29353
      }
29354
      throw new IllegalStateException();
29355
    }
29356
 
29357
    @Override
29358
    public boolean equals(Object that) {
29359
      if (that == null)
29360
        return false;
29361
      if (that instanceof markTransferLotAsReceived_result)
29362
        return this.equals((markTransferLotAsReceived_result)that);
29363
      return false;
29364
    }
29365
 
29366
    public boolean equals(markTransferLotAsReceived_result that) {
29367
      if (that == null)
29368
        return false;
29369
 
29370
      boolean this_present_wex = true && this.isSetWex();
29371
      boolean that_present_wex = true && that.isSetWex();
29372
      if (this_present_wex || that_present_wex) {
29373
        if (!(this_present_wex && that_present_wex))
29374
          return false;
29375
        if (!this.wex.equals(that.wex))
29376
          return false;
29377
      }
29378
 
29379
      return true;
29380
    }
29381
 
29382
    @Override
29383
    public int hashCode() {
29384
      return 0;
29385
    }
29386
 
29387
    public int compareTo(markTransferLotAsReceived_result other) {
29388
      if (!getClass().equals(other.getClass())) {
29389
        return getClass().getName().compareTo(other.getClass().getName());
29390
      }
29391
 
29392
      int lastComparison = 0;
29393
      markTransferLotAsReceived_result typedOther = (markTransferLotAsReceived_result)other;
29394
 
29395
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
29396
      if (lastComparison != 0) {
29397
        return lastComparison;
29398
      }
29399
      if (isSetWex()) {
29400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
29401
        if (lastComparison != 0) {
29402
          return lastComparison;
29403
        }
29404
      }
29405
      return 0;
29406
    }
29407
 
29408
    public _Fields fieldForId(int fieldId) {
29409
      return _Fields.findByThriftId(fieldId);
29410
    }
29411
 
29412
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29413
      org.apache.thrift.protocol.TField field;
29414
      iprot.readStructBegin();
29415
      while (true)
29416
      {
29417
        field = iprot.readFieldBegin();
29418
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29419
          break;
29420
        }
29421
        switch (field.id) {
29422
          case 1: // WEX
29423
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29424
              this.wex = new WarehouseServiceException();
29425
              this.wex.read(iprot);
29426
            } else { 
29427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29428
            }
29429
            break;
29430
          default:
29431
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29432
        }
29433
        iprot.readFieldEnd();
29434
      }
29435
      iprot.readStructEnd();
29436
      validate();
29437
    }
29438
 
29439
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29440
      oprot.writeStructBegin(STRUCT_DESC);
29441
 
29442
      if (this.isSetWex()) {
29443
        oprot.writeFieldBegin(WEX_FIELD_DESC);
29444
        this.wex.write(oprot);
29445
        oprot.writeFieldEnd();
29446
      }
29447
      oprot.writeFieldStop();
29448
      oprot.writeStructEnd();
29449
    }
29450
 
29451
    @Override
29452
    public String toString() {
29453
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_result(");
29454
      boolean first = true;
29455
 
29456
      sb.append("wex:");
29457
      if (this.wex == null) {
29458
        sb.append("null");
29459
      } else {
29460
        sb.append(this.wex);
29461
      }
29462
      first = false;
29463
      sb.append(")");
29464
      return sb.toString();
29465
    }
29466
 
29467
    public void validate() throws org.apache.thrift.TException {
29468
      // check for required fields
29469
    }
29470
 
29471
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29472
      try {
29473
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29474
      } catch (org.apache.thrift.TException te) {
29475
        throw new java.io.IOException(te);
29476
      }
29477
    }
29478
 
29479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29480
      try {
29481
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29482
      } catch (org.apache.thrift.TException te) {
29483
        throw new java.io.IOException(te);
29484
      }
29485
    }
29486
 
29487
  }
29488
 
29489
  public static class getTransferLotsByDate_args implements org.apache.thrift.TBase<getTransferLotsByDate_args, getTransferLotsByDate_args._Fields>, java.io.Serializable, Cloneable   {
29490
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_args");
29491
 
29492
    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);
29493
    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);
29494
 
29495
    private long fromDate; // required
29496
    private long toDate; // required
29497
 
29498
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29499
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29500
      FROM_DATE((short)1, "fromDate"),
29501
      TO_DATE((short)2, "toDate");
29502
 
29503
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29504
 
29505
      static {
29506
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29507
          byName.put(field.getFieldName(), field);
29508
        }
29509
      }
29510
 
29511
      /**
29512
       * Find the _Fields constant that matches fieldId, or null if its not found.
29513
       */
29514
      public static _Fields findByThriftId(int fieldId) {
29515
        switch(fieldId) {
29516
          case 1: // FROM_DATE
29517
            return FROM_DATE;
29518
          case 2: // TO_DATE
29519
            return TO_DATE;
29520
          default:
29521
            return null;
29522
        }
29523
      }
29524
 
29525
      /**
29526
       * Find the _Fields constant that matches fieldId, throwing an exception
29527
       * if it is not found.
29528
       */
29529
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29530
        _Fields fields = findByThriftId(fieldId);
29531
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29532
        return fields;
29533
      }
29534
 
29535
      /**
29536
       * Find the _Fields constant that matches name, or null if its not found.
29537
       */
29538
      public static _Fields findByName(String name) {
29539
        return byName.get(name);
29540
      }
29541
 
29542
      private final short _thriftId;
29543
      private final String _fieldName;
29544
 
29545
      _Fields(short thriftId, String fieldName) {
29546
        _thriftId = thriftId;
29547
        _fieldName = fieldName;
29548
      }
29549
 
29550
      public short getThriftFieldId() {
29551
        return _thriftId;
29552
      }
29553
 
29554
      public String getFieldName() {
29555
        return _fieldName;
29556
      }
29557
    }
29558
 
29559
    // isset id assignments
29560
    private static final int __FROMDATE_ISSET_ID = 0;
29561
    private static final int __TODATE_ISSET_ID = 1;
29562
    private BitSet __isset_bit_vector = new BitSet(2);
29563
 
29564
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29565
    static {
29566
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29567
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29568
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29569
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29570
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29571
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29572
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_args.class, metaDataMap);
29573
    }
29574
 
29575
    public getTransferLotsByDate_args() {
29576
    }
29577
 
29578
    public getTransferLotsByDate_args(
29579
      long fromDate,
29580
      long toDate)
29581
    {
29582
      this();
29583
      this.fromDate = fromDate;
29584
      setFromDateIsSet(true);
29585
      this.toDate = toDate;
29586
      setToDateIsSet(true);
29587
    }
29588
 
29589
    /**
29590
     * Performs a deep copy on <i>other</i>.
29591
     */
29592
    public getTransferLotsByDate_args(getTransferLotsByDate_args other) {
29593
      __isset_bit_vector.clear();
29594
      __isset_bit_vector.or(other.__isset_bit_vector);
29595
      this.fromDate = other.fromDate;
29596
      this.toDate = other.toDate;
29597
    }
29598
 
29599
    public getTransferLotsByDate_args deepCopy() {
29600
      return new getTransferLotsByDate_args(this);
29601
    }
29602
 
29603
    @Override
29604
    public void clear() {
29605
      setFromDateIsSet(false);
29606
      this.fromDate = 0;
29607
      setToDateIsSet(false);
29608
      this.toDate = 0;
29609
    }
29610
 
29611
    public long getFromDate() {
29612
      return this.fromDate;
29613
    }
29614
 
29615
    public void setFromDate(long fromDate) {
29616
      this.fromDate = fromDate;
29617
      setFromDateIsSet(true);
29618
    }
29619
 
29620
    public void unsetFromDate() {
29621
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
29622
    }
29623
 
29624
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
29625
    public boolean isSetFromDate() {
29626
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
29627
    }
29628
 
29629
    public void setFromDateIsSet(boolean value) {
29630
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
29631
    }
29632
 
29633
    public long getToDate() {
29634
      return this.toDate;
29635
    }
29636
 
29637
    public void setToDate(long toDate) {
29638
      this.toDate = toDate;
29639
      setToDateIsSet(true);
29640
    }
29641
 
29642
    public void unsetToDate() {
29643
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
29644
    }
29645
 
29646
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
29647
    public boolean isSetToDate() {
29648
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
29649
    }
29650
 
29651
    public void setToDateIsSet(boolean value) {
29652
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
29653
    }
29654
 
29655
    public void setFieldValue(_Fields field, Object value) {
29656
      switch (field) {
29657
      case FROM_DATE:
29658
        if (value == null) {
29659
          unsetFromDate();
29660
        } else {
29661
          setFromDate((Long)value);
29662
        }
29663
        break;
29664
 
29665
      case TO_DATE:
29666
        if (value == null) {
29667
          unsetToDate();
29668
        } else {
29669
          setToDate((Long)value);
29670
        }
29671
        break;
29672
 
29673
      }
29674
    }
29675
 
29676
    public Object getFieldValue(_Fields field) {
29677
      switch (field) {
29678
      case FROM_DATE:
29679
        return Long.valueOf(getFromDate());
29680
 
29681
      case TO_DATE:
29682
        return Long.valueOf(getToDate());
29683
 
29684
      }
29685
      throw new IllegalStateException();
29686
    }
29687
 
29688
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29689
    public boolean isSet(_Fields field) {
29690
      if (field == null) {
29691
        throw new IllegalArgumentException();
29692
      }
29693
 
29694
      switch (field) {
29695
      case FROM_DATE:
29696
        return isSetFromDate();
29697
      case TO_DATE:
29698
        return isSetToDate();
29699
      }
29700
      throw new IllegalStateException();
29701
    }
29702
 
29703
    @Override
29704
    public boolean equals(Object that) {
29705
      if (that == null)
29706
        return false;
29707
      if (that instanceof getTransferLotsByDate_args)
29708
        return this.equals((getTransferLotsByDate_args)that);
29709
      return false;
29710
    }
29711
 
29712
    public boolean equals(getTransferLotsByDate_args that) {
29713
      if (that == null)
29714
        return false;
29715
 
29716
      boolean this_present_fromDate = true;
29717
      boolean that_present_fromDate = true;
29718
      if (this_present_fromDate || that_present_fromDate) {
29719
        if (!(this_present_fromDate && that_present_fromDate))
29720
          return false;
29721
        if (this.fromDate != that.fromDate)
29722
          return false;
29723
      }
29724
 
29725
      boolean this_present_toDate = true;
29726
      boolean that_present_toDate = true;
29727
      if (this_present_toDate || that_present_toDate) {
29728
        if (!(this_present_toDate && that_present_toDate))
29729
          return false;
29730
        if (this.toDate != that.toDate)
29731
          return false;
29732
      }
29733
 
29734
      return true;
29735
    }
29736
 
29737
    @Override
29738
    public int hashCode() {
29739
      return 0;
29740
    }
29741
 
29742
    public int compareTo(getTransferLotsByDate_args other) {
29743
      if (!getClass().equals(other.getClass())) {
29744
        return getClass().getName().compareTo(other.getClass().getName());
29745
      }
29746
 
29747
      int lastComparison = 0;
29748
      getTransferLotsByDate_args typedOther = (getTransferLotsByDate_args)other;
29749
 
29750
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
29751
      if (lastComparison != 0) {
29752
        return lastComparison;
29753
      }
29754
      if (isSetFromDate()) {
29755
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
29756
        if (lastComparison != 0) {
29757
          return lastComparison;
29758
        }
29759
      }
29760
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
29761
      if (lastComparison != 0) {
29762
        return lastComparison;
29763
      }
29764
      if (isSetToDate()) {
29765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
29766
        if (lastComparison != 0) {
29767
          return lastComparison;
29768
        }
29769
      }
29770
      return 0;
29771
    }
29772
 
29773
    public _Fields fieldForId(int fieldId) {
29774
      return _Fields.findByThriftId(fieldId);
29775
    }
29776
 
29777
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29778
      org.apache.thrift.protocol.TField field;
29779
      iprot.readStructBegin();
29780
      while (true)
29781
      {
29782
        field = iprot.readFieldBegin();
29783
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29784
          break;
29785
        }
29786
        switch (field.id) {
29787
          case 1: // FROM_DATE
29788
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29789
              this.fromDate = iprot.readI64();
29790
              setFromDateIsSet(true);
29791
            } else { 
29792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29793
            }
29794
            break;
29795
          case 2: // TO_DATE
29796
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29797
              this.toDate = iprot.readI64();
29798
              setToDateIsSet(true);
29799
            } else { 
29800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29801
            }
29802
            break;
29803
          default:
29804
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29805
        }
29806
        iprot.readFieldEnd();
29807
      }
29808
      iprot.readStructEnd();
29809
      validate();
29810
    }
29811
 
29812
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29813
      validate();
29814
 
29815
      oprot.writeStructBegin(STRUCT_DESC);
29816
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
29817
      oprot.writeI64(this.fromDate);
29818
      oprot.writeFieldEnd();
29819
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
29820
      oprot.writeI64(this.toDate);
29821
      oprot.writeFieldEnd();
29822
      oprot.writeFieldStop();
29823
      oprot.writeStructEnd();
29824
    }
29825
 
29826
    @Override
29827
    public String toString() {
29828
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_args(");
29829
      boolean first = true;
29830
 
29831
      sb.append("fromDate:");
29832
      sb.append(this.fromDate);
29833
      first = false;
29834
      if (!first) sb.append(", ");
29835
      sb.append("toDate:");
29836
      sb.append(this.toDate);
29837
      first = false;
29838
      sb.append(")");
29839
      return sb.toString();
29840
    }
29841
 
29842
    public void validate() throws org.apache.thrift.TException {
29843
      // check for required fields
29844
    }
29845
 
29846
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29847
      try {
29848
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29849
      } catch (org.apache.thrift.TException te) {
29850
        throw new java.io.IOException(te);
29851
      }
29852
    }
29853
 
29854
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29855
      try {
29856
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29857
        __isset_bit_vector = new BitSet(1);
29858
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29859
      } catch (org.apache.thrift.TException te) {
29860
        throw new java.io.IOException(te);
29861
      }
29862
    }
29863
 
29864
  }
29865
 
29866
  public static class getTransferLotsByDate_result implements org.apache.thrift.TBase<getTransferLotsByDate_result, getTransferLotsByDate_result._Fields>, java.io.Serializable, Cloneable   {
29867
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_result");
29868
 
29869
    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);
29870
    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);
29871
 
29872
    private List<TransferLot> success; // required
29873
    private WarehouseServiceException wex; // required
29874
 
29875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29877
      SUCCESS((short)0, "success"),
29878
      WEX((short)1, "wex");
29879
 
29880
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29881
 
29882
      static {
29883
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29884
          byName.put(field.getFieldName(), field);
29885
        }
29886
      }
29887
 
29888
      /**
29889
       * Find the _Fields constant that matches fieldId, or null if its not found.
29890
       */
29891
      public static _Fields findByThriftId(int fieldId) {
29892
        switch(fieldId) {
29893
          case 0: // SUCCESS
29894
            return SUCCESS;
29895
          case 1: // WEX
29896
            return WEX;
29897
          default:
29898
            return null;
29899
        }
29900
      }
29901
 
29902
      /**
29903
       * Find the _Fields constant that matches fieldId, throwing an exception
29904
       * if it is not found.
29905
       */
29906
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29907
        _Fields fields = findByThriftId(fieldId);
29908
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29909
        return fields;
29910
      }
29911
 
29912
      /**
29913
       * Find the _Fields constant that matches name, or null if its not found.
29914
       */
29915
      public static _Fields findByName(String name) {
29916
        return byName.get(name);
29917
      }
29918
 
29919
      private final short _thriftId;
29920
      private final String _fieldName;
29921
 
29922
      _Fields(short thriftId, String fieldName) {
29923
        _thriftId = thriftId;
29924
        _fieldName = fieldName;
29925
      }
29926
 
29927
      public short getThriftFieldId() {
29928
        return _thriftId;
29929
      }
29930
 
29931
      public String getFieldName() {
29932
        return _fieldName;
29933
      }
29934
    }
29935
 
29936
    // isset id assignments
29937
 
29938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29939
    static {
29940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29941
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29942
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29943
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class))));
29944
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29945
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29946
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29947
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_result.class, metaDataMap);
29948
    }
29949
 
29950
    public getTransferLotsByDate_result() {
29951
    }
29952
 
29953
    public getTransferLotsByDate_result(
29954
      List<TransferLot> success,
29955
      WarehouseServiceException wex)
29956
    {
29957
      this();
29958
      this.success = success;
29959
      this.wex = wex;
29960
    }
29961
 
29962
    /**
29963
     * Performs a deep copy on <i>other</i>.
29964
     */
29965
    public getTransferLotsByDate_result(getTransferLotsByDate_result other) {
29966
      if (other.isSetSuccess()) {
29967
        List<TransferLot> __this__success = new ArrayList<TransferLot>();
29968
        for (TransferLot other_element : other.success) {
29969
          __this__success.add(new TransferLot(other_element));
29970
        }
29971
        this.success = __this__success;
29972
      }
29973
      if (other.isSetWex()) {
29974
        this.wex = new WarehouseServiceException(other.wex);
29975
      }
29976
    }
29977
 
29978
    public getTransferLotsByDate_result deepCopy() {
29979
      return new getTransferLotsByDate_result(this);
29980
    }
29981
 
29982
    @Override
29983
    public void clear() {
29984
      this.success = null;
29985
      this.wex = null;
29986
    }
29987
 
29988
    public int getSuccessSize() {
29989
      return (this.success == null) ? 0 : this.success.size();
29990
    }
29991
 
29992
    public java.util.Iterator<TransferLot> getSuccessIterator() {
29993
      return (this.success == null) ? null : this.success.iterator();
29994
    }
29995
 
29996
    public void addToSuccess(TransferLot elem) {
29997
      if (this.success == null) {
29998
        this.success = new ArrayList<TransferLot>();
29999
      }
30000
      this.success.add(elem);
30001
    }
30002
 
30003
    public List<TransferLot> getSuccess() {
30004
      return this.success;
30005
    }
30006
 
30007
    public void setSuccess(List<TransferLot> success) {
30008
      this.success = success;
30009
    }
30010
 
30011
    public void unsetSuccess() {
30012
      this.success = null;
30013
    }
30014
 
30015
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30016
    public boolean isSetSuccess() {
30017
      return this.success != null;
30018
    }
30019
 
30020
    public void setSuccessIsSet(boolean value) {
30021
      if (!value) {
30022
        this.success = null;
30023
      }
30024
    }
30025
 
30026
    public WarehouseServiceException getWex() {
30027
      return this.wex;
30028
    }
30029
 
30030
    public void setWex(WarehouseServiceException wex) {
30031
      this.wex = wex;
30032
    }
30033
 
30034
    public void unsetWex() {
30035
      this.wex = null;
30036
    }
30037
 
30038
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
30039
    public boolean isSetWex() {
30040
      return this.wex != null;
30041
    }
30042
 
30043
    public void setWexIsSet(boolean value) {
30044
      if (!value) {
30045
        this.wex = null;
30046
      }
30047
    }
30048
 
30049
    public void setFieldValue(_Fields field, Object value) {
30050
      switch (field) {
30051
      case SUCCESS:
30052
        if (value == null) {
30053
          unsetSuccess();
30054
        } else {
30055
          setSuccess((List<TransferLot>)value);
30056
        }
30057
        break;
30058
 
30059
      case WEX:
30060
        if (value == null) {
30061
          unsetWex();
30062
        } else {
30063
          setWex((WarehouseServiceException)value);
30064
        }
30065
        break;
30066
 
30067
      }
30068
    }
30069
 
30070
    public Object getFieldValue(_Fields field) {
30071
      switch (field) {
30072
      case SUCCESS:
30073
        return getSuccess();
30074
 
30075
      case WEX:
30076
        return getWex();
30077
 
30078
      }
30079
      throw new IllegalStateException();
30080
    }
30081
 
30082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30083
    public boolean isSet(_Fields field) {
30084
      if (field == null) {
30085
        throw new IllegalArgumentException();
30086
      }
30087
 
30088
      switch (field) {
30089
      case SUCCESS:
30090
        return isSetSuccess();
30091
      case WEX:
30092
        return isSetWex();
30093
      }
30094
      throw new IllegalStateException();
30095
    }
30096
 
30097
    @Override
30098
    public boolean equals(Object that) {
30099
      if (that == null)
30100
        return false;
30101
      if (that instanceof getTransferLotsByDate_result)
30102
        return this.equals((getTransferLotsByDate_result)that);
30103
      return false;
30104
    }
30105
 
30106
    public boolean equals(getTransferLotsByDate_result that) {
30107
      if (that == null)
30108
        return false;
30109
 
30110
      boolean this_present_success = true && this.isSetSuccess();
30111
      boolean that_present_success = true && that.isSetSuccess();
30112
      if (this_present_success || that_present_success) {
30113
        if (!(this_present_success && that_present_success))
30114
          return false;
30115
        if (!this.success.equals(that.success))
30116
          return false;
30117
      }
30118
 
30119
      boolean this_present_wex = true && this.isSetWex();
30120
      boolean that_present_wex = true && that.isSetWex();
30121
      if (this_present_wex || that_present_wex) {
30122
        if (!(this_present_wex && that_present_wex))
30123
          return false;
30124
        if (!this.wex.equals(that.wex))
30125
          return false;
30126
      }
30127
 
30128
      return true;
30129
    }
30130
 
30131
    @Override
30132
    public int hashCode() {
30133
      return 0;
30134
    }
30135
 
30136
    public int compareTo(getTransferLotsByDate_result other) {
30137
      if (!getClass().equals(other.getClass())) {
30138
        return getClass().getName().compareTo(other.getClass().getName());
30139
      }
30140
 
30141
      int lastComparison = 0;
30142
      getTransferLotsByDate_result typedOther = (getTransferLotsByDate_result)other;
30143
 
30144
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30145
      if (lastComparison != 0) {
30146
        return lastComparison;
30147
      }
30148
      if (isSetSuccess()) {
30149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30150
        if (lastComparison != 0) {
30151
          return lastComparison;
30152
        }
30153
      }
30154
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
30155
      if (lastComparison != 0) {
30156
        return lastComparison;
30157
      }
30158
      if (isSetWex()) {
30159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
30160
        if (lastComparison != 0) {
30161
          return lastComparison;
30162
        }
30163
      }
30164
      return 0;
30165
    }
30166
 
30167
    public _Fields fieldForId(int fieldId) {
30168
      return _Fields.findByThriftId(fieldId);
30169
    }
30170
 
30171
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30172
      org.apache.thrift.protocol.TField field;
30173
      iprot.readStructBegin();
30174
      while (true)
30175
      {
30176
        field = iprot.readFieldBegin();
30177
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30178
          break;
30179
        }
30180
        switch (field.id) {
30181
          case 0: // SUCCESS
30182
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30183
              {
30184
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
30185
                this.success = new ArrayList<TransferLot>(_list76.size);
30186
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
30187
                {
30188
                  TransferLot _elem78; // required
30189
                  _elem78 = new TransferLot();
30190
                  _elem78.read(iprot);
30191
                  this.success.add(_elem78);
30192
                }
30193
                iprot.readListEnd();
30194
              }
30195
            } else { 
30196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30197
            }
30198
            break;
30199
          case 1: // WEX
30200
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30201
              this.wex = new WarehouseServiceException();
30202
              this.wex.read(iprot);
30203
            } else { 
30204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30205
            }
30206
            break;
30207
          default:
30208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30209
        }
30210
        iprot.readFieldEnd();
30211
      }
30212
      iprot.readStructEnd();
30213
      validate();
30214
    }
30215
 
30216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30217
      oprot.writeStructBegin(STRUCT_DESC);
30218
 
30219
      if (this.isSetSuccess()) {
30220
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30221
        {
30222
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30223
          for (TransferLot _iter79 : this.success)
30224
          {
30225
            _iter79.write(oprot);
30226
          }
30227
          oprot.writeListEnd();
30228
        }
30229
        oprot.writeFieldEnd();
30230
      } else if (this.isSetWex()) {
30231
        oprot.writeFieldBegin(WEX_FIELD_DESC);
30232
        this.wex.write(oprot);
30233
        oprot.writeFieldEnd();
30234
      }
30235
      oprot.writeFieldStop();
30236
      oprot.writeStructEnd();
30237
    }
30238
 
30239
    @Override
30240
    public String toString() {
30241
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_result(");
30242
      boolean first = true;
30243
 
30244
      sb.append("success:");
30245
      if (this.success == null) {
30246
        sb.append("null");
30247
      } else {
30248
        sb.append(this.success);
30249
      }
30250
      first = false;
30251
      if (!first) sb.append(", ");
30252
      sb.append("wex:");
30253
      if (this.wex == null) {
30254
        sb.append("null");
30255
      } else {
30256
        sb.append(this.wex);
30257
      }
30258
      first = false;
30259
      sb.append(")");
30260
      return sb.toString();
30261
    }
30262
 
30263
    public void validate() throws org.apache.thrift.TException {
30264
      // check for required fields
30265
    }
30266
 
30267
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30268
      try {
30269
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30270
      } catch (org.apache.thrift.TException te) {
30271
        throw new java.io.IOException(te);
30272
      }
30273
    }
30274
 
30275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30276
      try {
30277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30278
      } catch (org.apache.thrift.TException te) {
30279
        throw new java.io.IOException(te);
30280
      }
30281
    }
30282
 
30283
  }
30284
 
30285
  public static class getAllowedDestinationWarehousesForTransfer_args implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_args, getAllowedDestinationWarehousesForTransfer_args._Fields>, java.io.Serializable, Cloneable   {
30286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_args");
30287
 
30288
    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);
30289
 
30290
    private long warehouseId; // required
30291
 
30292
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30293
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30294
      WAREHOUSE_ID((short)1, "warehouseId");
30295
 
30296
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30297
 
30298
      static {
30299
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30300
          byName.put(field.getFieldName(), field);
30301
        }
30302
      }
30303
 
30304
      /**
30305
       * Find the _Fields constant that matches fieldId, or null if its not found.
30306
       */
30307
      public static _Fields findByThriftId(int fieldId) {
30308
        switch(fieldId) {
30309
          case 1: // WAREHOUSE_ID
30310
            return WAREHOUSE_ID;
30311
          default:
30312
            return null;
30313
        }
30314
      }
30315
 
30316
      /**
30317
       * Find the _Fields constant that matches fieldId, throwing an exception
30318
       * if it is not found.
30319
       */
30320
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30321
        _Fields fields = findByThriftId(fieldId);
30322
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30323
        return fields;
30324
      }
30325
 
30326
      /**
30327
       * Find the _Fields constant that matches name, or null if its not found.
30328
       */
30329
      public static _Fields findByName(String name) {
30330
        return byName.get(name);
30331
      }
30332
 
30333
      private final short _thriftId;
30334
      private final String _fieldName;
30335
 
30336
      _Fields(short thriftId, String fieldName) {
30337
        _thriftId = thriftId;
30338
        _fieldName = fieldName;
30339
      }
30340
 
30341
      public short getThriftFieldId() {
30342
        return _thriftId;
30343
      }
30344
 
30345
      public String getFieldName() {
30346
        return _fieldName;
30347
      }
30348
    }
30349
 
30350
    // isset id assignments
30351
    private static final int __WAREHOUSEID_ISSET_ID = 0;
30352
    private BitSet __isset_bit_vector = new BitSet(1);
30353
 
30354
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30355
    static {
30356
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30357
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30358
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30359
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30360
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_args.class, metaDataMap);
30361
    }
30362
 
30363
    public getAllowedDestinationWarehousesForTransfer_args() {
30364
    }
30365
 
30366
    public getAllowedDestinationWarehousesForTransfer_args(
30367
      long warehouseId)
30368
    {
30369
      this();
30370
      this.warehouseId = warehouseId;
30371
      setWarehouseIdIsSet(true);
30372
    }
30373
 
30374
    /**
30375
     * Performs a deep copy on <i>other</i>.
30376
     */
30377
    public getAllowedDestinationWarehousesForTransfer_args(getAllowedDestinationWarehousesForTransfer_args other) {
30378
      __isset_bit_vector.clear();
30379
      __isset_bit_vector.or(other.__isset_bit_vector);
30380
      this.warehouseId = other.warehouseId;
30381
    }
30382
 
30383
    public getAllowedDestinationWarehousesForTransfer_args deepCopy() {
30384
      return new getAllowedDestinationWarehousesForTransfer_args(this);
30385
    }
30386
 
30387
    @Override
30388
    public void clear() {
30389
      setWarehouseIdIsSet(false);
30390
      this.warehouseId = 0;
30391
    }
30392
 
30393
    public long getWarehouseId() {
30394
      return this.warehouseId;
30395
    }
30396
 
30397
    public void setWarehouseId(long warehouseId) {
30398
      this.warehouseId = warehouseId;
30399
      setWarehouseIdIsSet(true);
30400
    }
30401
 
30402
    public void unsetWarehouseId() {
30403
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
30404
    }
30405
 
30406
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
30407
    public boolean isSetWarehouseId() {
30408
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
30409
    }
30410
 
30411
    public void setWarehouseIdIsSet(boolean value) {
30412
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
30413
    }
30414
 
30415
    public void setFieldValue(_Fields field, Object value) {
30416
      switch (field) {
30417
      case WAREHOUSE_ID:
30418
        if (value == null) {
30419
          unsetWarehouseId();
30420
        } else {
30421
          setWarehouseId((Long)value);
30422
        }
30423
        break;
30424
 
30425
      }
30426
    }
30427
 
30428
    public Object getFieldValue(_Fields field) {
30429
      switch (field) {
30430
      case WAREHOUSE_ID:
30431
        return Long.valueOf(getWarehouseId());
30432
 
30433
      }
30434
      throw new IllegalStateException();
30435
    }
30436
 
30437
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30438
    public boolean isSet(_Fields field) {
30439
      if (field == null) {
30440
        throw new IllegalArgumentException();
30441
      }
30442
 
30443
      switch (field) {
30444
      case WAREHOUSE_ID:
30445
        return isSetWarehouseId();
30446
      }
30447
      throw new IllegalStateException();
30448
    }
30449
 
30450
    @Override
30451
    public boolean equals(Object that) {
30452
      if (that == null)
30453
        return false;
30454
      if (that instanceof getAllowedDestinationWarehousesForTransfer_args)
30455
        return this.equals((getAllowedDestinationWarehousesForTransfer_args)that);
30456
      return false;
30457
    }
30458
 
30459
    public boolean equals(getAllowedDestinationWarehousesForTransfer_args that) {
30460
      if (that == null)
30461
        return false;
30462
 
30463
      boolean this_present_warehouseId = true;
30464
      boolean that_present_warehouseId = true;
30465
      if (this_present_warehouseId || that_present_warehouseId) {
30466
        if (!(this_present_warehouseId && that_present_warehouseId))
30467
          return false;
30468
        if (this.warehouseId != that.warehouseId)
30469
          return false;
30470
      }
30471
 
30472
      return true;
30473
    }
30474
 
30475
    @Override
30476
    public int hashCode() {
30477
      return 0;
30478
    }
30479
 
30480
    public int compareTo(getAllowedDestinationWarehousesForTransfer_args other) {
30481
      if (!getClass().equals(other.getClass())) {
30482
        return getClass().getName().compareTo(other.getClass().getName());
30483
      }
30484
 
30485
      int lastComparison = 0;
30486
      getAllowedDestinationWarehousesForTransfer_args typedOther = (getAllowedDestinationWarehousesForTransfer_args)other;
30487
 
30488
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
30489
      if (lastComparison != 0) {
30490
        return lastComparison;
30491
      }
30492
      if (isSetWarehouseId()) {
30493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
30494
        if (lastComparison != 0) {
30495
          return lastComparison;
30496
        }
30497
      }
30498
      return 0;
30499
    }
30500
 
30501
    public _Fields fieldForId(int fieldId) {
30502
      return _Fields.findByThriftId(fieldId);
30503
    }
30504
 
30505
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30506
      org.apache.thrift.protocol.TField field;
30507
      iprot.readStructBegin();
30508
      while (true)
30509
      {
30510
        field = iprot.readFieldBegin();
30511
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30512
          break;
30513
        }
30514
        switch (field.id) {
30515
          case 1: // WAREHOUSE_ID
30516
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30517
              this.warehouseId = iprot.readI64();
30518
              setWarehouseIdIsSet(true);
30519
            } else { 
30520
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30521
            }
30522
            break;
30523
          default:
30524
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30525
        }
30526
        iprot.readFieldEnd();
30527
      }
30528
      iprot.readStructEnd();
30529
      validate();
30530
    }
30531
 
30532
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30533
      validate();
30534
 
30535
      oprot.writeStructBegin(STRUCT_DESC);
30536
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
30537
      oprot.writeI64(this.warehouseId);
30538
      oprot.writeFieldEnd();
30539
      oprot.writeFieldStop();
30540
      oprot.writeStructEnd();
30541
    }
30542
 
30543
    @Override
30544
    public String toString() {
30545
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_args(");
30546
      boolean first = true;
30547
 
30548
      sb.append("warehouseId:");
30549
      sb.append(this.warehouseId);
30550
      first = false;
30551
      sb.append(")");
30552
      return sb.toString();
30553
    }
30554
 
30555
    public void validate() throws org.apache.thrift.TException {
30556
      // check for required fields
30557
    }
30558
 
30559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30560
      try {
30561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30562
      } catch (org.apache.thrift.TException te) {
30563
        throw new java.io.IOException(te);
30564
      }
30565
    }
30566
 
30567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30568
      try {
30569
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30570
        __isset_bit_vector = new BitSet(1);
30571
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30572
      } catch (org.apache.thrift.TException te) {
30573
        throw new java.io.IOException(te);
30574
      }
30575
    }
30576
 
30577
  }
30578
 
30579
  public static class getAllowedDestinationWarehousesForTransfer_result implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_result, getAllowedDestinationWarehousesForTransfer_result._Fields>, java.io.Serializable, Cloneable   {
30580
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_result");
30581
 
30582
    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);
30583
 
30584
    private List<Long> success; // required
30585
 
30586
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30587
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30588
      SUCCESS((short)0, "success");
30589
 
30590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30591
 
30592
      static {
30593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30594
          byName.put(field.getFieldName(), field);
30595
        }
30596
      }
30597
 
30598
      /**
30599
       * Find the _Fields constant that matches fieldId, or null if its not found.
30600
       */
30601
      public static _Fields findByThriftId(int fieldId) {
30602
        switch(fieldId) {
30603
          case 0: // SUCCESS
30604
            return SUCCESS;
30605
          default:
30606
            return null;
30607
        }
30608
      }
30609
 
30610
      /**
30611
       * Find the _Fields constant that matches fieldId, throwing an exception
30612
       * if it is not found.
30613
       */
30614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30615
        _Fields fields = findByThriftId(fieldId);
30616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30617
        return fields;
30618
      }
30619
 
30620
      /**
30621
       * Find the _Fields constant that matches name, or null if its not found.
30622
       */
30623
      public static _Fields findByName(String name) {
30624
        return byName.get(name);
30625
      }
30626
 
30627
      private final short _thriftId;
30628
      private final String _fieldName;
30629
 
30630
      _Fields(short thriftId, String fieldName) {
30631
        _thriftId = thriftId;
30632
        _fieldName = fieldName;
30633
      }
30634
 
30635
      public short getThriftFieldId() {
30636
        return _thriftId;
30637
      }
30638
 
30639
      public String getFieldName() {
30640
        return _fieldName;
30641
      }
30642
    }
30643
 
30644
    // isset id assignments
30645
 
30646
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30647
    static {
30648
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30649
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30650
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30651
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_result.class, metaDataMap);
30654
    }
30655
 
30656
    public getAllowedDestinationWarehousesForTransfer_result() {
30657
    }
30658
 
30659
    public getAllowedDestinationWarehousesForTransfer_result(
30660
      List<Long> success)
30661
    {
30662
      this();
30663
      this.success = success;
30664
    }
30665
 
30666
    /**
30667
     * Performs a deep copy on <i>other</i>.
30668
     */
30669
    public getAllowedDestinationWarehousesForTransfer_result(getAllowedDestinationWarehousesForTransfer_result other) {
30670
      if (other.isSetSuccess()) {
30671
        List<Long> __this__success = new ArrayList<Long>();
30672
        for (Long other_element : other.success) {
30673
          __this__success.add(other_element);
30674
        }
30675
        this.success = __this__success;
30676
      }
30677
    }
30678
 
30679
    public getAllowedDestinationWarehousesForTransfer_result deepCopy() {
30680
      return new getAllowedDestinationWarehousesForTransfer_result(this);
30681
    }
30682
 
30683
    @Override
30684
    public void clear() {
30685
      this.success = null;
30686
    }
30687
 
30688
    public int getSuccessSize() {
30689
      return (this.success == null) ? 0 : this.success.size();
30690
    }
30691
 
30692
    public java.util.Iterator<Long> getSuccessIterator() {
30693
      return (this.success == null) ? null : this.success.iterator();
30694
    }
30695
 
30696
    public void addToSuccess(long elem) {
30697
      if (this.success == null) {
30698
        this.success = new ArrayList<Long>();
30699
      }
30700
      this.success.add(elem);
30701
    }
30702
 
30703
    public List<Long> getSuccess() {
30704
      return this.success;
30705
    }
30706
 
30707
    public void setSuccess(List<Long> success) {
30708
      this.success = success;
30709
    }
30710
 
30711
    public void unsetSuccess() {
30712
      this.success = null;
30713
    }
30714
 
30715
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30716
    public boolean isSetSuccess() {
30717
      return this.success != null;
30718
    }
30719
 
30720
    public void setSuccessIsSet(boolean value) {
30721
      if (!value) {
30722
        this.success = null;
30723
      }
30724
    }
30725
 
30726
    public void setFieldValue(_Fields field, Object value) {
30727
      switch (field) {
30728
      case SUCCESS:
30729
        if (value == null) {
30730
          unsetSuccess();
30731
        } else {
30732
          setSuccess((List<Long>)value);
30733
        }
30734
        break;
30735
 
30736
      }
30737
    }
30738
 
30739
    public Object getFieldValue(_Fields field) {
30740
      switch (field) {
30741
      case SUCCESS:
30742
        return getSuccess();
30743
 
30744
      }
30745
      throw new IllegalStateException();
30746
    }
30747
 
30748
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30749
    public boolean isSet(_Fields field) {
30750
      if (field == null) {
30751
        throw new IllegalArgumentException();
30752
      }
30753
 
30754
      switch (field) {
30755
      case SUCCESS:
30756
        return isSetSuccess();
30757
      }
30758
      throw new IllegalStateException();
30759
    }
30760
 
30761
    @Override
30762
    public boolean equals(Object that) {
30763
      if (that == null)
30764
        return false;
30765
      if (that instanceof getAllowedDestinationWarehousesForTransfer_result)
30766
        return this.equals((getAllowedDestinationWarehousesForTransfer_result)that);
30767
      return false;
30768
    }
30769
 
30770
    public boolean equals(getAllowedDestinationWarehousesForTransfer_result that) {
30771
      if (that == null)
30772
        return false;
30773
 
30774
      boolean this_present_success = true && this.isSetSuccess();
30775
      boolean that_present_success = true && that.isSetSuccess();
30776
      if (this_present_success || that_present_success) {
30777
        if (!(this_present_success && that_present_success))
30778
          return false;
30779
        if (!this.success.equals(that.success))
30780
          return false;
30781
      }
30782
 
30783
      return true;
30784
    }
30785
 
30786
    @Override
30787
    public int hashCode() {
30788
      return 0;
30789
    }
30790
 
30791
    public int compareTo(getAllowedDestinationWarehousesForTransfer_result other) {
30792
      if (!getClass().equals(other.getClass())) {
30793
        return getClass().getName().compareTo(other.getClass().getName());
30794
      }
30795
 
30796
      int lastComparison = 0;
30797
      getAllowedDestinationWarehousesForTransfer_result typedOther = (getAllowedDestinationWarehousesForTransfer_result)other;
30798
 
30799
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30800
      if (lastComparison != 0) {
30801
        return lastComparison;
30802
      }
30803
      if (isSetSuccess()) {
30804
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30805
        if (lastComparison != 0) {
30806
          return lastComparison;
30807
        }
30808
      }
30809
      return 0;
30810
    }
30811
 
30812
    public _Fields fieldForId(int fieldId) {
30813
      return _Fields.findByThriftId(fieldId);
30814
    }
30815
 
30816
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30817
      org.apache.thrift.protocol.TField field;
30818
      iprot.readStructBegin();
30819
      while (true)
30820
      {
30821
        field = iprot.readFieldBegin();
30822
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30823
          break;
30824
        }
30825
        switch (field.id) {
30826
          case 0: // SUCCESS
30827
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30828
              {
30829
                org.apache.thrift.protocol.TList _list80 = iprot.readListBegin();
30830
                this.success = new ArrayList<Long>(_list80.size);
30831
                for (int _i81 = 0; _i81 < _list80.size; ++_i81)
30832
                {
30833
                  long _elem82; // required
30834
                  _elem82 = iprot.readI64();
30835
                  this.success.add(_elem82);
30836
                }
30837
                iprot.readListEnd();
30838
              }
30839
            } else { 
30840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30841
            }
30842
            break;
30843
          default:
30844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30845
        }
30846
        iprot.readFieldEnd();
30847
      }
30848
      iprot.readStructEnd();
30849
      validate();
30850
    }
30851
 
30852
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30853
      oprot.writeStructBegin(STRUCT_DESC);
30854
 
30855
      if (this.isSetSuccess()) {
30856
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30857
        {
30858
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
30859
          for (long _iter83 : this.success)
30860
          {
30861
            oprot.writeI64(_iter83);
30862
          }
30863
          oprot.writeListEnd();
30864
        }
30865
        oprot.writeFieldEnd();
30866
      }
30867
      oprot.writeFieldStop();
30868
      oprot.writeStructEnd();
30869
    }
30870
 
30871
    @Override
30872
    public String toString() {
30873
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_result(");
30874
      boolean first = true;
30875
 
30876
      sb.append("success:");
30877
      if (this.success == null) {
30878
        sb.append("null");
30879
      } else {
30880
        sb.append(this.success);
30881
      }
30882
      first = false;
30883
      sb.append(")");
30884
      return sb.toString();
30885
    }
30886
 
30887
    public void validate() throws org.apache.thrift.TException {
30888
      // check for required fields
30889
    }
30890
 
30891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30892
      try {
30893
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30894
      } catch (org.apache.thrift.TException te) {
30895
        throw new java.io.IOException(te);
30896
      }
30897
    }
30898
 
30899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30900
      try {
30901
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30902
      } catch (org.apache.thrift.TException te) {
30903
        throw new java.io.IOException(te);
30904
      }
30905
    }
30906
 
30907
  }
30908
 
30909
  public static class getItemsInTransferLot_args implements org.apache.thrift.TBase<getItemsInTransferLot_args, getItemsInTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
30910
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_args");
30911
 
30912
    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);
30913
 
30914
    private long transferLotId; // required
30915
 
30916
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30917
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30918
      TRANSFER_LOT_ID((short)1, "transferLotId");
30919
 
30920
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30921
 
30922
      static {
30923
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30924
          byName.put(field.getFieldName(), field);
30925
        }
30926
      }
30927
 
30928
      /**
30929
       * Find the _Fields constant that matches fieldId, or null if its not found.
30930
       */
30931
      public static _Fields findByThriftId(int fieldId) {
30932
        switch(fieldId) {
30933
          case 1: // TRANSFER_LOT_ID
30934
            return TRANSFER_LOT_ID;
30935
          default:
30936
            return null;
30937
        }
30938
      }
30939
 
30940
      /**
30941
       * Find the _Fields constant that matches fieldId, throwing an exception
30942
       * if it is not found.
30943
       */
30944
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30945
        _Fields fields = findByThriftId(fieldId);
30946
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30947
        return fields;
30948
      }
30949
 
30950
      /**
30951
       * Find the _Fields constant that matches name, or null if its not found.
30952
       */
30953
      public static _Fields findByName(String name) {
30954
        return byName.get(name);
30955
      }
30956
 
30957
      private final short _thriftId;
30958
      private final String _fieldName;
30959
 
30960
      _Fields(short thriftId, String fieldName) {
30961
        _thriftId = thriftId;
30962
        _fieldName = fieldName;
30963
      }
30964
 
30965
      public short getThriftFieldId() {
30966
        return _thriftId;
30967
      }
30968
 
30969
      public String getFieldName() {
30970
        return _fieldName;
30971
      }
30972
    }
30973
 
30974
    // isset id assignments
30975
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
30976
    private BitSet __isset_bit_vector = new BitSet(1);
30977
 
30978
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30979
    static {
30980
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30981
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30982
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30983
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30984
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInTransferLot_args.class, metaDataMap);
30985
    }
30986
 
30987
    public getItemsInTransferLot_args() {
30988
    }
30989
 
30990
    public getItemsInTransferLot_args(
30991
      long transferLotId)
30992
    {
30993
      this();
30994
      this.transferLotId = transferLotId;
30995
      setTransferLotIdIsSet(true);
30996
    }
30997
 
30998
    /**
30999
     * Performs a deep copy on <i>other</i>.
31000
     */
31001
    public getItemsInTransferLot_args(getItemsInTransferLot_args other) {
31002
      __isset_bit_vector.clear();
31003
      __isset_bit_vector.or(other.__isset_bit_vector);
31004
      this.transferLotId = other.transferLotId;
31005
    }
31006
 
31007
    public getItemsInTransferLot_args deepCopy() {
31008
      return new getItemsInTransferLot_args(this);
31009
    }
31010
 
31011
    @Override
31012
    public void clear() {
31013
      setTransferLotIdIsSet(false);
31014
      this.transferLotId = 0;
31015
    }
31016
 
31017
    public long getTransferLotId() {
31018
      return this.transferLotId;
31019
    }
31020
 
31021
    public void setTransferLotId(long transferLotId) {
31022
      this.transferLotId = transferLotId;
31023
      setTransferLotIdIsSet(true);
31024
    }
31025
 
31026
    public void unsetTransferLotId() {
31027
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
31028
    }
31029
 
31030
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
31031
    public boolean isSetTransferLotId() {
31032
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
31033
    }
31034
 
31035
    public void setTransferLotIdIsSet(boolean value) {
31036
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
31037
    }
31038
 
31039
    public void setFieldValue(_Fields field, Object value) {
31040
      switch (field) {
31041
      case TRANSFER_LOT_ID:
31042
        if (value == null) {
31043
          unsetTransferLotId();
31044
        } else {
31045
          setTransferLotId((Long)value);
31046
        }
31047
        break;
31048
 
31049
      }
31050
    }
31051
 
31052
    public Object getFieldValue(_Fields field) {
31053
      switch (field) {
31054
      case TRANSFER_LOT_ID:
31055
        return Long.valueOf(getTransferLotId());
31056
 
31057
      }
31058
      throw new IllegalStateException();
31059
    }
31060
 
31061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31062
    public boolean isSet(_Fields field) {
31063
      if (field == null) {
31064
        throw new IllegalArgumentException();
31065
      }
31066
 
31067
      switch (field) {
31068
      case TRANSFER_LOT_ID:
31069
        return isSetTransferLotId();
31070
      }
31071
      throw new IllegalStateException();
31072
    }
31073
 
31074
    @Override
31075
    public boolean equals(Object that) {
31076
      if (that == null)
31077
        return false;
31078
      if (that instanceof getItemsInTransferLot_args)
31079
        return this.equals((getItemsInTransferLot_args)that);
31080
      return false;
31081
    }
31082
 
31083
    public boolean equals(getItemsInTransferLot_args that) {
31084
      if (that == null)
31085
        return false;
31086
 
31087
      boolean this_present_transferLotId = true;
31088
      boolean that_present_transferLotId = true;
31089
      if (this_present_transferLotId || that_present_transferLotId) {
31090
        if (!(this_present_transferLotId && that_present_transferLotId))
31091
          return false;
31092
        if (this.transferLotId != that.transferLotId)
31093
          return false;
31094
      }
31095
 
31096
      return true;
31097
    }
31098
 
31099
    @Override
31100
    public int hashCode() {
31101
      return 0;
31102
    }
31103
 
31104
    public int compareTo(getItemsInTransferLot_args other) {
31105
      if (!getClass().equals(other.getClass())) {
31106
        return getClass().getName().compareTo(other.getClass().getName());
31107
      }
31108
 
31109
      int lastComparison = 0;
31110
      getItemsInTransferLot_args typedOther = (getItemsInTransferLot_args)other;
31111
 
31112
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
31113
      if (lastComparison != 0) {
31114
        return lastComparison;
31115
      }
31116
      if (isSetTransferLotId()) {
31117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
31118
        if (lastComparison != 0) {
31119
          return lastComparison;
31120
        }
31121
      }
31122
      return 0;
31123
    }
31124
 
31125
    public _Fields fieldForId(int fieldId) {
31126
      return _Fields.findByThriftId(fieldId);
31127
    }
31128
 
31129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31130
      org.apache.thrift.protocol.TField field;
31131
      iprot.readStructBegin();
31132
      while (true)
31133
      {
31134
        field = iprot.readFieldBegin();
31135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31136
          break;
31137
        }
31138
        switch (field.id) {
31139
          case 1: // TRANSFER_LOT_ID
31140
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31141
              this.transferLotId = iprot.readI64();
31142
              setTransferLotIdIsSet(true);
31143
            } else { 
31144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31145
            }
31146
            break;
31147
          default:
31148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31149
        }
31150
        iprot.readFieldEnd();
31151
      }
31152
      iprot.readStructEnd();
31153
      validate();
31154
    }
31155
 
31156
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31157
      validate();
31158
 
31159
      oprot.writeStructBegin(STRUCT_DESC);
31160
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
31161
      oprot.writeI64(this.transferLotId);
31162
      oprot.writeFieldEnd();
31163
      oprot.writeFieldStop();
31164
      oprot.writeStructEnd();
31165
    }
31166
 
31167
    @Override
31168
    public String toString() {
31169
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_args(");
31170
      boolean first = true;
31171
 
31172
      sb.append("transferLotId:");
31173
      sb.append(this.transferLotId);
31174
      first = false;
31175
      sb.append(")");
31176
      return sb.toString();
31177
    }
31178
 
31179
    public void validate() throws org.apache.thrift.TException {
31180
      // check for required fields
31181
    }
31182
 
31183
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31184
      try {
31185
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31186
      } catch (org.apache.thrift.TException te) {
31187
        throw new java.io.IOException(te);
31188
      }
31189
    }
31190
 
31191
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31192
      try {
31193
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31194
        __isset_bit_vector = new BitSet(1);
31195
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31196
      } catch (org.apache.thrift.TException te) {
31197
        throw new java.io.IOException(te);
31198
      }
31199
    }
31200
 
31201
  }
31202
 
31203
  public static class getItemsInTransferLot_result implements org.apache.thrift.TBase<getItemsInTransferLot_result, getItemsInTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
31204
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_result");
31205
 
31206
    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);
31207
 
31208
    private Map<Long,Long> success; // required
31209
 
31210
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31211
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31212
      SUCCESS((short)0, "success");
31213
 
31214
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31215
 
31216
      static {
31217
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31218
          byName.put(field.getFieldName(), field);
31219
        }
31220
      }
31221
 
31222
      /**
31223
       * Find the _Fields constant that matches fieldId, or null if its not found.
31224
       */
31225
      public static _Fields findByThriftId(int fieldId) {
31226
        switch(fieldId) {
31227
          case 0: // SUCCESS
31228
            return SUCCESS;
31229
          default:
31230
            return null;
31231
        }
31232
      }
31233
 
31234
      /**
31235
       * Find the _Fields constant that matches fieldId, throwing an exception
31236
       * if it is not found.
31237
       */
31238
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31239
        _Fields fields = findByThriftId(fieldId);
31240
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31241
        return fields;
31242
      }
31243
 
31244
      /**
31245
       * Find the _Fields constant that matches name, or null if its not found.
31246
       */
31247
      public static _Fields findByName(String name) {
31248
        return byName.get(name);
31249
      }
31250
 
31251
      private final short _thriftId;
31252
      private final String _fieldName;
31253
 
31254
      _Fields(short thriftId, String fieldName) {
31255
        _thriftId = thriftId;
31256
        _fieldName = fieldName;
31257
      }
31258
 
31259
      public short getThriftFieldId() {
31260
        return _thriftId;
31261
      }
31262
 
31263
      public String getFieldName() {
31264
        return _fieldName;
31265
      }
31266
    }
31267
 
31268
    // isset id assignments
31269
 
31270
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31271
    static {
31272
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31273
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31274
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
31275
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
31276
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
31277
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31278
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInTransferLot_result.class, metaDataMap);
31279
    }
31280
 
31281
    public getItemsInTransferLot_result() {
31282
    }
31283
 
31284
    public getItemsInTransferLot_result(
31285
      Map<Long,Long> success)
31286
    {
31287
      this();
31288
      this.success = success;
31289
    }
31290
 
31291
    /**
31292
     * Performs a deep copy on <i>other</i>.
31293
     */
31294
    public getItemsInTransferLot_result(getItemsInTransferLot_result other) {
31295
      if (other.isSetSuccess()) {
31296
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
31297
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
31298
 
31299
          Long other_element_key = other_element.getKey();
31300
          Long other_element_value = other_element.getValue();
31301
 
31302
          Long __this__success_copy_key = other_element_key;
31303
 
31304
          Long __this__success_copy_value = other_element_value;
31305
 
31306
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
31307
        }
31308
        this.success = __this__success;
31309
      }
31310
    }
31311
 
31312
    public getItemsInTransferLot_result deepCopy() {
31313
      return new getItemsInTransferLot_result(this);
31314
    }
31315
 
31316
    @Override
31317
    public void clear() {
31318
      this.success = null;
31319
    }
31320
 
31321
    public int getSuccessSize() {
31322
      return (this.success == null) ? 0 : this.success.size();
31323
    }
31324
 
31325
    public void putToSuccess(long key, long val) {
31326
      if (this.success == null) {
31327
        this.success = new HashMap<Long,Long>();
31328
      }
31329
      this.success.put(key, val);
31330
    }
31331
 
31332
    public Map<Long,Long> getSuccess() {
31333
      return this.success;
31334
    }
31335
 
31336
    public void setSuccess(Map<Long,Long> success) {
31337
      this.success = success;
31338
    }
31339
 
31340
    public void unsetSuccess() {
31341
      this.success = null;
31342
    }
31343
 
31344
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31345
    public boolean isSetSuccess() {
31346
      return this.success != null;
31347
    }
31348
 
31349
    public void setSuccessIsSet(boolean value) {
31350
      if (!value) {
31351
        this.success = null;
31352
      }
31353
    }
31354
 
31355
    public void setFieldValue(_Fields field, Object value) {
31356
      switch (field) {
31357
      case SUCCESS:
31358
        if (value == null) {
31359
          unsetSuccess();
31360
        } else {
31361
          setSuccess((Map<Long,Long>)value);
31362
        }
31363
        break;
31364
 
31365
      }
31366
    }
31367
 
31368
    public Object getFieldValue(_Fields field) {
31369
      switch (field) {
31370
      case SUCCESS:
31371
        return getSuccess();
31372
 
31373
      }
31374
      throw new IllegalStateException();
31375
    }
31376
 
31377
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31378
    public boolean isSet(_Fields field) {
31379
      if (field == null) {
31380
        throw new IllegalArgumentException();
31381
      }
31382
 
31383
      switch (field) {
31384
      case SUCCESS:
31385
        return isSetSuccess();
31386
      }
31387
      throw new IllegalStateException();
31388
    }
31389
 
31390
    @Override
31391
    public boolean equals(Object that) {
31392
      if (that == null)
31393
        return false;
31394
      if (that instanceof getItemsInTransferLot_result)
31395
        return this.equals((getItemsInTransferLot_result)that);
31396
      return false;
31397
    }
31398
 
31399
    public boolean equals(getItemsInTransferLot_result that) {
31400
      if (that == null)
31401
        return false;
31402
 
31403
      boolean this_present_success = true && this.isSetSuccess();
31404
      boolean that_present_success = true && that.isSetSuccess();
31405
      if (this_present_success || that_present_success) {
31406
        if (!(this_present_success && that_present_success))
31407
          return false;
31408
        if (!this.success.equals(that.success))
31409
          return false;
31410
      }
31411
 
31412
      return true;
31413
    }
31414
 
31415
    @Override
31416
    public int hashCode() {
31417
      return 0;
31418
    }
31419
 
31420
    public int compareTo(getItemsInTransferLot_result other) {
31421
      if (!getClass().equals(other.getClass())) {
31422
        return getClass().getName().compareTo(other.getClass().getName());
31423
      }
31424
 
31425
      int lastComparison = 0;
31426
      getItemsInTransferLot_result typedOther = (getItemsInTransferLot_result)other;
31427
 
31428
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31429
      if (lastComparison != 0) {
31430
        return lastComparison;
31431
      }
31432
      if (isSetSuccess()) {
31433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31434
        if (lastComparison != 0) {
31435
          return lastComparison;
31436
        }
31437
      }
31438
      return 0;
31439
    }
31440
 
31441
    public _Fields fieldForId(int fieldId) {
31442
      return _Fields.findByThriftId(fieldId);
31443
    }
31444
 
31445
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31446
      org.apache.thrift.protocol.TField field;
31447
      iprot.readStructBegin();
31448
      while (true)
31449
      {
31450
        field = iprot.readFieldBegin();
31451
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31452
          break;
31453
        }
31454
        switch (field.id) {
31455
          case 0: // SUCCESS
31456
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31457
              {
31458
                org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin();
31459
                this.success = new HashMap<Long,Long>(2*_map84.size);
31460
                for (int _i85 = 0; _i85 < _map84.size; ++_i85)
31461
                {
31462
                  long _key86; // required
31463
                  long _val87; // required
31464
                  _key86 = iprot.readI64();
31465
                  _val87 = iprot.readI64();
31466
                  this.success.put(_key86, _val87);
31467
                }
31468
                iprot.readMapEnd();
31469
              }
31470
            } else { 
31471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31472
            }
31473
            break;
31474
          default:
31475
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31476
        }
31477
        iprot.readFieldEnd();
31478
      }
31479
      iprot.readStructEnd();
31480
      validate();
31481
    }
31482
 
31483
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31484
      oprot.writeStructBegin(STRUCT_DESC);
31485
 
31486
      if (this.isSetSuccess()) {
31487
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31488
        {
31489
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
31490
          for (Map.Entry<Long, Long> _iter88 : this.success.entrySet())
31491
          {
31492
            oprot.writeI64(_iter88.getKey());
31493
            oprot.writeI64(_iter88.getValue());
31494
          }
31495
          oprot.writeMapEnd();
31496
        }
31497
        oprot.writeFieldEnd();
31498
      }
31499
      oprot.writeFieldStop();
31500
      oprot.writeStructEnd();
31501
    }
31502
 
31503
    @Override
31504
    public String toString() {
31505
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_result(");
31506
      boolean first = true;
31507
 
31508
      sb.append("success:");
31509
      if (this.success == null) {
31510
        sb.append("null");
31511
      } else {
31512
        sb.append(this.success);
31513
      }
31514
      first = false;
31515
      sb.append(")");
31516
      return sb.toString();
31517
    }
31518
 
31519
    public void validate() throws org.apache.thrift.TException {
31520
      // check for required fields
31521
    }
31522
 
31523
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31524
      try {
31525
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31526
      } catch (org.apache.thrift.TException te) {
31527
        throw new java.io.IOException(te);
31528
      }
31529
    }
31530
 
31531
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31532
      try {
31533
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31534
      } catch (org.apache.thrift.TException te) {
31535
        throw new java.io.IOException(te);
31536
      }
31537
    }
31538
 
31539
  }
31540
 
31541
  public static class markItemsAsReceivedForTransferLot_args implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_args, markItemsAsReceivedForTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
31542
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_args");
31543
 
31544
    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);
31545
 
31546
    private long id; // required
31547
 
31548
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31549
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31550
      ID((short)1, "id");
31551
 
31552
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31553
 
31554
      static {
31555
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31556
          byName.put(field.getFieldName(), field);
31557
        }
31558
      }
31559
 
31560
      /**
31561
       * Find the _Fields constant that matches fieldId, or null if its not found.
31562
       */
31563
      public static _Fields findByThriftId(int fieldId) {
31564
        switch(fieldId) {
31565
          case 1: // ID
31566
            return ID;
31567
          default:
31568
            return null;
31569
        }
31570
      }
31571
 
31572
      /**
31573
       * Find the _Fields constant that matches fieldId, throwing an exception
31574
       * if it is not found.
31575
       */
31576
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31577
        _Fields fields = findByThriftId(fieldId);
31578
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31579
        return fields;
31580
      }
31581
 
31582
      /**
31583
       * Find the _Fields constant that matches name, or null if its not found.
31584
       */
31585
      public static _Fields findByName(String name) {
31586
        return byName.get(name);
31587
      }
31588
 
31589
      private final short _thriftId;
31590
      private final String _fieldName;
31591
 
31592
      _Fields(short thriftId, String fieldName) {
31593
        _thriftId = thriftId;
31594
        _fieldName = fieldName;
31595
      }
31596
 
31597
      public short getThriftFieldId() {
31598
        return _thriftId;
31599
      }
31600
 
31601
      public String getFieldName() {
31602
        return _fieldName;
31603
      }
31604
    }
31605
 
31606
    // isset id assignments
31607
    private static final int __ID_ISSET_ID = 0;
31608
    private BitSet __isset_bit_vector = new BitSet(1);
31609
 
31610
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31611
    static {
31612
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31613
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31614
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31615
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31616
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_args.class, metaDataMap);
31617
    }
31618
 
31619
    public markItemsAsReceivedForTransferLot_args() {
31620
    }
31621
 
31622
    public markItemsAsReceivedForTransferLot_args(
31623
      long id)
31624
    {
31625
      this();
31626
      this.id = id;
31627
      setIdIsSet(true);
31628
    }
31629
 
31630
    /**
31631
     * Performs a deep copy on <i>other</i>.
31632
     */
31633
    public markItemsAsReceivedForTransferLot_args(markItemsAsReceivedForTransferLot_args other) {
31634
      __isset_bit_vector.clear();
31635
      __isset_bit_vector.or(other.__isset_bit_vector);
31636
      this.id = other.id;
31637
    }
31638
 
31639
    public markItemsAsReceivedForTransferLot_args deepCopy() {
31640
      return new markItemsAsReceivedForTransferLot_args(this);
31641
    }
31642
 
31643
    @Override
31644
    public void clear() {
31645
      setIdIsSet(false);
31646
      this.id = 0;
31647
    }
31648
 
31649
    public long getId() {
31650
      return this.id;
31651
    }
31652
 
31653
    public void setId(long id) {
31654
      this.id = id;
31655
      setIdIsSet(true);
31656
    }
31657
 
31658
    public void unsetId() {
31659
      __isset_bit_vector.clear(__ID_ISSET_ID);
31660
    }
31661
 
31662
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
31663
    public boolean isSetId() {
31664
      return __isset_bit_vector.get(__ID_ISSET_ID);
31665
    }
31666
 
31667
    public void setIdIsSet(boolean value) {
31668
      __isset_bit_vector.set(__ID_ISSET_ID, value);
31669
    }
31670
 
31671
    public void setFieldValue(_Fields field, Object value) {
31672
      switch (field) {
31673
      case ID:
31674
        if (value == null) {
31675
          unsetId();
31676
        } else {
31677
          setId((Long)value);
31678
        }
31679
        break;
31680
 
31681
      }
31682
    }
31683
 
31684
    public Object getFieldValue(_Fields field) {
31685
      switch (field) {
31686
      case ID:
31687
        return Long.valueOf(getId());
31688
 
31689
      }
31690
      throw new IllegalStateException();
31691
    }
31692
 
31693
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31694
    public boolean isSet(_Fields field) {
31695
      if (field == null) {
31696
        throw new IllegalArgumentException();
31697
      }
31698
 
31699
      switch (field) {
31700
      case ID:
31701
        return isSetId();
31702
      }
31703
      throw new IllegalStateException();
31704
    }
31705
 
31706
    @Override
31707
    public boolean equals(Object that) {
31708
      if (that == null)
31709
        return false;
31710
      if (that instanceof markItemsAsReceivedForTransferLot_args)
31711
        return this.equals((markItemsAsReceivedForTransferLot_args)that);
31712
      return false;
31713
    }
31714
 
31715
    public boolean equals(markItemsAsReceivedForTransferLot_args that) {
31716
      if (that == null)
31717
        return false;
31718
 
31719
      boolean this_present_id = true;
31720
      boolean that_present_id = true;
31721
      if (this_present_id || that_present_id) {
31722
        if (!(this_present_id && that_present_id))
31723
          return false;
31724
        if (this.id != that.id)
31725
          return false;
31726
      }
31727
 
31728
      return true;
31729
    }
31730
 
31731
    @Override
31732
    public int hashCode() {
31733
      return 0;
31734
    }
31735
 
31736
    public int compareTo(markItemsAsReceivedForTransferLot_args other) {
31737
      if (!getClass().equals(other.getClass())) {
31738
        return getClass().getName().compareTo(other.getClass().getName());
31739
      }
31740
 
31741
      int lastComparison = 0;
31742
      markItemsAsReceivedForTransferLot_args typedOther = (markItemsAsReceivedForTransferLot_args)other;
31743
 
31744
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
31745
      if (lastComparison != 0) {
31746
        return lastComparison;
31747
      }
31748
      if (isSetId()) {
31749
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
31750
        if (lastComparison != 0) {
31751
          return lastComparison;
31752
        }
31753
      }
31754
      return 0;
31755
    }
31756
 
31757
    public _Fields fieldForId(int fieldId) {
31758
      return _Fields.findByThriftId(fieldId);
31759
    }
31760
 
31761
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31762
      org.apache.thrift.protocol.TField field;
31763
      iprot.readStructBegin();
31764
      while (true)
31765
      {
31766
        field = iprot.readFieldBegin();
31767
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31768
          break;
31769
        }
31770
        switch (field.id) {
31771
          case 1: // ID
31772
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31773
              this.id = iprot.readI64();
31774
              setIdIsSet(true);
31775
            } else { 
31776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31777
            }
31778
            break;
31779
          default:
31780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31781
        }
31782
        iprot.readFieldEnd();
31783
      }
31784
      iprot.readStructEnd();
31785
      validate();
31786
    }
31787
 
31788
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31789
      validate();
31790
 
31791
      oprot.writeStructBegin(STRUCT_DESC);
31792
      oprot.writeFieldBegin(ID_FIELD_DESC);
31793
      oprot.writeI64(this.id);
31794
      oprot.writeFieldEnd();
31795
      oprot.writeFieldStop();
31796
      oprot.writeStructEnd();
31797
    }
31798
 
31799
    @Override
31800
    public String toString() {
31801
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_args(");
31802
      boolean first = true;
31803
 
31804
      sb.append("id:");
31805
      sb.append(this.id);
31806
      first = false;
31807
      sb.append(")");
31808
      return sb.toString();
31809
    }
31810
 
31811
    public void validate() throws org.apache.thrift.TException {
31812
      // check for required fields
31813
    }
31814
 
31815
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31816
      try {
31817
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31818
      } catch (org.apache.thrift.TException te) {
31819
        throw new java.io.IOException(te);
31820
      }
31821
    }
31822
 
31823
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31824
      try {
31825
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31826
        __isset_bit_vector = new BitSet(1);
31827
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31828
      } catch (org.apache.thrift.TException te) {
31829
        throw new java.io.IOException(te);
31830
      }
31831
    }
31832
 
31833
  }
31834
 
31835
  public static class markItemsAsReceivedForTransferLot_result implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_result, markItemsAsReceivedForTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
31836
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_result");
31837
 
31838
    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);
31839
 
31840
    private WarehouseServiceException wex; // required
31841
 
31842
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31843
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31844
      WEX((short)1, "wex");
31845
 
31846
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31847
 
31848
      static {
31849
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31850
          byName.put(field.getFieldName(), field);
31851
        }
31852
      }
31853
 
31854
      /**
31855
       * Find the _Fields constant that matches fieldId, or null if its not found.
31856
       */
31857
      public static _Fields findByThriftId(int fieldId) {
31858
        switch(fieldId) {
31859
          case 1: // WEX
31860
            return WEX;
31861
          default:
31862
            return null;
31863
        }
31864
      }
31865
 
31866
      /**
31867
       * Find the _Fields constant that matches fieldId, throwing an exception
31868
       * if it is not found.
31869
       */
31870
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31871
        _Fields fields = findByThriftId(fieldId);
31872
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31873
        return fields;
31874
      }
31875
 
31876
      /**
31877
       * Find the _Fields constant that matches name, or null if its not found.
31878
       */
31879
      public static _Fields findByName(String name) {
31880
        return byName.get(name);
31881
      }
31882
 
31883
      private final short _thriftId;
31884
      private final String _fieldName;
31885
 
31886
      _Fields(short thriftId, String fieldName) {
31887
        _thriftId = thriftId;
31888
        _fieldName = fieldName;
31889
      }
31890
 
31891
      public short getThriftFieldId() {
31892
        return _thriftId;
31893
      }
31894
 
31895
      public String getFieldName() {
31896
        return _fieldName;
31897
      }
31898
    }
31899
 
31900
    // isset id assignments
31901
 
31902
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31903
    static {
31904
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31905
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31906
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31907
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31908
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_result.class, metaDataMap);
31909
    }
31910
 
31911
    public markItemsAsReceivedForTransferLot_result() {
31912
    }
31913
 
31914
    public markItemsAsReceivedForTransferLot_result(
31915
      WarehouseServiceException wex)
31916
    {
31917
      this();
31918
      this.wex = wex;
31919
    }
31920
 
31921
    /**
31922
     * Performs a deep copy on <i>other</i>.
31923
     */
31924
    public markItemsAsReceivedForTransferLot_result(markItemsAsReceivedForTransferLot_result other) {
31925
      if (other.isSetWex()) {
31926
        this.wex = new WarehouseServiceException(other.wex);
31927
      }
31928
    }
31929
 
31930
    public markItemsAsReceivedForTransferLot_result deepCopy() {
31931
      return new markItemsAsReceivedForTransferLot_result(this);
31932
    }
31933
 
31934
    @Override
31935
    public void clear() {
31936
      this.wex = null;
31937
    }
31938
 
31939
    public WarehouseServiceException getWex() {
31940
      return this.wex;
31941
    }
31942
 
31943
    public void setWex(WarehouseServiceException wex) {
31944
      this.wex = wex;
31945
    }
31946
 
31947
    public void unsetWex() {
31948
      this.wex = null;
31949
    }
31950
 
31951
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
31952
    public boolean isSetWex() {
31953
      return this.wex != null;
31954
    }
31955
 
31956
    public void setWexIsSet(boolean value) {
31957
      if (!value) {
31958
        this.wex = null;
31959
      }
31960
    }
31961
 
31962
    public void setFieldValue(_Fields field, Object value) {
31963
      switch (field) {
31964
      case WEX:
31965
        if (value == null) {
31966
          unsetWex();
31967
        } else {
31968
          setWex((WarehouseServiceException)value);
31969
        }
31970
        break;
31971
 
31972
      }
31973
    }
31974
 
31975
    public Object getFieldValue(_Fields field) {
31976
      switch (field) {
31977
      case WEX:
31978
        return getWex();
31979
 
31980
      }
31981
      throw new IllegalStateException();
31982
    }
31983
 
31984
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31985
    public boolean isSet(_Fields field) {
31986
      if (field == null) {
31987
        throw new IllegalArgumentException();
31988
      }
31989
 
31990
      switch (field) {
31991
      case WEX:
31992
        return isSetWex();
31993
      }
31994
      throw new IllegalStateException();
31995
    }
31996
 
31997
    @Override
31998
    public boolean equals(Object that) {
31999
      if (that == null)
32000
        return false;
32001
      if (that instanceof markItemsAsReceivedForTransferLot_result)
32002
        return this.equals((markItemsAsReceivedForTransferLot_result)that);
32003
      return false;
32004
    }
32005
 
32006
    public boolean equals(markItemsAsReceivedForTransferLot_result that) {
32007
      if (that == null)
32008
        return false;
32009
 
32010
      boolean this_present_wex = true && this.isSetWex();
32011
      boolean that_present_wex = true && that.isSetWex();
32012
      if (this_present_wex || that_present_wex) {
32013
        if (!(this_present_wex && that_present_wex))
32014
          return false;
32015
        if (!this.wex.equals(that.wex))
32016
          return false;
32017
      }
32018
 
32019
      return true;
32020
    }
32021
 
32022
    @Override
32023
    public int hashCode() {
32024
      return 0;
32025
    }
32026
 
32027
    public int compareTo(markItemsAsReceivedForTransferLot_result other) {
32028
      if (!getClass().equals(other.getClass())) {
32029
        return getClass().getName().compareTo(other.getClass().getName());
32030
      }
32031
 
32032
      int lastComparison = 0;
32033
      markItemsAsReceivedForTransferLot_result typedOther = (markItemsAsReceivedForTransferLot_result)other;
32034
 
32035
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
32036
      if (lastComparison != 0) {
32037
        return lastComparison;
32038
      }
32039
      if (isSetWex()) {
32040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
32041
        if (lastComparison != 0) {
32042
          return lastComparison;
32043
        }
32044
      }
32045
      return 0;
32046
    }
32047
 
32048
    public _Fields fieldForId(int fieldId) {
32049
      return _Fields.findByThriftId(fieldId);
32050
    }
32051
 
32052
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32053
      org.apache.thrift.protocol.TField field;
32054
      iprot.readStructBegin();
32055
      while (true)
32056
      {
32057
        field = iprot.readFieldBegin();
32058
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32059
          break;
32060
        }
32061
        switch (field.id) {
32062
          case 1: // WEX
32063
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32064
              this.wex = new WarehouseServiceException();
32065
              this.wex.read(iprot);
32066
            } else { 
32067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32068
            }
32069
            break;
32070
          default:
32071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32072
        }
32073
        iprot.readFieldEnd();
32074
      }
32075
      iprot.readStructEnd();
32076
      validate();
32077
    }
32078
 
32079
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32080
      oprot.writeStructBegin(STRUCT_DESC);
32081
 
32082
      if (this.isSetWex()) {
32083
        oprot.writeFieldBegin(WEX_FIELD_DESC);
32084
        this.wex.write(oprot);
32085
        oprot.writeFieldEnd();
32086
      }
32087
      oprot.writeFieldStop();
32088
      oprot.writeStructEnd();
32089
    }
32090
 
32091
    @Override
32092
    public String toString() {
32093
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_result(");
32094
      boolean first = true;
32095
 
32096
      sb.append("wex:");
32097
      if (this.wex == null) {
32098
        sb.append("null");
32099
      } else {
32100
        sb.append(this.wex);
32101
      }
32102
      first = false;
32103
      sb.append(")");
32104
      return sb.toString();
32105
    }
32106
 
32107
    public void validate() throws org.apache.thrift.TException {
32108
      // check for required fields
32109
    }
32110
 
32111
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32112
      try {
32113
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32114
      } catch (org.apache.thrift.TException te) {
32115
        throw new java.io.IOException(te);
32116
      }
32117
    }
32118
 
32119
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32120
      try {
32121
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32122
      } catch (org.apache.thrift.TException te) {
32123
        throw new java.io.IOException(te);
32124
      }
32125
    }
32126
 
32127
  }
32128
 
32129
  public static class updateTransferLotAfterItemReceive_args implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_args, updateTransferLotAfterItemReceive_args._Fields>, java.io.Serializable, Cloneable   {
32130
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_args");
32131
 
32132
    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);
32133
 
32134
    private long id; // required
32135
 
32136
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32137
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32138
      ID((short)1, "id");
32139
 
32140
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32141
 
32142
      static {
32143
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32144
          byName.put(field.getFieldName(), field);
32145
        }
32146
      }
32147
 
32148
      /**
32149
       * Find the _Fields constant that matches fieldId, or null if its not found.
32150
       */
32151
      public static _Fields findByThriftId(int fieldId) {
32152
        switch(fieldId) {
32153
          case 1: // ID
32154
            return ID;
32155
          default:
32156
            return null;
32157
        }
32158
      }
32159
 
32160
      /**
32161
       * Find the _Fields constant that matches fieldId, throwing an exception
32162
       * if it is not found.
32163
       */
32164
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32165
        _Fields fields = findByThriftId(fieldId);
32166
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32167
        return fields;
32168
      }
32169
 
32170
      /**
32171
       * Find the _Fields constant that matches name, or null if its not found.
32172
       */
32173
      public static _Fields findByName(String name) {
32174
        return byName.get(name);
32175
      }
32176
 
32177
      private final short _thriftId;
32178
      private final String _fieldName;
32179
 
32180
      _Fields(short thriftId, String fieldName) {
32181
        _thriftId = thriftId;
32182
        _fieldName = fieldName;
32183
      }
32184
 
32185
      public short getThriftFieldId() {
32186
        return _thriftId;
32187
      }
32188
 
32189
      public String getFieldName() {
32190
        return _fieldName;
32191
      }
32192
    }
32193
 
32194
    // isset id assignments
32195
    private static final int __ID_ISSET_ID = 0;
32196
    private BitSet __isset_bit_vector = new BitSet(1);
32197
 
32198
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32199
    static {
32200
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32201
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32202
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32203
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32204
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_args.class, metaDataMap);
32205
    }
32206
 
32207
    public updateTransferLotAfterItemReceive_args() {
32208
    }
32209
 
32210
    public updateTransferLotAfterItemReceive_args(
32211
      long id)
32212
    {
32213
      this();
32214
      this.id = id;
32215
      setIdIsSet(true);
32216
    }
32217
 
32218
    /**
32219
     * Performs a deep copy on <i>other</i>.
32220
     */
32221
    public updateTransferLotAfterItemReceive_args(updateTransferLotAfterItemReceive_args other) {
32222
      __isset_bit_vector.clear();
32223
      __isset_bit_vector.or(other.__isset_bit_vector);
32224
      this.id = other.id;
32225
    }
32226
 
32227
    public updateTransferLotAfterItemReceive_args deepCopy() {
32228
      return new updateTransferLotAfterItemReceive_args(this);
32229
    }
32230
 
32231
    @Override
32232
    public void clear() {
32233
      setIdIsSet(false);
32234
      this.id = 0;
32235
    }
32236
 
32237
    public long getId() {
32238
      return this.id;
32239
    }
32240
 
32241
    public void setId(long id) {
32242
      this.id = id;
32243
      setIdIsSet(true);
32244
    }
32245
 
32246
    public void unsetId() {
32247
      __isset_bit_vector.clear(__ID_ISSET_ID);
32248
    }
32249
 
32250
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
32251
    public boolean isSetId() {
32252
      return __isset_bit_vector.get(__ID_ISSET_ID);
32253
    }
32254
 
32255
    public void setIdIsSet(boolean value) {
32256
      __isset_bit_vector.set(__ID_ISSET_ID, value);
32257
    }
32258
 
32259
    public void setFieldValue(_Fields field, Object value) {
32260
      switch (field) {
32261
      case ID:
32262
        if (value == null) {
32263
          unsetId();
32264
        } else {
32265
          setId((Long)value);
32266
        }
32267
        break;
32268
 
32269
      }
32270
    }
32271
 
32272
    public Object getFieldValue(_Fields field) {
32273
      switch (field) {
32274
      case ID:
32275
        return Long.valueOf(getId());
32276
 
32277
      }
32278
      throw new IllegalStateException();
32279
    }
32280
 
32281
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32282
    public boolean isSet(_Fields field) {
32283
      if (field == null) {
32284
        throw new IllegalArgumentException();
32285
      }
32286
 
32287
      switch (field) {
32288
      case ID:
32289
        return isSetId();
32290
      }
32291
      throw new IllegalStateException();
32292
    }
32293
 
32294
    @Override
32295
    public boolean equals(Object that) {
32296
      if (that == null)
32297
        return false;
32298
      if (that instanceof updateTransferLotAfterItemReceive_args)
32299
        return this.equals((updateTransferLotAfterItemReceive_args)that);
32300
      return false;
32301
    }
32302
 
32303
    public boolean equals(updateTransferLotAfterItemReceive_args that) {
32304
      if (that == null)
32305
        return false;
32306
 
32307
      boolean this_present_id = true;
32308
      boolean that_present_id = true;
32309
      if (this_present_id || that_present_id) {
32310
        if (!(this_present_id && that_present_id))
32311
          return false;
32312
        if (this.id != that.id)
32313
          return false;
32314
      }
32315
 
32316
      return true;
32317
    }
32318
 
32319
    @Override
32320
    public int hashCode() {
32321
      return 0;
32322
    }
32323
 
32324
    public int compareTo(updateTransferLotAfterItemReceive_args other) {
32325
      if (!getClass().equals(other.getClass())) {
32326
        return getClass().getName().compareTo(other.getClass().getName());
32327
      }
32328
 
32329
      int lastComparison = 0;
32330
      updateTransferLotAfterItemReceive_args typedOther = (updateTransferLotAfterItemReceive_args)other;
32331
 
32332
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
32333
      if (lastComparison != 0) {
32334
        return lastComparison;
32335
      }
32336
      if (isSetId()) {
32337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
32338
        if (lastComparison != 0) {
32339
          return lastComparison;
32340
        }
32341
      }
32342
      return 0;
32343
    }
32344
 
32345
    public _Fields fieldForId(int fieldId) {
32346
      return _Fields.findByThriftId(fieldId);
32347
    }
32348
 
32349
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32350
      org.apache.thrift.protocol.TField field;
32351
      iprot.readStructBegin();
32352
      while (true)
32353
      {
32354
        field = iprot.readFieldBegin();
32355
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32356
          break;
32357
        }
32358
        switch (field.id) {
32359
          case 1: // ID
32360
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32361
              this.id = iprot.readI64();
32362
              setIdIsSet(true);
32363
            } else { 
32364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32365
            }
32366
            break;
32367
          default:
32368
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32369
        }
32370
        iprot.readFieldEnd();
32371
      }
32372
      iprot.readStructEnd();
32373
      validate();
32374
    }
32375
 
32376
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32377
      validate();
32378
 
32379
      oprot.writeStructBegin(STRUCT_DESC);
32380
      oprot.writeFieldBegin(ID_FIELD_DESC);
32381
      oprot.writeI64(this.id);
32382
      oprot.writeFieldEnd();
32383
      oprot.writeFieldStop();
32384
      oprot.writeStructEnd();
32385
    }
32386
 
32387
    @Override
32388
    public String toString() {
32389
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_args(");
32390
      boolean first = true;
32391
 
32392
      sb.append("id:");
32393
      sb.append(this.id);
32394
      first = false;
32395
      sb.append(")");
32396
      return sb.toString();
32397
    }
32398
 
32399
    public void validate() throws org.apache.thrift.TException {
32400
      // check for required fields
32401
    }
32402
 
32403
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32404
      try {
32405
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32406
      } catch (org.apache.thrift.TException te) {
32407
        throw new java.io.IOException(te);
32408
      }
32409
    }
32410
 
32411
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32412
      try {
32413
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32414
        __isset_bit_vector = new BitSet(1);
32415
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32416
      } catch (org.apache.thrift.TException te) {
32417
        throw new java.io.IOException(te);
32418
      }
32419
    }
32420
 
32421
  }
32422
 
32423
  public static class updateTransferLotAfterItemReceive_result implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_result, updateTransferLotAfterItemReceive_result._Fields>, java.io.Serializable, Cloneable   {
32424
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_result");
32425
 
32426
    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);
32427
    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);
32428
 
32429
    private TransferLotStatus success; // required
32430
    private WarehouseServiceException wex; // required
32431
 
32432
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32433
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32434
      /**
32435
       * 
32436
       * @see TransferLotStatus
32437
       */
32438
      SUCCESS((short)0, "success"),
32439
      WEX((short)1, "wex");
32440
 
32441
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32442
 
32443
      static {
32444
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32445
          byName.put(field.getFieldName(), field);
32446
        }
32447
      }
32448
 
32449
      /**
32450
       * Find the _Fields constant that matches fieldId, or null if its not found.
32451
       */
32452
      public static _Fields findByThriftId(int fieldId) {
32453
        switch(fieldId) {
32454
          case 0: // SUCCESS
32455
            return SUCCESS;
32456
          case 1: // WEX
32457
            return WEX;
32458
          default:
32459
            return null;
32460
        }
32461
      }
32462
 
32463
      /**
32464
       * Find the _Fields constant that matches fieldId, throwing an exception
32465
       * if it is not found.
32466
       */
32467
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32468
        _Fields fields = findByThriftId(fieldId);
32469
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32470
        return fields;
32471
      }
32472
 
32473
      /**
32474
       * Find the _Fields constant that matches name, or null if its not found.
32475
       */
32476
      public static _Fields findByName(String name) {
32477
        return byName.get(name);
32478
      }
32479
 
32480
      private final short _thriftId;
32481
      private final String _fieldName;
32482
 
32483
      _Fields(short thriftId, String fieldName) {
32484
        _thriftId = thriftId;
32485
        _fieldName = fieldName;
32486
      }
32487
 
32488
      public short getThriftFieldId() {
32489
        return _thriftId;
32490
      }
32491
 
32492
      public String getFieldName() {
32493
        return _fieldName;
32494
      }
32495
    }
32496
 
32497
    // isset id assignments
32498
 
32499
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32500
    static {
32501
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32502
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32503
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferLotStatus.class)));
32504
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32505
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32506
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32507
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_result.class, metaDataMap);
32508
    }
32509
 
32510
    public updateTransferLotAfterItemReceive_result() {
32511
    }
32512
 
32513
    public updateTransferLotAfterItemReceive_result(
32514
      TransferLotStatus success,
32515
      WarehouseServiceException wex)
32516
    {
32517
      this();
32518
      this.success = success;
32519
      this.wex = wex;
32520
    }
32521
 
32522
    /**
32523
     * Performs a deep copy on <i>other</i>.
32524
     */
32525
    public updateTransferLotAfterItemReceive_result(updateTransferLotAfterItemReceive_result other) {
32526
      if (other.isSetSuccess()) {
32527
        this.success = other.success;
32528
      }
32529
      if (other.isSetWex()) {
32530
        this.wex = new WarehouseServiceException(other.wex);
32531
      }
32532
    }
32533
 
32534
    public updateTransferLotAfterItemReceive_result deepCopy() {
32535
      return new updateTransferLotAfterItemReceive_result(this);
32536
    }
32537
 
32538
    @Override
32539
    public void clear() {
32540
      this.success = null;
32541
      this.wex = null;
32542
    }
32543
 
32544
    /**
32545
     * 
32546
     * @see TransferLotStatus
32547
     */
32548
    public TransferLotStatus getSuccess() {
32549
      return this.success;
32550
    }
32551
 
32552
    /**
32553
     * 
32554
     * @see TransferLotStatus
32555
     */
32556
    public void setSuccess(TransferLotStatus success) {
32557
      this.success = success;
32558
    }
32559
 
32560
    public void unsetSuccess() {
32561
      this.success = null;
32562
    }
32563
 
32564
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32565
    public boolean isSetSuccess() {
32566
      return this.success != null;
32567
    }
32568
 
32569
    public void setSuccessIsSet(boolean value) {
32570
      if (!value) {
32571
        this.success = null;
32572
      }
32573
    }
32574
 
32575
    public WarehouseServiceException getWex() {
32576
      return this.wex;
32577
    }
32578
 
32579
    public void setWex(WarehouseServiceException wex) {
32580
      this.wex = wex;
32581
    }
32582
 
32583
    public void unsetWex() {
32584
      this.wex = null;
32585
    }
32586
 
32587
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
32588
    public boolean isSetWex() {
32589
      return this.wex != null;
32590
    }
32591
 
32592
    public void setWexIsSet(boolean value) {
32593
      if (!value) {
32594
        this.wex = null;
32595
      }
32596
    }
32597
 
32598
    public void setFieldValue(_Fields field, Object value) {
32599
      switch (field) {
32600
      case SUCCESS:
32601
        if (value == null) {
32602
          unsetSuccess();
32603
        } else {
32604
          setSuccess((TransferLotStatus)value);
32605
        }
32606
        break;
32607
 
32608
      case WEX:
32609
        if (value == null) {
32610
          unsetWex();
32611
        } else {
32612
          setWex((WarehouseServiceException)value);
32613
        }
32614
        break;
32615
 
32616
      }
32617
    }
32618
 
32619
    public Object getFieldValue(_Fields field) {
32620
      switch (field) {
32621
      case SUCCESS:
32622
        return getSuccess();
32623
 
32624
      case WEX:
32625
        return getWex();
32626
 
32627
      }
32628
      throw new IllegalStateException();
32629
    }
32630
 
32631
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32632
    public boolean isSet(_Fields field) {
32633
      if (field == null) {
32634
        throw new IllegalArgumentException();
32635
      }
32636
 
32637
      switch (field) {
32638
      case SUCCESS:
32639
        return isSetSuccess();
32640
      case WEX:
32641
        return isSetWex();
32642
      }
32643
      throw new IllegalStateException();
32644
    }
32645
 
32646
    @Override
32647
    public boolean equals(Object that) {
32648
      if (that == null)
32649
        return false;
32650
      if (that instanceof updateTransferLotAfterItemReceive_result)
32651
        return this.equals((updateTransferLotAfterItemReceive_result)that);
32652
      return false;
32653
    }
32654
 
32655
    public boolean equals(updateTransferLotAfterItemReceive_result that) {
32656
      if (that == null)
32657
        return false;
32658
 
32659
      boolean this_present_success = true && this.isSetSuccess();
32660
      boolean that_present_success = true && that.isSetSuccess();
32661
      if (this_present_success || that_present_success) {
32662
        if (!(this_present_success && that_present_success))
32663
          return false;
32664
        if (!this.success.equals(that.success))
32665
          return false;
32666
      }
32667
 
32668
      boolean this_present_wex = true && this.isSetWex();
32669
      boolean that_present_wex = true && that.isSetWex();
32670
      if (this_present_wex || that_present_wex) {
32671
        if (!(this_present_wex && that_present_wex))
32672
          return false;
32673
        if (!this.wex.equals(that.wex))
32674
          return false;
32675
      }
32676
 
32677
      return true;
32678
    }
32679
 
32680
    @Override
32681
    public int hashCode() {
32682
      return 0;
32683
    }
32684
 
32685
    public int compareTo(updateTransferLotAfterItemReceive_result other) {
32686
      if (!getClass().equals(other.getClass())) {
32687
        return getClass().getName().compareTo(other.getClass().getName());
32688
      }
32689
 
32690
      int lastComparison = 0;
32691
      updateTransferLotAfterItemReceive_result typedOther = (updateTransferLotAfterItemReceive_result)other;
32692
 
32693
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32694
      if (lastComparison != 0) {
32695
        return lastComparison;
32696
      }
32697
      if (isSetSuccess()) {
32698
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32699
        if (lastComparison != 0) {
32700
          return lastComparison;
32701
        }
32702
      }
32703
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
32704
      if (lastComparison != 0) {
32705
        return lastComparison;
32706
      }
32707
      if (isSetWex()) {
32708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
32709
        if (lastComparison != 0) {
32710
          return lastComparison;
32711
        }
32712
      }
32713
      return 0;
32714
    }
32715
 
32716
    public _Fields fieldForId(int fieldId) {
32717
      return _Fields.findByThriftId(fieldId);
32718
    }
32719
 
32720
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32721
      org.apache.thrift.protocol.TField field;
32722
      iprot.readStructBegin();
32723
      while (true)
32724
      {
32725
        field = iprot.readFieldBegin();
32726
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32727
          break;
32728
        }
32729
        switch (field.id) {
32730
          case 0: // SUCCESS
32731
            if (field.type == org.apache.thrift.protocol.TType.I32) {
32732
              this.success = TransferLotStatus.findByValue(iprot.readI32());
32733
            } else { 
32734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32735
            }
32736
            break;
32737
          case 1: // WEX
32738
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32739
              this.wex = new WarehouseServiceException();
32740
              this.wex.read(iprot);
32741
            } else { 
32742
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32743
            }
32744
            break;
32745
          default:
32746
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32747
        }
32748
        iprot.readFieldEnd();
32749
      }
32750
      iprot.readStructEnd();
32751
      validate();
32752
    }
32753
 
32754
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32755
      oprot.writeStructBegin(STRUCT_DESC);
32756
 
32757
      if (this.isSetSuccess()) {
32758
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32759
        oprot.writeI32(this.success.getValue());
32760
        oprot.writeFieldEnd();
32761
      } else if (this.isSetWex()) {
32762
        oprot.writeFieldBegin(WEX_FIELD_DESC);
32763
        this.wex.write(oprot);
32764
        oprot.writeFieldEnd();
32765
      }
32766
      oprot.writeFieldStop();
32767
      oprot.writeStructEnd();
32768
    }
32769
 
32770
    @Override
32771
    public String toString() {
32772
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_result(");
32773
      boolean first = true;
32774
 
32775
      sb.append("success:");
32776
      if (this.success == null) {
32777
        sb.append("null");
32778
      } else {
32779
        sb.append(this.success);
32780
      }
32781
      first = false;
32782
      if (!first) sb.append(", ");
32783
      sb.append("wex:");
32784
      if (this.wex == null) {
32785
        sb.append("null");
32786
      } else {
32787
        sb.append(this.wex);
32788
      }
32789
      first = false;
32790
      sb.append(")");
32791
      return sb.toString();
32792
    }
32793
 
32794
    public void validate() throws org.apache.thrift.TException {
32795
      // check for required fields
32796
    }
32797
 
32798
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32799
      try {
32800
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32801
      } catch (org.apache.thrift.TException te) {
32802
        throw new java.io.IOException(te);
32803
      }
32804
    }
32805
 
32806
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32807
      try {
32808
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32809
      } catch (org.apache.thrift.TException te) {
32810
        throw new java.io.IOException(te);
32811
      }
32812
    }
32813
 
32814
  }
32815
 
7453 amar.kumar 32816
  public static class scanForTransferOut_args implements org.apache.thrift.TBase<scanForTransferOut_args, scanForTransferOut_args._Fields>, java.io.Serializable, Cloneable   {
32817
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferOut_args");
7410 amar.kumar 32818
 
32819
    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);
32820
    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);
32821
    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);
32822
 
32823
    private List<InventoryItem> inventoryItems; // required
32824
    private ScanType type; // required
32825
    private long transferLotId; // required
32826
 
32827
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32828
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32829
      INVENTORY_ITEMS((short)1, "inventoryItems"),
32830
      /**
32831
       * 
32832
       * @see ScanType
32833
       */
32834
      TYPE((short)2, "type"),
32835
      TRANSFER_LOT_ID((short)3, "transferLotId");
32836
 
32837
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32838
 
32839
      static {
32840
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32841
          byName.put(field.getFieldName(), field);
32842
        }
32843
      }
32844
 
32845
      /**
32846
       * Find the _Fields constant that matches fieldId, or null if its not found.
32847
       */
32848
      public static _Fields findByThriftId(int fieldId) {
32849
        switch(fieldId) {
32850
          case 1: // INVENTORY_ITEMS
32851
            return INVENTORY_ITEMS;
32852
          case 2: // TYPE
32853
            return TYPE;
32854
          case 3: // TRANSFER_LOT_ID
32855
            return TRANSFER_LOT_ID;
32856
          default:
32857
            return null;
32858
        }
32859
      }
32860
 
32861
      /**
32862
       * Find the _Fields constant that matches fieldId, throwing an exception
32863
       * if it is not found.
32864
       */
32865
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32866
        _Fields fields = findByThriftId(fieldId);
32867
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32868
        return fields;
32869
      }
32870
 
32871
      /**
32872
       * Find the _Fields constant that matches name, or null if its not found.
32873
       */
32874
      public static _Fields findByName(String name) {
32875
        return byName.get(name);
32876
      }
32877
 
32878
      private final short _thriftId;
32879
      private final String _fieldName;
32880
 
32881
      _Fields(short thriftId, String fieldName) {
32882
        _thriftId = thriftId;
32883
        _fieldName = fieldName;
32884
      }
32885
 
32886
      public short getThriftFieldId() {
32887
        return _thriftId;
32888
      }
32889
 
32890
      public String getFieldName() {
32891
        return _fieldName;
32892
      }
32893
    }
32894
 
32895
    // isset id assignments
32896
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
32897
    private BitSet __isset_bit_vector = new BitSet(1);
32898
 
32899
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32900
    static {
32901
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32902
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32903
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32904
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
32905
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32906
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
32907
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32908
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32909
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7453 amar.kumar 32910
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferOut_args.class, metaDataMap);
7410 amar.kumar 32911
    }
32912
 
7453 amar.kumar 32913
    public scanForTransferOut_args() {
7410 amar.kumar 32914
    }
32915
 
7453 amar.kumar 32916
    public scanForTransferOut_args(
7410 amar.kumar 32917
      List<InventoryItem> inventoryItems,
32918
      ScanType type,
32919
      long transferLotId)
32920
    {
32921
      this();
32922
      this.inventoryItems = inventoryItems;
32923
      this.type = type;
32924
      this.transferLotId = transferLotId;
32925
      setTransferLotIdIsSet(true);
32926
    }
32927
 
32928
    /**
32929
     * Performs a deep copy on <i>other</i>.
32930
     */
7453 amar.kumar 32931
    public scanForTransferOut_args(scanForTransferOut_args other) {
7410 amar.kumar 32932
      __isset_bit_vector.clear();
32933
      __isset_bit_vector.or(other.__isset_bit_vector);
32934
      if (other.isSetInventoryItems()) {
32935
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
32936
        for (InventoryItem other_element : other.inventoryItems) {
32937
          __this__inventoryItems.add(new InventoryItem(other_element));
32938
        }
32939
        this.inventoryItems = __this__inventoryItems;
32940
      }
32941
      if (other.isSetType()) {
32942
        this.type = other.type;
32943
      }
32944
      this.transferLotId = other.transferLotId;
32945
    }
32946
 
7453 amar.kumar 32947
    public scanForTransferOut_args deepCopy() {
32948
      return new scanForTransferOut_args(this);
7410 amar.kumar 32949
    }
32950
 
32951
    @Override
32952
    public void clear() {
32953
      this.inventoryItems = null;
32954
      this.type = null;
32955
      setTransferLotIdIsSet(false);
32956
      this.transferLotId = 0;
32957
    }
32958
 
32959
    public int getInventoryItemsSize() {
32960
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
32961
    }
32962
 
32963
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
32964
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
32965
    }
32966
 
32967
    public void addToInventoryItems(InventoryItem elem) {
32968
      if (this.inventoryItems == null) {
32969
        this.inventoryItems = new ArrayList<InventoryItem>();
32970
      }
32971
      this.inventoryItems.add(elem);
32972
    }
32973
 
32974
    public List<InventoryItem> getInventoryItems() {
32975
      return this.inventoryItems;
32976
    }
32977
 
32978
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
32979
      this.inventoryItems = inventoryItems;
32980
    }
32981
 
32982
    public void unsetInventoryItems() {
32983
      this.inventoryItems = null;
32984
    }
32985
 
32986
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
32987
    public boolean isSetInventoryItems() {
32988
      return this.inventoryItems != null;
32989
    }
32990
 
32991
    public void setInventoryItemsIsSet(boolean value) {
32992
      if (!value) {
32993
        this.inventoryItems = null;
32994
      }
32995
    }
32996
 
32997
    /**
32998
     * 
32999
     * @see ScanType
33000
     */
33001
    public ScanType getType() {
33002
      return this.type;
33003
    }
33004
 
33005
    /**
33006
     * 
33007
     * @see ScanType
33008
     */
33009
    public void setType(ScanType type) {
33010
      this.type = type;
33011
    }
33012
 
33013
    public void unsetType() {
33014
      this.type = null;
33015
    }
33016
 
33017
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
33018
    public boolean isSetType() {
33019
      return this.type != null;
33020
    }
33021
 
33022
    public void setTypeIsSet(boolean value) {
33023
      if (!value) {
33024
        this.type = null;
33025
      }
33026
    }
33027
 
33028
    public long getTransferLotId() {
33029
      return this.transferLotId;
33030
    }
33031
 
33032
    public void setTransferLotId(long transferLotId) {
33033
      this.transferLotId = transferLotId;
33034
      setTransferLotIdIsSet(true);
33035
    }
33036
 
33037
    public void unsetTransferLotId() {
33038
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
33039
    }
33040
 
33041
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
33042
    public boolean isSetTransferLotId() {
33043
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
33044
    }
33045
 
33046
    public void setTransferLotIdIsSet(boolean value) {
33047
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
33048
    }
33049
 
33050
    public void setFieldValue(_Fields field, Object value) {
33051
      switch (field) {
33052
      case INVENTORY_ITEMS:
33053
        if (value == null) {
33054
          unsetInventoryItems();
33055
        } else {
33056
          setInventoryItems((List<InventoryItem>)value);
33057
        }
33058
        break;
33059
 
33060
      case TYPE:
33061
        if (value == null) {
33062
          unsetType();
33063
        } else {
33064
          setType((ScanType)value);
33065
        }
33066
        break;
33067
 
33068
      case TRANSFER_LOT_ID:
33069
        if (value == null) {
33070
          unsetTransferLotId();
33071
        } else {
33072
          setTransferLotId((Long)value);
33073
        }
33074
        break;
33075
 
33076
      }
33077
    }
33078
 
33079
    public Object getFieldValue(_Fields field) {
33080
      switch (field) {
33081
      case INVENTORY_ITEMS:
33082
        return getInventoryItems();
33083
 
33084
      case TYPE:
33085
        return getType();
33086
 
33087
      case TRANSFER_LOT_ID:
33088
        return Long.valueOf(getTransferLotId());
33089
 
33090
      }
33091
      throw new IllegalStateException();
33092
    }
33093
 
33094
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33095
    public boolean isSet(_Fields field) {
33096
      if (field == null) {
33097
        throw new IllegalArgumentException();
33098
      }
33099
 
33100
      switch (field) {
33101
      case INVENTORY_ITEMS:
33102
        return isSetInventoryItems();
33103
      case TYPE:
33104
        return isSetType();
33105
      case TRANSFER_LOT_ID:
33106
        return isSetTransferLotId();
33107
      }
33108
      throw new IllegalStateException();
33109
    }
33110
 
33111
    @Override
33112
    public boolean equals(Object that) {
33113
      if (that == null)
33114
        return false;
7453 amar.kumar 33115
      if (that instanceof scanForTransferOut_args)
33116
        return this.equals((scanForTransferOut_args)that);
7410 amar.kumar 33117
      return false;
33118
    }
33119
 
7453 amar.kumar 33120
    public boolean equals(scanForTransferOut_args that) {
7410 amar.kumar 33121
      if (that == null)
33122
        return false;
33123
 
33124
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
33125
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
33126
      if (this_present_inventoryItems || that_present_inventoryItems) {
33127
        if (!(this_present_inventoryItems && that_present_inventoryItems))
33128
          return false;
33129
        if (!this.inventoryItems.equals(that.inventoryItems))
33130
          return false;
33131
      }
33132
 
33133
      boolean this_present_type = true && this.isSetType();
33134
      boolean that_present_type = true && that.isSetType();
33135
      if (this_present_type || that_present_type) {
33136
        if (!(this_present_type && that_present_type))
33137
          return false;
33138
        if (!this.type.equals(that.type))
33139
          return false;
33140
      }
33141
 
33142
      boolean this_present_transferLotId = true;
33143
      boolean that_present_transferLotId = true;
33144
      if (this_present_transferLotId || that_present_transferLotId) {
33145
        if (!(this_present_transferLotId && that_present_transferLotId))
33146
          return false;
33147
        if (this.transferLotId != that.transferLotId)
33148
          return false;
33149
      }
33150
 
33151
      return true;
33152
    }
33153
 
33154
    @Override
33155
    public int hashCode() {
33156
      return 0;
33157
    }
33158
 
7453 amar.kumar 33159
    public int compareTo(scanForTransferOut_args other) {
7410 amar.kumar 33160
      if (!getClass().equals(other.getClass())) {
33161
        return getClass().getName().compareTo(other.getClass().getName());
33162
      }
33163
 
33164
      int lastComparison = 0;
7453 amar.kumar 33165
      scanForTransferOut_args typedOther = (scanForTransferOut_args)other;
7410 amar.kumar 33166
 
33167
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
33168
      if (lastComparison != 0) {
33169
        return lastComparison;
33170
      }
33171
      if (isSetInventoryItems()) {
33172
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
33173
        if (lastComparison != 0) {
33174
          return lastComparison;
33175
        }
33176
      }
33177
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
33178
      if (lastComparison != 0) {
33179
        return lastComparison;
33180
      }
33181
      if (isSetType()) {
33182
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
33183
        if (lastComparison != 0) {
33184
          return lastComparison;
33185
        }
33186
      }
33187
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
33188
      if (lastComparison != 0) {
33189
        return lastComparison;
33190
      }
33191
      if (isSetTransferLotId()) {
33192
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
33193
        if (lastComparison != 0) {
33194
          return lastComparison;
33195
        }
33196
      }
33197
      return 0;
33198
    }
33199
 
33200
    public _Fields fieldForId(int fieldId) {
33201
      return _Fields.findByThriftId(fieldId);
33202
    }
33203
 
33204
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33205
      org.apache.thrift.protocol.TField field;
33206
      iprot.readStructBegin();
33207
      while (true)
33208
      {
33209
        field = iprot.readFieldBegin();
33210
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33211
          break;
33212
        }
33213
        switch (field.id) {
33214
          case 1: // INVENTORY_ITEMS
33215
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33216
              {
33217
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
33218
                this.inventoryItems = new ArrayList<InventoryItem>(_list89.size);
33219
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
33220
                {
33221
                  InventoryItem _elem91; // required
33222
                  _elem91 = new InventoryItem();
33223
                  _elem91.read(iprot);
33224
                  this.inventoryItems.add(_elem91);
33225
                }
33226
                iprot.readListEnd();
33227
              }
33228
            } else { 
33229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33230
            }
33231
            break;
33232
          case 2: // TYPE
33233
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33234
              this.type = ScanType.findByValue(iprot.readI32());
33235
            } else { 
33236
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33237
            }
33238
            break;
33239
          case 3: // TRANSFER_LOT_ID
33240
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33241
              this.transferLotId = iprot.readI64();
33242
              setTransferLotIdIsSet(true);
33243
            } else { 
33244
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33245
            }
33246
            break;
33247
          default:
33248
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33249
        }
33250
        iprot.readFieldEnd();
33251
      }
33252
      iprot.readStructEnd();
33253
      validate();
33254
    }
33255
 
33256
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33257
      validate();
33258
 
33259
      oprot.writeStructBegin(STRUCT_DESC);
33260
      if (this.inventoryItems != null) {
33261
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
33262
        {
33263
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
33264
          for (InventoryItem _iter92 : this.inventoryItems)
33265
          {
33266
            _iter92.write(oprot);
33267
          }
33268
          oprot.writeListEnd();
33269
        }
33270
        oprot.writeFieldEnd();
33271
      }
33272
      if (this.type != null) {
33273
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
33274
        oprot.writeI32(this.type.getValue());
33275
        oprot.writeFieldEnd();
33276
      }
33277
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
33278
      oprot.writeI64(this.transferLotId);
33279
      oprot.writeFieldEnd();
33280
      oprot.writeFieldStop();
33281
      oprot.writeStructEnd();
33282
    }
33283
 
33284
    @Override
33285
    public String toString() {
7453 amar.kumar 33286
      StringBuilder sb = new StringBuilder("scanForTransferOut_args(");
7410 amar.kumar 33287
      boolean first = true;
33288
 
33289
      sb.append("inventoryItems:");
33290
      if (this.inventoryItems == null) {
33291
        sb.append("null");
33292
      } else {
33293
        sb.append(this.inventoryItems);
33294
      }
33295
      first = false;
33296
      if (!first) sb.append(", ");
33297
      sb.append("type:");
33298
      if (this.type == null) {
33299
        sb.append("null");
33300
      } else {
33301
        sb.append(this.type);
33302
      }
33303
      first = false;
33304
      if (!first) sb.append(", ");
33305
      sb.append("transferLotId:");
33306
      sb.append(this.transferLotId);
33307
      first = false;
33308
      sb.append(")");
33309
      return sb.toString();
33310
    }
33311
 
33312
    public void validate() throws org.apache.thrift.TException {
33313
      // check for required fields
33314
    }
33315
 
33316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33317
      try {
33318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33319
      } catch (org.apache.thrift.TException te) {
33320
        throw new java.io.IOException(te);
33321
      }
33322
    }
33323
 
33324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33325
      try {
33326
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33327
        __isset_bit_vector = new BitSet(1);
33328
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33329
      } catch (org.apache.thrift.TException te) {
33330
        throw new java.io.IOException(te);
33331
      }
33332
    }
33333
 
33334
  }
33335
 
7453 amar.kumar 33336
  public static class scanForTransferOut_result implements org.apache.thrift.TBase<scanForTransferOut_result, scanForTransferOut_result._Fields>, java.io.Serializable, Cloneable   {
33337
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferOut_result");
7410 amar.kumar 33338
 
33339
    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);
33340
 
33341
    private WarehouseServiceException wex; // required
33342
 
33343
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33344
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33345
      WEX((short)1, "wex");
33346
 
33347
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33348
 
33349
      static {
33350
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33351
          byName.put(field.getFieldName(), field);
33352
        }
33353
      }
33354
 
33355
      /**
33356
       * Find the _Fields constant that matches fieldId, or null if its not found.
33357
       */
33358
      public static _Fields findByThriftId(int fieldId) {
33359
        switch(fieldId) {
33360
          case 1: // WEX
33361
            return WEX;
33362
          default:
33363
            return null;
33364
        }
33365
      }
33366
 
33367
      /**
33368
       * Find the _Fields constant that matches fieldId, throwing an exception
33369
       * if it is not found.
33370
       */
33371
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33372
        _Fields fields = findByThriftId(fieldId);
33373
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33374
        return fields;
33375
      }
33376
 
33377
      /**
33378
       * Find the _Fields constant that matches name, or null if its not found.
33379
       */
33380
      public static _Fields findByName(String name) {
33381
        return byName.get(name);
33382
      }
33383
 
33384
      private final short _thriftId;
33385
      private final String _fieldName;
33386
 
33387
      _Fields(short thriftId, String fieldName) {
33388
        _thriftId = thriftId;
33389
        _fieldName = fieldName;
33390
      }
33391
 
33392
      public short getThriftFieldId() {
33393
        return _thriftId;
33394
      }
33395
 
33396
      public String getFieldName() {
33397
        return _fieldName;
33398
      }
33399
    }
33400
 
33401
    // isset id assignments
33402
 
33403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33404
    static {
33405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33406
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33407
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33408
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7453 amar.kumar 33409
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferOut_result.class, metaDataMap);
7410 amar.kumar 33410
    }
33411
 
7453 amar.kumar 33412
    public scanForTransferOut_result() {
7410 amar.kumar 33413
    }
33414
 
7453 amar.kumar 33415
    public scanForTransferOut_result(
7410 amar.kumar 33416
      WarehouseServiceException wex)
33417
    {
33418
      this();
33419
      this.wex = wex;
33420
    }
33421
 
33422
    /**
33423
     * Performs a deep copy on <i>other</i>.
33424
     */
7453 amar.kumar 33425
    public scanForTransferOut_result(scanForTransferOut_result other) {
7410 amar.kumar 33426
      if (other.isSetWex()) {
33427
        this.wex = new WarehouseServiceException(other.wex);
33428
      }
33429
    }
33430
 
7453 amar.kumar 33431
    public scanForTransferOut_result deepCopy() {
33432
      return new scanForTransferOut_result(this);
7410 amar.kumar 33433
    }
33434
 
33435
    @Override
33436
    public void clear() {
33437
      this.wex = null;
33438
    }
33439
 
33440
    public WarehouseServiceException getWex() {
33441
      return this.wex;
33442
    }
33443
 
33444
    public void setWex(WarehouseServiceException wex) {
33445
      this.wex = wex;
33446
    }
33447
 
33448
    public void unsetWex() {
33449
      this.wex = null;
33450
    }
33451
 
33452
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
33453
    public boolean isSetWex() {
33454
      return this.wex != null;
33455
    }
33456
 
33457
    public void setWexIsSet(boolean value) {
33458
      if (!value) {
33459
        this.wex = null;
33460
      }
33461
    }
33462
 
33463
    public void setFieldValue(_Fields field, Object value) {
33464
      switch (field) {
33465
      case WEX:
33466
        if (value == null) {
33467
          unsetWex();
33468
        } else {
33469
          setWex((WarehouseServiceException)value);
33470
        }
33471
        break;
33472
 
33473
      }
33474
    }
33475
 
33476
    public Object getFieldValue(_Fields field) {
33477
      switch (field) {
33478
      case WEX:
33479
        return getWex();
33480
 
33481
      }
33482
      throw new IllegalStateException();
33483
    }
33484
 
33485
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33486
    public boolean isSet(_Fields field) {
33487
      if (field == null) {
33488
        throw new IllegalArgumentException();
33489
      }
33490
 
33491
      switch (field) {
33492
      case WEX:
33493
        return isSetWex();
33494
      }
33495
      throw new IllegalStateException();
33496
    }
33497
 
33498
    @Override
33499
    public boolean equals(Object that) {
33500
      if (that == null)
33501
        return false;
7453 amar.kumar 33502
      if (that instanceof scanForTransferOut_result)
33503
        return this.equals((scanForTransferOut_result)that);
7410 amar.kumar 33504
      return false;
33505
    }
33506
 
7453 amar.kumar 33507
    public boolean equals(scanForTransferOut_result that) {
7410 amar.kumar 33508
      if (that == null)
33509
        return false;
33510
 
33511
      boolean this_present_wex = true && this.isSetWex();
33512
      boolean that_present_wex = true && that.isSetWex();
33513
      if (this_present_wex || that_present_wex) {
33514
        if (!(this_present_wex && that_present_wex))
33515
          return false;
33516
        if (!this.wex.equals(that.wex))
33517
          return false;
33518
      }
33519
 
33520
      return true;
33521
    }
33522
 
33523
    @Override
33524
    public int hashCode() {
33525
      return 0;
33526
    }
33527
 
7453 amar.kumar 33528
    public int compareTo(scanForTransferOut_result other) {
7410 amar.kumar 33529
      if (!getClass().equals(other.getClass())) {
33530
        return getClass().getName().compareTo(other.getClass().getName());
33531
      }
33532
 
33533
      int lastComparison = 0;
7453 amar.kumar 33534
      scanForTransferOut_result typedOther = (scanForTransferOut_result)other;
7410 amar.kumar 33535
 
33536
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
33537
      if (lastComparison != 0) {
33538
        return lastComparison;
33539
      }
33540
      if (isSetWex()) {
33541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
33542
        if (lastComparison != 0) {
33543
          return lastComparison;
33544
        }
33545
      }
33546
      return 0;
33547
    }
33548
 
33549
    public _Fields fieldForId(int fieldId) {
33550
      return _Fields.findByThriftId(fieldId);
33551
    }
33552
 
33553
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33554
      org.apache.thrift.protocol.TField field;
33555
      iprot.readStructBegin();
33556
      while (true)
33557
      {
33558
        field = iprot.readFieldBegin();
33559
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33560
          break;
33561
        }
33562
        switch (field.id) {
33563
          case 1: // WEX
33564
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33565
              this.wex = new WarehouseServiceException();
33566
              this.wex.read(iprot);
33567
            } else { 
33568
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33569
            }
33570
            break;
33571
          default:
33572
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33573
        }
33574
        iprot.readFieldEnd();
33575
      }
33576
      iprot.readStructEnd();
33577
      validate();
33578
    }
33579
 
33580
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33581
      oprot.writeStructBegin(STRUCT_DESC);
33582
 
33583
      if (this.isSetWex()) {
33584
        oprot.writeFieldBegin(WEX_FIELD_DESC);
33585
        this.wex.write(oprot);
33586
        oprot.writeFieldEnd();
33587
      }
33588
      oprot.writeFieldStop();
33589
      oprot.writeStructEnd();
33590
    }
33591
 
33592
    @Override
33593
    public String toString() {
7453 amar.kumar 33594
      StringBuilder sb = new StringBuilder("scanForTransferOut_result(");
7410 amar.kumar 33595
      boolean first = true;
33596
 
33597
      sb.append("wex:");
33598
      if (this.wex == null) {
33599
        sb.append("null");
33600
      } else {
33601
        sb.append(this.wex);
33602
      }
33603
      first = false;
33604
      sb.append(")");
33605
      return sb.toString();
33606
    }
33607
 
33608
    public void validate() throws org.apache.thrift.TException {
33609
      // check for required fields
33610
    }
33611
 
33612
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33613
      try {
33614
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33615
      } catch (org.apache.thrift.TException te) {
33616
        throw new java.io.IOException(te);
33617
      }
33618
    }
33619
 
33620
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33621
      try {
33622
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33623
      } catch (org.apache.thrift.TException te) {
33624
        throw new java.io.IOException(te);
33625
      }
33626
    }
33627
 
33628
  }
33629
 
7453 amar.kumar 33630
  public static class scanForTransferIn_args implements org.apache.thrift.TBase<scanForTransferIn_args, scanForTransferIn_args._Fields>, java.io.Serializable, Cloneable   {
33631
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferIn_args");
33632
 
33633
    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);
33634
    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);
33635
    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);
33636
 
33637
    private List<InventoryItem> inventoryItems; // required
33638
    private ScanType type; // required
33639
    private long transferLotId; // required
33640
 
33641
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33642
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33643
      INVENTORY_ITEMS((short)1, "inventoryItems"),
33644
      /**
33645
       * 
33646
       * @see ScanType
33647
       */
33648
      TYPE((short)2, "type"),
33649
      TRANSFER_LOT_ID((short)3, "transferLotId");
33650
 
33651
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33652
 
33653
      static {
33654
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33655
          byName.put(field.getFieldName(), field);
33656
        }
33657
      }
33658
 
33659
      /**
33660
       * Find the _Fields constant that matches fieldId, or null if its not found.
33661
       */
33662
      public static _Fields findByThriftId(int fieldId) {
33663
        switch(fieldId) {
33664
          case 1: // INVENTORY_ITEMS
33665
            return INVENTORY_ITEMS;
33666
          case 2: // TYPE
33667
            return TYPE;
33668
          case 3: // TRANSFER_LOT_ID
33669
            return TRANSFER_LOT_ID;
33670
          default:
33671
            return null;
33672
        }
33673
      }
33674
 
33675
      /**
33676
       * Find the _Fields constant that matches fieldId, throwing an exception
33677
       * if it is not found.
33678
       */
33679
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33680
        _Fields fields = findByThriftId(fieldId);
33681
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33682
        return fields;
33683
      }
33684
 
33685
      /**
33686
       * Find the _Fields constant that matches name, or null if its not found.
33687
       */
33688
      public static _Fields findByName(String name) {
33689
        return byName.get(name);
33690
      }
33691
 
33692
      private final short _thriftId;
33693
      private final String _fieldName;
33694
 
33695
      _Fields(short thriftId, String fieldName) {
33696
        _thriftId = thriftId;
33697
        _fieldName = fieldName;
33698
      }
33699
 
33700
      public short getThriftFieldId() {
33701
        return _thriftId;
33702
      }
33703
 
33704
      public String getFieldName() {
33705
        return _fieldName;
33706
      }
33707
    }
33708
 
33709
    // isset id assignments
33710
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
33711
    private BitSet __isset_bit_vector = new BitSet(1);
33712
 
33713
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33714
    static {
33715
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33716
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33717
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33718
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
33719
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33720
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
33721
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33722
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33723
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33724
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferIn_args.class, metaDataMap);
33725
    }
33726
 
33727
    public scanForTransferIn_args() {
33728
    }
33729
 
33730
    public scanForTransferIn_args(
33731
      List<InventoryItem> inventoryItems,
33732
      ScanType type,
33733
      long transferLotId)
33734
    {
33735
      this();
33736
      this.inventoryItems = inventoryItems;
33737
      this.type = type;
33738
      this.transferLotId = transferLotId;
33739
      setTransferLotIdIsSet(true);
33740
    }
33741
 
33742
    /**
33743
     * Performs a deep copy on <i>other</i>.
33744
     */
33745
    public scanForTransferIn_args(scanForTransferIn_args other) {
33746
      __isset_bit_vector.clear();
33747
      __isset_bit_vector.or(other.__isset_bit_vector);
33748
      if (other.isSetInventoryItems()) {
33749
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
33750
        for (InventoryItem other_element : other.inventoryItems) {
33751
          __this__inventoryItems.add(new InventoryItem(other_element));
33752
        }
33753
        this.inventoryItems = __this__inventoryItems;
33754
      }
33755
      if (other.isSetType()) {
33756
        this.type = other.type;
33757
      }
33758
      this.transferLotId = other.transferLotId;
33759
    }
33760
 
33761
    public scanForTransferIn_args deepCopy() {
33762
      return new scanForTransferIn_args(this);
33763
    }
33764
 
33765
    @Override
33766
    public void clear() {
33767
      this.inventoryItems = null;
33768
      this.type = null;
33769
      setTransferLotIdIsSet(false);
33770
      this.transferLotId = 0;
33771
    }
33772
 
33773
    public int getInventoryItemsSize() {
33774
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
33775
    }
33776
 
33777
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
33778
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
33779
    }
33780
 
33781
    public void addToInventoryItems(InventoryItem elem) {
33782
      if (this.inventoryItems == null) {
33783
        this.inventoryItems = new ArrayList<InventoryItem>();
33784
      }
33785
      this.inventoryItems.add(elem);
33786
    }
33787
 
33788
    public List<InventoryItem> getInventoryItems() {
33789
      return this.inventoryItems;
33790
    }
33791
 
33792
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
33793
      this.inventoryItems = inventoryItems;
33794
    }
33795
 
33796
    public void unsetInventoryItems() {
33797
      this.inventoryItems = null;
33798
    }
33799
 
33800
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
33801
    public boolean isSetInventoryItems() {
33802
      return this.inventoryItems != null;
33803
    }
33804
 
33805
    public void setInventoryItemsIsSet(boolean value) {
33806
      if (!value) {
33807
        this.inventoryItems = null;
33808
      }
33809
    }
33810
 
33811
    /**
33812
     * 
33813
     * @see ScanType
33814
     */
33815
    public ScanType getType() {
33816
      return this.type;
33817
    }
33818
 
33819
    /**
33820
     * 
33821
     * @see ScanType
33822
     */
33823
    public void setType(ScanType type) {
33824
      this.type = type;
33825
    }
33826
 
33827
    public void unsetType() {
33828
      this.type = null;
33829
    }
33830
 
33831
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
33832
    public boolean isSetType() {
33833
      return this.type != null;
33834
    }
33835
 
33836
    public void setTypeIsSet(boolean value) {
33837
      if (!value) {
33838
        this.type = null;
33839
      }
33840
    }
33841
 
33842
    public long getTransferLotId() {
33843
      return this.transferLotId;
33844
    }
33845
 
33846
    public void setTransferLotId(long transferLotId) {
33847
      this.transferLotId = transferLotId;
33848
      setTransferLotIdIsSet(true);
33849
    }
33850
 
33851
    public void unsetTransferLotId() {
33852
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
33853
    }
33854
 
33855
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
33856
    public boolean isSetTransferLotId() {
33857
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
33858
    }
33859
 
33860
    public void setTransferLotIdIsSet(boolean value) {
33861
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
33862
    }
33863
 
33864
    public void setFieldValue(_Fields field, Object value) {
33865
      switch (field) {
33866
      case INVENTORY_ITEMS:
33867
        if (value == null) {
33868
          unsetInventoryItems();
33869
        } else {
33870
          setInventoryItems((List<InventoryItem>)value);
33871
        }
33872
        break;
33873
 
33874
      case TYPE:
33875
        if (value == null) {
33876
          unsetType();
33877
        } else {
33878
          setType((ScanType)value);
33879
        }
33880
        break;
33881
 
33882
      case TRANSFER_LOT_ID:
33883
        if (value == null) {
33884
          unsetTransferLotId();
33885
        } else {
33886
          setTransferLotId((Long)value);
33887
        }
33888
        break;
33889
 
33890
      }
33891
    }
33892
 
33893
    public Object getFieldValue(_Fields field) {
33894
      switch (field) {
33895
      case INVENTORY_ITEMS:
33896
        return getInventoryItems();
33897
 
33898
      case TYPE:
33899
        return getType();
33900
 
33901
      case TRANSFER_LOT_ID:
33902
        return Long.valueOf(getTransferLotId());
33903
 
33904
      }
33905
      throw new IllegalStateException();
33906
    }
33907
 
33908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33909
    public boolean isSet(_Fields field) {
33910
      if (field == null) {
33911
        throw new IllegalArgumentException();
33912
      }
33913
 
33914
      switch (field) {
33915
      case INVENTORY_ITEMS:
33916
        return isSetInventoryItems();
33917
      case TYPE:
33918
        return isSetType();
33919
      case TRANSFER_LOT_ID:
33920
        return isSetTransferLotId();
33921
      }
33922
      throw new IllegalStateException();
33923
    }
33924
 
33925
    @Override
33926
    public boolean equals(Object that) {
33927
      if (that == null)
33928
        return false;
33929
      if (that instanceof scanForTransferIn_args)
33930
        return this.equals((scanForTransferIn_args)that);
33931
      return false;
33932
    }
33933
 
33934
    public boolean equals(scanForTransferIn_args that) {
33935
      if (that == null)
33936
        return false;
33937
 
33938
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
33939
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
33940
      if (this_present_inventoryItems || that_present_inventoryItems) {
33941
        if (!(this_present_inventoryItems && that_present_inventoryItems))
33942
          return false;
33943
        if (!this.inventoryItems.equals(that.inventoryItems))
33944
          return false;
33945
      }
33946
 
33947
      boolean this_present_type = true && this.isSetType();
33948
      boolean that_present_type = true && that.isSetType();
33949
      if (this_present_type || that_present_type) {
33950
        if (!(this_present_type && that_present_type))
33951
          return false;
33952
        if (!this.type.equals(that.type))
33953
          return false;
33954
      }
33955
 
33956
      boolean this_present_transferLotId = true;
33957
      boolean that_present_transferLotId = true;
33958
      if (this_present_transferLotId || that_present_transferLotId) {
33959
        if (!(this_present_transferLotId && that_present_transferLotId))
33960
          return false;
33961
        if (this.transferLotId != that.transferLotId)
33962
          return false;
33963
      }
33964
 
33965
      return true;
33966
    }
33967
 
33968
    @Override
33969
    public int hashCode() {
33970
      return 0;
33971
    }
33972
 
33973
    public int compareTo(scanForTransferIn_args other) {
33974
      if (!getClass().equals(other.getClass())) {
33975
        return getClass().getName().compareTo(other.getClass().getName());
33976
      }
33977
 
33978
      int lastComparison = 0;
33979
      scanForTransferIn_args typedOther = (scanForTransferIn_args)other;
33980
 
33981
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
33982
      if (lastComparison != 0) {
33983
        return lastComparison;
33984
      }
33985
      if (isSetInventoryItems()) {
33986
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
33987
        if (lastComparison != 0) {
33988
          return lastComparison;
33989
        }
33990
      }
33991
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
33992
      if (lastComparison != 0) {
33993
        return lastComparison;
33994
      }
33995
      if (isSetType()) {
33996
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
33997
        if (lastComparison != 0) {
33998
          return lastComparison;
33999
        }
34000
      }
34001
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
34002
      if (lastComparison != 0) {
34003
        return lastComparison;
34004
      }
34005
      if (isSetTransferLotId()) {
34006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
34007
        if (lastComparison != 0) {
34008
          return lastComparison;
34009
        }
34010
      }
34011
      return 0;
34012
    }
34013
 
34014
    public _Fields fieldForId(int fieldId) {
34015
      return _Fields.findByThriftId(fieldId);
34016
    }
34017
 
34018
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34019
      org.apache.thrift.protocol.TField field;
34020
      iprot.readStructBegin();
34021
      while (true)
34022
      {
34023
        field = iprot.readFieldBegin();
34024
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34025
          break;
34026
        }
34027
        switch (field.id) {
34028
          case 1: // INVENTORY_ITEMS
34029
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34030
              {
34031
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
34032
                this.inventoryItems = new ArrayList<InventoryItem>(_list93.size);
34033
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
34034
                {
34035
                  InventoryItem _elem95; // required
34036
                  _elem95 = new InventoryItem();
34037
                  _elem95.read(iprot);
34038
                  this.inventoryItems.add(_elem95);
34039
                }
34040
                iprot.readListEnd();
34041
              }
34042
            } else { 
34043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34044
            }
34045
            break;
34046
          case 2: // TYPE
34047
            if (field.type == org.apache.thrift.protocol.TType.I32) {
34048
              this.type = ScanType.findByValue(iprot.readI32());
34049
            } else { 
34050
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34051
            }
34052
            break;
34053
          case 3: // TRANSFER_LOT_ID
34054
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34055
              this.transferLotId = iprot.readI64();
34056
              setTransferLotIdIsSet(true);
34057
            } else { 
34058
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34059
            }
34060
            break;
34061
          default:
34062
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34063
        }
34064
        iprot.readFieldEnd();
34065
      }
34066
      iprot.readStructEnd();
34067
      validate();
34068
    }
34069
 
34070
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34071
      validate();
34072
 
34073
      oprot.writeStructBegin(STRUCT_DESC);
34074
      if (this.inventoryItems != null) {
34075
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
34076
        {
34077
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
34078
          for (InventoryItem _iter96 : this.inventoryItems)
34079
          {
34080
            _iter96.write(oprot);
34081
          }
34082
          oprot.writeListEnd();
34083
        }
34084
        oprot.writeFieldEnd();
34085
      }
34086
      if (this.type != null) {
34087
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
34088
        oprot.writeI32(this.type.getValue());
34089
        oprot.writeFieldEnd();
34090
      }
34091
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
34092
      oprot.writeI64(this.transferLotId);
34093
      oprot.writeFieldEnd();
34094
      oprot.writeFieldStop();
34095
      oprot.writeStructEnd();
34096
    }
34097
 
34098
    @Override
34099
    public String toString() {
34100
      StringBuilder sb = new StringBuilder("scanForTransferIn_args(");
34101
      boolean first = true;
34102
 
34103
      sb.append("inventoryItems:");
34104
      if (this.inventoryItems == null) {
34105
        sb.append("null");
34106
      } else {
34107
        sb.append(this.inventoryItems);
34108
      }
34109
      first = false;
34110
      if (!first) sb.append(", ");
34111
      sb.append("type:");
34112
      if (this.type == null) {
34113
        sb.append("null");
34114
      } else {
34115
        sb.append(this.type);
34116
      }
34117
      first = false;
34118
      if (!first) sb.append(", ");
34119
      sb.append("transferLotId:");
34120
      sb.append(this.transferLotId);
34121
      first = false;
34122
      sb.append(")");
34123
      return sb.toString();
34124
    }
34125
 
34126
    public void validate() throws org.apache.thrift.TException {
34127
      // check for required fields
34128
    }
34129
 
34130
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34131
      try {
34132
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34133
      } catch (org.apache.thrift.TException te) {
34134
        throw new java.io.IOException(te);
34135
      }
34136
    }
34137
 
34138
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34139
      try {
34140
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34141
        __isset_bit_vector = new BitSet(1);
34142
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34143
      } catch (org.apache.thrift.TException te) {
34144
        throw new java.io.IOException(te);
34145
      }
34146
    }
34147
 
34148
  }
34149
 
34150
  public static class scanForTransferIn_result implements org.apache.thrift.TBase<scanForTransferIn_result, scanForTransferIn_result._Fields>, java.io.Serializable, Cloneable   {
34151
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferIn_result");
34152
 
34153
    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);
34154
 
34155
    private WarehouseServiceException wex; // required
34156
 
34157
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34158
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34159
      WEX((short)1, "wex");
34160
 
34161
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34162
 
34163
      static {
34164
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34165
          byName.put(field.getFieldName(), field);
34166
        }
34167
      }
34168
 
34169
      /**
34170
       * Find the _Fields constant that matches fieldId, or null if its not found.
34171
       */
34172
      public static _Fields findByThriftId(int fieldId) {
34173
        switch(fieldId) {
34174
          case 1: // WEX
34175
            return WEX;
34176
          default:
34177
            return null;
34178
        }
34179
      }
34180
 
34181
      /**
34182
       * Find the _Fields constant that matches fieldId, throwing an exception
34183
       * if it is not found.
34184
       */
34185
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34186
        _Fields fields = findByThriftId(fieldId);
34187
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34188
        return fields;
34189
      }
34190
 
34191
      /**
34192
       * Find the _Fields constant that matches name, or null if its not found.
34193
       */
34194
      public static _Fields findByName(String name) {
34195
        return byName.get(name);
34196
      }
34197
 
34198
      private final short _thriftId;
34199
      private final String _fieldName;
34200
 
34201
      _Fields(short thriftId, String fieldName) {
34202
        _thriftId = thriftId;
34203
        _fieldName = fieldName;
34204
      }
34205
 
34206
      public short getThriftFieldId() {
34207
        return _thriftId;
34208
      }
34209
 
34210
      public String getFieldName() {
34211
        return _fieldName;
34212
      }
34213
    }
34214
 
34215
    // isset id assignments
34216
 
34217
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34218
    static {
34219
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34220
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34221
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34222
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34223
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferIn_result.class, metaDataMap);
34224
    }
34225
 
34226
    public scanForTransferIn_result() {
34227
    }
34228
 
34229
    public scanForTransferIn_result(
34230
      WarehouseServiceException wex)
34231
    {
34232
      this();
34233
      this.wex = wex;
34234
    }
34235
 
34236
    /**
34237
     * Performs a deep copy on <i>other</i>.
34238
     */
34239
    public scanForTransferIn_result(scanForTransferIn_result other) {
34240
      if (other.isSetWex()) {
34241
        this.wex = new WarehouseServiceException(other.wex);
34242
      }
34243
    }
34244
 
34245
    public scanForTransferIn_result deepCopy() {
34246
      return new scanForTransferIn_result(this);
34247
    }
34248
 
34249
    @Override
34250
    public void clear() {
34251
      this.wex = null;
34252
    }
34253
 
34254
    public WarehouseServiceException getWex() {
34255
      return this.wex;
34256
    }
34257
 
34258
    public void setWex(WarehouseServiceException wex) {
34259
      this.wex = wex;
34260
    }
34261
 
34262
    public void unsetWex() {
34263
      this.wex = null;
34264
    }
34265
 
34266
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
34267
    public boolean isSetWex() {
34268
      return this.wex != null;
34269
    }
34270
 
34271
    public void setWexIsSet(boolean value) {
34272
      if (!value) {
34273
        this.wex = null;
34274
      }
34275
    }
34276
 
34277
    public void setFieldValue(_Fields field, Object value) {
34278
      switch (field) {
34279
      case WEX:
34280
        if (value == null) {
34281
          unsetWex();
34282
        } else {
34283
          setWex((WarehouseServiceException)value);
34284
        }
34285
        break;
34286
 
34287
      }
34288
    }
34289
 
34290
    public Object getFieldValue(_Fields field) {
34291
      switch (field) {
34292
      case WEX:
34293
        return getWex();
34294
 
34295
      }
34296
      throw new IllegalStateException();
34297
    }
34298
 
34299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34300
    public boolean isSet(_Fields field) {
34301
      if (field == null) {
34302
        throw new IllegalArgumentException();
34303
      }
34304
 
34305
      switch (field) {
34306
      case WEX:
34307
        return isSetWex();
34308
      }
34309
      throw new IllegalStateException();
34310
    }
34311
 
34312
    @Override
34313
    public boolean equals(Object that) {
34314
      if (that == null)
34315
        return false;
34316
      if (that instanceof scanForTransferIn_result)
34317
        return this.equals((scanForTransferIn_result)that);
34318
      return false;
34319
    }
34320
 
34321
    public boolean equals(scanForTransferIn_result that) {
34322
      if (that == null)
34323
        return false;
34324
 
34325
      boolean this_present_wex = true && this.isSetWex();
34326
      boolean that_present_wex = true && that.isSetWex();
34327
      if (this_present_wex || that_present_wex) {
34328
        if (!(this_present_wex && that_present_wex))
34329
          return false;
34330
        if (!this.wex.equals(that.wex))
34331
          return false;
34332
      }
34333
 
34334
      return true;
34335
    }
34336
 
34337
    @Override
34338
    public int hashCode() {
34339
      return 0;
34340
    }
34341
 
34342
    public int compareTo(scanForTransferIn_result other) {
34343
      if (!getClass().equals(other.getClass())) {
34344
        return getClass().getName().compareTo(other.getClass().getName());
34345
      }
34346
 
34347
      int lastComparison = 0;
34348
      scanForTransferIn_result typedOther = (scanForTransferIn_result)other;
34349
 
34350
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
34351
      if (lastComparison != 0) {
34352
        return lastComparison;
34353
      }
34354
      if (isSetWex()) {
34355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
34356
        if (lastComparison != 0) {
34357
          return lastComparison;
34358
        }
34359
      }
34360
      return 0;
34361
    }
34362
 
34363
    public _Fields fieldForId(int fieldId) {
34364
      return _Fields.findByThriftId(fieldId);
34365
    }
34366
 
34367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34368
      org.apache.thrift.protocol.TField field;
34369
      iprot.readStructBegin();
34370
      while (true)
34371
      {
34372
        field = iprot.readFieldBegin();
34373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34374
          break;
34375
        }
34376
        switch (field.id) {
34377
          case 1: // WEX
34378
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34379
              this.wex = new WarehouseServiceException();
34380
              this.wex.read(iprot);
34381
            } else { 
34382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34383
            }
34384
            break;
34385
          default:
34386
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34387
        }
34388
        iprot.readFieldEnd();
34389
      }
34390
      iprot.readStructEnd();
34391
      validate();
34392
    }
34393
 
34394
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34395
      oprot.writeStructBegin(STRUCT_DESC);
34396
 
34397
      if (this.isSetWex()) {
34398
        oprot.writeFieldBegin(WEX_FIELD_DESC);
34399
        this.wex.write(oprot);
34400
        oprot.writeFieldEnd();
34401
      }
34402
      oprot.writeFieldStop();
34403
      oprot.writeStructEnd();
34404
    }
34405
 
34406
    @Override
34407
    public String toString() {
34408
      StringBuilder sb = new StringBuilder("scanForTransferIn_result(");
34409
      boolean first = true;
34410
 
34411
      sb.append("wex:");
34412
      if (this.wex == null) {
34413
        sb.append("null");
34414
      } else {
34415
        sb.append(this.wex);
34416
      }
34417
      first = false;
34418
      sb.append(")");
34419
      return sb.toString();
34420
    }
34421
 
34422
    public void validate() throws org.apache.thrift.TException {
34423
      // check for required fields
34424
    }
34425
 
34426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34427
      try {
34428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34429
      } catch (org.apache.thrift.TException te) {
34430
        throw new java.io.IOException(te);
34431
      }
34432
    }
34433
 
34434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34435
      try {
34436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34437
      } catch (org.apache.thrift.TException te) {
34438
        throw new java.io.IOException(te);
34439
      }
34440
    }
34441
 
34442
  }
34443
 
34444
  public static class scanForOursThirdPartyReceive_args implements org.apache.thrift.TBase<scanForOursThirdPartyReceive_args, scanForOursThirdPartyReceive_args._Fields>, java.io.Serializable, Cloneable   {
34445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursThirdPartyReceive_args");
34446
 
34447
    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);
34448
    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);
34449
 
34450
    private List<InventoryItem> inventoryItems; // required
34451
    private long id; // required
34452
 
34453
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34454
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34455
      INVENTORY_ITEMS((short)1, "inventoryItems"),
34456
      ID((short)2, "id");
34457
 
34458
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34459
 
34460
      static {
34461
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34462
          byName.put(field.getFieldName(), field);
34463
        }
34464
      }
34465
 
34466
      /**
34467
       * Find the _Fields constant that matches fieldId, or null if its not found.
34468
       */
34469
      public static _Fields findByThriftId(int fieldId) {
34470
        switch(fieldId) {
34471
          case 1: // INVENTORY_ITEMS
34472
            return INVENTORY_ITEMS;
34473
          case 2: // ID
34474
            return ID;
34475
          default:
34476
            return null;
34477
        }
34478
      }
34479
 
34480
      /**
34481
       * Find the _Fields constant that matches fieldId, throwing an exception
34482
       * if it is not found.
34483
       */
34484
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34485
        _Fields fields = findByThriftId(fieldId);
34486
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34487
        return fields;
34488
      }
34489
 
34490
      /**
34491
       * Find the _Fields constant that matches name, or null if its not found.
34492
       */
34493
      public static _Fields findByName(String name) {
34494
        return byName.get(name);
34495
      }
34496
 
34497
      private final short _thriftId;
34498
      private final String _fieldName;
34499
 
34500
      _Fields(short thriftId, String fieldName) {
34501
        _thriftId = thriftId;
34502
        _fieldName = fieldName;
34503
      }
34504
 
34505
      public short getThriftFieldId() {
34506
        return _thriftId;
34507
      }
34508
 
34509
      public String getFieldName() {
34510
        return _fieldName;
34511
      }
34512
    }
34513
 
34514
    // isset id assignments
34515
    private static final int __ID_ISSET_ID = 0;
34516
    private BitSet __isset_bit_vector = new BitSet(1);
34517
 
34518
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34519
    static {
34520
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34521
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34522
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34523
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
34524
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34525
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34526
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34527
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursThirdPartyReceive_args.class, metaDataMap);
34528
    }
34529
 
34530
    public scanForOursThirdPartyReceive_args() {
34531
    }
34532
 
34533
    public scanForOursThirdPartyReceive_args(
34534
      List<InventoryItem> inventoryItems,
34535
      long id)
34536
    {
34537
      this();
34538
      this.inventoryItems = inventoryItems;
34539
      this.id = id;
34540
      setIdIsSet(true);
34541
    }
34542
 
34543
    /**
34544
     * Performs a deep copy on <i>other</i>.
34545
     */
34546
    public scanForOursThirdPartyReceive_args(scanForOursThirdPartyReceive_args other) {
34547
      __isset_bit_vector.clear();
34548
      __isset_bit_vector.or(other.__isset_bit_vector);
34549
      if (other.isSetInventoryItems()) {
34550
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
34551
        for (InventoryItem other_element : other.inventoryItems) {
34552
          __this__inventoryItems.add(new InventoryItem(other_element));
34553
        }
34554
        this.inventoryItems = __this__inventoryItems;
34555
      }
34556
      this.id = other.id;
34557
    }
34558
 
34559
    public scanForOursThirdPartyReceive_args deepCopy() {
34560
      return new scanForOursThirdPartyReceive_args(this);
34561
    }
34562
 
34563
    @Override
34564
    public void clear() {
34565
      this.inventoryItems = null;
34566
      setIdIsSet(false);
34567
      this.id = 0;
34568
    }
34569
 
34570
    public int getInventoryItemsSize() {
34571
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
34572
    }
34573
 
34574
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
34575
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
34576
    }
34577
 
34578
    public void addToInventoryItems(InventoryItem elem) {
34579
      if (this.inventoryItems == null) {
34580
        this.inventoryItems = new ArrayList<InventoryItem>();
34581
      }
34582
      this.inventoryItems.add(elem);
34583
    }
34584
 
34585
    public List<InventoryItem> getInventoryItems() {
34586
      return this.inventoryItems;
34587
    }
34588
 
34589
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
34590
      this.inventoryItems = inventoryItems;
34591
    }
34592
 
34593
    public void unsetInventoryItems() {
34594
      this.inventoryItems = null;
34595
    }
34596
 
34597
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
34598
    public boolean isSetInventoryItems() {
34599
      return this.inventoryItems != null;
34600
    }
34601
 
34602
    public void setInventoryItemsIsSet(boolean value) {
34603
      if (!value) {
34604
        this.inventoryItems = null;
34605
      }
34606
    }
34607
 
34608
    public long getId() {
34609
      return this.id;
34610
    }
34611
 
34612
    public void setId(long id) {
34613
      this.id = id;
34614
      setIdIsSet(true);
34615
    }
34616
 
34617
    public void unsetId() {
34618
      __isset_bit_vector.clear(__ID_ISSET_ID);
34619
    }
34620
 
34621
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
34622
    public boolean isSetId() {
34623
      return __isset_bit_vector.get(__ID_ISSET_ID);
34624
    }
34625
 
34626
    public void setIdIsSet(boolean value) {
34627
      __isset_bit_vector.set(__ID_ISSET_ID, value);
34628
    }
34629
 
34630
    public void setFieldValue(_Fields field, Object value) {
34631
      switch (field) {
34632
      case INVENTORY_ITEMS:
34633
        if (value == null) {
34634
          unsetInventoryItems();
34635
        } else {
34636
          setInventoryItems((List<InventoryItem>)value);
34637
        }
34638
        break;
34639
 
34640
      case ID:
34641
        if (value == null) {
34642
          unsetId();
34643
        } else {
34644
          setId((Long)value);
34645
        }
34646
        break;
34647
 
34648
      }
34649
    }
34650
 
34651
    public Object getFieldValue(_Fields field) {
34652
      switch (field) {
34653
      case INVENTORY_ITEMS:
34654
        return getInventoryItems();
34655
 
34656
      case ID:
34657
        return Long.valueOf(getId());
34658
 
34659
      }
34660
      throw new IllegalStateException();
34661
    }
34662
 
34663
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34664
    public boolean isSet(_Fields field) {
34665
      if (field == null) {
34666
        throw new IllegalArgumentException();
34667
      }
34668
 
34669
      switch (field) {
34670
      case INVENTORY_ITEMS:
34671
        return isSetInventoryItems();
34672
      case ID:
34673
        return isSetId();
34674
      }
34675
      throw new IllegalStateException();
34676
    }
34677
 
34678
    @Override
34679
    public boolean equals(Object that) {
34680
      if (that == null)
34681
        return false;
34682
      if (that instanceof scanForOursThirdPartyReceive_args)
34683
        return this.equals((scanForOursThirdPartyReceive_args)that);
34684
      return false;
34685
    }
34686
 
34687
    public boolean equals(scanForOursThirdPartyReceive_args that) {
34688
      if (that == null)
34689
        return false;
34690
 
34691
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
34692
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
34693
      if (this_present_inventoryItems || that_present_inventoryItems) {
34694
        if (!(this_present_inventoryItems && that_present_inventoryItems))
34695
          return false;
34696
        if (!this.inventoryItems.equals(that.inventoryItems))
34697
          return false;
34698
      }
34699
 
34700
      boolean this_present_id = true;
34701
      boolean that_present_id = true;
34702
      if (this_present_id || that_present_id) {
34703
        if (!(this_present_id && that_present_id))
34704
          return false;
34705
        if (this.id != that.id)
34706
          return false;
34707
      }
34708
 
34709
      return true;
34710
    }
34711
 
34712
    @Override
34713
    public int hashCode() {
34714
      return 0;
34715
    }
34716
 
34717
    public int compareTo(scanForOursThirdPartyReceive_args other) {
34718
      if (!getClass().equals(other.getClass())) {
34719
        return getClass().getName().compareTo(other.getClass().getName());
34720
      }
34721
 
34722
      int lastComparison = 0;
34723
      scanForOursThirdPartyReceive_args typedOther = (scanForOursThirdPartyReceive_args)other;
34724
 
34725
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
34726
      if (lastComparison != 0) {
34727
        return lastComparison;
34728
      }
34729
      if (isSetInventoryItems()) {
34730
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
34731
        if (lastComparison != 0) {
34732
          return lastComparison;
34733
        }
34734
      }
34735
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
34736
      if (lastComparison != 0) {
34737
        return lastComparison;
34738
      }
34739
      if (isSetId()) {
34740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
34741
        if (lastComparison != 0) {
34742
          return lastComparison;
34743
        }
34744
      }
34745
      return 0;
34746
    }
34747
 
34748
    public _Fields fieldForId(int fieldId) {
34749
      return _Fields.findByThriftId(fieldId);
34750
    }
34751
 
34752
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34753
      org.apache.thrift.protocol.TField field;
34754
      iprot.readStructBegin();
34755
      while (true)
34756
      {
34757
        field = iprot.readFieldBegin();
34758
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34759
          break;
34760
        }
34761
        switch (field.id) {
34762
          case 1: // INVENTORY_ITEMS
34763
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34764
              {
34765
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
34766
                this.inventoryItems = new ArrayList<InventoryItem>(_list97.size);
34767
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
34768
                {
34769
                  InventoryItem _elem99; // required
34770
                  _elem99 = new InventoryItem();
34771
                  _elem99.read(iprot);
34772
                  this.inventoryItems.add(_elem99);
34773
                }
34774
                iprot.readListEnd();
34775
              }
34776
            } else { 
34777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34778
            }
34779
            break;
34780
          case 2: // ID
34781
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34782
              this.id = iprot.readI64();
34783
              setIdIsSet(true);
34784
            } else { 
34785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34786
            }
34787
            break;
34788
          default:
34789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34790
        }
34791
        iprot.readFieldEnd();
34792
      }
34793
      iprot.readStructEnd();
34794
      validate();
34795
    }
34796
 
34797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34798
      validate();
34799
 
34800
      oprot.writeStructBegin(STRUCT_DESC);
34801
      if (this.inventoryItems != null) {
34802
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
34803
        {
34804
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
34805
          for (InventoryItem _iter100 : this.inventoryItems)
34806
          {
34807
            _iter100.write(oprot);
34808
          }
34809
          oprot.writeListEnd();
34810
        }
34811
        oprot.writeFieldEnd();
34812
      }
34813
      oprot.writeFieldBegin(ID_FIELD_DESC);
34814
      oprot.writeI64(this.id);
34815
      oprot.writeFieldEnd();
34816
      oprot.writeFieldStop();
34817
      oprot.writeStructEnd();
34818
    }
34819
 
34820
    @Override
34821
    public String toString() {
34822
      StringBuilder sb = new StringBuilder("scanForOursThirdPartyReceive_args(");
34823
      boolean first = true;
34824
 
34825
      sb.append("inventoryItems:");
34826
      if (this.inventoryItems == null) {
34827
        sb.append("null");
34828
      } else {
34829
        sb.append(this.inventoryItems);
34830
      }
34831
      first = false;
34832
      if (!first) sb.append(", ");
34833
      sb.append("id:");
34834
      sb.append(this.id);
34835
      first = false;
34836
      sb.append(")");
34837
      return sb.toString();
34838
    }
34839
 
34840
    public void validate() throws org.apache.thrift.TException {
34841
      // check for required fields
34842
    }
34843
 
34844
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34845
      try {
34846
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34847
      } catch (org.apache.thrift.TException te) {
34848
        throw new java.io.IOException(te);
34849
      }
34850
    }
34851
 
34852
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34853
      try {
34854
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34855
        __isset_bit_vector = new BitSet(1);
34856
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34857
      } catch (org.apache.thrift.TException te) {
34858
        throw new java.io.IOException(te);
34859
      }
34860
    }
34861
 
34862
  }
34863
 
34864
  public static class scanForOursThirdPartyReceive_result implements org.apache.thrift.TBase<scanForOursThirdPartyReceive_result, scanForOursThirdPartyReceive_result._Fields>, java.io.Serializable, Cloneable   {
34865
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursThirdPartyReceive_result");
34866
 
34867
    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);
34868
 
34869
    private WarehouseServiceException wex; // required
34870
 
34871
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34872
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34873
      WEX((short)1, "wex");
34874
 
34875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34876
 
34877
      static {
34878
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34879
          byName.put(field.getFieldName(), field);
34880
        }
34881
      }
34882
 
34883
      /**
34884
       * Find the _Fields constant that matches fieldId, or null if its not found.
34885
       */
34886
      public static _Fields findByThriftId(int fieldId) {
34887
        switch(fieldId) {
34888
          case 1: // WEX
34889
            return WEX;
34890
          default:
34891
            return null;
34892
        }
34893
      }
34894
 
34895
      /**
34896
       * Find the _Fields constant that matches fieldId, throwing an exception
34897
       * if it is not found.
34898
       */
34899
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34900
        _Fields fields = findByThriftId(fieldId);
34901
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34902
        return fields;
34903
      }
34904
 
34905
      /**
34906
       * Find the _Fields constant that matches name, or null if its not found.
34907
       */
34908
      public static _Fields findByName(String name) {
34909
        return byName.get(name);
34910
      }
34911
 
34912
      private final short _thriftId;
34913
      private final String _fieldName;
34914
 
34915
      _Fields(short thriftId, String fieldName) {
34916
        _thriftId = thriftId;
34917
        _fieldName = fieldName;
34918
      }
34919
 
34920
      public short getThriftFieldId() {
34921
        return _thriftId;
34922
      }
34923
 
34924
      public String getFieldName() {
34925
        return _fieldName;
34926
      }
34927
    }
34928
 
34929
    // isset id assignments
34930
 
34931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34932
    static {
34933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34934
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34935
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34936
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34937
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursThirdPartyReceive_result.class, metaDataMap);
34938
    }
34939
 
34940
    public scanForOursThirdPartyReceive_result() {
34941
    }
34942
 
34943
    public scanForOursThirdPartyReceive_result(
34944
      WarehouseServiceException wex)
34945
    {
34946
      this();
34947
      this.wex = wex;
34948
    }
34949
 
34950
    /**
34951
     * Performs a deep copy on <i>other</i>.
34952
     */
34953
    public scanForOursThirdPartyReceive_result(scanForOursThirdPartyReceive_result other) {
34954
      if (other.isSetWex()) {
34955
        this.wex = new WarehouseServiceException(other.wex);
34956
      }
34957
    }
34958
 
34959
    public scanForOursThirdPartyReceive_result deepCopy() {
34960
      return new scanForOursThirdPartyReceive_result(this);
34961
    }
34962
 
34963
    @Override
34964
    public void clear() {
34965
      this.wex = null;
34966
    }
34967
 
34968
    public WarehouseServiceException getWex() {
34969
      return this.wex;
34970
    }
34971
 
34972
    public void setWex(WarehouseServiceException wex) {
34973
      this.wex = wex;
34974
    }
34975
 
34976
    public void unsetWex() {
34977
      this.wex = null;
34978
    }
34979
 
34980
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
34981
    public boolean isSetWex() {
34982
      return this.wex != null;
34983
    }
34984
 
34985
    public void setWexIsSet(boolean value) {
34986
      if (!value) {
34987
        this.wex = null;
34988
      }
34989
    }
34990
 
34991
    public void setFieldValue(_Fields field, Object value) {
34992
      switch (field) {
34993
      case WEX:
34994
        if (value == null) {
34995
          unsetWex();
34996
        } else {
34997
          setWex((WarehouseServiceException)value);
34998
        }
34999
        break;
35000
 
35001
      }
35002
    }
35003
 
35004
    public Object getFieldValue(_Fields field) {
35005
      switch (field) {
35006
      case WEX:
35007
        return getWex();
35008
 
35009
      }
35010
      throw new IllegalStateException();
35011
    }
35012
 
35013
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35014
    public boolean isSet(_Fields field) {
35015
      if (field == null) {
35016
        throw new IllegalArgumentException();
35017
      }
35018
 
35019
      switch (field) {
35020
      case WEX:
35021
        return isSetWex();
35022
      }
35023
      throw new IllegalStateException();
35024
    }
35025
 
35026
    @Override
35027
    public boolean equals(Object that) {
35028
      if (that == null)
35029
        return false;
35030
      if (that instanceof scanForOursThirdPartyReceive_result)
35031
        return this.equals((scanForOursThirdPartyReceive_result)that);
35032
      return false;
35033
    }
35034
 
35035
    public boolean equals(scanForOursThirdPartyReceive_result that) {
35036
      if (that == null)
35037
        return false;
35038
 
35039
      boolean this_present_wex = true && this.isSetWex();
35040
      boolean that_present_wex = true && that.isSetWex();
35041
      if (this_present_wex || that_present_wex) {
35042
        if (!(this_present_wex && that_present_wex))
35043
          return false;
35044
        if (!this.wex.equals(that.wex))
35045
          return false;
35046
      }
35047
 
35048
      return true;
35049
    }
35050
 
35051
    @Override
35052
    public int hashCode() {
35053
      return 0;
35054
    }
35055
 
35056
    public int compareTo(scanForOursThirdPartyReceive_result other) {
35057
      if (!getClass().equals(other.getClass())) {
35058
        return getClass().getName().compareTo(other.getClass().getName());
35059
      }
35060
 
35061
      int lastComparison = 0;
35062
      scanForOursThirdPartyReceive_result typedOther = (scanForOursThirdPartyReceive_result)other;
35063
 
35064
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
35065
      if (lastComparison != 0) {
35066
        return lastComparison;
35067
      }
35068
      if (isSetWex()) {
35069
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
35070
        if (lastComparison != 0) {
35071
          return lastComparison;
35072
        }
35073
      }
35074
      return 0;
35075
    }
35076
 
35077
    public _Fields fieldForId(int fieldId) {
35078
      return _Fields.findByThriftId(fieldId);
35079
    }
35080
 
35081
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35082
      org.apache.thrift.protocol.TField field;
35083
      iprot.readStructBegin();
35084
      while (true)
35085
      {
35086
        field = iprot.readFieldBegin();
35087
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35088
          break;
35089
        }
35090
        switch (field.id) {
35091
          case 1: // WEX
35092
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35093
              this.wex = new WarehouseServiceException();
35094
              this.wex.read(iprot);
35095
            } else { 
35096
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35097
            }
35098
            break;
35099
          default:
35100
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35101
        }
35102
        iprot.readFieldEnd();
35103
      }
35104
      iprot.readStructEnd();
35105
      validate();
35106
    }
35107
 
35108
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35109
      oprot.writeStructBegin(STRUCT_DESC);
35110
 
35111
      if (this.isSetWex()) {
35112
        oprot.writeFieldBegin(WEX_FIELD_DESC);
35113
        this.wex.write(oprot);
35114
        oprot.writeFieldEnd();
35115
      }
35116
      oprot.writeFieldStop();
35117
      oprot.writeStructEnd();
35118
    }
35119
 
35120
    @Override
35121
    public String toString() {
35122
      StringBuilder sb = new StringBuilder("scanForOursThirdPartyReceive_result(");
35123
      boolean first = true;
35124
 
35125
      sb.append("wex:");
35126
      if (this.wex == null) {
35127
        sb.append("null");
35128
      } else {
35129
        sb.append(this.wex);
35130
      }
35131
      first = false;
35132
      sb.append(")");
35133
      return sb.toString();
35134
    }
35135
 
35136
    public void validate() throws org.apache.thrift.TException {
35137
      // check for required fields
35138
    }
35139
 
35140
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35141
      try {
35142
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35143
      } catch (org.apache.thrift.TException te) {
35144
        throw new java.io.IOException(te);
35145
      }
35146
    }
35147
 
35148
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35149
      try {
35150
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35151
      } catch (org.apache.thrift.TException te) {
35152
        throw new java.io.IOException(te);
35153
      }
35154
    }
35155
 
35156
  }
35157
 
7574 amar.kumar 35158
  public static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args implements org.apache.thrift.TBase<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
35159
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args");
35160
 
35161
    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);
35162
    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);
35163
 
35164
    private long itemId; // required
35165
    private long physicalWarehouseId; // required
35166
 
35167
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35168
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35169
      ITEM_ID((short)1, "itemId"),
35170
      PHYSICAL_WAREHOUSE_ID((short)2, "physicalWarehouseId");
35171
 
35172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35173
 
35174
      static {
35175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35176
          byName.put(field.getFieldName(), field);
35177
        }
35178
      }
35179
 
35180
      /**
35181
       * Find the _Fields constant that matches fieldId, or null if its not found.
35182
       */
35183
      public static _Fields findByThriftId(int fieldId) {
35184
        switch(fieldId) {
35185
          case 1: // ITEM_ID
35186
            return ITEM_ID;
35187
          case 2: // PHYSICAL_WAREHOUSE_ID
35188
            return PHYSICAL_WAREHOUSE_ID;
35189
          default:
35190
            return null;
35191
        }
35192
      }
35193
 
35194
      /**
35195
       * Find the _Fields constant that matches fieldId, throwing an exception
35196
       * if it is not found.
35197
       */
35198
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35199
        _Fields fields = findByThriftId(fieldId);
35200
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35201
        return fields;
35202
      }
35203
 
35204
      /**
35205
       * Find the _Fields constant that matches name, or null if its not found.
35206
       */
35207
      public static _Fields findByName(String name) {
35208
        return byName.get(name);
35209
      }
35210
 
35211
      private final short _thriftId;
35212
      private final String _fieldName;
35213
 
35214
      _Fields(short thriftId, String fieldName) {
35215
        _thriftId = thriftId;
35216
        _fieldName = fieldName;
35217
      }
35218
 
35219
      public short getThriftFieldId() {
35220
        return _thriftId;
35221
      }
35222
 
35223
      public String getFieldName() {
35224
        return _fieldName;
35225
      }
35226
    }
35227
 
35228
    // isset id assignments
35229
    private static final int __ITEMID_ISSET_ID = 0;
35230
    private static final int __PHYSICALWAREHOUSEID_ISSET_ID = 1;
35231
    private BitSet __isset_bit_vector = new BitSet(2);
35232
 
35233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35234
    static {
35235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35236
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35238
      tmpMap.put(_Fields.PHYSICAL_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("physicalWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35239
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35240
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35241
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args.class, metaDataMap);
35242
    }
35243
 
35244
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args() {
35245
    }
35246
 
35247
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(
35248
      long itemId,
35249
      long physicalWarehouseId)
35250
    {
35251
      this();
35252
      this.itemId = itemId;
35253
      setItemIdIsSet(true);
35254
      this.physicalWarehouseId = physicalWarehouseId;
35255
      setPhysicalWarehouseIdIsSet(true);
35256
    }
35257
 
35258
    /**
35259
     * Performs a deep copy on <i>other</i>.
35260
     */
35261
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args other) {
35262
      __isset_bit_vector.clear();
35263
      __isset_bit_vector.or(other.__isset_bit_vector);
35264
      this.itemId = other.itemId;
35265
      this.physicalWarehouseId = other.physicalWarehouseId;
35266
    }
35267
 
35268
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args deepCopy() {
35269
      return new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(this);
35270
    }
35271
 
35272
    @Override
35273
    public void clear() {
35274
      setItemIdIsSet(false);
35275
      this.itemId = 0;
35276
      setPhysicalWarehouseIdIsSet(false);
35277
      this.physicalWarehouseId = 0;
35278
    }
35279
 
35280
    public long getItemId() {
35281
      return this.itemId;
35282
    }
35283
 
35284
    public void setItemId(long itemId) {
35285
      this.itemId = itemId;
35286
      setItemIdIsSet(true);
35287
    }
35288
 
35289
    public void unsetItemId() {
35290
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
35291
    }
35292
 
35293
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
35294
    public boolean isSetItemId() {
35295
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
35296
    }
35297
 
35298
    public void setItemIdIsSet(boolean value) {
35299
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
35300
    }
35301
 
35302
    public long getPhysicalWarehouseId() {
35303
      return this.physicalWarehouseId;
35304
    }
35305
 
35306
    public void setPhysicalWarehouseId(long physicalWarehouseId) {
35307
      this.physicalWarehouseId = physicalWarehouseId;
35308
      setPhysicalWarehouseIdIsSet(true);
35309
    }
35310
 
35311
    public void unsetPhysicalWarehouseId() {
35312
      __isset_bit_vector.clear(__PHYSICALWAREHOUSEID_ISSET_ID);
35313
    }
35314
 
35315
    /** Returns true if field physicalWarehouseId is set (has been assigned a value) and false otherwise */
35316
    public boolean isSetPhysicalWarehouseId() {
35317
      return __isset_bit_vector.get(__PHYSICALWAREHOUSEID_ISSET_ID);
35318
    }
35319
 
35320
    public void setPhysicalWarehouseIdIsSet(boolean value) {
35321
      __isset_bit_vector.set(__PHYSICALWAREHOUSEID_ISSET_ID, value);
35322
    }
35323
 
35324
    public void setFieldValue(_Fields field, Object value) {
35325
      switch (field) {
35326
      case ITEM_ID:
35327
        if (value == null) {
35328
          unsetItemId();
35329
        } else {
35330
          setItemId((Long)value);
35331
        }
35332
        break;
35333
 
35334
      case PHYSICAL_WAREHOUSE_ID:
35335
        if (value == null) {
35336
          unsetPhysicalWarehouseId();
35337
        } else {
35338
          setPhysicalWarehouseId((Long)value);
35339
        }
35340
        break;
35341
 
35342
      }
35343
    }
35344
 
35345
    public Object getFieldValue(_Fields field) {
35346
      switch (field) {
35347
      case ITEM_ID:
35348
        return Long.valueOf(getItemId());
35349
 
35350
      case PHYSICAL_WAREHOUSE_ID:
35351
        return Long.valueOf(getPhysicalWarehouseId());
35352
 
35353
      }
35354
      throw new IllegalStateException();
35355
    }
35356
 
35357
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35358
    public boolean isSet(_Fields field) {
35359
      if (field == null) {
35360
        throw new IllegalArgumentException();
35361
      }
35362
 
35363
      switch (field) {
35364
      case ITEM_ID:
35365
        return isSetItemId();
35366
      case PHYSICAL_WAREHOUSE_ID:
35367
        return isSetPhysicalWarehouseId();
35368
      }
35369
      throw new IllegalStateException();
35370
    }
35371
 
35372
    @Override
35373
    public boolean equals(Object that) {
35374
      if (that == null)
35375
        return false;
35376
      if (that instanceof getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args)
35377
        return this.equals((getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args)that);
35378
      return false;
35379
    }
35380
 
35381
    public boolean equals(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args that) {
35382
      if (that == null)
35383
        return false;
35384
 
35385
      boolean this_present_itemId = true;
35386
      boolean that_present_itemId = true;
35387
      if (this_present_itemId || that_present_itemId) {
35388
        if (!(this_present_itemId && that_present_itemId))
35389
          return false;
35390
        if (this.itemId != that.itemId)
35391
          return false;
35392
      }
35393
 
35394
      boolean this_present_physicalWarehouseId = true;
35395
      boolean that_present_physicalWarehouseId = true;
35396
      if (this_present_physicalWarehouseId || that_present_physicalWarehouseId) {
35397
        if (!(this_present_physicalWarehouseId && that_present_physicalWarehouseId))
35398
          return false;
35399
        if (this.physicalWarehouseId != that.physicalWarehouseId)
35400
          return false;
35401
      }
35402
 
35403
      return true;
35404
    }
35405
 
35406
    @Override
35407
    public int hashCode() {
35408
      return 0;
35409
    }
35410
 
35411
    public int compareTo(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args other) {
35412
      if (!getClass().equals(other.getClass())) {
35413
        return getClass().getName().compareTo(other.getClass().getName());
35414
      }
35415
 
35416
      int lastComparison = 0;
35417
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args typedOther = (getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args)other;
35418
 
35419
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
35420
      if (lastComparison != 0) {
35421
        return lastComparison;
35422
      }
35423
      if (isSetItemId()) {
35424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
35425
        if (lastComparison != 0) {
35426
          return lastComparison;
35427
        }
35428
      }
35429
      lastComparison = Boolean.valueOf(isSetPhysicalWarehouseId()).compareTo(typedOther.isSetPhysicalWarehouseId());
35430
      if (lastComparison != 0) {
35431
        return lastComparison;
35432
      }
35433
      if (isSetPhysicalWarehouseId()) {
35434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.physicalWarehouseId, typedOther.physicalWarehouseId);
35435
        if (lastComparison != 0) {
35436
          return lastComparison;
35437
        }
35438
      }
35439
      return 0;
35440
    }
35441
 
35442
    public _Fields fieldForId(int fieldId) {
35443
      return _Fields.findByThriftId(fieldId);
35444
    }
35445
 
35446
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35447
      org.apache.thrift.protocol.TField field;
35448
      iprot.readStructBegin();
35449
      while (true)
35450
      {
35451
        field = iprot.readFieldBegin();
35452
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35453
          break;
35454
        }
35455
        switch (field.id) {
35456
          case 1: // ITEM_ID
35457
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35458
              this.itemId = iprot.readI64();
35459
              setItemIdIsSet(true);
35460
            } else { 
35461
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35462
            }
35463
            break;
35464
          case 2: // PHYSICAL_WAREHOUSE_ID
35465
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35466
              this.physicalWarehouseId = iprot.readI64();
35467
              setPhysicalWarehouseIdIsSet(true);
35468
            } else { 
35469
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35470
            }
35471
            break;
35472
          default:
35473
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35474
        }
35475
        iprot.readFieldEnd();
35476
      }
35477
      iprot.readStructEnd();
35478
      validate();
35479
    }
35480
 
35481
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35482
      validate();
35483
 
35484
      oprot.writeStructBegin(STRUCT_DESC);
35485
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
35486
      oprot.writeI64(this.itemId);
35487
      oprot.writeFieldEnd();
35488
      oprot.writeFieldBegin(PHYSICAL_WAREHOUSE_ID_FIELD_DESC);
35489
      oprot.writeI64(this.physicalWarehouseId);
35490
      oprot.writeFieldEnd();
35491
      oprot.writeFieldStop();
35492
      oprot.writeStructEnd();
35493
    }
35494
 
35495
    @Override
35496
    public String toString() {
35497
      StringBuilder sb = new StringBuilder("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(");
35498
      boolean first = true;
35499
 
35500
      sb.append("itemId:");
35501
      sb.append(this.itemId);
35502
      first = false;
35503
      if (!first) sb.append(", ");
35504
      sb.append("physicalWarehouseId:");
35505
      sb.append(this.physicalWarehouseId);
35506
      first = false;
35507
      sb.append(")");
35508
      return sb.toString();
35509
    }
35510
 
35511
    public void validate() throws org.apache.thrift.TException {
35512
      // check for required fields
35513
    }
35514
 
35515
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35516
      try {
35517
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35518
      } catch (org.apache.thrift.TException te) {
35519
        throw new java.io.IOException(te);
35520
      }
35521
    }
35522
 
35523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35524
      try {
35525
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35526
        __isset_bit_vector = new BitSet(1);
35527
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35528
      } catch (org.apache.thrift.TException te) {
35529
        throw new java.io.IOException(te);
35530
      }
35531
    }
35532
 
35533
  }
35534
 
35535
  public static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result implements org.apache.thrift.TBase<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
35536
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result");
35537
 
35538
    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);
35539
    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);
35540
 
35541
    private long success; // required
35542
    private WarehouseServiceException wex; // required
35543
 
35544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35546
      SUCCESS((short)0, "success"),
35547
      WEX((short)1, "wex");
35548
 
35549
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35550
 
35551
      static {
35552
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35553
          byName.put(field.getFieldName(), field);
35554
        }
35555
      }
35556
 
35557
      /**
35558
       * Find the _Fields constant that matches fieldId, or null if its not found.
35559
       */
35560
      public static _Fields findByThriftId(int fieldId) {
35561
        switch(fieldId) {
35562
          case 0: // SUCCESS
35563
            return SUCCESS;
35564
          case 1: // WEX
35565
            return WEX;
35566
          default:
35567
            return null;
35568
        }
35569
      }
35570
 
35571
      /**
35572
       * Find the _Fields constant that matches fieldId, throwing an exception
35573
       * if it is not found.
35574
       */
35575
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35576
        _Fields fields = findByThriftId(fieldId);
35577
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35578
        return fields;
35579
      }
35580
 
35581
      /**
35582
       * Find the _Fields constant that matches name, or null if its not found.
35583
       */
35584
      public static _Fields findByName(String name) {
35585
        return byName.get(name);
35586
      }
35587
 
35588
      private final short _thriftId;
35589
      private final String _fieldName;
35590
 
35591
      _Fields(short thriftId, String fieldName) {
35592
        _thriftId = thriftId;
35593
        _fieldName = fieldName;
35594
      }
35595
 
35596
      public short getThriftFieldId() {
35597
        return _thriftId;
35598
      }
35599
 
35600
      public String getFieldName() {
35601
        return _fieldName;
35602
      }
35603
    }
35604
 
35605
    // isset id assignments
35606
    private static final int __SUCCESS_ISSET_ID = 0;
35607
    private BitSet __isset_bit_vector = new BitSet(1);
35608
 
35609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35610
    static {
35611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35612
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35614
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35615
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35616
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35617
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result.class, metaDataMap);
35618
    }
35619
 
35620
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result() {
35621
    }
35622
 
35623
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(
35624
      long success,
35625
      WarehouseServiceException wex)
35626
    {
35627
      this();
35628
      this.success = success;
35629
      setSuccessIsSet(true);
35630
      this.wex = wex;
35631
    }
35632
 
35633
    /**
35634
     * Performs a deep copy on <i>other</i>.
35635
     */
35636
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result other) {
35637
      __isset_bit_vector.clear();
35638
      __isset_bit_vector.or(other.__isset_bit_vector);
35639
      this.success = other.success;
35640
      if (other.isSetWex()) {
35641
        this.wex = new WarehouseServiceException(other.wex);
35642
      }
35643
    }
35644
 
35645
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result deepCopy() {
35646
      return new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(this);
35647
    }
35648
 
35649
    @Override
35650
    public void clear() {
35651
      setSuccessIsSet(false);
35652
      this.success = 0;
35653
      this.wex = null;
35654
    }
35655
 
35656
    public long getSuccess() {
35657
      return this.success;
35658
    }
35659
 
35660
    public void setSuccess(long success) {
35661
      this.success = success;
35662
      setSuccessIsSet(true);
35663
    }
35664
 
35665
    public void unsetSuccess() {
35666
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35667
    }
35668
 
35669
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35670
    public boolean isSetSuccess() {
35671
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35672
    }
35673
 
35674
    public void setSuccessIsSet(boolean value) {
35675
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35676
    }
35677
 
35678
    public WarehouseServiceException getWex() {
35679
      return this.wex;
35680
    }
35681
 
35682
    public void setWex(WarehouseServiceException wex) {
35683
      this.wex = wex;
35684
    }
35685
 
35686
    public void unsetWex() {
35687
      this.wex = null;
35688
    }
35689
 
35690
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
35691
    public boolean isSetWex() {
35692
      return this.wex != null;
35693
    }
35694
 
35695
    public void setWexIsSet(boolean value) {
35696
      if (!value) {
35697
        this.wex = null;
35698
      }
35699
    }
35700
 
35701
    public void setFieldValue(_Fields field, Object value) {
35702
      switch (field) {
35703
      case SUCCESS:
35704
        if (value == null) {
35705
          unsetSuccess();
35706
        } else {
35707
          setSuccess((Long)value);
35708
        }
35709
        break;
35710
 
35711
      case WEX:
35712
        if (value == null) {
35713
          unsetWex();
35714
        } else {
35715
          setWex((WarehouseServiceException)value);
35716
        }
35717
        break;
35718
 
35719
      }
35720
    }
35721
 
35722
    public Object getFieldValue(_Fields field) {
35723
      switch (field) {
35724
      case SUCCESS:
35725
        return Long.valueOf(getSuccess());
35726
 
35727
      case WEX:
35728
        return getWex();
35729
 
35730
      }
35731
      throw new IllegalStateException();
35732
    }
35733
 
35734
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35735
    public boolean isSet(_Fields field) {
35736
      if (field == null) {
35737
        throw new IllegalArgumentException();
35738
      }
35739
 
35740
      switch (field) {
35741
      case SUCCESS:
35742
        return isSetSuccess();
35743
      case WEX:
35744
        return isSetWex();
35745
      }
35746
      throw new IllegalStateException();
35747
    }
35748
 
35749
    @Override
35750
    public boolean equals(Object that) {
35751
      if (that == null)
35752
        return false;
35753
      if (that instanceof getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result)
35754
        return this.equals((getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result)that);
35755
      return false;
35756
    }
35757
 
35758
    public boolean equals(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result that) {
35759
      if (that == null)
35760
        return false;
35761
 
35762
      boolean this_present_success = true;
35763
      boolean that_present_success = true;
35764
      if (this_present_success || that_present_success) {
35765
        if (!(this_present_success && that_present_success))
35766
          return false;
35767
        if (this.success != that.success)
35768
          return false;
35769
      }
35770
 
35771
      boolean this_present_wex = true && this.isSetWex();
35772
      boolean that_present_wex = true && that.isSetWex();
35773
      if (this_present_wex || that_present_wex) {
35774
        if (!(this_present_wex && that_present_wex))
35775
          return false;
35776
        if (!this.wex.equals(that.wex))
35777
          return false;
35778
      }
35779
 
35780
      return true;
35781
    }
35782
 
35783
    @Override
35784
    public int hashCode() {
35785
      return 0;
35786
    }
35787
 
35788
    public int compareTo(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result other) {
35789
      if (!getClass().equals(other.getClass())) {
35790
        return getClass().getName().compareTo(other.getClass().getName());
35791
      }
35792
 
35793
      int lastComparison = 0;
35794
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result typedOther = (getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result)other;
35795
 
35796
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35797
      if (lastComparison != 0) {
35798
        return lastComparison;
35799
      }
35800
      if (isSetSuccess()) {
35801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35802
        if (lastComparison != 0) {
35803
          return lastComparison;
35804
        }
35805
      }
35806
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
35807
      if (lastComparison != 0) {
35808
        return lastComparison;
35809
      }
35810
      if (isSetWex()) {
35811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
35812
        if (lastComparison != 0) {
35813
          return lastComparison;
35814
        }
35815
      }
35816
      return 0;
35817
    }
35818
 
35819
    public _Fields fieldForId(int fieldId) {
35820
      return _Fields.findByThriftId(fieldId);
35821
    }
35822
 
35823
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35824
      org.apache.thrift.protocol.TField field;
35825
      iprot.readStructBegin();
35826
      while (true)
35827
      {
35828
        field = iprot.readFieldBegin();
35829
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35830
          break;
35831
        }
35832
        switch (field.id) {
35833
          case 0: // SUCCESS
35834
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35835
              this.success = iprot.readI64();
35836
              setSuccessIsSet(true);
35837
            } else { 
35838
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35839
            }
35840
            break;
35841
          case 1: // WEX
35842
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35843
              this.wex = new WarehouseServiceException();
35844
              this.wex.read(iprot);
35845
            } else { 
35846
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35847
            }
35848
            break;
35849
          default:
35850
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35851
        }
35852
        iprot.readFieldEnd();
35853
      }
35854
      iprot.readStructEnd();
35855
      validate();
35856
    }
35857
 
35858
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35859
      oprot.writeStructBegin(STRUCT_DESC);
35860
 
35861
      if (this.isSetSuccess()) {
35862
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35863
        oprot.writeI64(this.success);
35864
        oprot.writeFieldEnd();
35865
      } else if (this.isSetWex()) {
35866
        oprot.writeFieldBegin(WEX_FIELD_DESC);
35867
        this.wex.write(oprot);
35868
        oprot.writeFieldEnd();
35869
      }
35870
      oprot.writeFieldStop();
35871
      oprot.writeStructEnd();
35872
    }
35873
 
35874
    @Override
35875
    public String toString() {
35876
      StringBuilder sb = new StringBuilder("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(");
35877
      boolean first = true;
35878
 
35879
      sb.append("success:");
35880
      sb.append(this.success);
35881
      first = false;
35882
      if (!first) sb.append(", ");
35883
      sb.append("wex:");
35884
      if (this.wex == null) {
35885
        sb.append("null");
35886
      } else {
35887
        sb.append(this.wex);
35888
      }
35889
      first = false;
35890
      sb.append(")");
35891
      return sb.toString();
35892
    }
35893
 
35894
    public void validate() throws org.apache.thrift.TException {
35895
      // check for required fields
35896
    }
35897
 
35898
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35899
      try {
35900
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35901
      } catch (org.apache.thrift.TException te) {
35902
        throw new java.io.IOException(te);
35903
      }
35904
    }
35905
 
35906
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35907
      try {
35908
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35909
      } catch (org.apache.thrift.TException te) {
35910
        throw new java.io.IOException(te);
35911
      }
35912
    }
35913
 
35914
  }
35915
 
2820 chandransh 35916
}