Subversion Repositories SmartDukaan

Rev

Rev 7410 | Rev 7574 | 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
 
2820 chandransh 262
  }
263
 
3430 rajveer 264
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
265
 
4496 mandeep.dh 266
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 267
 
5530 mandeep.dh 268
    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 269
 
7410 amar.kumar 270
    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 271
 
5110 mandeep.dh 272
    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 273
 
5361 mandeep.dh 274
    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 275
 
276
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
277
 
4622 amit.gupta 278
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
279
 
5110 mandeep.dh 280
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
281
 
5185 mandeep.dh 282
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
283
 
284
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
285
 
5372 mandeep.dh 286
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
287
 
7210 amar.kumar 288
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException;
289
 
5496 mandeep.dh 290
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
291
 
5620 mandeep.dh 292
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
293
 
5711 mandeep.dh 294
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
295
 
6322 amar.kumar 296
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
297
 
7410 amar.kumar 298
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
6322 amar.kumar 299
 
6467 amar.kumar 300
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
301
 
6548 amar.kumar 302
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
303
 
304
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
305
 
6630 amar.kumar 306
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
307
 
6762 amar.kumar 308
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
309
 
310
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
311
 
312
    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;
313
 
314
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException;
315
 
6880 amar.kumar 316
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
317
 
318
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
319
 
7216 amar.kumar 320
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
321
 
322
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
323
 
7190 amar.kumar 324
    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;
325
 
7199 amar.kumar 326
    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;
327
 
7410 amar.kumar 328
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException;
329
 
330
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransferLot_call> resultHandler) throws org.apache.thrift.TException;
331
 
332
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLot_call> resultHandler) throws org.apache.thrift.TException;
333
 
334
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException;
335
 
336
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException;
337
 
338
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException;
339
 
340
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException;
341
 
342
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException;
343
 
344
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException;
345
 
7453 amar.kumar 346
    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 347
 
7453 amar.kumar 348
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException;
349
 
350
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException;
351
 
3430 rajveer 352
  }
353
 
3374 rajveer 354
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 355
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
356
      public Factory() {}
357
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
358
        return new Client(prot);
359
      }
360
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
361
        return new Client(iprot, oprot);
362
      }
363
    }
364
 
365
    public Client(org.apache.thrift.protocol.TProtocol prot)
2820 chandransh 366
    {
3430 rajveer 367
      super(prot, prot);
2820 chandransh 368
    }
369
 
3430 rajveer 370
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 371
      super(iprot, oprot);
2820 chandransh 372
    }
373
 
4541 mandeep.dh 374
    public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
2832 chandransh 375
    {
4496 mandeep.dh 376
      send_getInventoryItem(serialNumber);
377
      return recv_getInventoryItem();
2832 chandransh 378
    }
379
 
4496 mandeep.dh 380
    public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
2832 chandransh 381
    {
4496 mandeep.dh 382
      getInventoryItem_args args = new getInventoryItem_args();
383
      args.setSerialNumber(serialNumber);
384
      sendBase("getInventoryItem", args);
2832 chandransh 385
    }
386
 
4541 mandeep.dh 387
    public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
2832 chandransh 388
    {
4496 mandeep.dh 389
      getInventoryItem_result result = new getInventoryItem_result();
390
      receiveBase(result, "getInventoryItem");
2832 chandransh 391
      if (result.isSetSuccess()) {
392
        return result.success;
393
      }
4541 mandeep.dh 394
      if (result.wex != null) {
395
        throw result.wex;
396
      }
4496 mandeep.dh 397
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
398
    }
399
 
5530 mandeep.dh 400
    public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 401
    {
5530 mandeep.dh 402
      send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
5361 mandeep.dh 403
      return recv_getNonSeralizedInventoryItem();
4496 mandeep.dh 404
    }
405
 
5530 mandeep.dh 406
    public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
4496 mandeep.dh 407
    {
5361 mandeep.dh 408
      getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
5530 mandeep.dh 409
      args.setItemNumber(itemNumber);
4496 mandeep.dh 410
      args.setItemId(itemId);
5530 mandeep.dh 411
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 412
      sendBase("getNonSeralizedInventoryItem", args);
4496 mandeep.dh 413
    }
414
 
5361 mandeep.dh 415
    public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 416
    {
5361 mandeep.dh 417
      getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
418
      receiveBase(result, "getNonSeralizedInventoryItem");
4496 mandeep.dh 419
      if (result.isSetSuccess()) {
420
        return result.success;
2832 chandransh 421
      }
5361 mandeep.dh 422
      if (result.wex != null) {
423
        throw result.wex;
2820 chandransh 424
      }
5361 mandeep.dh 425
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
4496 mandeep.dh 426
    }
427
 
7410 amar.kumar 428
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
2820 chandransh 429
    {
7410 amar.kumar 430
      send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId);
4496 mandeep.dh 431
      recv_scan();
3383 chandransh 432
    }
433
 
7410 amar.kumar 434
    public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws org.apache.thrift.TException
3383 chandransh 435
    {
4496 mandeep.dh 436
      scan_args args = new scan_args();
5361 mandeep.dh 437
      args.setInventoryItem(inventoryItem);
4496 mandeep.dh 438
      args.setType(type);
439
      args.setQuantity(quantity);
5361 mandeep.dh 440
      args.setBillingWarehouseId(billingWarehouseId);
7410 amar.kumar 441
      args.setTransferLotId(transferLotId);
4496 mandeep.dh 442
      sendBase("scan", args);
3383 chandransh 443
    }
444
 
4496 mandeep.dh 445
    public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
3383 chandransh 446
    {
4496 mandeep.dh 447
      scan_result result = new scan_result();
448
      receiveBase(result, "scan");
449
      if (result.wex != null) {
450
        throw result.wex;
451
      }
452
      return;
453
    }
454
 
5110 mandeep.dh 455
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 456
    {
5110 mandeep.dh 457
      send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
4496 mandeep.dh 458
      return recv_scanSerializedItemForOrder();
459
    }
460
 
5110 mandeep.dh 461
    public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
4496 mandeep.dh 462
    {
463
      scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
4555 mandeep.dh 464
      args.setSerialNumber(serialNumber);
4496 mandeep.dh 465
      args.setType(type);
466
      args.setOrderId(orderId);
5110 mandeep.dh 467
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
468
      args.setQuantity(quantity);
469
      args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 470
      sendBase("scanSerializedItemForOrder", args);
471
    }
472
 
4555 mandeep.dh 473
    public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 474
    {
475
      scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
476
      receiveBase(result, "scanSerializedItemForOrder");
3383 chandransh 477
      if (result.isSetSuccess()) {
478
        return result.success;
479
      }
480
      if (result.wex != null) {
481
        throw result.wex;
482
      }
4496 mandeep.dh 483
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
3383 chandransh 484
    }
485
 
5361 mandeep.dh 486
    public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
3383 chandransh 487
    {
5361 mandeep.dh 488
      send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
489
      return recv_scanForOrder();
2820 chandransh 490
    }
491
 
5361 mandeep.dh 492
    public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
2820 chandransh 493
    {
4496 mandeep.dh 494
      scanForOrder_args args = new scanForOrder_args();
5361 mandeep.dh 495
      args.setInventoryItem(inventoryItem);
3430 rajveer 496
      args.setType(type);
4496 mandeep.dh 497
      args.setQuantity(quantity);
498
      args.setOrderId(orderId);
5110 mandeep.dh 499
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 500
      args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 501
      sendBase("scanForOrder", args);
2820 chandransh 502
    }
503
 
5361 mandeep.dh 504
    public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
2820 chandransh 505
    {
4496 mandeep.dh 506
      scanForOrder_result result = new scanForOrder_result();
507
      receiveBase(result, "scanForOrder");
5361 mandeep.dh 508
      if (result.isSetSuccess()) {
509
        return result.success;
510
      }
2820 chandransh 511
      if (result.wex != null) {
512
        throw result.wex;
513
      }
5361 mandeep.dh 514
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2820 chandransh 515
    }
516
 
4496 mandeep.dh 517
    public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
2820 chandransh 518
    {
4496 mandeep.dh 519
      send_createItemNumberMapping(itemNumber, itemId);
520
      recv_createItemNumberMapping();
2820 chandransh 521
    }
522
 
4496 mandeep.dh 523
    public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
2820 chandransh 524
    {
4496 mandeep.dh 525
      createItemNumberMapping_args args = new createItemNumberMapping_args();
3430 rajveer 526
      args.setItemNumber(itemNumber);
4496 mandeep.dh 527
      args.setItemId(itemId);
528
      sendBase("createItemNumberMapping", args);
2820 chandransh 529
    }
530
 
4496 mandeep.dh 531
    public void recv_createItemNumberMapping() throws org.apache.thrift.TException
2820 chandransh 532
    {
4496 mandeep.dh 533
      createItemNumberMapping_result result = new createItemNumberMapping_result();
534
      receiveBase(result, "createItemNumberMapping");
2820 chandransh 535
      return;
536
    }
537
 
4622 amit.gupta 538
    public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
539
    {
540
      send_getItemNumbers(itemId);
541
      return recv_getItemNumbers();
542
    }
543
 
544
    public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
545
    {
546
      getItemNumbers_args args = new getItemNumbers_args();
547
      args.setItemId(itemId);
548
      sendBase("getItemNumbers", args);
549
    }
550
 
551
    public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
552
    {
553
      getItemNumbers_result result = new getItemNumbers_result();
554
      receiveBase(result, "getItemNumbers");
555
      if (result.isSetSuccess()) {
556
        return result.success;
557
      }
558
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
559
    }
560
 
5110 mandeep.dh 561
    public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
562
    {
563
      send_getItemIds(itemNumber);
564
      return recv_getItemIds();
565
    }
566
 
567
    public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
568
    {
569
      getItemIds_args args = new getItemIds_args();
570
      args.setItemNumber(itemNumber);
571
      sendBase("getItemIds", args);
572
    }
573
 
574
    public List<Long> recv_getItemIds() throws org.apache.thrift.TException
575
    {
576
      getItemIds_result result = new getItemIds_result();
577
      receiveBase(result, "getItemIds");
578
      if (result.isSetSuccess()) {
579
        return result.success;
580
      }
581
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
582
    }
583
 
5185 mandeep.dh 584
    public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
585
    {
586
      send_getInventoryItemsFromLastScanType(lastScanType);
587
      return recv_getInventoryItemsFromLastScanType();
588
    }
589
 
590
    public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
591
    {
592
      getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
593
      args.setLastScanType(lastScanType);
594
      sendBase("getInventoryItemsFromLastScanType", args);
595
    }
596
 
597
    public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
598
    {
599
      getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
600
      receiveBase(result, "getInventoryItemsFromLastScanType");
601
      if (result.isSetSuccess()) {
602
        return result.success;
603
      }
604
      if (result.wex != null) {
605
        throw result.wex;
606
      }
607
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
608
    }
609
 
610
    public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
611
    {
612
      send_getInventoryItemFromId(inventoryItemId);
613
      return recv_getInventoryItemFromId();
614
    }
615
 
616
    public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
617
    {
618
      getInventoryItemFromId_args args = new getInventoryItemFromId_args();
619
      args.setInventoryItemId(inventoryItemId);
620
      sendBase("getInventoryItemFromId", args);
621
    }
622
 
623
    public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
624
    {
625
      getInventoryItemFromId_result result = new getInventoryItemFromId_result();
626
      receiveBase(result, "getInventoryItemFromId");
627
      if (result.isSetSuccess()) {
628
        return result.success;
629
      }
630
      if (result.wex != null) {
631
        throw result.wex;
632
      }
633
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
634
    }
635
 
5372 mandeep.dh 636
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
637
    {
638
      send_getPurchaseScans(startDate, endDate);
639
      return recv_getPurchaseScans();
640
    }
641
 
642
    public void send_getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
643
    {
644
      getPurchaseScans_args args = new getPurchaseScans_args();
645
      args.setStartDate(startDate);
646
      args.setEndDate(endDate);
647
      sendBase("getPurchaseScans", args);
648
    }
649
 
650
    public List<DetailedPurchaseScan> recv_getPurchaseScans() throws org.apache.thrift.TException
651
    {
652
      getPurchaseScans_result result = new getPurchaseScans_result();
653
      receiveBase(result, "getPurchaseScans");
654
      if (result.isSetSuccess()) {
655
        return result.success;
656
      }
657
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
658
    }
659
 
7210 amar.kumar 660
    public List<DetailedPurchaseScan> getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
661
    {
662
      send_getPurchaseScansByGrnDate(startDate, endDate);
663
      return recv_getPurchaseScansByGrnDate();
664
    }
665
 
666
    public void send_getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
667
    {
668
      getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
669
      args.setStartDate(startDate);
670
      args.setEndDate(endDate);
671
      sendBase("getPurchaseScansByGrnDate", args);
672
    }
673
 
674
    public List<DetailedPurchaseScan> recv_getPurchaseScansByGrnDate() throws org.apache.thrift.TException
675
    {
676
      getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
677
      receiveBase(result, "getPurchaseScansByGrnDate");
678
      if (result.isSetSuccess()) {
679
        return result.success;
680
      }
681
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
682
    }
683
 
5496 mandeep.dh 684
    public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
685
    {
686
      send_fetchScansPerInvoiceNumber(date);
687
      return recv_fetchScansPerInvoiceNumber();
688
    }
689
 
690
    public void send_fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
691
    {
692
      fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
693
      args.setDate(date);
694
      sendBase("fetchScansPerInvoiceNumber", args);
695
    }
696
 
697
    public List<InvoiceScan> recv_fetchScansPerInvoiceNumber() throws org.apache.thrift.TException
698
    {
699
      fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
700
      receiveBase(result, "fetchScansPerInvoiceNumber");
701
      if (result.isSetSuccess()) {
702
        return result.success;
703
      }
704
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
705
    }
706
 
5620 mandeep.dh 707
    public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException
708
    {
709
      send_getInventoryItemFromOrder(orderId);
710
      return recv_getInventoryItemFromOrder();
711
    }
712
 
713
    public void send_getInventoryItemFromOrder(long orderId) throws org.apache.thrift.TException
714
    {
715
      getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
716
      args.setOrderId(orderId);
717
      sendBase("getInventoryItemFromOrder", args);
718
    }
719
 
720
    public InventoryItem recv_getInventoryItemFromOrder() throws WarehouseServiceException, org.apache.thrift.TException
721
    {
722
      getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
723
      receiveBase(result, "getInventoryItemFromOrder");
724
      if (result.isSetSuccess()) {
725
        return result.success;
726
      }
727
      if (result.we != null) {
728
        throw result.we;
729
      }
730
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
731
    }
732
 
5711 mandeep.dh 733
    public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException
734
    {
735
      send_getInventoryAge();
736
      return recv_getInventoryAge();
737
    }
738
 
739
    public void send_getInventoryAge() throws org.apache.thrift.TException
740
    {
741
      getInventoryAge_args args = new getInventoryAge_args();
742
      sendBase("getInventoryAge", args);
743
    }
744
 
745
    public List<InventoryAge> recv_getInventoryAge() throws org.apache.thrift.TException
746
    {
747
      getInventoryAge_result result = new getInventoryAge_result();
748
      receiveBase(result, "getInventoryAge");
749
      if (result.isSetSuccess()) {
750
        return result.success;
751
      }
752
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
753
    }
754
 
6322 amar.kumar 755
    public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
756
    {
757
      send_getInventoryScansForItem(itemId, fromDate, toDate);
758
      return recv_getInventoryScansForItem();
759
    }
760
 
761
    public void send_getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
762
    {
763
      getInventoryScansForItem_args args = new getInventoryScansForItem_args();
764
      args.setItemId(itemId);
765
      args.setFromDate(fromDate);
766
      args.setToDate(toDate);
767
      sendBase("getInventoryScansForItem", args);
768
    }
769
 
770
    public List<Scan> recv_getInventoryScansForItem() throws org.apache.thrift.TException
771
    {
772
      getInventoryScansForItem_result result = new getInventoryScansForItem_result();
773
      receiveBase(result, "getInventoryScansForItem");
774
      if (result.isSetSuccess()) {
775
        return result.success;
776
      }
777
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
778
    }
779
 
7410 amar.kumar 780
    public List<Scan> getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
6322 amar.kumar 781
    {
782
      send_getScanRecordsForSerialNumber(serialNumber);
783
      return recv_getScanRecordsForSerialNumber();
784
    }
785
 
7410 amar.kumar 786
    public void send_getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
6322 amar.kumar 787
    {
788
      getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
789
      args.setSerialNumber(serialNumber);
790
      sendBase("getScanRecordsForSerialNumber", args);
791
    }
792
 
793
    public List<Scan> recv_getScanRecordsForSerialNumber() throws org.apache.thrift.TException
794
    {
795
      getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
796
      receiveBase(result, "getScanRecordsForSerialNumber");
797
      if (result.isSetSuccess()) {
798
        return result.success;
799
      }
800
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
801
    }
802
 
6467 amar.kumar 803
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
804
    {
805
      send_scanForPurchaseReturn(saleReturnItems, vendorId);
806
      recv_scanForPurchaseReturn();
807
    }
808
 
809
    public void send_scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws org.apache.thrift.TException
810
    {
811
      scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
812
      args.setSaleReturnItems(saleReturnItems);
813
      args.setVendorId(vendorId);
814
      sendBase("scanForPurchaseReturn", args);
815
    }
816
 
817
    public void recv_scanForPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
818
    {
819
      scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
820
      receiveBase(result, "scanForPurchaseReturn");
821
      if (result.ex != null) {
822
        throw result.ex;
823
      }
824
      return;
825
    }
826
 
6548 amar.kumar 827
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
828
    {
829
      send_scanForLostItem(lostItems, vendorId);
830
      recv_scanForLostItem();
831
    }
832
 
833
    public void send_scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws org.apache.thrift.TException
834
    {
835
      scanForLostItem_args args = new scanForLostItem_args();
836
      args.setLostItems(lostItems);
837
      args.setVendorId(vendorId);
838
      sendBase("scanForLostItem", args);
839
    }
840
 
841
    public void recv_scanForLostItem() throws WarehouseServiceException, org.apache.thrift.TException
842
    {
843
      scanForLostItem_result result = new scanForLostItem_result();
844
      receiveBase(result, "scanForLostItem");
845
      if (result.ex != null) {
846
        throw result.ex;
847
      }
848
      return;
849
    }
850
 
851
    public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
852
    {
853
      send_getCurrentSerializedInventoryByScans();
854
      return recv_getCurrentSerializedInventoryByScans();
855
    }
856
 
857
    public void send_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
858
    {
859
      getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
860
      sendBase("getCurrentSerializedInventoryByScans", args);
861
    }
862
 
863
    public List<InventoryAvailability> recv_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
864
    {
865
      getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
866
      receiveBase(result, "getCurrentSerializedInventoryByScans");
867
      if (result.isSetSuccess()) {
868
        return result.success;
869
      }
870
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
871
    }
872
 
6630 amar.kumar 873
    public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
874
    {
875
      send_getCurrentNonSerializedInventoryByScans();
876
      return recv_getCurrentNonSerializedInventoryByScans();
877
    }
878
 
879
    public void send_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
880
    {
881
      getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
882
      sendBase("getCurrentNonSerializedInventoryByScans", args);
883
    }
884
 
885
    public List<InventoryAvailability> recv_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
886
    {
887
      getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
888
      receiveBase(result, "getCurrentNonSerializedInventoryByScans");
889
      if (result.isSetSuccess()) {
890
        return result.success;
891
      }
892
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
893
    }
894
 
6762 amar.kumar 895
    public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
896
    {
897
      send_getHistoricSerializedInventoryByScans(date);
898
      return recv_getHistoricSerializedInventoryByScans();
899
    }
900
 
901
    public void send_getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
902
    {
903
      getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
904
      args.setDate(date);
905
      sendBase("getHistoricSerializedInventoryByScans", args);
906
    }
907
 
908
    public List<InventoryAvailability> recv_getHistoricSerializedInventoryByScans() throws org.apache.thrift.TException
909
    {
910
      getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
911
      receiveBase(result, "getHistoricSerializedInventoryByScans");
912
      if (result.isSetSuccess()) {
913
        return result.success;
914
      }
915
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
916
    }
917
 
918
    public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
919
    {
920
      send_getHistoricNonSerializedInventoryByScans(date);
921
      return recv_getHistoricNonSerializedInventoryByScans();
922
    }
923
 
924
    public void send_getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
925
    {
926
      getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
927
      args.setDate(date);
928
      sendBase("getHistoricNonSerializedInventoryByScans", args);
929
    }
930
 
931
    public List<InventoryAvailability> recv_getHistoricNonSerializedInventoryByScans() throws org.apache.thrift.TException
932
    {
933
      getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
934
      receiveBase(result, "getHistoricNonSerializedInventoryByScans");
935
      if (result.isSetSuccess()) {
936
        return result.success;
937
      }
938
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
939
    }
940
 
941
    public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException
942
    {
943
      send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId);
944
      return recv_scanForOursExternalSale();
945
    }
946
 
947
    public void send_scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws org.apache.thrift.TException
948
    {
949
      scanForOursExternalSale_args args = new scanForOursExternalSale_args();
950
      args.setItemId(itemId);
951
      args.setSerialNumber(serialNumber);
952
      args.setItemNumber(itemNumber);
953
      args.setInvoiceNumber(invoiceNumber);
954
      args.setWarehouseId(warehouseId);
955
      args.setUnitPrice(unitPrice);
956
      args.setOrderId(orderId);
957
      sendBase("scanForOursExternalSale", args);
958
    }
959
 
960
    public InventoryItem recv_scanForOursExternalSale() throws WarehouseServiceException, org.apache.thrift.TException
961
    {
962
      scanForOursExternalSale_result result = new scanForOursExternalSale_result();
963
      receiveBase(result, "scanForOursExternalSale");
964
      if (result.isSetSuccess()) {
965
        return result.success;
966
      }
967
      if (result.ex != null) {
968
        throw result.ex;
969
      }
970
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
971
    }
972
 
7410 amar.kumar 973
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws WarehouseServiceException, org.apache.thrift.TException
6762 amar.kumar 974
    {
975
      send_scanForOursExternalSaleReturn(orderId, unitPrice);
976
      recv_scanForOursExternalSaleReturn();
977
    }
978
 
979
    public void send_scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
980
    {
981
      scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
982
      args.setOrderId(orderId);
983
      args.setUnitPrice(unitPrice);
984
      sendBase("scanForOursExternalSaleReturn", args);
985
    }
986
 
7410 amar.kumar 987
    public void recv_scanForOursExternalSaleReturn() throws WarehouseServiceException, org.apache.thrift.TException
6762 amar.kumar 988
    {
989
      scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
990
      receiveBase(result, "scanForOursExternalSaleReturn");
7410 amar.kumar 991
      if (result.ex != null) {
992
        throw result.ex;
993
      }
6762 amar.kumar 994
      return;
995
    }
996
 
6880 amar.kumar 997
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
998
    {
999
      send_getMovementNonSerializedInventoryByScans(startDate, endDate);
1000
      return recv_getMovementNonSerializedInventoryByScans();
1001
    }
1002
 
1003
    public void send_getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1004
    {
1005
      getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
1006
      args.setStartDate(startDate);
1007
      args.setEndDate(endDate);
1008
      sendBase("getMovementNonSerializedInventoryByScans", args);
1009
    }
1010
 
1011
    public List<InventoryMovement> recv_getMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
1012
    {
1013
      getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
1014
      receiveBase(result, "getMovementNonSerializedInventoryByScans");
1015
      if (result.isSetSuccess()) {
1016
        return result.success;
1017
      }
1018
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1019
    }
1020
 
1021
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1022
    {
1023
      send_getMovementSerializedInventoryByScans(startDate, endDate);
1024
      return recv_getMovementSerializedInventoryByScans();
1025
    }
1026
 
1027
    public void send_getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1028
    {
1029
      getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
1030
      args.setStartDate(startDate);
1031
      args.setEndDate(endDate);
1032
      sendBase("getMovementSerializedInventoryByScans", args);
1033
    }
1034
 
1035
    public List<InventoryMovement> recv_getMovementSerializedInventoryByScans() throws org.apache.thrift.TException
1036
    {
1037
      getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
1038
      receiveBase(result, "getMovementSerializedInventoryByScans");
1039
      if (result.isSetSuccess()) {
1040
        return result.success;
1041
      }
1042
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1043
    }
1044
 
7216 amar.kumar 1045
    public List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1046
    {
1047
      send_getCompleteMovementSerializedInventoryByScans(startDate, endDate);
1048
      return recv_getCompleteMovementSerializedInventoryByScans();
1049
    }
1050
 
1051
    public void send_getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1052
    {
1053
      getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
1054
      args.setStartDate(startDate);
1055
      args.setEndDate(endDate);
1056
      sendBase("getCompleteMovementSerializedInventoryByScans", args);
1057
    }
1058
 
1059
    public List<InventoryMovement> recv_getCompleteMovementSerializedInventoryByScans() throws org.apache.thrift.TException
1060
    {
1061
      getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
1062
      receiveBase(result, "getCompleteMovementSerializedInventoryByScans");
1063
      if (result.isSetSuccess()) {
1064
        return result.success;
1065
      }
1066
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1067
    }
1068
 
1069
    public List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1070
    {
1071
      send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate);
1072
      return recv_getCompleteMovementNonSerializedInventoryByScans();
1073
    }
1074
 
1075
    public void send_getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1076
    {
1077
      getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
1078
      args.setStartDate(startDate);
1079
      args.setEndDate(endDate);
1080
      sendBase("getCompleteMovementNonSerializedInventoryByScans", args);
1081
    }
1082
 
1083
    public List<InventoryMovement> recv_getCompleteMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
1084
    {
1085
      getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
1086
      receiveBase(result, "getCompleteMovementNonSerializedInventoryByScans");
1087
      if (result.isSetSuccess()) {
1088
        return result.success;
1089
      }
1090
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1091
    }
1092
 
7190 amar.kumar 1093
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
1094
    {
1095
      send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType);
1096
      return recv_scanfreebie();
1097
    }
1098
 
1099
    public void send_scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws org.apache.thrift.TException
1100
    {
1101
      scanfreebie_args args = new scanfreebie_args();
1102
      args.setOrderId(orderId);
1103
      args.setFreebieItemId(freebieItemId);
1104
      args.setFreebieWarehouseId(freebieWarehouseId);
1105
      args.setScanType(scanType);
1106
      sendBase("scanfreebie", args);
1107
    }
1108
 
1109
    public InventoryItem recv_scanfreebie() throws WarehouseServiceException, org.apache.thrift.TException
1110
    {
1111
      scanfreebie_result result = new scanfreebie_result();
1112
      receiveBase(result, "scanfreebie");
1113
      if (result.isSetSuccess()) {
1114
        return result.success;
1115
      }
1116
      if (result.wex != null) {
1117
        throw result.wex;
1118
      }
1119
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1120
    }
1121
 
7199 amar.kumar 1122
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
1123
    {
1124
      send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType);
1125
      recv_reshipfreebie();
1126
    }
1127
 
1128
    public void send_reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws org.apache.thrift.TException
1129
    {
1130
      reshipfreebie_args args = new reshipfreebie_args();
1131
      args.setOldOrderId(oldOrderId);
1132
      args.setNewOrderId(newOrderId);
1133
      args.setFreebieItemId(freebieItemId);
1134
      args.setScanType(scanType);
1135
      sendBase("reshipfreebie", args);
1136
    }
1137
 
1138
    public void recv_reshipfreebie() throws WarehouseServiceException, org.apache.thrift.TException
1139
    {
1140
      reshipfreebie_result result = new reshipfreebie_result();
1141
      receiveBase(result, "reshipfreebie");
1142
      if (result.wex != null) {
1143
        throw result.wex;
1144
      }
1145
      return;
1146
    }
1147
 
7410 amar.kumar 1148
    public boolean isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
1149
    {
1150
      send_isItemTransferAllowed(warehouseId, transferWarehouseId);
1151
      return recv_isItemTransferAllowed();
1152
    }
1153
 
1154
    public void send_isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
1155
    {
1156
      isItemTransferAllowed_args args = new isItemTransferAllowed_args();
1157
      args.setWarehouseId(warehouseId);
1158
      args.setTransferWarehouseId(transferWarehouseId);
1159
      sendBase("isItemTransferAllowed", args);
1160
    }
1161
 
1162
    public boolean recv_isItemTransferAllowed() throws org.apache.thrift.TException
1163
    {
1164
      isItemTransferAllowed_result result = new isItemTransferAllowed_result();
1165
      receiveBase(result, "isItemTransferAllowed");
1166
      if (result.isSetSuccess()) {
1167
        return result.success;
1168
      }
1169
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1170
    }
1171
 
1172
    public long createTransferLot(long originWarehouseId, long destWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
1173
    {
1174
      send_createTransferLot(originWarehouseId, destWarehouseId);
1175
      return recv_createTransferLot();
1176
    }
1177
 
1178
    public void send_createTransferLot(long originWarehouseId, long destWarehouseId) throws org.apache.thrift.TException
1179
    {
1180
      createTransferLot_args args = new createTransferLot_args();
1181
      args.setOriginWarehouseId(originWarehouseId);
1182
      args.setDestWarehouseId(destWarehouseId);
1183
      sendBase("createTransferLot", args);
1184
    }
1185
 
1186
    public long recv_createTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1187
    {
1188
      createTransferLot_result result = new createTransferLot_result();
1189
      receiveBase(result, "createTransferLot");
1190
      if (result.isSetSuccess()) {
1191
        return result.success;
1192
      }
1193
      if (result.wex != null) {
1194
        throw result.wex;
1195
      }
1196
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1197
    }
1198
 
1199
    public TransferLot getTransferLot(long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1200
    {
1201
      send_getTransferLot(transferLotId);
1202
      return recv_getTransferLot();
1203
    }
1204
 
1205
    public void send_getTransferLot(long transferLotId) throws org.apache.thrift.TException
1206
    {
1207
      getTransferLot_args args = new getTransferLot_args();
1208
      args.setTransferLotId(transferLotId);
1209
      sendBase("getTransferLot", args);
1210
    }
1211
 
1212
    public TransferLot recv_getTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1213
    {
1214
      getTransferLot_result result = new getTransferLot_result();
1215
      receiveBase(result, "getTransferLot");
1216
      if (result.isSetSuccess()) {
1217
        return result.success;
1218
      }
1219
      if (result.wex != null) {
1220
        throw result.wex;
1221
      }
1222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1223
    }
1224
 
1225
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException
1226
    {
1227
      send_markTransferLotAsReceived(id, remoteTransferRefNumber);
1228
      recv_markTransferLotAsReceived();
1229
    }
1230
 
1231
    public void send_markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws org.apache.thrift.TException
1232
    {
1233
      markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
1234
      args.setId(id);
1235
      args.setRemoteTransferRefNumber(remoteTransferRefNumber);
1236
      sendBase("markTransferLotAsReceived", args);
1237
    }
1238
 
1239
    public void recv_markTransferLotAsReceived() throws WarehouseServiceException, org.apache.thrift.TException
1240
    {
1241
      markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
1242
      receiveBase(result, "markTransferLotAsReceived");
1243
      if (result.wex != null) {
1244
        throw result.wex;
1245
      }
1246
      return;
1247
    }
1248
 
1249
    public List<TransferLot> getTransferLotsByDate(long fromDate, long toDate) throws WarehouseServiceException, org.apache.thrift.TException
1250
    {
1251
      send_getTransferLotsByDate(fromDate, toDate);
1252
      return recv_getTransferLotsByDate();
1253
    }
1254
 
1255
    public void send_getTransferLotsByDate(long fromDate, long toDate) throws org.apache.thrift.TException
1256
    {
1257
      getTransferLotsByDate_args args = new getTransferLotsByDate_args();
1258
      args.setFromDate(fromDate);
1259
      args.setToDate(toDate);
1260
      sendBase("getTransferLotsByDate", args);
1261
    }
1262
 
1263
    public List<TransferLot> recv_getTransferLotsByDate() throws WarehouseServiceException, org.apache.thrift.TException
1264
    {
1265
      getTransferLotsByDate_result result = new getTransferLotsByDate_result();
1266
      receiveBase(result, "getTransferLotsByDate");
1267
      if (result.isSetSuccess()) {
1268
        return result.success;
1269
      }
1270
      if (result.wex != null) {
1271
        throw result.wex;
1272
      }
1273
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
1274
    }
1275
 
1276
    public List<Long> getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
1277
    {
1278
      send_getAllowedDestinationWarehousesForTransfer(warehouseId);
1279
      return recv_getAllowedDestinationWarehousesForTransfer();
1280
    }
1281
 
1282
    public void send_getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
1283
    {
1284
      getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
1285
      args.setWarehouseId(warehouseId);
1286
      sendBase("getAllowedDestinationWarehousesForTransfer", args);
1287
    }
1288
 
1289
    public List<Long> recv_getAllowedDestinationWarehousesForTransfer() throws org.apache.thrift.TException
1290
    {
1291
      getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
1292
      receiveBase(result, "getAllowedDestinationWarehousesForTransfer");
1293
      if (result.isSetSuccess()) {
1294
        return result.success;
1295
      }
1296
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
1297
    }
1298
 
1299
    public Map<Long,Long> getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
1300
    {
1301
      send_getItemsInTransferLot(transferLotId);
1302
      return recv_getItemsInTransferLot();
1303
    }
1304
 
1305
    public void send_getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
1306
    {
1307
      getItemsInTransferLot_args args = new getItemsInTransferLot_args();
1308
      args.setTransferLotId(transferLotId);
1309
      sendBase("getItemsInTransferLot", args);
1310
    }
1311
 
1312
    public Map<Long,Long> recv_getItemsInTransferLot() throws org.apache.thrift.TException
1313
    {
1314
      getItemsInTransferLot_result result = new getItemsInTransferLot_result();
1315
      receiveBase(result, "getItemsInTransferLot");
1316
      if (result.isSetSuccess()) {
1317
        return result.success;
1318
      }
1319
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
1320
    }
1321
 
1322
    public void markItemsAsReceivedForTransferLot(long id) throws WarehouseServiceException, org.apache.thrift.TException
1323
    {
1324
      send_markItemsAsReceivedForTransferLot(id);
1325
      recv_markItemsAsReceivedForTransferLot();
1326
    }
1327
 
1328
    public void send_markItemsAsReceivedForTransferLot(long id) throws org.apache.thrift.TException
1329
    {
1330
      markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
1331
      args.setId(id);
1332
      sendBase("markItemsAsReceivedForTransferLot", args);
1333
    }
1334
 
1335
    public void recv_markItemsAsReceivedForTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1336
    {
1337
      markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
1338
      receiveBase(result, "markItemsAsReceivedForTransferLot");
1339
      if (result.wex != null) {
1340
        throw result.wex;
1341
      }
1342
      return;
1343
    }
1344
 
1345
    public TransferLotStatus updateTransferLotAfterItemReceive(long id) throws WarehouseServiceException, org.apache.thrift.TException
1346
    {
1347
      send_updateTransferLotAfterItemReceive(id);
1348
      return recv_updateTransferLotAfterItemReceive();
1349
    }
1350
 
1351
    public void send_updateTransferLotAfterItemReceive(long id) throws org.apache.thrift.TException
1352
    {
1353
      updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
1354
      args.setId(id);
1355
      sendBase("updateTransferLotAfterItemReceive", args);
1356
    }
1357
 
1358
    public TransferLotStatus recv_updateTransferLotAfterItemReceive() throws WarehouseServiceException, org.apache.thrift.TException
1359
    {
1360
      updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
1361
      receiveBase(result, "updateTransferLotAfterItemReceive");
1362
      if (result.isSetSuccess()) {
1363
        return result.success;
1364
      }
1365
      if (result.wex != null) {
1366
        throw result.wex;
1367
      }
1368
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
1369
    }
1370
 
7453 amar.kumar 1371
    public void scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
7410 amar.kumar 1372
    {
7453 amar.kumar 1373
      send_scanForTransferOut(inventoryItems, type, transferLotId);
1374
      recv_scanForTransferOut();
7410 amar.kumar 1375
    }
1376
 
7453 amar.kumar 1377
    public void send_scanForTransferOut(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
7410 amar.kumar 1378
    {
7453 amar.kumar 1379
      scanForTransferOut_args args = new scanForTransferOut_args();
7410 amar.kumar 1380
      args.setInventoryItems(inventoryItems);
1381
      args.setType(type);
1382
      args.setTransferLotId(transferLotId);
7453 amar.kumar 1383
      sendBase("scanForTransferOut", args);
7410 amar.kumar 1384
    }
1385
 
7453 amar.kumar 1386
    public void recv_scanForTransferOut() throws WarehouseServiceException, org.apache.thrift.TException
7410 amar.kumar 1387
    {
7453 amar.kumar 1388
      scanForTransferOut_result result = new scanForTransferOut_result();
1389
      receiveBase(result, "scanForTransferOut");
7410 amar.kumar 1390
      if (result.wex != null) {
1391
        throw result.wex;
1392
      }
1393
      return;
1394
    }
1395
 
7453 amar.kumar 1396
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1397
    {
1398
      send_scanForTransferIn(inventoryItems, type, transferLotId);
1399
      recv_scanForTransferIn();
1400
    }
1401
 
1402
    public void send_scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
1403
    {
1404
      scanForTransferIn_args args = new scanForTransferIn_args();
1405
      args.setInventoryItems(inventoryItems);
1406
      args.setType(type);
1407
      args.setTransferLotId(transferLotId);
1408
      sendBase("scanForTransferIn", args);
1409
    }
1410
 
1411
    public void recv_scanForTransferIn() throws WarehouseServiceException, org.apache.thrift.TException
1412
    {
1413
      scanForTransferIn_result result = new scanForTransferIn_result();
1414
      receiveBase(result, "scanForTransferIn");
1415
      if (result.wex != null) {
1416
        throw result.wex;
1417
      }
1418
      return;
1419
    }
1420
 
1421
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException
1422
    {
1423
      send_scanForOursThirdPartyReceive(inventoryItems, id);
1424
      recv_scanForOursThirdPartyReceive();
1425
    }
1426
 
1427
    public void send_scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws org.apache.thrift.TException
1428
    {
1429
      scanForOursThirdPartyReceive_args args = new scanForOursThirdPartyReceive_args();
1430
      args.setInventoryItems(inventoryItems);
1431
      args.setId(id);
1432
      sendBase("scanForOursThirdPartyReceive", args);
1433
    }
1434
 
1435
    public void recv_scanForOursThirdPartyReceive() throws WarehouseServiceException, org.apache.thrift.TException
1436
    {
1437
      scanForOursThirdPartyReceive_result result = new scanForOursThirdPartyReceive_result();
1438
      receiveBase(result, "scanForOursThirdPartyReceive");
1439
      if (result.wex != null) {
1440
        throw result.wex;
1441
      }
1442
      return;
1443
    }
1444
 
2820 chandransh 1445
  }
3430 rajveer 1446
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1447
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1448
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1449
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1450
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1451
        this.clientManager = clientManager;
1452
        this.protocolFactory = protocolFactory;
1453
      }
1454
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1455
        return new AsyncClient(protocolFactory, clientManager, transport);
1456
      }
2820 chandransh 1457
    }
1458
 
3430 rajveer 1459
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1460
      super(protocolFactory, clientManager, transport);
1461
    }
2820 chandransh 1462
 
4496 mandeep.dh 1463
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1464
      checkReady();
4496 mandeep.dh 1465
      getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1466
      this.___currentMethod = method_call;
1467
      ___manager.call(method_call);
1468
    }
1469
 
4496 mandeep.dh 1470
    public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
1471
      private String serialNumber;
1472
      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 1473
        super(client, protocolFactory, transport, resultHandler, false);
4496 mandeep.dh 1474
        this.serialNumber = serialNumber;
3430 rajveer 1475
      }
1476
 
1477
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4496 mandeep.dh 1478
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
1479
        getInventoryItem_args args = new getInventoryItem_args();
1480
        args.setSerialNumber(serialNumber);
3430 rajveer 1481
        args.write(prot);
1482
        prot.writeMessageEnd();
1483
      }
1484
 
4541 mandeep.dh 1485
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3430 rajveer 1486
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1487
          throw new IllegalStateException("Method call not finished!");
1488
        }
1489
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1490
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4496 mandeep.dh 1491
        return (new Client(prot)).recv_getInventoryItem();
3430 rajveer 1492
      }
1493
    }
1494
 
5530 mandeep.dh 1495
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1496
      checkReady();
5530 mandeep.dh 1497
      getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1498
      this.___currentMethod = method_call;
1499
      ___manager.call(method_call);
1500
    }
1501
 
5361 mandeep.dh 1502
    public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
5530 mandeep.dh 1503
      private String itemNumber;
4496 mandeep.dh 1504
      private long itemId;
5530 mandeep.dh 1505
      private long fulfilmentWarehouseId;
1506
      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 1507
        super(client, protocolFactory, transport, resultHandler, false);
5530 mandeep.dh 1508
        this.itemNumber = itemNumber;
4496 mandeep.dh 1509
        this.itemId = itemId;
5530 mandeep.dh 1510
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
3430 rajveer 1511
      }
1512
 
1513
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5361 mandeep.dh 1514
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
1515
        getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
5530 mandeep.dh 1516
        args.setItemNumber(itemNumber);
4496 mandeep.dh 1517
        args.setItemId(itemId);
5530 mandeep.dh 1518
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
3430 rajveer 1519
        args.write(prot);
1520
        prot.writeMessageEnd();
1521
      }
1522
 
5361 mandeep.dh 1523
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3430 rajveer 1524
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1525
          throw new IllegalStateException("Method call not finished!");
1526
        }
1527
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1528
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5361 mandeep.dh 1529
        return (new Client(prot)).recv_getNonSeralizedInventoryItem();
3430 rajveer 1530
      }
1531
    }
1532
 
7410 amar.kumar 1533
    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 1534
      checkReady();
7410 amar.kumar 1535
      scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1536
      this.___currentMethod = method_call;
1537
      ___manager.call(method_call);
1538
    }
1539
 
4496 mandeep.dh 1540
    public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
5361 mandeep.dh 1541
      private InventoryItem inventoryItem;
3430 rajveer 1542
      private ScanType type;
4496 mandeep.dh 1543
      private long quantity;
5361 mandeep.dh 1544
      private long billingWarehouseId;
7410 amar.kumar 1545
      private long transferLotId;
1546
      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 1547
        super(client, protocolFactory, transport, resultHandler, false);
5361 mandeep.dh 1548
        this.inventoryItem = inventoryItem;
3430 rajveer 1549
        this.type = type;
4496 mandeep.dh 1550
        this.quantity = quantity;
5361 mandeep.dh 1551
        this.billingWarehouseId = billingWarehouseId;
7410 amar.kumar 1552
        this.transferLotId = transferLotId;
3430 rajveer 1553
      }
1554
 
1555
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4496 mandeep.dh 1556
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
1557
        scan_args args = new scan_args();
5361 mandeep.dh 1558
        args.setInventoryItem(inventoryItem);
3430 rajveer 1559
        args.setType(type);
4496 mandeep.dh 1560
        args.setQuantity(quantity);
5361 mandeep.dh 1561
        args.setBillingWarehouseId(billingWarehouseId);
7410 amar.kumar 1562
        args.setTransferLotId(transferLotId);
3430 rajveer 1563
        args.write(prot);
1564
        prot.writeMessageEnd();
1565
      }
1566
 
1567
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1568
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1569
          throw new IllegalStateException("Method call not finished!");
1570
        }
1571
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1572
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4496 mandeep.dh 1573
        (new Client(prot)).recv_scan();
3430 rajveer 1574
      }
1575
    }
1576
 
5110 mandeep.dh 1577
    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 1578
      checkReady();
5110 mandeep.dh 1579
      scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
4496 mandeep.dh 1580
      this.___currentMethod = method_call;
1581
      ___manager.call(method_call);
1582
    }
1583
 
1584
    public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
4555 mandeep.dh 1585
      private String serialNumber;
4496 mandeep.dh 1586
      private ScanType type;
1587
      private long orderId;
5110 mandeep.dh 1588
      private long fulfilmentWarehouseId;
1589
      private double quantity;
1590
      private long billingWarehouseId;
1591
      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 1592
        super(client, protocolFactory, transport, resultHandler, false);
4555 mandeep.dh 1593
        this.serialNumber = serialNumber;
4496 mandeep.dh 1594
        this.type = type;
1595
        this.orderId = orderId;
5110 mandeep.dh 1596
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
1597
        this.quantity = quantity;
1598
        this.billingWarehouseId = billingWarehouseId;
4496 mandeep.dh 1599
      }
1600
 
1601
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1602
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1603
        scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
4555 mandeep.dh 1604
        args.setSerialNumber(serialNumber);
4496 mandeep.dh 1605
        args.setType(type);
1606
        args.setOrderId(orderId);
5110 mandeep.dh 1607
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
1608
        args.setQuantity(quantity);
1609
        args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 1610
        args.write(prot);
1611
        prot.writeMessageEnd();
1612
      }
1613
 
4555 mandeep.dh 1614
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
4496 mandeep.dh 1615
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1616
          throw new IllegalStateException("Method call not finished!");
1617
        }
1618
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1619
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1620
        return (new Client(prot)).recv_scanSerializedItemForOrder();
1621
      }
1622
    }
1623
 
5361 mandeep.dh 1624
    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 1625
      checkReady();
5361 mandeep.dh 1626
      scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
4496 mandeep.dh 1627
      this.___currentMethod = method_call;
1628
      ___manager.call(method_call);
1629
    }
1630
 
1631
    public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
5361 mandeep.dh 1632
      private InventoryItem inventoryItem;
4496 mandeep.dh 1633
      private ScanType type;
1634
      private long quantity;
1635
      private long orderId;
5110 mandeep.dh 1636
      private long fulfilmentWarehouseId;
5361 mandeep.dh 1637
      private long billingWarehouseId;
1638
      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 1639
        super(client, protocolFactory, transport, resultHandler, false);
5361 mandeep.dh 1640
        this.inventoryItem = inventoryItem;
4496 mandeep.dh 1641
        this.type = type;
1642
        this.quantity = quantity;
1643
        this.orderId = orderId;
5110 mandeep.dh 1644
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
5361 mandeep.dh 1645
        this.billingWarehouseId = billingWarehouseId;
4496 mandeep.dh 1646
      }
1647
 
1648
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1649
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1650
        scanForOrder_args args = new scanForOrder_args();
5361 mandeep.dh 1651
        args.setInventoryItem(inventoryItem);
4496 mandeep.dh 1652
        args.setType(type);
1653
        args.setQuantity(quantity);
1654
        args.setOrderId(orderId);
5110 mandeep.dh 1655
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 1656
        args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 1657
        args.write(prot);
1658
        prot.writeMessageEnd();
1659
      }
1660
 
5361 mandeep.dh 1661
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
4496 mandeep.dh 1662
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1663
          throw new IllegalStateException("Method call not finished!");
1664
        }
1665
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1666
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5361 mandeep.dh 1667
        return (new Client(prot)).recv_scanForOrder();
4496 mandeep.dh 1668
      }
1669
    }
1670
 
1671
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
1672
      checkReady();
1673
      createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
1674
      this.___currentMethod = method_call;
1675
      ___manager.call(method_call);
1676
    }
1677
 
1678
    public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
1679
      private String itemNumber;
1680
      private long itemId;
1681
      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 {
1682
        super(client, protocolFactory, transport, resultHandler, false);
1683
        this.itemNumber = itemNumber;
1684
        this.itemId = itemId;
1685
      }
1686
 
1687
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1688
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
1689
        createItemNumberMapping_args args = new createItemNumberMapping_args();
1690
        args.setItemNumber(itemNumber);
1691
        args.setItemId(itemId);
1692
        args.write(prot);
1693
        prot.writeMessageEnd();
1694
      }
1695
 
1696
      public void getResult() throws org.apache.thrift.TException {
1697
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1698
          throw new IllegalStateException("Method call not finished!");
1699
        }
1700
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1701
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1702
        (new Client(prot)).recv_createItemNumberMapping();
1703
      }
1704
    }
1705
 
4622 amit.gupta 1706
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
1707
      checkReady();
1708
      getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
1709
      this.___currentMethod = method_call;
1710
      ___manager.call(method_call);
1711
    }
1712
 
1713
    public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
1714
      private long itemId;
1715
      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 {
1716
        super(client, protocolFactory, transport, resultHandler, false);
1717
        this.itemId = itemId;
1718
      }
1719
 
1720
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1721
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
1722
        getItemNumbers_args args = new getItemNumbers_args();
1723
        args.setItemId(itemId);
1724
        args.write(prot);
1725
        prot.writeMessageEnd();
1726
      }
1727
 
1728
      public List<String> getResult() throws org.apache.thrift.TException {
1729
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1730
          throw new IllegalStateException("Method call not finished!");
1731
        }
1732
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1733
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1734
        return (new Client(prot)).recv_getItemNumbers();
1735
      }
1736
    }
1737
 
5110 mandeep.dh 1738
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
1739
      checkReady();
1740
      getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
1741
      this.___currentMethod = method_call;
1742
      ___manager.call(method_call);
1743
    }
1744
 
1745
    public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
1746
      private String itemNumber;
1747
      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 {
1748
        super(client, protocolFactory, transport, resultHandler, false);
1749
        this.itemNumber = itemNumber;
1750
      }
1751
 
1752
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1753
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
1754
        getItemIds_args args = new getItemIds_args();
1755
        args.setItemNumber(itemNumber);
1756
        args.write(prot);
1757
        prot.writeMessageEnd();
1758
      }
1759
 
1760
      public List<Long> getResult() throws org.apache.thrift.TException {
1761
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1762
          throw new IllegalStateException("Method call not finished!");
1763
        }
1764
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1765
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1766
        return (new Client(prot)).recv_getItemIds();
1767
      }
1768
    }
1769
 
5185 mandeep.dh 1770
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
1771
      checkReady();
1772
      getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
1773
      this.___currentMethod = method_call;
1774
      ___manager.call(method_call);
1775
    }
1776
 
1777
    public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
1778
      private ScanType lastScanType;
1779
      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 {
1780
        super(client, protocolFactory, transport, resultHandler, false);
1781
        this.lastScanType = lastScanType;
1782
      }
1783
 
1784
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1785
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1786
        getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
1787
        args.setLastScanType(lastScanType);
1788
        args.write(prot);
1789
        prot.writeMessageEnd();
1790
      }
1791
 
1792
      public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1793
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1794
          throw new IllegalStateException("Method call not finished!");
1795
        }
1796
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1797
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1798
        return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
1799
      }
1800
    }
1801
 
1802
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
1803
      checkReady();
1804
      getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
1805
      this.___currentMethod = method_call;
1806
      ___manager.call(method_call);
1807
    }
1808
 
1809
    public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
1810
      private long inventoryItemId;
1811
      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 {
1812
        super(client, protocolFactory, transport, resultHandler, false);
1813
        this.inventoryItemId = inventoryItemId;
1814
      }
1815
 
1816
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1817
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1818
        getInventoryItemFromId_args args = new getInventoryItemFromId_args();
1819
        args.setInventoryItemId(inventoryItemId);
1820
        args.write(prot);
1821
        prot.writeMessageEnd();
1822
      }
1823
 
1824
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1825
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1826
          throw new IllegalStateException("Method call not finished!");
1827
        }
1828
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1829
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1830
        return (new Client(prot)).recv_getInventoryItemFromId();
1831
      }
1832
    }
1833
 
5372 mandeep.dh 1834
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException {
1835
      checkReady();
1836
      getPurchaseScans_call method_call = new getPurchaseScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
1837
      this.___currentMethod = method_call;
1838
      ___manager.call(method_call);
1839
    }
1840
 
1841
    public static class getPurchaseScans_call extends org.apache.thrift.async.TAsyncMethodCall {
1842
      private long startDate;
1843
      private long endDate;
1844
      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 {
1845
        super(client, protocolFactory, transport, resultHandler, false);
1846
        this.startDate = startDate;
1847
        this.endDate = endDate;
1848
      }
1849
 
1850
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1851
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
1852
        getPurchaseScans_args args = new getPurchaseScans_args();
1853
        args.setStartDate(startDate);
1854
        args.setEndDate(endDate);
1855
        args.write(prot);
1856
        prot.writeMessageEnd();
1857
      }
1858
 
1859
      public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
1860
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1861
          throw new IllegalStateException("Method call not finished!");
1862
        }
1863
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1864
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1865
        return (new Client(prot)).recv_getPurchaseScans();
1866
      }
1867
    }
1868
 
7210 amar.kumar 1869
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException {
1870
      checkReady();
1871
      getPurchaseScansByGrnDate_call method_call = new getPurchaseScansByGrnDate_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
1872
      this.___currentMethod = method_call;
1873
      ___manager.call(method_call);
1874
    }
1875
 
1876
    public static class getPurchaseScansByGrnDate_call extends org.apache.thrift.async.TAsyncMethodCall {
1877
      private long startDate;
1878
      private long endDate;
1879
      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 {
1880
        super(client, protocolFactory, transport, resultHandler, false);
1881
        this.startDate = startDate;
1882
        this.endDate = endDate;
1883
      }
1884
 
1885
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1886
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScansByGrnDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1887
        getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
1888
        args.setStartDate(startDate);
1889
        args.setEndDate(endDate);
1890
        args.write(prot);
1891
        prot.writeMessageEnd();
1892
      }
1893
 
1894
      public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
1895
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1896
          throw new IllegalStateException("Method call not finished!");
1897
        }
1898
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1899
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1900
        return (new Client(prot)).recv_getPurchaseScansByGrnDate();
1901
      }
1902
    }
1903
 
5496 mandeep.dh 1904
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
1905
      checkReady();
1906
      fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
1907
      this.___currentMethod = method_call;
1908
      ___manager.call(method_call);
1909
    }
1910
 
1911
    public static class fetchScansPerInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
1912
      private long date;
1913
      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 {
1914
        super(client, protocolFactory, transport, resultHandler, false);
1915
        this.date = date;
1916
      }
1917
 
1918
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1919
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchScansPerInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
1920
        fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
1921
        args.setDate(date);
1922
        args.write(prot);
1923
        prot.writeMessageEnd();
1924
      }
1925
 
1926
      public List<InvoiceScan> getResult() throws org.apache.thrift.TException {
1927
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1928
          throw new IllegalStateException("Method call not finished!");
1929
        }
1930
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1931
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1932
        return (new Client(prot)).recv_fetchScansPerInvoiceNumber();
1933
      }
1934
    }
1935
 
5620 mandeep.dh 1936
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException {
1937
      checkReady();
1938
      getInventoryItemFromOrder_call method_call = new getInventoryItemFromOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
1939
      this.___currentMethod = method_call;
1940
      ___manager.call(method_call);
1941
    }
1942
 
1943
    public static class getInventoryItemFromOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1944
      private long orderId;
1945
      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 {
1946
        super(client, protocolFactory, transport, resultHandler, false);
1947
        this.orderId = orderId;
1948
      }
1949
 
1950
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1951
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1952
        getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
1953
        args.setOrderId(orderId);
1954
        args.write(prot);
1955
        prot.writeMessageEnd();
1956
      }
1957
 
1958
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1959
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1960
          throw new IllegalStateException("Method call not finished!");
1961
        }
1962
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1963
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1964
        return (new Client(prot)).recv_getInventoryItemFromOrder();
1965
      }
1966
    }
1967
 
5711 mandeep.dh 1968
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_call> resultHandler) throws org.apache.thrift.TException {
1969
      checkReady();
1970
      getInventoryAge_call method_call = new getInventoryAge_call(resultHandler, this, ___protocolFactory, ___transport);
1971
      this.___currentMethod = method_call;
1972
      ___manager.call(method_call);
1973
    }
1974
 
1975
    public static class getInventoryAge_call extends org.apache.thrift.async.TAsyncMethodCall {
1976
      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 {
1977
        super(client, protocolFactory, transport, resultHandler, false);
1978
      }
1979
 
1980
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1981
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryAge", org.apache.thrift.protocol.TMessageType.CALL, 0));
1982
        getInventoryAge_args args = new getInventoryAge_args();
1983
        args.write(prot);
1984
        prot.writeMessageEnd();
1985
      }
1986
 
1987
      public List<InventoryAge> getResult() throws org.apache.thrift.TException {
1988
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1989
          throw new IllegalStateException("Method call not finished!");
1990
        }
1991
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1992
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1993
        return (new Client(prot)).recv_getInventoryAge();
1994
      }
1995
    }
1996
 
6322 amar.kumar 1997
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException {
1998
      checkReady();
1999
      getInventoryScansForItem_call method_call = new getInventoryScansForItem_call(itemId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
2000
      this.___currentMethod = method_call;
2001
      ___manager.call(method_call);
2002
    }
2003
 
2004
    public static class getInventoryScansForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2005
      private long itemId;
2006
      private long fromDate;
2007
      private long toDate;
2008
      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 {
2009
        super(client, protocolFactory, transport, resultHandler, false);
2010
        this.itemId = itemId;
2011
        this.fromDate = fromDate;
2012
        this.toDate = toDate;
2013
      }
2014
 
2015
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2016
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryScansForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2017
        getInventoryScansForItem_args args = new getInventoryScansForItem_args();
2018
        args.setItemId(itemId);
2019
        args.setFromDate(fromDate);
2020
        args.setToDate(toDate);
2021
        args.write(prot);
2022
        prot.writeMessageEnd();
2023
      }
2024
 
2025
      public List<Scan> getResult() throws org.apache.thrift.TException {
2026
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2027
          throw new IllegalStateException("Method call not finished!");
2028
        }
2029
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2030
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2031
        return (new Client(prot)).recv_getInventoryScansForItem();
2032
      }
2033
    }
2034
 
7410 amar.kumar 2035
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
6322 amar.kumar 2036
      checkReady();
2037
      getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
2038
      this.___currentMethod = method_call;
2039
      ___manager.call(method_call);
2040
    }
2041
 
2042
    public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
7410 amar.kumar 2043
      private String serialNumber;
2044
      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 2045
        super(client, protocolFactory, transport, resultHandler, false);
2046
        this.serialNumber = serialNumber;
2047
      }
2048
 
2049
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2050
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanRecordsForSerialNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
2051
        getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
2052
        args.setSerialNumber(serialNumber);
2053
        args.write(prot);
2054
        prot.writeMessageEnd();
2055
      }
2056
 
2057
      public List<Scan> getResult() throws org.apache.thrift.TException {
2058
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2059
          throw new IllegalStateException("Method call not finished!");
2060
        }
2061
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2062
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2063
        return (new Client(prot)).recv_getScanRecordsForSerialNumber();
2064
      }
2065
    }
2066
 
6467 amar.kumar 2067
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
2068
      checkReady();
2069
      scanForPurchaseReturn_call method_call = new scanForPurchaseReturn_call(saleReturnItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2070
      this.___currentMethod = method_call;
2071
      ___manager.call(method_call);
2072
    }
2073
 
2074
    public static class scanForPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
2075
      private List<InventoryItem> saleReturnItems;
2076
      private long vendorId;
2077
      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 {
2078
        super(client, protocolFactory, transport, resultHandler, false);
2079
        this.saleReturnItems = saleReturnItems;
2080
        this.vendorId = vendorId;
2081
      }
2082
 
2083
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2084
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2085
        scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
2086
        args.setSaleReturnItems(saleReturnItems);
2087
        args.setVendorId(vendorId);
2088
        args.write(prot);
2089
        prot.writeMessageEnd();
2090
      }
2091
 
2092
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2093
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2094
          throw new IllegalStateException("Method call not finished!");
2095
        }
2096
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2097
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2098
        (new Client(prot)).recv_scanForPurchaseReturn();
2099
      }
2100
    }
2101
 
6548 amar.kumar 2102
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
2103
      checkReady();
2104
      scanForLostItem_call method_call = new scanForLostItem_call(lostItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2105
      this.___currentMethod = method_call;
2106
      ___manager.call(method_call);
2107
    }
2108
 
2109
    public static class scanForLostItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2110
      private List<InventoryItem> lostItems;
2111
      private long vendorId;
2112
      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 {
2113
        super(client, protocolFactory, transport, resultHandler, false);
2114
        this.lostItems = lostItems;
2115
        this.vendorId = vendorId;
2116
      }
2117
 
2118
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2119
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForLostItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2120
        scanForLostItem_args args = new scanForLostItem_args();
2121
        args.setLostItems(lostItems);
2122
        args.setVendorId(vendorId);
2123
        args.write(prot);
2124
        prot.writeMessageEnd();
2125
      }
2126
 
2127
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2128
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2129
          throw new IllegalStateException("Method call not finished!");
2130
        }
2131
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2132
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2133
        (new Client(prot)).recv_scanForLostItem();
2134
      }
2135
    }
2136
 
2137
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2138
      checkReady();
2139
      getCurrentSerializedInventoryByScans_call method_call = new getCurrentSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
2140
      this.___currentMethod = method_call;
2141
      ___manager.call(method_call);
2142
    }
2143
 
2144
    public static class getCurrentSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2145
      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 {
2146
        super(client, protocolFactory, transport, resultHandler, false);
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("getCurrentSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2151
        getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
2152
        args.write(prot);
2153
        prot.writeMessageEnd();
2154
      }
2155
 
2156
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2157
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2158
          throw new IllegalStateException("Method call not finished!");
2159
        }
2160
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2161
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2162
        return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
2163
      }
2164
    }
2165
 
6630 amar.kumar 2166
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2167
      checkReady();
2168
      getCurrentNonSerializedInventoryByScans_call method_call = new getCurrentNonSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
2169
      this.___currentMethod = method_call;
2170
      ___manager.call(method_call);
2171
    }
2172
 
2173
    public static class getCurrentNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2174
      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 {
2175
        super(client, protocolFactory, transport, resultHandler, false);
2176
      }
2177
 
2178
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2179
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2180
        getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
2181
        args.write(prot);
2182
        prot.writeMessageEnd();
2183
      }
2184
 
2185
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2186
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2187
          throw new IllegalStateException("Method call not finished!");
2188
        }
2189
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2190
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2191
        return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
2192
      }
2193
    }
2194
 
6762 amar.kumar 2195
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2196
      checkReady();
2197
      getHistoricSerializedInventoryByScans_call method_call = new getHistoricSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
2198
      this.___currentMethod = method_call;
2199
      ___manager.call(method_call);
2200
    }
2201
 
2202
    public static class getHistoricSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2203
      private long date;
2204
      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 {
2205
        super(client, protocolFactory, transport, resultHandler, false);
2206
        this.date = date;
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("getHistoricSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2211
        getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
2212
        args.setDate(date);
2213
        args.write(prot);
2214
        prot.writeMessageEnd();
2215
      }
2216
 
2217
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2218
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2219
          throw new IllegalStateException("Method call not finished!");
2220
        }
2221
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2222
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2223
        return (new Client(prot)).recv_getHistoricSerializedInventoryByScans();
2224
      }
2225
    }
2226
 
2227
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2228
      checkReady();
2229
      getHistoricNonSerializedInventoryByScans_call method_call = new getHistoricNonSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
2230
      this.___currentMethod = method_call;
2231
      ___manager.call(method_call);
2232
    }
2233
 
2234
    public static class getHistoricNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2235
      private long date;
2236
      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 {
2237
        super(client, protocolFactory, transport, resultHandler, false);
2238
        this.date = date;
2239
      }
2240
 
2241
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2242
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2243
        getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
2244
        args.setDate(date);
2245
        args.write(prot);
2246
        prot.writeMessageEnd();
2247
      }
2248
 
2249
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2250
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2251
          throw new IllegalStateException("Method call not finished!");
2252
        }
2253
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2254
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2255
        return (new Client(prot)).recv_getHistoricNonSerializedInventoryByScans();
2256
      }
2257
    }
2258
 
2259
    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 {
2260
      checkReady();
2261
      scanForOursExternalSale_call method_call = new scanForOursExternalSale_call(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId, resultHandler, this, ___protocolFactory, ___transport);
2262
      this.___currentMethod = method_call;
2263
      ___manager.call(method_call);
2264
    }
2265
 
2266
    public static class scanForOursExternalSale_call extends org.apache.thrift.async.TAsyncMethodCall {
2267
      private long itemId;
2268
      private String serialNumber;
2269
      private String itemNumber;
2270
      private String invoiceNumber;
2271
      private long warehouseId;
2272
      private double unitPrice;
2273
      private long orderId;
2274
      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 {
2275
        super(client, protocolFactory, transport, resultHandler, false);
2276
        this.itemId = itemId;
2277
        this.serialNumber = serialNumber;
2278
        this.itemNumber = itemNumber;
2279
        this.invoiceNumber = invoiceNumber;
2280
        this.warehouseId = warehouseId;
2281
        this.unitPrice = unitPrice;
2282
        this.orderId = orderId;
2283
      }
2284
 
2285
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2286
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
2287
        scanForOursExternalSale_args args = new scanForOursExternalSale_args();
2288
        args.setItemId(itemId);
2289
        args.setSerialNumber(serialNumber);
2290
        args.setItemNumber(itemNumber);
2291
        args.setInvoiceNumber(invoiceNumber);
2292
        args.setWarehouseId(warehouseId);
2293
        args.setUnitPrice(unitPrice);
2294
        args.setOrderId(orderId);
2295
        args.write(prot);
2296
        prot.writeMessageEnd();
2297
      }
2298
 
2299
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2300
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2301
          throw new IllegalStateException("Method call not finished!");
2302
        }
2303
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2304
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2305
        return (new Client(prot)).recv_scanForOursExternalSale();
2306
      }
2307
    }
2308
 
2309
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException {
2310
      checkReady();
2311
      scanForOursExternalSaleReturn_call method_call = new scanForOursExternalSaleReturn_call(orderId, unitPrice, resultHandler, this, ___protocolFactory, ___transport);
2312
      this.___currentMethod = method_call;
2313
      ___manager.call(method_call);
2314
    }
2315
 
2316
    public static class scanForOursExternalSaleReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
2317
      private long orderId;
2318
      private double unitPrice;
2319
      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 {
2320
        super(client, protocolFactory, transport, resultHandler, false);
2321
        this.orderId = orderId;
2322
        this.unitPrice = unitPrice;
2323
      }
2324
 
2325
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2326
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSaleReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2327
        scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
2328
        args.setOrderId(orderId);
2329
        args.setUnitPrice(unitPrice);
2330
        args.write(prot);
2331
        prot.writeMessageEnd();
2332
      }
2333
 
7410 amar.kumar 2334
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
6762 amar.kumar 2335
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2336
          throw new IllegalStateException("Method call not finished!");
2337
        }
2338
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2339
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2340
        (new Client(prot)).recv_scanForOursExternalSaleReturn();
2341
      }
2342
    }
2343
 
6880 amar.kumar 2344
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2345
      checkReady();
2346
      getMovementNonSerializedInventoryByScans_call method_call = new getMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2347
      this.___currentMethod = method_call;
2348
      ___manager.call(method_call);
2349
    }
2350
 
2351
    public static class getMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2352
      private long startDate;
2353
      private long endDate;
2354
      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 {
2355
        super(client, protocolFactory, transport, resultHandler, false);
2356
        this.startDate = startDate;
2357
        this.endDate = endDate;
2358
      }
2359
 
2360
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2361
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2362
        getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
2363
        args.setStartDate(startDate);
2364
        args.setEndDate(endDate);
2365
        args.write(prot);
2366
        prot.writeMessageEnd();
2367
      }
2368
 
2369
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2370
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2371
          throw new IllegalStateException("Method call not finished!");
2372
        }
2373
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2374
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2375
        return (new Client(prot)).recv_getMovementNonSerializedInventoryByScans();
2376
      }
2377
    }
2378
 
2379
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2380
      checkReady();
2381
      getMovementSerializedInventoryByScans_call method_call = new getMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2382
      this.___currentMethod = method_call;
2383
      ___manager.call(method_call);
2384
    }
2385
 
2386
    public static class getMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2387
      private long startDate;
2388
      private long endDate;
2389
      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 {
2390
        super(client, protocolFactory, transport, resultHandler, false);
2391
        this.startDate = startDate;
2392
        this.endDate = endDate;
2393
      }
2394
 
2395
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2396
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2397
        getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
2398
        args.setStartDate(startDate);
2399
        args.setEndDate(endDate);
2400
        args.write(prot);
2401
        prot.writeMessageEnd();
2402
      }
2403
 
2404
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2405
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2406
          throw new IllegalStateException("Method call not finished!");
2407
        }
2408
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2409
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2410
        return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
2411
      }
2412
    }
2413
 
7216 amar.kumar 2414
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2415
      checkReady();
2416
      getCompleteMovementSerializedInventoryByScans_call method_call = new getCompleteMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2417
      this.___currentMethod = method_call;
2418
      ___manager.call(method_call);
2419
    }
2420
 
2421
    public static class getCompleteMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2422
      private long startDate;
2423
      private long endDate;
2424
      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 {
2425
        super(client, protocolFactory, transport, resultHandler, false);
2426
        this.startDate = startDate;
2427
        this.endDate = endDate;
2428
      }
2429
 
2430
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2431
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2432
        getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
2433
        args.setStartDate(startDate);
2434
        args.setEndDate(endDate);
2435
        args.write(prot);
2436
        prot.writeMessageEnd();
2437
      }
2438
 
2439
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2440
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2441
          throw new IllegalStateException("Method call not finished!");
2442
        }
2443
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2444
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2445
        return (new Client(prot)).recv_getCompleteMovementSerializedInventoryByScans();
2446
      }
2447
    }
2448
 
2449
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2450
      checkReady();
2451
      getCompleteMovementNonSerializedInventoryByScans_call method_call = new getCompleteMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2452
      this.___currentMethod = method_call;
2453
      ___manager.call(method_call);
2454
    }
2455
 
2456
    public static class getCompleteMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2457
      private long startDate;
2458
      private long endDate;
2459
      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 {
2460
        super(client, protocolFactory, transport, resultHandler, false);
2461
        this.startDate = startDate;
2462
        this.endDate = endDate;
2463
      }
2464
 
2465
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2466
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2467
        getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
2468
        args.setStartDate(startDate);
2469
        args.setEndDate(endDate);
2470
        args.write(prot);
2471
        prot.writeMessageEnd();
2472
      }
2473
 
2474
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2475
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2476
          throw new IllegalStateException("Method call not finished!");
2477
        }
2478
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2479
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2480
        return (new Client(prot)).recv_getCompleteMovementNonSerializedInventoryByScans();
2481
      }
2482
    }
2483
 
7190 amar.kumar 2484
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<scanfreebie_call> resultHandler) throws org.apache.thrift.TException {
2485
      checkReady();
2486
      scanfreebie_call method_call = new scanfreebie_call(orderId, freebieItemId, freebieWarehouseId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2487
      this.___currentMethod = method_call;
2488
      ___manager.call(method_call);
2489
    }
2490
 
2491
    public static class scanfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
2492
      private long orderId;
2493
      private long freebieItemId;
2494
      private long freebieWarehouseId;
2495
      private ScanType scanType;
2496
      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 {
2497
        super(client, protocolFactory, transport, resultHandler, false);
2498
        this.orderId = orderId;
2499
        this.freebieItemId = freebieItemId;
2500
        this.freebieWarehouseId = freebieWarehouseId;
2501
        this.scanType = scanType;
2502
      }
2503
 
2504
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2505
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
2506
        scanfreebie_args args = new scanfreebie_args();
2507
        args.setOrderId(orderId);
2508
        args.setFreebieItemId(freebieItemId);
2509
        args.setFreebieWarehouseId(freebieWarehouseId);
2510
        args.setScanType(scanType);
2511
        args.write(prot);
2512
        prot.writeMessageEnd();
2513
      }
2514
 
2515
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2516
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2517
          throw new IllegalStateException("Method call not finished!");
2518
        }
2519
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2520
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2521
        return (new Client(prot)).recv_scanfreebie();
2522
      }
2523
    }
2524
 
7199 amar.kumar 2525
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<reshipfreebie_call> resultHandler) throws org.apache.thrift.TException {
2526
      checkReady();
2527
      reshipfreebie_call method_call = new reshipfreebie_call(oldOrderId, newOrderId, freebieItemId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2528
      this.___currentMethod = method_call;
2529
      ___manager.call(method_call);
2530
    }
2531
 
2532
    public static class reshipfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
2533
      private long oldOrderId;
2534
      private long newOrderId;
2535
      private long freebieItemId;
2536
      private ScanType scanType;
2537
      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 {
2538
        super(client, protocolFactory, transport, resultHandler, false);
2539
        this.oldOrderId = oldOrderId;
2540
        this.newOrderId = newOrderId;
2541
        this.freebieItemId = freebieItemId;
2542
        this.scanType = scanType;
2543
      }
2544
 
2545
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2546
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
2547
        reshipfreebie_args args = new reshipfreebie_args();
2548
        args.setOldOrderId(oldOrderId);
2549
        args.setNewOrderId(newOrderId);
2550
        args.setFreebieItemId(freebieItemId);
2551
        args.setScanType(scanType);
2552
        args.write(prot);
2553
        prot.writeMessageEnd();
2554
      }
2555
 
2556
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2557
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2558
          throw new IllegalStateException("Method call not finished!");
2559
        }
2560
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2561
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2562
        (new Client(prot)).recv_reshipfreebie();
2563
      }
2564
    }
2565
 
7410 amar.kumar 2566
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException {
2567
      checkReady();
2568
      isItemTransferAllowed_call method_call = new isItemTransferAllowed_call(warehouseId, transferWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2569
      this.___currentMethod = method_call;
2570
      ___manager.call(method_call);
2571
    }
2572
 
2573
    public static class isItemTransferAllowed_call extends org.apache.thrift.async.TAsyncMethodCall {
2574
      private long warehouseId;
2575
      private long transferWarehouseId;
2576
      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 {
2577
        super(client, protocolFactory, transport, resultHandler, false);
2578
        this.warehouseId = warehouseId;
2579
        this.transferWarehouseId = transferWarehouseId;
2580
      }
2581
 
2582
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2583
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isItemTransferAllowed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2584
        isItemTransferAllowed_args args = new isItemTransferAllowed_args();
2585
        args.setWarehouseId(warehouseId);
2586
        args.setTransferWarehouseId(transferWarehouseId);
2587
        args.write(prot);
2588
        prot.writeMessageEnd();
2589
      }
2590
 
2591
      public boolean getResult() throws org.apache.thrift.TException {
2592
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2593
          throw new IllegalStateException("Method call not finished!");
2594
        }
2595
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2596
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2597
        return (new Client(prot)).recv_isItemTransferAllowed();
2598
      }
2599
    }
2600
 
2601
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<createTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2602
      checkReady();
2603
      createTransferLot_call method_call = new createTransferLot_call(originWarehouseId, destWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2604
      this.___currentMethod = method_call;
2605
      ___manager.call(method_call);
2606
    }
2607
 
2608
    public static class createTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2609
      private long originWarehouseId;
2610
      private long destWarehouseId;
2611
      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 {
2612
        super(client, protocolFactory, transport, resultHandler, false);
2613
        this.originWarehouseId = originWarehouseId;
2614
        this.destWarehouseId = destWarehouseId;
2615
      }
2616
 
2617
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2618
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2619
        createTransferLot_args args = new createTransferLot_args();
2620
        args.setOriginWarehouseId(originWarehouseId);
2621
        args.setDestWarehouseId(destWarehouseId);
2622
        args.write(prot);
2623
        prot.writeMessageEnd();
2624
      }
2625
 
2626
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2627
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2628
          throw new IllegalStateException("Method call not finished!");
2629
        }
2630
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2631
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2632
        return (new Client(prot)).recv_createTransferLot();
2633
      }
2634
    }
2635
 
2636
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2637
      checkReady();
2638
      getTransferLot_call method_call = new getTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2639
      this.___currentMethod = method_call;
2640
      ___manager.call(method_call);
2641
    }
2642
 
2643
    public static class getTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2644
      private long transferLotId;
2645
      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 {
2646
        super(client, protocolFactory, transport, resultHandler, false);
2647
        this.transferLotId = transferLotId;
2648
      }
2649
 
2650
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2651
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2652
        getTransferLot_args args = new getTransferLot_args();
2653
        args.setTransferLotId(transferLotId);
2654
        args.write(prot);
2655
        prot.writeMessageEnd();
2656
      }
2657
 
2658
      public TransferLot getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2659
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2660
          throw new IllegalStateException("Method call not finished!");
2661
        }
2662
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2663
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2664
        return (new Client(prot)).recv_getTransferLot();
2665
      }
2666
    }
2667
 
2668
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException {
2669
      checkReady();
2670
      markTransferLotAsReceived_call method_call = new markTransferLotAsReceived_call(id, remoteTransferRefNumber, resultHandler, this, ___protocolFactory, ___transport);
2671
      this.___currentMethod = method_call;
2672
      ___manager.call(method_call);
2673
    }
2674
 
2675
    public static class markTransferLotAsReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
2676
      private long id;
2677
      private String remoteTransferRefNumber;
2678
      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 {
2679
        super(client, protocolFactory, transport, resultHandler, false);
2680
        this.id = id;
2681
        this.remoteTransferRefNumber = remoteTransferRefNumber;
2682
      }
2683
 
2684
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2685
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransferLotAsReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
2686
        markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
2687
        args.setId(id);
2688
        args.setRemoteTransferRefNumber(remoteTransferRefNumber);
2689
        args.write(prot);
2690
        prot.writeMessageEnd();
2691
      }
2692
 
2693
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2694
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2695
          throw new IllegalStateException("Method call not finished!");
2696
        }
2697
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2698
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2699
        (new Client(prot)).recv_markTransferLotAsReceived();
2700
      }
2701
    }
2702
 
2703
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException {
2704
      checkReady();
2705
      getTransferLotsByDate_call method_call = new getTransferLotsByDate_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
2706
      this.___currentMethod = method_call;
2707
      ___manager.call(method_call);
2708
    }
2709
 
2710
    public static class getTransferLotsByDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2711
      private long fromDate;
2712
      private long toDate;
2713
      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 {
2714
        super(client, protocolFactory, transport, resultHandler, false);
2715
        this.fromDate = fromDate;
2716
        this.toDate = toDate;
2717
      }
2718
 
2719
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2720
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLotsByDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2721
        getTransferLotsByDate_args args = new getTransferLotsByDate_args();
2722
        args.setFromDate(fromDate);
2723
        args.setToDate(toDate);
2724
        args.write(prot);
2725
        prot.writeMessageEnd();
2726
      }
2727
 
2728
      public List<TransferLot> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2729
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2730
          throw new IllegalStateException("Method call not finished!");
2731
        }
2732
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2733
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2734
        return (new Client(prot)).recv_getTransferLotsByDate();
2735
      }
2736
    }
2737
 
2738
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException {
2739
      checkReady();
2740
      getAllowedDestinationWarehousesForTransfer_call method_call = new getAllowedDestinationWarehousesForTransfer_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2741
      this.___currentMethod = method_call;
2742
      ___manager.call(method_call);
2743
    }
2744
 
2745
    public static class getAllowedDestinationWarehousesForTransfer_call extends org.apache.thrift.async.TAsyncMethodCall {
2746
      private long warehouseId;
2747
      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 {
2748
        super(client, protocolFactory, transport, resultHandler, false);
2749
        this.warehouseId = warehouseId;
2750
      }
2751
 
2752
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2753
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllowedDestinationWarehousesForTransfer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2754
        getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
2755
        args.setWarehouseId(warehouseId);
2756
        args.write(prot);
2757
        prot.writeMessageEnd();
2758
      }
2759
 
2760
      public List<Long> getResult() throws org.apache.thrift.TException {
2761
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2762
          throw new IllegalStateException("Method call not finished!");
2763
        }
2764
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2765
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2766
        return (new Client(prot)).recv_getAllowedDestinationWarehousesForTransfer();
2767
      }
2768
    }
2769
 
2770
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2771
      checkReady();
2772
      getItemsInTransferLot_call method_call = new getItemsInTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2773
      this.___currentMethod = method_call;
2774
      ___manager.call(method_call);
2775
    }
2776
 
2777
    public static class getItemsInTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2778
      private long transferLotId;
2779
      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 {
2780
        super(client, protocolFactory, transport, resultHandler, false);
2781
        this.transferLotId = transferLotId;
2782
      }
2783
 
2784
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2785
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsInTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2786
        getItemsInTransferLot_args args = new getItemsInTransferLot_args();
2787
        args.setTransferLotId(transferLotId);
2788
        args.write(prot);
2789
        prot.writeMessageEnd();
2790
      }
2791
 
2792
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
2793
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2794
          throw new IllegalStateException("Method call not finished!");
2795
        }
2796
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2797
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2798
        return (new Client(prot)).recv_getItemsInTransferLot();
2799
      }
2800
    }
2801
 
2802
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2803
      checkReady();
2804
      markItemsAsReceivedForTransferLot_call method_call = new markItemsAsReceivedForTransferLot_call(id, resultHandler, this, ___protocolFactory, ___transport);
2805
      this.___currentMethod = method_call;
2806
      ___manager.call(method_call);
2807
    }
2808
 
2809
    public static class markItemsAsReceivedForTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2810
      private long id;
2811
      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 {
2812
        super(client, protocolFactory, transport, resultHandler, false);
2813
        this.id = id;
2814
      }
2815
 
2816
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2817
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markItemsAsReceivedForTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2818
        markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
2819
        args.setId(id);
2820
        args.write(prot);
2821
        prot.writeMessageEnd();
2822
      }
2823
 
2824
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2825
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2826
          throw new IllegalStateException("Method call not finished!");
2827
        }
2828
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2829
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2830
        (new Client(prot)).recv_markItemsAsReceivedForTransferLot();
2831
      }
2832
    }
2833
 
2834
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException {
2835
      checkReady();
2836
      updateTransferLotAfterItemReceive_call method_call = new updateTransferLotAfterItemReceive_call(id, resultHandler, this, ___protocolFactory, ___transport);
2837
      this.___currentMethod = method_call;
2838
      ___manager.call(method_call);
2839
    }
2840
 
2841
    public static class updateTransferLotAfterItemReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
2842
      private long id;
2843
      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 {
2844
        super(client, protocolFactory, transport, resultHandler, false);
2845
        this.id = id;
2846
      }
2847
 
2848
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2849
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTransferLotAfterItemReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
2850
        updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
2851
        args.setId(id);
2852
        args.write(prot);
2853
        prot.writeMessageEnd();
2854
      }
2855
 
2856
      public TransferLotStatus getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2857
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2858
          throw new IllegalStateException("Method call not finished!");
2859
        }
2860
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2861
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2862
        return (new Client(prot)).recv_updateTransferLotAfterItemReceive();
2863
      }
2864
    }
2865
 
7453 amar.kumar 2866
    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 2867
      checkReady();
7453 amar.kumar 2868
      scanForTransferOut_call method_call = new scanForTransferOut_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
7410 amar.kumar 2869
      this.___currentMethod = method_call;
2870
      ___manager.call(method_call);
2871
    }
2872
 
7453 amar.kumar 2873
    public static class scanForTransferOut_call extends org.apache.thrift.async.TAsyncMethodCall {
7410 amar.kumar 2874
      private List<InventoryItem> inventoryItems;
2875
      private ScanType type;
2876
      private long transferLotId;
7453 amar.kumar 2877
      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 2878
        super(client, protocolFactory, transport, resultHandler, false);
2879
        this.inventoryItems = inventoryItems;
2880
        this.type = type;
2881
        this.transferLotId = transferLotId;
2882
      }
2883
 
2884
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7453 amar.kumar 2885
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransferOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
2886
        scanForTransferOut_args args = new scanForTransferOut_args();
7410 amar.kumar 2887
        args.setInventoryItems(inventoryItems);
2888
        args.setType(type);
2889
        args.setTransferLotId(transferLotId);
2890
        args.write(prot);
2891
        prot.writeMessageEnd();
2892
      }
2893
 
2894
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2895
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2896
          throw new IllegalStateException("Method call not finished!");
2897
        }
2898
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2899
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7453 amar.kumar 2900
        (new Client(prot)).recv_scanForTransferOut();
7410 amar.kumar 2901
      }
2902
    }
2903
 
7453 amar.kumar 2904
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException {
2905
      checkReady();
2906
      scanForTransferIn_call method_call = new scanForTransferIn_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2907
      this.___currentMethod = method_call;
2908
      ___manager.call(method_call);
2909
    }
2910
 
2911
    public static class scanForTransferIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2912
      private List<InventoryItem> inventoryItems;
2913
      private ScanType type;
2914
      private long transferLotId;
2915
      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 {
2916
        super(client, protocolFactory, transport, resultHandler, false);
2917
        this.inventoryItems = inventoryItems;
2918
        this.type = type;
2919
        this.transferLotId = transferLotId;
2920
      }
2921
 
2922
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2923
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransferIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2924
        scanForTransferIn_args args = new scanForTransferIn_args();
2925
        args.setInventoryItems(inventoryItems);
2926
        args.setType(type);
2927
        args.setTransferLotId(transferLotId);
2928
        args.write(prot);
2929
        prot.writeMessageEnd();
2930
      }
2931
 
2932
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2933
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2934
          throw new IllegalStateException("Method call not finished!");
2935
        }
2936
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2937
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2938
        (new Client(prot)).recv_scanForTransferIn();
2939
      }
2940
    }
2941
 
2942
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException {
2943
      checkReady();
2944
      scanForOursThirdPartyReceive_call method_call = new scanForOursThirdPartyReceive_call(inventoryItems, id, resultHandler, this, ___protocolFactory, ___transport);
2945
      this.___currentMethod = method_call;
2946
      ___manager.call(method_call);
2947
    }
2948
 
2949
    public static class scanForOursThirdPartyReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
2950
      private List<InventoryItem> inventoryItems;
2951
      private long id;
2952
      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 {
2953
        super(client, protocolFactory, transport, resultHandler, false);
2954
        this.inventoryItems = inventoryItems;
2955
        this.id = id;
2956
      }
2957
 
2958
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2959
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursThirdPartyReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
2960
        scanForOursThirdPartyReceive_args args = new scanForOursThirdPartyReceive_args();
2961
        args.setInventoryItems(inventoryItems);
2962
        args.setId(id);
2963
        args.write(prot);
2964
        prot.writeMessageEnd();
2965
      }
2966
 
2967
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2968
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2969
          throw new IllegalStateException("Method call not finished!");
2970
        }
2971
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2972
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2973
        (new Client(prot)).recv_scanForOursThirdPartyReceive();
2974
      }
2975
    }
2976
 
3430 rajveer 2977
  }
2978
 
2979
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2980
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2981
    public Processor(I iface) {
2982
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2983
    }
2984
 
2985
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2986
      super(iface, getProcessMap(processMap));
2987
    }
2988
 
2989
    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 2990
      processMap.put("getInventoryItem", new getInventoryItem());
5361 mandeep.dh 2991
      processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
4496 mandeep.dh 2992
      processMap.put("scan", new scan());
2993
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
2994
      processMap.put("scanForOrder", new scanForOrder());
2995
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
4622 amit.gupta 2996
      processMap.put("getItemNumbers", new getItemNumbers());
5110 mandeep.dh 2997
      processMap.put("getItemIds", new getItemIds());
5185 mandeep.dh 2998
      processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
2999
      processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
5372 mandeep.dh 3000
      processMap.put("getPurchaseScans", new getPurchaseScans());
7210 amar.kumar 3001
      processMap.put("getPurchaseScansByGrnDate", new getPurchaseScansByGrnDate());
5496 mandeep.dh 3002
      processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
5620 mandeep.dh 3003
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
5711 mandeep.dh 3004
      processMap.put("getInventoryAge", new getInventoryAge());
6322 amar.kumar 3005
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
3006
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
6467 amar.kumar 3007
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
6548 amar.kumar 3008
      processMap.put("scanForLostItem", new scanForLostItem());
3009
      processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
6630 amar.kumar 3010
      processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
6762 amar.kumar 3011
      processMap.put("getHistoricSerializedInventoryByScans", new getHistoricSerializedInventoryByScans());
3012
      processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
3013
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
3014
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
6880 amar.kumar 3015
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
3016
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
7216 amar.kumar 3017
      processMap.put("getCompleteMovementSerializedInventoryByScans", new getCompleteMovementSerializedInventoryByScans());
3018
      processMap.put("getCompleteMovementNonSerializedInventoryByScans", new getCompleteMovementNonSerializedInventoryByScans());
7190 amar.kumar 3019
      processMap.put("scanfreebie", new scanfreebie());
7199 amar.kumar 3020
      processMap.put("reshipfreebie", new reshipfreebie());
7410 amar.kumar 3021
      processMap.put("isItemTransferAllowed", new isItemTransferAllowed());
3022
      processMap.put("createTransferLot", new createTransferLot());
3023
      processMap.put("getTransferLot", new getTransferLot());
3024
      processMap.put("markTransferLotAsReceived", new markTransferLotAsReceived());
3025
      processMap.put("getTransferLotsByDate", new getTransferLotsByDate());
3026
      processMap.put("getAllowedDestinationWarehousesForTransfer", new getAllowedDestinationWarehousesForTransfer());
3027
      processMap.put("getItemsInTransferLot", new getItemsInTransferLot());
3028
      processMap.put("markItemsAsReceivedForTransferLot", new markItemsAsReceivedForTransferLot());
3029
      processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
7453 amar.kumar 3030
      processMap.put("scanForTransferOut", new scanForTransferOut());
3031
      processMap.put("scanForTransferIn", new scanForTransferIn());
3032
      processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
3430 rajveer 3033
      return processMap;
3034
    }
3035
 
4496 mandeep.dh 3036
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3037
      public getInventoryItem() {
3038
        super("getInventoryItem");
3430 rajveer 3039
      }
3040
 
4496 mandeep.dh 3041
      protected getInventoryItem_args getEmptyArgsInstance() {
3042
        return new getInventoryItem_args();
3430 rajveer 3043
      }
3044
 
4496 mandeep.dh 3045
      protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
3046
        getInventoryItem_result result = new getInventoryItem_result();
4541 mandeep.dh 3047
        try {
3048
          result.success = iface.getInventoryItem(args.serialNumber);
3049
        } catch (WarehouseServiceException wex) {
3050
          result.wex = wex;
3051
        }
3430 rajveer 3052
        return result;
2832 chandransh 3053
      }
3054
    }
3055
 
5361 mandeep.dh 3056
    private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
3057
      public getNonSeralizedInventoryItem() {
3058
        super("getNonSeralizedInventoryItem");
3430 rajveer 3059
      }
3060
 
5361 mandeep.dh 3061
      protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
3062
        return new getNonSeralizedInventoryItem_args();
3430 rajveer 3063
      }
3064
 
5361 mandeep.dh 3065
      protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
3066
        getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
3067
        try {
5530 mandeep.dh 3068
          result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
5361 mandeep.dh 3069
        } catch (WarehouseServiceException wex) {
3070
          result.wex = wex;
3071
        }
3430 rajveer 3072
        return result;
2820 chandransh 3073
      }
3074
    }
3075
 
4496 mandeep.dh 3076
    private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
3077
      public scan() {
3078
        super("scan");
3430 rajveer 3079
      }
3080
 
4496 mandeep.dh 3081
      protected scan_args getEmptyArgsInstance() {
3082
        return new scan_args();
3430 rajveer 3083
      }
3084
 
4496 mandeep.dh 3085
      protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
3086
        scan_result result = new scan_result();
3383 chandransh 3087
        try {
7410 amar.kumar 3088
          iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId);
3383 chandransh 3089
        } catch (WarehouseServiceException wex) {
3090
          result.wex = wex;
3091
        }
3430 rajveer 3092
        return result;
3383 chandransh 3093
      }
3094
    }
3095
 
4496 mandeep.dh 3096
    private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
3097
      public scanSerializedItemForOrder() {
3098
        super("scanSerializedItemForOrder");
3430 rajveer 3099
      }
3100
 
4496 mandeep.dh 3101
      protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
3102
        return new scanSerializedItemForOrder_args();
3430 rajveer 3103
      }
3104
 
4496 mandeep.dh 3105
      protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
3106
        scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
2820 chandransh 3107
        try {
5110 mandeep.dh 3108
          result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
2820 chandransh 3109
        } catch (WarehouseServiceException wex) {
3110
          result.wex = wex;
3111
        }
3430 rajveer 3112
        return result;
2820 chandransh 3113
      }
3114
    }
3115
 
4496 mandeep.dh 3116
    private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
3117
      public scanForOrder() {
3118
        super("scanForOrder");
3430 rajveer 3119
      }
3120
 
4496 mandeep.dh 3121
      protected scanForOrder_args getEmptyArgsInstance() {
3122
        return new scanForOrder_args();
3430 rajveer 3123
      }
3124
 
4496 mandeep.dh 3125
      protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
3126
        scanForOrder_result result = new scanForOrder_result();
2820 chandransh 3127
        try {
5361 mandeep.dh 3128
          result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
2820 chandransh 3129
        } catch (WarehouseServiceException wex) {
3130
          result.wex = wex;
3131
        }
3430 rajveer 3132
        return result;
2820 chandransh 3133
      }
3134
    }
3135
 
4496 mandeep.dh 3136
    private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
3137
      public createItemNumberMapping() {
3138
        super("createItemNumberMapping");
3139
      }
3140
 
3141
      protected createItemNumberMapping_args getEmptyArgsInstance() {
3142
        return new createItemNumberMapping_args();
3143
      }
3144
 
3145
      protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
3146
        createItemNumberMapping_result result = new createItemNumberMapping_result();
3147
        iface.createItemNumberMapping(args.itemNumber, args.itemId);
3148
        return result;
3149
      }
3150
    }
3151
 
4622 amit.gupta 3152
    private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
3153
      public getItemNumbers() {
3154
        super("getItemNumbers");
3155
      }
3156
 
3157
      protected getItemNumbers_args getEmptyArgsInstance() {
3158
        return new getItemNumbers_args();
3159
      }
3160
 
3161
      protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
3162
        getItemNumbers_result result = new getItemNumbers_result();
3163
        result.success = iface.getItemNumbers(args.itemId);
3164
        return result;
3165
      }
3166
    }
3167
 
5110 mandeep.dh 3168
    private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
3169
      public getItemIds() {
3170
        super("getItemIds");
3171
      }
3172
 
3173
      protected getItemIds_args getEmptyArgsInstance() {
3174
        return new getItemIds_args();
3175
      }
3176
 
3177
      protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
3178
        getItemIds_result result = new getItemIds_result();
3179
        result.success = iface.getItemIds(args.itemNumber);
3180
        return result;
3181
      }
3182
    }
3183
 
5185 mandeep.dh 3184
    private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
3185
      public getInventoryItemsFromLastScanType() {
3186
        super("getInventoryItemsFromLastScanType");
3187
      }
3188
 
3189
      protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
3190
        return new getInventoryItemsFromLastScanType_args();
3191
      }
3192
 
3193
      protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
3194
        getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
3195
        try {
3196
          result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
3197
        } catch (WarehouseServiceException wex) {
3198
          result.wex = wex;
3199
        }
3200
        return result;
3201
      }
3202
    }
3203
 
3204
    private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
3205
      public getInventoryItemFromId() {
3206
        super("getInventoryItemFromId");
3207
      }
3208
 
3209
      protected getInventoryItemFromId_args getEmptyArgsInstance() {
3210
        return new getInventoryItemFromId_args();
3211
      }
3212
 
3213
      protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
3214
        getInventoryItemFromId_result result = new getInventoryItemFromId_result();
3215
        try {
3216
          result.success = iface.getInventoryItemFromId(args.inventoryItemId);
3217
        } catch (WarehouseServiceException wex) {
3218
          result.wex = wex;
3219
        }
3220
        return result;
3221
      }
3222
    }
3223
 
5372 mandeep.dh 3224
    private static class getPurchaseScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScans_args> {
3225
      public getPurchaseScans() {
3226
        super("getPurchaseScans");
3227
      }
3228
 
3229
      protected getPurchaseScans_args getEmptyArgsInstance() {
3230
        return new getPurchaseScans_args();
3231
      }
3232
 
3233
      protected getPurchaseScans_result getResult(I iface, getPurchaseScans_args args) throws org.apache.thrift.TException {
3234
        getPurchaseScans_result result = new getPurchaseScans_result();
3235
        result.success = iface.getPurchaseScans(args.startDate, args.endDate);
3236
        return result;
3237
      }
3238
    }
3239
 
7210 amar.kumar 3240
    private static class getPurchaseScansByGrnDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScansByGrnDate_args> {
3241
      public getPurchaseScansByGrnDate() {
3242
        super("getPurchaseScansByGrnDate");
3243
      }
3244
 
3245
      protected getPurchaseScansByGrnDate_args getEmptyArgsInstance() {
3246
        return new getPurchaseScansByGrnDate_args();
3247
      }
3248
 
3249
      protected getPurchaseScansByGrnDate_result getResult(I iface, getPurchaseScansByGrnDate_args args) throws org.apache.thrift.TException {
3250
        getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
3251
        result.success = iface.getPurchaseScansByGrnDate(args.startDate, args.endDate);
3252
        return result;
3253
      }
3254
    }
3255
 
5496 mandeep.dh 3256
    private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
3257
      public fetchScansPerInvoiceNumber() {
3258
        super("fetchScansPerInvoiceNumber");
3259
      }
3260
 
3261
      protected fetchScansPerInvoiceNumber_args getEmptyArgsInstance() {
3262
        return new fetchScansPerInvoiceNumber_args();
3263
      }
3264
 
3265
      protected fetchScansPerInvoiceNumber_result getResult(I iface, fetchScansPerInvoiceNumber_args args) throws org.apache.thrift.TException {
3266
        fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
3267
        result.success = iface.fetchScansPerInvoiceNumber(args.date);
3268
        return result;
3269
      }
3270
    }
3271
 
5620 mandeep.dh 3272
    private static class getInventoryItemFromOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromOrder_args> {
3273
      public getInventoryItemFromOrder() {
3274
        super("getInventoryItemFromOrder");
3275
      }
3276
 
3277
      protected getInventoryItemFromOrder_args getEmptyArgsInstance() {
3278
        return new getInventoryItemFromOrder_args();
3279
      }
3280
 
3281
      protected getInventoryItemFromOrder_result getResult(I iface, getInventoryItemFromOrder_args args) throws org.apache.thrift.TException {
3282
        getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
3283
        try {
3284
          result.success = iface.getInventoryItemFromOrder(args.orderId);
3285
        } catch (WarehouseServiceException we) {
3286
          result.we = we;
3287
        }
3288
        return result;
3289
      }
3290
    }
3291
 
5711 mandeep.dh 3292
    private static class getInventoryAge<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryAge_args> {
3293
      public getInventoryAge() {
3294
        super("getInventoryAge");
3295
      }
3296
 
3297
      protected getInventoryAge_args getEmptyArgsInstance() {
3298
        return new getInventoryAge_args();
3299
      }
3300
 
3301
      protected getInventoryAge_result getResult(I iface, getInventoryAge_args args) throws org.apache.thrift.TException {
3302
        getInventoryAge_result result = new getInventoryAge_result();
3303
        result.success = iface.getInventoryAge();
3304
        return result;
3305
      }
3306
    }
3307
 
6322 amar.kumar 3308
    private static class getInventoryScansForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryScansForItem_args> {
3309
      public getInventoryScansForItem() {
3310
        super("getInventoryScansForItem");
3311
      }
3312
 
3313
      protected getInventoryScansForItem_args getEmptyArgsInstance() {
3314
        return new getInventoryScansForItem_args();
3315
      }
3316
 
3317
      protected getInventoryScansForItem_result getResult(I iface, getInventoryScansForItem_args args) throws org.apache.thrift.TException {
3318
        getInventoryScansForItem_result result = new getInventoryScansForItem_result();
3319
        result.success = iface.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate);
3320
        return result;
3321
      }
3322
    }
3323
 
3324
    private static class getScanRecordsForSerialNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanRecordsForSerialNumber_args> {
3325
      public getScanRecordsForSerialNumber() {
3326
        super("getScanRecordsForSerialNumber");
3327
      }
3328
 
3329
      protected getScanRecordsForSerialNumber_args getEmptyArgsInstance() {
3330
        return new getScanRecordsForSerialNumber_args();
3331
      }
3332
 
3333
      protected getScanRecordsForSerialNumber_result getResult(I iface, getScanRecordsForSerialNumber_args args) throws org.apache.thrift.TException {
3334
        getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
3335
        result.success = iface.getScanRecordsForSerialNumber(args.serialNumber);
3336
        return result;
3337
      }
3338
    }
3339
 
6467 amar.kumar 3340
    private static class scanForPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForPurchaseReturn_args> {
3341
      public scanForPurchaseReturn() {
3342
        super("scanForPurchaseReturn");
3343
      }
3344
 
3345
      protected scanForPurchaseReturn_args getEmptyArgsInstance() {
3346
        return new scanForPurchaseReturn_args();
3347
      }
3348
 
3349
      protected scanForPurchaseReturn_result getResult(I iface, scanForPurchaseReturn_args args) throws org.apache.thrift.TException {
3350
        scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
3351
        try {
3352
          iface.scanForPurchaseReturn(args.saleReturnItems, args.vendorId);
3353
        } catch (WarehouseServiceException ex) {
3354
          result.ex = ex;
3355
        }
3356
        return result;
3357
      }
3358
    }
3359
 
6548 amar.kumar 3360
    private static class scanForLostItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForLostItem_args> {
3361
      public scanForLostItem() {
3362
        super("scanForLostItem");
3363
      }
3364
 
3365
      protected scanForLostItem_args getEmptyArgsInstance() {
3366
        return new scanForLostItem_args();
3367
      }
3368
 
3369
      protected scanForLostItem_result getResult(I iface, scanForLostItem_args args) throws org.apache.thrift.TException {
3370
        scanForLostItem_result result = new scanForLostItem_result();
3371
        try {
3372
          iface.scanForLostItem(args.lostItems, args.vendorId);
3373
        } catch (WarehouseServiceException ex) {
3374
          result.ex = ex;
3375
        }
3376
        return result;
3377
      }
3378
    }
3379
 
3380
    private static class getCurrentSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentSerializedInventoryByScans_args> {
3381
      public getCurrentSerializedInventoryByScans() {
3382
        super("getCurrentSerializedInventoryByScans");
3383
      }
3384
 
3385
      protected getCurrentSerializedInventoryByScans_args getEmptyArgsInstance() {
3386
        return new getCurrentSerializedInventoryByScans_args();
3387
      }
3388
 
3389
      protected getCurrentSerializedInventoryByScans_result getResult(I iface, getCurrentSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3390
        getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
3391
        result.success = iface.getCurrentSerializedInventoryByScans();
3392
        return result;
3393
      }
3394
    }
3395
 
6630 amar.kumar 3396
    private static class getCurrentNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentNonSerializedInventoryByScans_args> {
3397
      public getCurrentNonSerializedInventoryByScans() {
3398
        super("getCurrentNonSerializedInventoryByScans");
3399
      }
3400
 
3401
      protected getCurrentNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3402
        return new getCurrentNonSerializedInventoryByScans_args();
3403
      }
3404
 
3405
      protected getCurrentNonSerializedInventoryByScans_result getResult(I iface, getCurrentNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3406
        getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
3407
        result.success = iface.getCurrentNonSerializedInventoryByScans();
3408
        return result;
3409
      }
3410
    }
3411
 
6762 amar.kumar 3412
    private static class getHistoricSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricSerializedInventoryByScans_args> {
3413
      public getHistoricSerializedInventoryByScans() {
3414
        super("getHistoricSerializedInventoryByScans");
3415
      }
3416
 
3417
      protected getHistoricSerializedInventoryByScans_args getEmptyArgsInstance() {
3418
        return new getHistoricSerializedInventoryByScans_args();
3419
      }
3420
 
3421
      protected getHistoricSerializedInventoryByScans_result getResult(I iface, getHistoricSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3422
        getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
3423
        result.success = iface.getHistoricSerializedInventoryByScans(args.date);
3424
        return result;
3425
      }
3426
    }
3427
 
3428
    private static class getHistoricNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricNonSerializedInventoryByScans_args> {
3429
      public getHistoricNonSerializedInventoryByScans() {
3430
        super("getHistoricNonSerializedInventoryByScans");
3431
      }
3432
 
3433
      protected getHistoricNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3434
        return new getHistoricNonSerializedInventoryByScans_args();
3435
      }
3436
 
3437
      protected getHistoricNonSerializedInventoryByScans_result getResult(I iface, getHistoricNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3438
        getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
3439
        result.success = iface.getHistoricNonSerializedInventoryByScans(args.date);
3440
        return result;
3441
      }
3442
    }
3443
 
3444
    private static class scanForOursExternalSale<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSale_args> {
3445
      public scanForOursExternalSale() {
3446
        super("scanForOursExternalSale");
3447
      }
3448
 
3449
      protected scanForOursExternalSale_args getEmptyArgsInstance() {
3450
        return new scanForOursExternalSale_args();
3451
      }
3452
 
3453
      protected scanForOursExternalSale_result getResult(I iface, scanForOursExternalSale_args args) throws org.apache.thrift.TException {
3454
        scanForOursExternalSale_result result = new scanForOursExternalSale_result();
3455
        try {
3456
          result.success = iface.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.orderId);
3457
        } catch (WarehouseServiceException ex) {
3458
          result.ex = ex;
3459
        }
3460
        return result;
3461
      }
3462
    }
3463
 
3464
    private static class scanForOursExternalSaleReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSaleReturn_args> {
3465
      public scanForOursExternalSaleReturn() {
3466
        super("scanForOursExternalSaleReturn");
3467
      }
3468
 
3469
      protected scanForOursExternalSaleReturn_args getEmptyArgsInstance() {
3470
        return new scanForOursExternalSaleReturn_args();
3471
      }
3472
 
3473
      protected scanForOursExternalSaleReturn_result getResult(I iface, scanForOursExternalSaleReturn_args args) throws org.apache.thrift.TException {
3474
        scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
7410 amar.kumar 3475
        try {
3476
          iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
3477
        } catch (WarehouseServiceException ex) {
3478
          result.ex = ex;
3479
        }
6762 amar.kumar 3480
        return result;
3481
      }
3482
    }
3483
 
6880 amar.kumar 3484
    private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
3485
      public getMovementNonSerializedInventoryByScans() {
3486
        super("getMovementNonSerializedInventoryByScans");
3487
      }
3488
 
3489
      protected getMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3490
        return new getMovementNonSerializedInventoryByScans_args();
3491
      }
3492
 
3493
      protected getMovementNonSerializedInventoryByScans_result getResult(I iface, getMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3494
        getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
3495
        result.success = iface.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
3496
        return result;
3497
      }
3498
    }
3499
 
3500
    private static class getMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementSerializedInventoryByScans_args> {
3501
      public getMovementSerializedInventoryByScans() {
3502
        super("getMovementSerializedInventoryByScans");
3503
      }
3504
 
3505
      protected getMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
3506
        return new getMovementSerializedInventoryByScans_args();
3507
      }
3508
 
3509
      protected getMovementSerializedInventoryByScans_result getResult(I iface, getMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3510
        getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
3511
        result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
3512
        return result;
3513
      }
3514
    }
3515
 
7216 amar.kumar 3516
    private static class getCompleteMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementSerializedInventoryByScans_args> {
3517
      public getCompleteMovementSerializedInventoryByScans() {
3518
        super("getCompleteMovementSerializedInventoryByScans");
3519
      }
3520
 
3521
      protected getCompleteMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
3522
        return new getCompleteMovementSerializedInventoryByScans_args();
3523
      }
3524
 
3525
      protected getCompleteMovementSerializedInventoryByScans_result getResult(I iface, getCompleteMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3526
        getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
3527
        result.success = iface.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate);
3528
        return result;
3529
      }
3530
    }
3531
 
3532
    private static class getCompleteMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementNonSerializedInventoryByScans_args> {
3533
      public getCompleteMovementNonSerializedInventoryByScans() {
3534
        super("getCompleteMovementNonSerializedInventoryByScans");
3535
      }
3536
 
3537
      protected getCompleteMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3538
        return new getCompleteMovementNonSerializedInventoryByScans_args();
3539
      }
3540
 
3541
      protected getCompleteMovementNonSerializedInventoryByScans_result getResult(I iface, getCompleteMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3542
        getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
3543
        result.success = iface.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
3544
        return result;
3545
      }
3546
    }
3547
 
7190 amar.kumar 3548
    private static class scanfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanfreebie_args> {
3549
      public scanfreebie() {
3550
        super("scanfreebie");
3551
      }
3552
 
3553
      protected scanfreebie_args getEmptyArgsInstance() {
3554
        return new scanfreebie_args();
3555
      }
3556
 
3557
      protected scanfreebie_result getResult(I iface, scanfreebie_args args) throws org.apache.thrift.TException {
3558
        scanfreebie_result result = new scanfreebie_result();
3559
        try {
3560
          result.success = iface.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType);
3561
        } catch (WarehouseServiceException wex) {
3562
          result.wex = wex;
3563
        }
3564
        return result;
3565
      }
3566
    }
3567
 
7199 amar.kumar 3568
    private static class reshipfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipfreebie_args> {
3569
      public reshipfreebie() {
3570
        super("reshipfreebie");
3571
      }
3572
 
3573
      protected reshipfreebie_args getEmptyArgsInstance() {
3574
        return new reshipfreebie_args();
3575
      }
3576
 
3577
      protected reshipfreebie_result getResult(I iface, reshipfreebie_args args) throws org.apache.thrift.TException {
3578
        reshipfreebie_result result = new reshipfreebie_result();
3579
        try {
3580
          iface.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType);
3581
        } catch (WarehouseServiceException wex) {
3582
          result.wex = wex;
3583
        }
3584
        return result;
3585
      }
3586
    }
3587
 
7410 amar.kumar 3588
    private static class isItemTransferAllowed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isItemTransferAllowed_args> {
3589
      public isItemTransferAllowed() {
3590
        super("isItemTransferAllowed");
3591
      }
3592
 
3593
      protected isItemTransferAllowed_args getEmptyArgsInstance() {
3594
        return new isItemTransferAllowed_args();
3595
      }
3596
 
3597
      protected isItemTransferAllowed_result getResult(I iface, isItemTransferAllowed_args args) throws org.apache.thrift.TException {
3598
        isItemTransferAllowed_result result = new isItemTransferAllowed_result();
3599
        result.success = iface.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId);
3600
        result.setSuccessIsSet(true);
3601
        return result;
3602
      }
3603
    }
3604
 
3605
    private static class createTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransferLot_args> {
3606
      public createTransferLot() {
3607
        super("createTransferLot");
3608
      }
3609
 
3610
      protected createTransferLot_args getEmptyArgsInstance() {
3611
        return new createTransferLot_args();
3612
      }
3613
 
3614
      protected createTransferLot_result getResult(I iface, createTransferLot_args args) throws org.apache.thrift.TException {
3615
        createTransferLot_result result = new createTransferLot_result();
3616
        try {
3617
          result.success = iface.createTransferLot(args.originWarehouseId, args.destWarehouseId);
3618
          result.setSuccessIsSet(true);
3619
        } catch (WarehouseServiceException wex) {
3620
          result.wex = wex;
3621
        }
3622
        return result;
3623
      }
3624
    }
3625
 
3626
    private static class getTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLot_args> {
3627
      public getTransferLot() {
3628
        super("getTransferLot");
3629
      }
3630
 
3631
      protected getTransferLot_args getEmptyArgsInstance() {
3632
        return new getTransferLot_args();
3633
      }
3634
 
3635
      protected getTransferLot_result getResult(I iface, getTransferLot_args args) throws org.apache.thrift.TException {
3636
        getTransferLot_result result = new getTransferLot_result();
3637
        try {
3638
          result.success = iface.getTransferLot(args.transferLotId);
3639
        } catch (WarehouseServiceException wex) {
3640
          result.wex = wex;
3641
        }
3642
        return result;
3643
      }
3644
    }
3645
 
3646
    private static class markTransferLotAsReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransferLotAsReceived_args> {
3647
      public markTransferLotAsReceived() {
3648
        super("markTransferLotAsReceived");
3649
      }
3650
 
3651
      protected markTransferLotAsReceived_args getEmptyArgsInstance() {
3652
        return new markTransferLotAsReceived_args();
3653
      }
3654
 
3655
      protected markTransferLotAsReceived_result getResult(I iface, markTransferLotAsReceived_args args) throws org.apache.thrift.TException {
3656
        markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
3657
        try {
3658
          iface.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber);
3659
        } catch (WarehouseServiceException wex) {
3660
          result.wex = wex;
3661
        }
3662
        return result;
3663
      }
3664
    }
3665
 
3666
    private static class getTransferLotsByDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLotsByDate_args> {
3667
      public getTransferLotsByDate() {
3668
        super("getTransferLotsByDate");
3669
      }
3670
 
3671
      protected getTransferLotsByDate_args getEmptyArgsInstance() {
3672
        return new getTransferLotsByDate_args();
3673
      }
3674
 
3675
      protected getTransferLotsByDate_result getResult(I iface, getTransferLotsByDate_args args) throws org.apache.thrift.TException {
3676
        getTransferLotsByDate_result result = new getTransferLotsByDate_result();
3677
        try {
3678
          result.success = iface.getTransferLotsByDate(args.fromDate, args.toDate);
3679
        } catch (WarehouseServiceException wex) {
3680
          result.wex = wex;
3681
        }
3682
        return result;
3683
      }
3684
    }
3685
 
3686
    private static class getAllowedDestinationWarehousesForTransfer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllowedDestinationWarehousesForTransfer_args> {
3687
      public getAllowedDestinationWarehousesForTransfer() {
3688
        super("getAllowedDestinationWarehousesForTransfer");
3689
      }
3690
 
3691
      protected getAllowedDestinationWarehousesForTransfer_args getEmptyArgsInstance() {
3692
        return new getAllowedDestinationWarehousesForTransfer_args();
3693
      }
3694
 
3695
      protected getAllowedDestinationWarehousesForTransfer_result getResult(I iface, getAllowedDestinationWarehousesForTransfer_args args) throws org.apache.thrift.TException {
3696
        getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
3697
        result.success = iface.getAllowedDestinationWarehousesForTransfer(args.warehouseId);
3698
        return result;
3699
      }
3700
    }
3701
 
3702
    private static class getItemsInTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsInTransferLot_args> {
3703
      public getItemsInTransferLot() {
3704
        super("getItemsInTransferLot");
3705
      }
3706
 
3707
      protected getItemsInTransferLot_args getEmptyArgsInstance() {
3708
        return new getItemsInTransferLot_args();
3709
      }
3710
 
3711
      protected getItemsInTransferLot_result getResult(I iface, getItemsInTransferLot_args args) throws org.apache.thrift.TException {
3712
        getItemsInTransferLot_result result = new getItemsInTransferLot_result();
3713
        result.success = iface.getItemsInTransferLot(args.transferLotId);
3714
        return result;
3715
      }
3716
    }
3717
 
3718
    private static class markItemsAsReceivedForTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markItemsAsReceivedForTransferLot_args> {
3719
      public markItemsAsReceivedForTransferLot() {
3720
        super("markItemsAsReceivedForTransferLot");
3721
      }
3722
 
3723
      protected markItemsAsReceivedForTransferLot_args getEmptyArgsInstance() {
3724
        return new markItemsAsReceivedForTransferLot_args();
3725
      }
3726
 
3727
      protected markItemsAsReceivedForTransferLot_result getResult(I iface, markItemsAsReceivedForTransferLot_args args) throws org.apache.thrift.TException {
3728
        markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
3729
        try {
3730
          iface.markItemsAsReceivedForTransferLot(args.id);
3731
        } catch (WarehouseServiceException wex) {
3732
          result.wex = wex;
3733
        }
3734
        return result;
3735
      }
3736
    }
3737
 
3738
    private static class updateTransferLotAfterItemReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTransferLotAfterItemReceive_args> {
3739
      public updateTransferLotAfterItemReceive() {
3740
        super("updateTransferLotAfterItemReceive");
3741
      }
3742
 
3743
      protected updateTransferLotAfterItemReceive_args getEmptyArgsInstance() {
3744
        return new updateTransferLotAfterItemReceive_args();
3745
      }
3746
 
3747
      protected updateTransferLotAfterItemReceive_result getResult(I iface, updateTransferLotAfterItemReceive_args args) throws org.apache.thrift.TException {
3748
        updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
3749
        try {
3750
          result.success = iface.updateTransferLotAfterItemReceive(args.id);
3751
        } catch (WarehouseServiceException wex) {
3752
          result.wex = wex;
3753
        }
3754
        return result;
3755
      }
3756
    }
3757
 
7453 amar.kumar 3758
    private static class scanForTransferOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransferOut_args> {
3759
      public scanForTransferOut() {
3760
        super("scanForTransferOut");
7410 amar.kumar 3761
      }
3762
 
7453 amar.kumar 3763
      protected scanForTransferOut_args getEmptyArgsInstance() {
3764
        return new scanForTransferOut_args();
7410 amar.kumar 3765
      }
3766
 
7453 amar.kumar 3767
      protected scanForTransferOut_result getResult(I iface, scanForTransferOut_args args) throws org.apache.thrift.TException {
3768
        scanForTransferOut_result result = new scanForTransferOut_result();
7410 amar.kumar 3769
        try {
7453 amar.kumar 3770
          iface.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId);
7410 amar.kumar 3771
        } catch (WarehouseServiceException wex) {
3772
          result.wex = wex;
3773
        }
3774
        return result;
3775
      }
3776
    }
3777
 
7453 amar.kumar 3778
    private static class scanForTransferIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransferIn_args> {
3779
      public scanForTransferIn() {
3780
        super("scanForTransferIn");
3781
      }
3782
 
3783
      protected scanForTransferIn_args getEmptyArgsInstance() {
3784
        return new scanForTransferIn_args();
3785
      }
3786
 
3787
      protected scanForTransferIn_result getResult(I iface, scanForTransferIn_args args) throws org.apache.thrift.TException {
3788
        scanForTransferIn_result result = new scanForTransferIn_result();
3789
        try {
3790
          iface.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId);
3791
        } catch (WarehouseServiceException wex) {
3792
          result.wex = wex;
3793
        }
3794
        return result;
3795
      }
3796
    }
3797
 
3798
    private static class scanForOursThirdPartyReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursThirdPartyReceive_args> {
3799
      public scanForOursThirdPartyReceive() {
3800
        super("scanForOursThirdPartyReceive");
3801
      }
3802
 
3803
      protected scanForOursThirdPartyReceive_args getEmptyArgsInstance() {
3804
        return new scanForOursThirdPartyReceive_args();
3805
      }
3806
 
3807
      protected scanForOursThirdPartyReceive_result getResult(I iface, scanForOursThirdPartyReceive_args args) throws org.apache.thrift.TException {
3808
        scanForOursThirdPartyReceive_result result = new scanForOursThirdPartyReceive_result();
3809
        try {
3810
          iface.scanForOursThirdPartyReceive(args.inventoryItems, args.id);
3811
        } catch (WarehouseServiceException wex) {
3812
          result.wex = wex;
3813
        }
3814
        return result;
3815
      }
3816
    }
3817
 
2820 chandransh 3818
  }
3819
 
4496 mandeep.dh 3820
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
3821
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2832 chandransh 3822
 
4496 mandeep.dh 3823
    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 3824
 
4496 mandeep.dh 3825
    private String serialNumber; // required
2832 chandransh 3826
 
3827
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3828
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4496 mandeep.dh 3829
      SERIAL_NUMBER((short)1, "serialNumber");
2832 chandransh 3830
 
3831
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3832
 
3833
      static {
3834
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3835
          byName.put(field.getFieldName(), field);
3836
        }
3837
      }
3838
 
3839
      /**
3840
       * Find the _Fields constant that matches fieldId, or null if its not found.
3841
       */
3842
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3843
        switch(fieldId) {
4496 mandeep.dh 3844
          case 1: // SERIAL_NUMBER
3845
            return SERIAL_NUMBER;
3430 rajveer 3846
          default:
3847
            return null;
3848
        }
2832 chandransh 3849
      }
3850
 
3851
      /**
3852
       * Find the _Fields constant that matches fieldId, throwing an exception
3853
       * if it is not found.
3854
       */
3855
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3856
        _Fields fields = findByThriftId(fieldId);
3857
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3858
        return fields;
3859
      }
3860
 
3861
      /**
3862
       * Find the _Fields constant that matches name, or null if its not found.
3863
       */
3864
      public static _Fields findByName(String name) {
3865
        return byName.get(name);
3866
      }
3867
 
3868
      private final short _thriftId;
3869
      private final String _fieldName;
3870
 
3871
      _Fields(short thriftId, String fieldName) {
3872
        _thriftId = thriftId;
3873
        _fieldName = fieldName;
3874
      }
3875
 
3876
      public short getThriftFieldId() {
3877
        return _thriftId;
3878
      }
3879
 
3880
      public String getFieldName() {
3881
        return _fieldName;
3882
      }
3883
    }
3884
 
3885
    // isset id assignments
3886
 
3430 rajveer 3887
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2832 chandransh 3888
    static {
3430 rajveer 3889
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4496 mandeep.dh 3890
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 3892
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 3893
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
2832 chandransh 3894
    }
3895
 
4496 mandeep.dh 3896
    public getInventoryItem_args() {
2832 chandransh 3897
    }
3898
 
4496 mandeep.dh 3899
    public getInventoryItem_args(
3900
      String serialNumber)
2832 chandransh 3901
    {
3902
      this();
4496 mandeep.dh 3903
      this.serialNumber = serialNumber;
2832 chandransh 3904
    }
3905
 
3906
    /**
3907
     * Performs a deep copy on <i>other</i>.
3908
     */
4496 mandeep.dh 3909
    public getInventoryItem_args(getInventoryItem_args other) {
3910
      if (other.isSetSerialNumber()) {
3911
        this.serialNumber = other.serialNumber;
3912
      }
2832 chandransh 3913
    }
3914
 
4496 mandeep.dh 3915
    public getInventoryItem_args deepCopy() {
3916
      return new getInventoryItem_args(this);
2832 chandransh 3917
    }
3918
 
3430 rajveer 3919
    @Override
3920
    public void clear() {
4496 mandeep.dh 3921
      this.serialNumber = null;
2832 chandransh 3922
    }
3923
 
4496 mandeep.dh 3924
    public String getSerialNumber() {
3925
      return this.serialNumber;
2832 chandransh 3926
    }
3927
 
4496 mandeep.dh 3928
    public void setSerialNumber(String serialNumber) {
3929
      this.serialNumber = serialNumber;
2832 chandransh 3930
    }
3931
 
4496 mandeep.dh 3932
    public void unsetSerialNumber() {
3933
      this.serialNumber = null;
2832 chandransh 3934
    }
3935
 
4496 mandeep.dh 3936
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
3937
    public boolean isSetSerialNumber() {
3938
      return this.serialNumber != null;
2832 chandransh 3939
    }
3940
 
4496 mandeep.dh 3941
    public void setSerialNumberIsSet(boolean value) {
3942
      if (!value) {
3943
        this.serialNumber = null;
3944
      }
2832 chandransh 3945
    }
3946
 
3947
    public void setFieldValue(_Fields field, Object value) {
3948
      switch (field) {
4496 mandeep.dh 3949
      case SERIAL_NUMBER:
2832 chandransh 3950
        if (value == null) {
4496 mandeep.dh 3951
          unsetSerialNumber();
2832 chandransh 3952
        } else {
4496 mandeep.dh 3953
          setSerialNumber((String)value);
2832 chandransh 3954
        }
3955
        break;
3956
 
3957
      }
3958
    }
3959
 
3960
    public Object getFieldValue(_Fields field) {
3961
      switch (field) {
4496 mandeep.dh 3962
      case SERIAL_NUMBER:
3963
        return getSerialNumber();
2832 chandransh 3964
 
3965
      }
3966
      throw new IllegalStateException();
3967
    }
3968
 
3430 rajveer 3969
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3970
    public boolean isSet(_Fields field) {
3971
      if (field == null) {
3972
        throw new IllegalArgumentException();
3973
      }
2832 chandransh 3974
 
3975
      switch (field) {
4496 mandeep.dh 3976
      case SERIAL_NUMBER:
3977
        return isSetSerialNumber();
2832 chandransh 3978
      }
3979
      throw new IllegalStateException();
3980
    }
3981
 
3982
    @Override
3983
    public boolean equals(Object that) {
3984
      if (that == null)
3985
        return false;
4496 mandeep.dh 3986
      if (that instanceof getInventoryItem_args)
3987
        return this.equals((getInventoryItem_args)that);
2832 chandransh 3988
      return false;
3989
    }
3990
 
4496 mandeep.dh 3991
    public boolean equals(getInventoryItem_args that) {
2832 chandransh 3992
      if (that == null)
3993
        return false;
3994
 
4496 mandeep.dh 3995
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
3996
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
3997
      if (this_present_serialNumber || that_present_serialNumber) {
3998
        if (!(this_present_serialNumber && that_present_serialNumber))
2832 chandransh 3999
          return false;
4496 mandeep.dh 4000
        if (!this.serialNumber.equals(that.serialNumber))
2832 chandransh 4001
          return false;
4002
      }
4003
 
4004
      return true;
4005
    }
4006
 
4007
    @Override
4008
    public int hashCode() {
4009
      return 0;
4010
    }
4011
 
4496 mandeep.dh 4012
    public int compareTo(getInventoryItem_args other) {
2832 chandransh 4013
      if (!getClass().equals(other.getClass())) {
4014
        return getClass().getName().compareTo(other.getClass().getName());
4015
      }
4016
 
4017
      int lastComparison = 0;
4496 mandeep.dh 4018
      getInventoryItem_args typedOther = (getInventoryItem_args)other;
2832 chandransh 4019
 
4496 mandeep.dh 4020
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
2832 chandransh 4021
      if (lastComparison != 0) {
4022
        return lastComparison;
4023
      }
4496 mandeep.dh 4024
      if (isSetSerialNumber()) {
4025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
3430 rajveer 4026
        if (lastComparison != 0) {
4027
          return lastComparison;
4028
        }
2832 chandransh 4029
      }
4030
      return 0;
4031
    }
4032
 
3430 rajveer 4033
    public _Fields fieldForId(int fieldId) {
4034
      return _Fields.findByThriftId(fieldId);
4035
    }
4036
 
4037
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4038
      org.apache.thrift.protocol.TField field;
2832 chandransh 4039
      iprot.readStructBegin();
4040
      while (true)
4041
      {
4042
        field = iprot.readFieldBegin();
3430 rajveer 4043
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2832 chandransh 4044
          break;
4045
        }
3430 rajveer 4046
        switch (field.id) {
4496 mandeep.dh 4047
          case 1: // SERIAL_NUMBER
4048
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4049
              this.serialNumber = iprot.readString();
3430 rajveer 4050
            } else { 
4051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4052
            }
4053
            break;
4054
          default:
4055
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2832 chandransh 4056
        }
3430 rajveer 4057
        iprot.readFieldEnd();
2832 chandransh 4058
      }
4059
      iprot.readStructEnd();
4060
      validate();
4061
    }
4062
 
3430 rajveer 4063
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2832 chandransh 4064
      validate();
4065
 
4066
      oprot.writeStructBegin(STRUCT_DESC);
4496 mandeep.dh 4067
      if (this.serialNumber != null) {
4068
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
4069
        oprot.writeString(this.serialNumber);
4070
        oprot.writeFieldEnd();
4071
      }
2832 chandransh 4072
      oprot.writeFieldStop();
4073
      oprot.writeStructEnd();
4074
    }
4075
 
4076
    @Override
4077
    public String toString() {
4496 mandeep.dh 4078
      StringBuilder sb = new StringBuilder("getInventoryItem_args(");
2832 chandransh 4079
      boolean first = true;
4080
 
4496 mandeep.dh 4081
      sb.append("serialNumber:");
4082
      if (this.serialNumber == null) {
4083
        sb.append("null");
4084
      } else {
4085
        sb.append(this.serialNumber);
4086
      }
2832 chandransh 4087
      first = false;
4088
      sb.append(")");
4089
      return sb.toString();
4090
    }
4091
 
3430 rajveer 4092
    public void validate() throws org.apache.thrift.TException {
2832 chandransh 4093
      // check for required fields
4094
    }
4095
 
3430 rajveer 4096
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4097
      try {
4098
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4099
      } catch (org.apache.thrift.TException te) {
4100
        throw new java.io.IOException(te);
4101
      }
4102
    }
4103
 
4104
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4105
      try {
4106
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4107
      } catch (org.apache.thrift.TException te) {
4108
        throw new java.io.IOException(te);
4109
      }
4110
    }
4111
 
2832 chandransh 4112
  }
4113
 
4496 mandeep.dh 4114
  public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
4115
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
2832 chandransh 4116
 
3430 rajveer 4117
    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 4118
    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 4119
 
4496 mandeep.dh 4120
    private InventoryItem success; // required
4541 mandeep.dh 4121
    private WarehouseServiceException wex; // required
2832 chandransh 4122
 
4123
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4124
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4541 mandeep.dh 4125
      SUCCESS((short)0, "success"),
4126
      WEX((short)1, "wex");
2832 chandransh 4127
 
4128
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4129
 
4130
      static {
4131
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4132
          byName.put(field.getFieldName(), field);
4133
        }
4134
      }
4135
 
4136
      /**
4137
       * Find the _Fields constant that matches fieldId, or null if its not found.
4138
       */
4139
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4140
        switch(fieldId) {
4141
          case 0: // SUCCESS
4142
            return SUCCESS;
4541 mandeep.dh 4143
          case 1: // WEX
4144
            return WEX;
3430 rajveer 4145
          default:
4146
            return null;
4147
        }
2832 chandransh 4148
      }
4149
 
4150
      /**
4151
       * Find the _Fields constant that matches fieldId, throwing an exception
4152
       * if it is not found.
4153
       */
4154
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4155
        _Fields fields = findByThriftId(fieldId);
4156
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4157
        return fields;
4158
      }
4159
 
4160
      /**
4161
       * Find the _Fields constant that matches name, or null if its not found.
4162
       */
4163
      public static _Fields findByName(String name) {
4164
        return byName.get(name);
4165
      }
4166
 
4167
      private final short _thriftId;
4168
      private final String _fieldName;
4169
 
4170
      _Fields(short thriftId, String fieldName) {
4171
        _thriftId = thriftId;
4172
        _fieldName = fieldName;
4173
      }
4174
 
4175
      public short getThriftFieldId() {
4176
        return _thriftId;
4177
      }
4178
 
4179
      public String getFieldName() {
4180
        return _fieldName;
4181
      }
4182
    }
4183
 
4184
    // isset id assignments
4185
 
3430 rajveer 4186
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2832 chandransh 4187
    static {
3430 rajveer 4188
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4189
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 4190
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
4541 mandeep.dh 4191
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4192
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3430 rajveer 4193
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 4194
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
2832 chandransh 4195
    }
4196
 
4496 mandeep.dh 4197
    public getInventoryItem_result() {
2832 chandransh 4198
    }
4199
 
4496 mandeep.dh 4200
    public getInventoryItem_result(
4541 mandeep.dh 4201
      InventoryItem success,
4202
      WarehouseServiceException wex)
2832 chandransh 4203
    {
4204
      this();
4205
      this.success = success;
4541 mandeep.dh 4206
      this.wex = wex;
2832 chandransh 4207
    }
4208
 
4209
    /**
4210
     * Performs a deep copy on <i>other</i>.
4211
     */
4496 mandeep.dh 4212
    public getInventoryItem_result(getInventoryItem_result other) {
2832 chandransh 4213
      if (other.isSetSuccess()) {
4496 mandeep.dh 4214
        this.success = new InventoryItem(other.success);
2832 chandransh 4215
      }
4541 mandeep.dh 4216
      if (other.isSetWex()) {
4217
        this.wex = new WarehouseServiceException(other.wex);
4218
      }
2832 chandransh 4219
    }
4220
 
4496 mandeep.dh 4221
    public getInventoryItem_result deepCopy() {
4222
      return new getInventoryItem_result(this);
2832 chandransh 4223
    }
4224
 
3430 rajveer 4225
    @Override
4226
    public void clear() {
4227
      this.success = null;
4541 mandeep.dh 4228
      this.wex = null;
2832 chandransh 4229
    }
4230
 
4496 mandeep.dh 4231
    public InventoryItem getSuccess() {
2832 chandransh 4232
      return this.success;
4233
    }
4234
 
4496 mandeep.dh 4235
    public void setSuccess(InventoryItem success) {
2832 chandransh 4236
      this.success = success;
4237
    }
4238
 
4239
    public void unsetSuccess() {
4240
      this.success = null;
4241
    }
4242
 
3430 rajveer 4243
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2832 chandransh 4244
    public boolean isSetSuccess() {
4245
      return this.success != null;
4246
    }
4247
 
4248
    public void setSuccessIsSet(boolean value) {
4249
      if (!value) {
4250
        this.success = null;
4251
      }
4252
    }
4253
 
4541 mandeep.dh 4254
    public WarehouseServiceException getWex() {
4255
      return this.wex;
4256
    }
4257
 
4258
    public void setWex(WarehouseServiceException wex) {
4259
      this.wex = wex;
4260
    }
4261
 
4262
    public void unsetWex() {
4263
      this.wex = null;
4264
    }
4265
 
4266
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
4267
    public boolean isSetWex() {
4268
      return this.wex != null;
4269
    }
4270
 
4271
    public void setWexIsSet(boolean value) {
4272
      if (!value) {
4273
        this.wex = null;
4274
      }
4275
    }
4276
 
2832 chandransh 4277
    public void setFieldValue(_Fields field, Object value) {
4278
      switch (field) {
4279
      case SUCCESS:
4280
        if (value == null) {
4281
          unsetSuccess();
4282
        } else {
4496 mandeep.dh 4283
          setSuccess((InventoryItem)value);
2832 chandransh 4284
        }
4285
        break;
4286
 
4541 mandeep.dh 4287
      case WEX:
4288
        if (value == null) {
4289
          unsetWex();
4290
        } else {
4291
          setWex((WarehouseServiceException)value);
4292
        }
4293
        break;
4294
 
2832 chandransh 4295
      }
4296
    }
4297
 
4298
    public Object getFieldValue(_Fields field) {
4299
      switch (field) {
4300
      case SUCCESS:
4301
        return getSuccess();
4302
 
4541 mandeep.dh 4303
      case WEX:
4304
        return getWex();
4305
 
2832 chandransh 4306
      }
4307
      throw new IllegalStateException();
4308
    }
4309
 
3430 rajveer 4310
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4311
    public boolean isSet(_Fields field) {
4312
      if (field == null) {
4313
        throw new IllegalArgumentException();
4314
      }
2832 chandransh 4315
 
4316
      switch (field) {
4317
      case SUCCESS:
4318
        return isSetSuccess();
4541 mandeep.dh 4319
      case WEX:
4320
        return isSetWex();
2832 chandransh 4321
      }
4322
      throw new IllegalStateException();
4323
    }
4324
 
4325
    @Override
4326
    public boolean equals(Object that) {
4327
      if (that == null)
4328
        return false;
4496 mandeep.dh 4329
      if (that instanceof getInventoryItem_result)
4330
        return this.equals((getInventoryItem_result)that);
2832 chandransh 4331
      return false;
4332
    }
4333
 
4496 mandeep.dh 4334
    public boolean equals(getInventoryItem_result that) {
2832 chandransh 4335
      if (that == null)
4336
        return false;
4337
 
4338
      boolean this_present_success = true && this.isSetSuccess();
4339
      boolean that_present_success = true && that.isSetSuccess();
4340
      if (this_present_success || that_present_success) {
4341
        if (!(this_present_success && that_present_success))
4342
          return false;
4343
        if (!this.success.equals(that.success))
4344
          return false;
4345
      }
4346
 
4541 mandeep.dh 4347
      boolean this_present_wex = true && this.isSetWex();
4348
      boolean that_present_wex = true && that.isSetWex();
4349
      if (this_present_wex || that_present_wex) {
4350
        if (!(this_present_wex && that_present_wex))
4351
          return false;
4352
        if (!this.wex.equals(that.wex))
4353
          return false;
4354
      }
4355
 
2832 chandransh 4356
      return true;
4357
    }
4358
 
4359
    @Override
4360
    public int hashCode() {
4361
      return 0;
4362
    }
4363
 
4496 mandeep.dh 4364
    public int compareTo(getInventoryItem_result other) {
2832 chandransh 4365
      if (!getClass().equals(other.getClass())) {
4366
        return getClass().getName().compareTo(other.getClass().getName());
4367
      }
4368
 
4369
      int lastComparison = 0;
4496 mandeep.dh 4370
      getInventoryItem_result typedOther = (getInventoryItem_result)other;
2832 chandransh 4371
 
3430 rajveer 4372
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2832 chandransh 4373
      if (lastComparison != 0) {
4374
        return lastComparison;
4375
      }
3430 rajveer 4376
      if (isSetSuccess()) {
4377
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4378
        if (lastComparison != 0) {
4379
          return lastComparison;
4380
        }
2832 chandransh 4381
      }
4541 mandeep.dh 4382
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
4383
      if (lastComparison != 0) {
4384
        return lastComparison;
4385
      }
4386
      if (isSetWex()) {
4387
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
4388
        if (lastComparison != 0) {
4389
          return lastComparison;
4390
        }
4391
      }
2832 chandransh 4392
      return 0;
4393
    }
4394
 
3430 rajveer 4395
    public _Fields fieldForId(int fieldId) {
4396
      return _Fields.findByThriftId(fieldId);
4397
    }
4398
 
4399
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4400
      org.apache.thrift.protocol.TField field;
2832 chandransh 4401
      iprot.readStructBegin();
4402
      while (true)
4403
      {
4404
        field = iprot.readFieldBegin();
3430 rajveer 4405
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2832 chandransh 4406
          break;
4407
        }
3430 rajveer 4408
        switch (field.id) {
4409
          case 0: // SUCCESS
4410
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4496 mandeep.dh 4411
              this.success = new InventoryItem();
3430 rajveer 4412
              this.success.read(iprot);
4413
            } else { 
4414
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4415
            }
4416
            break;
4541 mandeep.dh 4417
          case 1: // WEX
4418
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4419
              this.wex = new WarehouseServiceException();
4420
              this.wex.read(iprot);
4421
            } else { 
4422
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4423
            }
4424
            break;
3430 rajveer 4425
          default:
4426
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2832 chandransh 4427
        }
3430 rajveer 4428
        iprot.readFieldEnd();
2832 chandransh 4429
      }
4430
      iprot.readStructEnd();
4431
      validate();
4432
    }
4433
 
3430 rajveer 4434
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2832 chandransh 4435
      oprot.writeStructBegin(STRUCT_DESC);
4436
 
4437
      if (this.isSetSuccess()) {
4438
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4439
        this.success.write(oprot);
4440
        oprot.writeFieldEnd();
4541 mandeep.dh 4441
      } else if (this.isSetWex()) {
4442
        oprot.writeFieldBegin(WEX_FIELD_DESC);
4443
        this.wex.write(oprot);
4444
        oprot.writeFieldEnd();
2832 chandransh 4445
      }
4446
      oprot.writeFieldStop();
4447
      oprot.writeStructEnd();
4448
    }
4449
 
4450
    @Override
4451
    public String toString() {
4496 mandeep.dh 4452
      StringBuilder sb = new StringBuilder("getInventoryItem_result(");
2832 chandransh 4453
      boolean first = true;
4454
 
4455
      sb.append("success:");
4456
      if (this.success == null) {
4457
        sb.append("null");
4458
      } else {
4459
        sb.append(this.success);
4460
      }
4461
      first = false;
4541 mandeep.dh 4462
      if (!first) sb.append(", ");
4463
      sb.append("wex:");
4464
      if (this.wex == null) {
4465
        sb.append("null");
4466
      } else {
4467
        sb.append(this.wex);
4468
      }
4469
      first = false;
2832 chandransh 4470
      sb.append(")");
4471
      return sb.toString();
4472
    }
4473
 
3430 rajveer 4474
    public void validate() throws org.apache.thrift.TException {
2832 chandransh 4475
      // check for required fields
4476
    }
4477
 
3430 rajveer 4478
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4479
      try {
4480
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4481
      } catch (org.apache.thrift.TException te) {
4482
        throw new java.io.IOException(te);
4483
      }
4484
    }
4485
 
4486
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4487
      try {
4488
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4489
      } catch (org.apache.thrift.TException te) {
4490
        throw new java.io.IOException(te);
4491
      }
4492
    }
4493
 
2832 chandransh 4494
  }
4495
 
5361 mandeep.dh 4496
  public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4497
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
2820 chandransh 4498
 
5530 mandeep.dh 4499
    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);
4500
    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);
4501
    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 4502
 
5530 mandeep.dh 4503
    private String itemNumber; // required
4496 mandeep.dh 4504
    private long itemId; // required
5530 mandeep.dh 4505
    private long fulfilmentWarehouseId; // required
2820 chandransh 4506
 
4507
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4508
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5530 mandeep.dh 4509
      ITEM_NUMBER((short)1, "itemNumber"),
4510
      ITEM_ID((short)2, "itemId"),
4511
      FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
2820 chandransh 4512
 
4513
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4514
 
4515
      static {
4516
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4517
          byName.put(field.getFieldName(), field);
4518
        }
4519
      }
4520
 
4521
      /**
4522
       * Find the _Fields constant that matches fieldId, or null if its not found.
4523
       */
4524
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4525
        switch(fieldId) {
5530 mandeep.dh 4526
          case 1: // ITEM_NUMBER
4527
            return ITEM_NUMBER;
4528
          case 2: // ITEM_ID
4496 mandeep.dh 4529
            return ITEM_ID;
5530 mandeep.dh 4530
          case 3: // FULFILMENT_WAREHOUSE_ID
4531
            return FULFILMENT_WAREHOUSE_ID;
3430 rajveer 4532
          default:
4533
            return null;
4534
        }
2820 chandransh 4535
      }
4536
 
4537
      /**
4538
       * Find the _Fields constant that matches fieldId, throwing an exception
4539
       * if it is not found.
4540
       */
4541
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4542
        _Fields fields = findByThriftId(fieldId);
4543
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4544
        return fields;
4545
      }
4546
 
4547
      /**
4548
       * Find the _Fields constant that matches name, or null if its not found.
4549
       */
4550
      public static _Fields findByName(String name) {
4551
        return byName.get(name);
4552
      }
4553
 
4554
      private final short _thriftId;
4555
      private final String _fieldName;
4556
 
4557
      _Fields(short thriftId, String fieldName) {
4558
        _thriftId = thriftId;
4559
        _fieldName = fieldName;
4560
      }
4561
 
4562
      public short getThriftFieldId() {
4563
        return _thriftId;
4564
      }
4565
 
4566
      public String getFieldName() {
4567
        return _fieldName;
4568
      }
4569
    }
4570
 
4571
    // isset id assignments
4496 mandeep.dh 4572
    private static final int __ITEMID_ISSET_ID = 0;
5530 mandeep.dh 4573
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
5361 mandeep.dh 4574
    private BitSet __isset_bit_vector = new BitSet(2);
2820 chandransh 4575
 
3430 rajveer 4576
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 4577
    static {
3430 rajveer 4578
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5530 mandeep.dh 4579
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4580
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4496 mandeep.dh 4581
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 4582
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5530 mandeep.dh 4583
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 4584
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 4585
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5361 mandeep.dh 4586
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
2820 chandransh 4587
    }
4588
 
5361 mandeep.dh 4589
    public getNonSeralizedInventoryItem_args() {
2820 chandransh 4590
    }
4591
 
5361 mandeep.dh 4592
    public getNonSeralizedInventoryItem_args(
5530 mandeep.dh 4593
      String itemNumber,
4496 mandeep.dh 4594
      long itemId,
5530 mandeep.dh 4595
      long fulfilmentWarehouseId)
2820 chandransh 4596
    {
4597
      this();
5530 mandeep.dh 4598
      this.itemNumber = itemNumber;
4496 mandeep.dh 4599
      this.itemId = itemId;
4600
      setItemIdIsSet(true);
5530 mandeep.dh 4601
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
4602
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 4603
    }
4604
 
4605
    /**
4606
     * Performs a deep copy on <i>other</i>.
4607
     */
5361 mandeep.dh 4608
    public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
2820 chandransh 4609
      __isset_bit_vector.clear();
4610
      __isset_bit_vector.or(other.__isset_bit_vector);
5530 mandeep.dh 4611
      if (other.isSetItemNumber()) {
4612
        this.itemNumber = other.itemNumber;
4613
      }
4496 mandeep.dh 4614
      this.itemId = other.itemId;
5530 mandeep.dh 4615
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
2820 chandransh 4616
    }
4617
 
5361 mandeep.dh 4618
    public getNonSeralizedInventoryItem_args deepCopy() {
4619
      return new getNonSeralizedInventoryItem_args(this);
2820 chandransh 4620
    }
4621
 
3430 rajveer 4622
    @Override
4623
    public void clear() {
5530 mandeep.dh 4624
      this.itemNumber = null;
4496 mandeep.dh 4625
      setItemIdIsSet(false);
4626
      this.itemId = 0;
5530 mandeep.dh 4627
      setFulfilmentWarehouseIdIsSet(false);
4628
      this.fulfilmentWarehouseId = 0;
2820 chandransh 4629
    }
4630
 
5530 mandeep.dh 4631
    public String getItemNumber() {
4632
      return this.itemNumber;
4633
    }
4634
 
4635
    public void setItemNumber(String itemNumber) {
4636
      this.itemNumber = itemNumber;
4637
    }
4638
 
4639
    public void unsetItemNumber() {
4640
      this.itemNumber = null;
4641
    }
4642
 
4643
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
4644
    public boolean isSetItemNumber() {
4645
      return this.itemNumber != null;
4646
    }
4647
 
4648
    public void setItemNumberIsSet(boolean value) {
4649
      if (!value) {
4650
        this.itemNumber = null;
4651
      }
4652
    }
4653
 
4496 mandeep.dh 4654
    public long getItemId() {
4655
      return this.itemId;
2820 chandransh 4656
    }
4657
 
4496 mandeep.dh 4658
    public void setItemId(long itemId) {
4659
      this.itemId = itemId;
4660
      setItemIdIsSet(true);
2820 chandransh 4661
    }
4662
 
4496 mandeep.dh 4663
    public void unsetItemId() {
4664
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2820 chandransh 4665
    }
4666
 
4496 mandeep.dh 4667
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4668
    public boolean isSetItemId() {
4669
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2820 chandransh 4670
    }
4671
 
4496 mandeep.dh 4672
    public void setItemIdIsSet(boolean value) {
4673
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2820 chandransh 4674
    }
4675
 
5530 mandeep.dh 4676
    public long getFulfilmentWarehouseId() {
4677
      return this.fulfilmentWarehouseId;
2820 chandransh 4678
    }
4679
 
5530 mandeep.dh 4680
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
4681
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
4682
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 4683
    }
4684
 
5530 mandeep.dh 4685
    public void unsetFulfilmentWarehouseId() {
4686
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 4687
    }
4688
 
5530 mandeep.dh 4689
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
4690
    public boolean isSetFulfilmentWarehouseId() {
4691
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 4692
    }
4693
 
5530 mandeep.dh 4694
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
4695
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
2820 chandransh 4696
    }
4697
 
4698
    public void setFieldValue(_Fields field, Object value) {
4699
      switch (field) {
5530 mandeep.dh 4700
      case ITEM_NUMBER:
4701
        if (value == null) {
4702
          unsetItemNumber();
4703
        } else {
4704
          setItemNumber((String)value);
4705
        }
4706
        break;
4707
 
4496 mandeep.dh 4708
      case ITEM_ID:
2820 chandransh 4709
        if (value == null) {
4496 mandeep.dh 4710
          unsetItemId();
2820 chandransh 4711
        } else {
4496 mandeep.dh 4712
          setItemId((Long)value);
2820 chandransh 4713
        }
4714
        break;
4715
 
5530 mandeep.dh 4716
      case FULFILMENT_WAREHOUSE_ID:
2820 chandransh 4717
        if (value == null) {
5530 mandeep.dh 4718
          unsetFulfilmentWarehouseId();
2820 chandransh 4719
        } else {
5530 mandeep.dh 4720
          setFulfilmentWarehouseId((Long)value);
2820 chandransh 4721
        }
4722
        break;
4723
 
4724
      }
4725
    }
4726
 
4727
    public Object getFieldValue(_Fields field) {
4728
      switch (field) {
5530 mandeep.dh 4729
      case ITEM_NUMBER:
4730
        return getItemNumber();
4731
 
4496 mandeep.dh 4732
      case ITEM_ID:
4733
        return Long.valueOf(getItemId());
2820 chandransh 4734
 
5530 mandeep.dh 4735
      case FULFILMENT_WAREHOUSE_ID:
4736
        return Long.valueOf(getFulfilmentWarehouseId());
2820 chandransh 4737
 
4738
      }
4739
      throw new IllegalStateException();
4740
    }
4741
 
3430 rajveer 4742
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4743
    public boolean isSet(_Fields field) {
4744
      if (field == null) {
4745
        throw new IllegalArgumentException();
4746
      }
2820 chandransh 4747
 
4748
      switch (field) {
5530 mandeep.dh 4749
      case ITEM_NUMBER:
4750
        return isSetItemNumber();
4496 mandeep.dh 4751
      case ITEM_ID:
4752
        return isSetItemId();
5530 mandeep.dh 4753
      case FULFILMENT_WAREHOUSE_ID:
4754
        return isSetFulfilmentWarehouseId();
2820 chandransh 4755
      }
4756
      throw new IllegalStateException();
4757
    }
4758
 
4759
    @Override
4760
    public boolean equals(Object that) {
4761
      if (that == null)
4762
        return false;
5361 mandeep.dh 4763
      if (that instanceof getNonSeralizedInventoryItem_args)
4764
        return this.equals((getNonSeralizedInventoryItem_args)that);
2820 chandransh 4765
      return false;
4766
    }
4767
 
5361 mandeep.dh 4768
    public boolean equals(getNonSeralizedInventoryItem_args that) {
2820 chandransh 4769
      if (that == null)
4770
        return false;
4771
 
5530 mandeep.dh 4772
      boolean this_present_itemNumber = true && this.isSetItemNumber();
4773
      boolean that_present_itemNumber = true && that.isSetItemNumber();
4774
      if (this_present_itemNumber || that_present_itemNumber) {
4775
        if (!(this_present_itemNumber && that_present_itemNumber))
4776
          return false;
4777
        if (!this.itemNumber.equals(that.itemNumber))
4778
          return false;
4779
      }
4780
 
4496 mandeep.dh 4781
      boolean this_present_itemId = true;
4782
      boolean that_present_itemId = true;
4783
      if (this_present_itemId || that_present_itemId) {
4784
        if (!(this_present_itemId && that_present_itemId))
2820 chandransh 4785
          return false;
4496 mandeep.dh 4786
        if (this.itemId != that.itemId)
2820 chandransh 4787
          return false;
4788
      }
4789
 
5530 mandeep.dh 4790
      boolean this_present_fulfilmentWarehouseId = true;
4791
      boolean that_present_fulfilmentWarehouseId = true;
4792
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
4793
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
2820 chandransh 4794
          return false;
5530 mandeep.dh 4795
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
2820 chandransh 4796
          return false;
4797
      }
4798
 
4799
      return true;
4800
    }
4801
 
4802
    @Override
4803
    public int hashCode() {
4804
      return 0;
4805
    }
4806
 
5361 mandeep.dh 4807
    public int compareTo(getNonSeralizedInventoryItem_args other) {
2820 chandransh 4808
      if (!getClass().equals(other.getClass())) {
4809
        return getClass().getName().compareTo(other.getClass().getName());
4810
      }
4811
 
4812
      int lastComparison = 0;
5361 mandeep.dh 4813
      getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
2820 chandransh 4814
 
5530 mandeep.dh 4815
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
4816
      if (lastComparison != 0) {
4817
        return lastComparison;
4818
      }
4819
      if (isSetItemNumber()) {
4820
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
4821
        if (lastComparison != 0) {
4822
          return lastComparison;
4823
        }
4824
      }
4496 mandeep.dh 4825
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2820 chandransh 4826
      if (lastComparison != 0) {
4827
        return lastComparison;
4828
      }
4496 mandeep.dh 4829
      if (isSetItemId()) {
4830
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3430 rajveer 4831
        if (lastComparison != 0) {
4832
          return lastComparison;
4833
        }
2820 chandransh 4834
      }
5530 mandeep.dh 4835
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
2820 chandransh 4836
      if (lastComparison != 0) {
4837
        return lastComparison;
4838
      }
5530 mandeep.dh 4839
      if (isSetFulfilmentWarehouseId()) {
4840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
3430 rajveer 4841
        if (lastComparison != 0) {
4842
          return lastComparison;
4843
        }
2820 chandransh 4844
      }
4845
      return 0;
4846
    }
4847
 
3430 rajveer 4848
    public _Fields fieldForId(int fieldId) {
4849
      return _Fields.findByThriftId(fieldId);
4850
    }
4851
 
4852
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4853
      org.apache.thrift.protocol.TField field;
2820 chandransh 4854
      iprot.readStructBegin();
4855
      while (true)
4856
      {
4857
        field = iprot.readFieldBegin();
3430 rajveer 4858
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 4859
          break;
4860
        }
3430 rajveer 4861
        switch (field.id) {
5530 mandeep.dh 4862
          case 1: // ITEM_NUMBER
4863
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4864
              this.itemNumber = iprot.readString();
4865
            } else { 
4866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4867
            }
4868
            break;
4869
          case 2: // ITEM_ID
3430 rajveer 4870
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4496 mandeep.dh 4871
              this.itemId = iprot.readI64();
4872
              setItemIdIsSet(true);
3430 rajveer 4873
            } else { 
4874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4875
            }
4876
            break;
5530 mandeep.dh 4877
          case 3: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 4878
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5530 mandeep.dh 4879
              this.fulfilmentWarehouseId = iprot.readI64();
4880
              setFulfilmentWarehouseIdIsSet(true);
3430 rajveer 4881
            } else { 
4882
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4883
            }
4884
            break;
4885
          default:
4886
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 4887
        }
3430 rajveer 4888
        iprot.readFieldEnd();
2820 chandransh 4889
      }
4890
      iprot.readStructEnd();
4891
      validate();
4892
    }
4893
 
3430 rajveer 4894
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 4895
      validate();
4896
 
4897
      oprot.writeStructBegin(STRUCT_DESC);
5530 mandeep.dh 4898
      if (this.itemNumber != null) {
4899
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
4900
        oprot.writeString(this.itemNumber);
4901
        oprot.writeFieldEnd();
4902
      }
4496 mandeep.dh 4903
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4904
      oprot.writeI64(this.itemId);
2820 chandransh 4905
      oprot.writeFieldEnd();
5530 mandeep.dh 4906
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
4907
      oprot.writeI64(this.fulfilmentWarehouseId);
2820 chandransh 4908
      oprot.writeFieldEnd();
4909
      oprot.writeFieldStop();
4910
      oprot.writeStructEnd();
4911
    }
4912
 
4913
    @Override
4914
    public String toString() {
5361 mandeep.dh 4915
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
2820 chandransh 4916
      boolean first = true;
4917
 
5530 mandeep.dh 4918
      sb.append("itemNumber:");
4919
      if (this.itemNumber == null) {
4920
        sb.append("null");
4921
      } else {
4922
        sb.append(this.itemNumber);
4923
      }
4924
      first = false;
4925
      if (!first) sb.append(", ");
4496 mandeep.dh 4926
      sb.append("itemId:");
4927
      sb.append(this.itemId);
2820 chandransh 4928
      first = false;
4929
      if (!first) sb.append(", ");
5530 mandeep.dh 4930
      sb.append("fulfilmentWarehouseId:");
4931
      sb.append(this.fulfilmentWarehouseId);
2820 chandransh 4932
      first = false;
4933
      sb.append(")");
4934
      return sb.toString();
4935
    }
4936
 
3430 rajveer 4937
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 4938
      // check for required fields
4939
    }
4940
 
3430 rajveer 4941
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4942
      try {
4943
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4944
      } catch (org.apache.thrift.TException te) {
4945
        throw new java.io.IOException(te);
4946
      }
4947
    }
4948
 
4949
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4950
      try {
4951
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4952
      } catch (org.apache.thrift.TException te) {
4953
        throw new java.io.IOException(te);
4954
      }
4955
    }
4956
 
2820 chandransh 4957
  }
4958
 
5361 mandeep.dh 4959
  public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
4960
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
2820 chandransh 4961
 
5361 mandeep.dh 4962
    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);
4963
    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 4964
 
5361 mandeep.dh 4965
    private InventoryItem success; // required
4966
    private WarehouseServiceException wex; // required
2820 chandransh 4967
 
4968
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4969
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 4970
      SUCCESS((short)0, "success"),
4971
      WEX((short)1, "wex");
2820 chandransh 4972
 
4973
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4974
 
4975
      static {
4976
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4977
          byName.put(field.getFieldName(), field);
4978
        }
4979
      }
4980
 
4981
      /**
4982
       * Find the _Fields constant that matches fieldId, or null if its not found.
4983
       */
4984
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4985
        switch(fieldId) {
4986
          case 0: // SUCCESS
4987
            return SUCCESS;
5361 mandeep.dh 4988
          case 1: // WEX
4989
            return WEX;
3430 rajveer 4990
          default:
4991
            return null;
4992
        }
2820 chandransh 4993
      }
4994
 
4995
      /**
4996
       * Find the _Fields constant that matches fieldId, throwing an exception
4997
       * if it is not found.
4998
       */
4999
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5000
        _Fields fields = findByThriftId(fieldId);
5001
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5002
        return fields;
5003
      }
5004
 
5005
      /**
5006
       * Find the _Fields constant that matches name, or null if its not found.
5007
       */
5008
      public static _Fields findByName(String name) {
5009
        return byName.get(name);
5010
      }
5011
 
5012
      private final short _thriftId;
5013
      private final String _fieldName;
5014
 
5015
      _Fields(short thriftId, String fieldName) {
5016
        _thriftId = thriftId;
5017
        _fieldName = fieldName;
5018
      }
5019
 
5020
      public short getThriftFieldId() {
5021
        return _thriftId;
5022
      }
5023
 
5024
      public String getFieldName() {
5025
        return _fieldName;
5026
      }
5027
    }
5028
 
5029
    // isset id assignments
5030
 
3430 rajveer 5031
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 5032
    static {
3430 rajveer 5033
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5034
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5361 mandeep.dh 5035
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
5036
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5037
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3430 rajveer 5038
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5361 mandeep.dh 5039
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
2820 chandransh 5040
    }
5041
 
5361 mandeep.dh 5042
    public getNonSeralizedInventoryItem_result() {
2820 chandransh 5043
    }
5044
 
5361 mandeep.dh 5045
    public getNonSeralizedInventoryItem_result(
5046
      InventoryItem success,
5047
      WarehouseServiceException wex)
2820 chandransh 5048
    {
5049
      this();
5050
      this.success = success;
5361 mandeep.dh 5051
      this.wex = wex;
2820 chandransh 5052
    }
5053
 
5054
    /**
5055
     * Performs a deep copy on <i>other</i>.
5056
     */
5361 mandeep.dh 5057
    public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
4496 mandeep.dh 5058
      if (other.isSetSuccess()) {
5361 mandeep.dh 5059
        this.success = new InventoryItem(other.success);
2820 chandransh 5060
      }
5361 mandeep.dh 5061
      if (other.isSetWex()) {
5062
        this.wex = new WarehouseServiceException(other.wex);
5063
      }
2820 chandransh 5064
    }
5065
 
5361 mandeep.dh 5066
    public getNonSeralizedInventoryItem_result deepCopy() {
5067
      return new getNonSeralizedInventoryItem_result(this);
2820 chandransh 5068
    }
5069
 
3430 rajveer 5070
    @Override
5071
    public void clear() {
4496 mandeep.dh 5072
      this.success = null;
5361 mandeep.dh 5073
      this.wex = null;
2820 chandransh 5074
    }
5075
 
5361 mandeep.dh 5076
    public InventoryItem getSuccess() {
2820 chandransh 5077
      return this.success;
5078
    }
5079
 
5361 mandeep.dh 5080
    public void setSuccess(InventoryItem success) {
2820 chandransh 5081
      this.success = success;
5082
    }
5083
 
5084
    public void unsetSuccess() {
4496 mandeep.dh 5085
      this.success = null;
2820 chandransh 5086
    }
5087
 
3430 rajveer 5088
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2820 chandransh 5089
    public boolean isSetSuccess() {
4496 mandeep.dh 5090
      return this.success != null;
2820 chandransh 5091
    }
5092
 
5093
    public void setSuccessIsSet(boolean value) {
4496 mandeep.dh 5094
      if (!value) {
5095
        this.success = null;
5096
      }
2820 chandransh 5097
    }
5098
 
5361 mandeep.dh 5099
    public WarehouseServiceException getWex() {
5100
      return this.wex;
2820 chandransh 5101
    }
5102
 
5361 mandeep.dh 5103
    public void setWex(WarehouseServiceException wex) {
5104
      this.wex = wex;
2820 chandransh 5105
    }
5106
 
5361 mandeep.dh 5107
    public void unsetWex() {
5108
      this.wex = null;
2820 chandransh 5109
    }
5110
 
5361 mandeep.dh 5111
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
5112
    public boolean isSetWex() {
5113
      return this.wex != null;
2820 chandransh 5114
    }
5115
 
5361 mandeep.dh 5116
    public void setWexIsSet(boolean value) {
5117
      if (!value) {
5118
        this.wex = null;
2820 chandransh 5119
      }
5120
    }
5121
 
5122
    public void setFieldValue(_Fields field, Object value) {
5123
      switch (field) {
5361 mandeep.dh 5124
      case SUCCESS:
2820 chandransh 5125
        if (value == null) {
5361 mandeep.dh 5126
          unsetSuccess();
2820 chandransh 5127
        } else {
5361 mandeep.dh 5128
          setSuccess((InventoryItem)value);
2820 chandransh 5129
        }
5130
        break;
5131
 
5361 mandeep.dh 5132
      case WEX:
2820 chandransh 5133
        if (value == null) {
5361 mandeep.dh 5134
          unsetWex();
2820 chandransh 5135
        } else {
5361 mandeep.dh 5136
          setWex((WarehouseServiceException)value);
2820 chandransh 5137
        }
5138
        break;
5139
 
5140
      }
5141
    }
5142
 
5143
    public Object getFieldValue(_Fields field) {
5144
      switch (field) {
5145
      case SUCCESS:
4496 mandeep.dh 5146
        return getSuccess();
2820 chandransh 5147
 
5361 mandeep.dh 5148
      case WEX:
5149
        return getWex();
5150
 
2820 chandransh 5151
      }
5152
      throw new IllegalStateException();
5153
    }
5154
 
3430 rajveer 5155
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5156
    public boolean isSet(_Fields field) {
5157
      if (field == null) {
5158
        throw new IllegalArgumentException();
5159
      }
2820 chandransh 5160
 
5161
      switch (field) {
5162
      case SUCCESS:
5163
        return isSetSuccess();
5361 mandeep.dh 5164
      case WEX:
5165
        return isSetWex();
2820 chandransh 5166
      }
5167
      throw new IllegalStateException();
5168
    }
5169
 
5170
    @Override
5171
    public boolean equals(Object that) {
5172
      if (that == null)
5173
        return false;
5361 mandeep.dh 5174
      if (that instanceof getNonSeralizedInventoryItem_result)
5175
        return this.equals((getNonSeralizedInventoryItem_result)that);
2820 chandransh 5176
      return false;
5177
    }
5178
 
5361 mandeep.dh 5179
    public boolean equals(getNonSeralizedInventoryItem_result that) {
2820 chandransh 5180
      if (that == null)
5181
        return false;
5182
 
4496 mandeep.dh 5183
      boolean this_present_success = true && this.isSetSuccess();
5184
      boolean that_present_success = true && that.isSetSuccess();
2820 chandransh 5185
      if (this_present_success || that_present_success) {
5186
        if (!(this_present_success && that_present_success))
5187
          return false;
4496 mandeep.dh 5188
        if (!this.success.equals(that.success))
2820 chandransh 5189
          return false;
5190
      }
5191
 
5361 mandeep.dh 5192
      boolean this_present_wex = true && this.isSetWex();
5193
      boolean that_present_wex = true && that.isSetWex();
5194
      if (this_present_wex || that_present_wex) {
5195
        if (!(this_present_wex && that_present_wex))
4496 mandeep.dh 5196
          return false;
5361 mandeep.dh 5197
        if (!this.wex.equals(that.wex))
4496 mandeep.dh 5198
          return false;
5199
      }
5200
 
5201
      return true;
5202
    }
5203
 
5204
    @Override
5205
    public int hashCode() {
5206
      return 0;
5207
    }
5208
 
5361 mandeep.dh 5209
    public int compareTo(getNonSeralizedInventoryItem_result other) {
4496 mandeep.dh 5210
      if (!getClass().equals(other.getClass())) {
5211
        return getClass().getName().compareTo(other.getClass().getName());
5212
      }
5213
 
5214
      int lastComparison = 0;
5361 mandeep.dh 5215
      getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
4496 mandeep.dh 5216
 
5217
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5218
      if (lastComparison != 0) {
5219
        return lastComparison;
5220
      }
5221
      if (isSetSuccess()) {
5222
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5223
        if (lastComparison != 0) {
5224
          return lastComparison;
5225
        }
5226
      }
5361 mandeep.dh 5227
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 5228
      if (lastComparison != 0) {
5229
        return lastComparison;
5230
      }
5361 mandeep.dh 5231
      if (isSetWex()) {
5232
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
3430 rajveer 5233
        if (lastComparison != 0) {
5234
          return lastComparison;
5235
        }
2820 chandransh 5236
      }
5237
      return 0;
5238
    }
5239
 
3430 rajveer 5240
    public _Fields fieldForId(int fieldId) {
5241
      return _Fields.findByThriftId(fieldId);
5242
    }
5243
 
5244
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5245
      org.apache.thrift.protocol.TField field;
2820 chandransh 5246
      iprot.readStructBegin();
5247
      while (true)
5248
      {
5249
        field = iprot.readFieldBegin();
3430 rajveer 5250
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 5251
          break;
5252
        }
3430 rajveer 5253
        switch (field.id) {
5361 mandeep.dh 5254
          case 0: // SUCCESS
5255
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5256
              this.success = new InventoryItem();
5257
              this.success.read(iprot);
3430 rajveer 5258
            } else { 
5259
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5260
            }
5261
            break;
5361 mandeep.dh 5262
          case 1: // WEX
5263
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5264
              this.wex = new WarehouseServiceException();
5265
              this.wex.read(iprot);
4496 mandeep.dh 5266
            } else { 
5267
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5268
            }
5269
            break;
5270
          default:
5271
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5272
        }
5273
        iprot.readFieldEnd();
5274
      }
5275
      iprot.readStructEnd();
5276
      validate();
5277
    }
5278
 
5279
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5280
      oprot.writeStructBegin(STRUCT_DESC);
5281
 
5282
      if (this.isSetSuccess()) {
5283
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5361 mandeep.dh 5284
        this.success.write(oprot);
4496 mandeep.dh 5285
        oprot.writeFieldEnd();
5361 mandeep.dh 5286
      } else if (this.isSetWex()) {
5287
        oprot.writeFieldBegin(WEX_FIELD_DESC);
5288
        this.wex.write(oprot);
5289
        oprot.writeFieldEnd();
4496 mandeep.dh 5290
      }
5291
      oprot.writeFieldStop();
5292
      oprot.writeStructEnd();
5293
    }
5294
 
5295
    @Override
5296
    public String toString() {
5361 mandeep.dh 5297
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
4496 mandeep.dh 5298
      boolean first = true;
5299
 
5300
      sb.append("success:");
5301
      if (this.success == null) {
5302
        sb.append("null");
5303
      } else {
5304
        sb.append(this.success);
5305
      }
5306
      first = false;
5361 mandeep.dh 5307
      if (!first) sb.append(", ");
5308
      sb.append("wex:");
5309
      if (this.wex == null) {
5310
        sb.append("null");
5311
      } else {
5312
        sb.append(this.wex);
5313
      }
5314
      first = false;
4496 mandeep.dh 5315
      sb.append(")");
5316
      return sb.toString();
5317
    }
5318
 
5319
    public void validate() throws org.apache.thrift.TException {
5320
      // check for required fields
5321
    }
5322
 
5323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5324
      try {
5325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5326
      } catch (org.apache.thrift.TException te) {
5327
        throw new java.io.IOException(te);
5328
      }
5329
    }
5330
 
5331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5332
      try {
5333
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5334
      } catch (org.apache.thrift.TException te) {
5335
        throw new java.io.IOException(te);
5336
      }
5337
    }
5338
 
5339
  }
5340
 
5341
  public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable   {
5342
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
3383 chandransh 5343
 
5361 mandeep.dh 5344
    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 5345
    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);
5346
    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 5347
    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 5348
    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 5349
 
5361 mandeep.dh 5350
    private InventoryItem inventoryItem; // required
4496 mandeep.dh 5351
    private ScanType type; // required
5352
    private long quantity; // required
5361 mandeep.dh 5353
    private long billingWarehouseId; // required
7410 amar.kumar 5354
    private long transferLotId; // required
3383 chandransh 5355
 
5356
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5357
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 5358
      INVENTORY_ITEM((short)1, "inventoryItem"),
4496 mandeep.dh 5359
      /**
5360
       * 
5361
       * @see ScanType
5362
       */
5363
      TYPE((short)2, "type"),
5364
      QUANTITY((short)3, "quantity"),
7410 amar.kumar 5365
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
5366
      TRANSFER_LOT_ID((short)5, "transferLotId");
3383 chandransh 5367
 
5368
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5369
 
5370
      static {
5371
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5372
          byName.put(field.getFieldName(), field);
5373
        }
5374
      }
5375
 
5376
      /**
5377
       * Find the _Fields constant that matches fieldId, or null if its not found.
5378
       */
5379
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5380
        switch(fieldId) {
5361 mandeep.dh 5381
          case 1: // INVENTORY_ITEM
5382
            return INVENTORY_ITEM;
4496 mandeep.dh 5383
          case 2: // TYPE
5384
            return TYPE;
5385
          case 3: // QUANTITY
5386
            return QUANTITY;
5361 mandeep.dh 5387
          case 4: // BILLING_WAREHOUSE_ID
5388
            return BILLING_WAREHOUSE_ID;
7410 amar.kumar 5389
          case 5: // TRANSFER_LOT_ID
5390
            return TRANSFER_LOT_ID;
3430 rajveer 5391
          default:
5392
            return null;
5393
        }
3383 chandransh 5394
      }
5395
 
5396
      /**
5397
       * Find the _Fields constant that matches fieldId, throwing an exception
5398
       * if it is not found.
5399
       */
5400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5401
        _Fields fields = findByThriftId(fieldId);
5402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5403
        return fields;
5404
      }
5405
 
5406
      /**
5407
       * Find the _Fields constant that matches name, or null if its not found.
5408
       */
5409
      public static _Fields findByName(String name) {
5410
        return byName.get(name);
5411
      }
5412
 
5413
      private final short _thriftId;
5414
      private final String _fieldName;
5415
 
5416
      _Fields(short thriftId, String fieldName) {
5417
        _thriftId = thriftId;
5418
        _fieldName = fieldName;
5419
      }
5420
 
5421
      public short getThriftFieldId() {
5422
        return _thriftId;
5423
      }
5424
 
5425
      public String getFieldName() {
5426
        return _fieldName;
5427
      }
5428
    }
5429
 
5430
    // isset id assignments
5361 mandeep.dh 5431
    private static final int __QUANTITY_ISSET_ID = 0;
5432
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
7410 amar.kumar 5433
    private static final int __TRANSFERLOTID_ISSET_ID = 2;
5434
    private BitSet __isset_bit_vector = new BitSet(3);
3383 chandransh 5435
 
3430 rajveer 5436
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3383 chandransh 5437
    static {
3430 rajveer 5438
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 5439
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5440
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
4496 mandeep.dh 5441
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5442
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
5443
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5444
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5361 mandeep.dh 5445
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 5446
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7410 amar.kumar 5447
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5448
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 5449
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 5450
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
3383 chandransh 5451
    }
5452
 
4496 mandeep.dh 5453
    public scan_args() {
3383 chandransh 5454
    }
5455
 
4496 mandeep.dh 5456
    public scan_args(
5361 mandeep.dh 5457
      InventoryItem inventoryItem,
4496 mandeep.dh 5458
      ScanType type,
5459
      long quantity,
7410 amar.kumar 5460
      long billingWarehouseId,
5461
      long transferLotId)
3383 chandransh 5462
    {
5463
      this();
5361 mandeep.dh 5464
      this.inventoryItem = inventoryItem;
4496 mandeep.dh 5465
      this.type = type;
5466
      this.quantity = quantity;
5467
      setQuantityIsSet(true);
5361 mandeep.dh 5468
      this.billingWarehouseId = billingWarehouseId;
5469
      setBillingWarehouseIdIsSet(true);
7410 amar.kumar 5470
      this.transferLotId = transferLotId;
5471
      setTransferLotIdIsSet(true);
3383 chandransh 5472
    }
5473
 
5474
    /**
5475
     * Performs a deep copy on <i>other</i>.
5476
     */
4496 mandeep.dh 5477
    public scan_args(scan_args other) {
3383 chandransh 5478
      __isset_bit_vector.clear();
5479
      __isset_bit_vector.or(other.__isset_bit_vector);
5361 mandeep.dh 5480
      if (other.isSetInventoryItem()) {
5481
        this.inventoryItem = new InventoryItem(other.inventoryItem);
5482
      }
4496 mandeep.dh 5483
      if (other.isSetType()) {
5484
        this.type = other.type;
5485
      }
5486
      this.quantity = other.quantity;
5361 mandeep.dh 5487
      this.billingWarehouseId = other.billingWarehouseId;
7410 amar.kumar 5488
      this.transferLotId = other.transferLotId;
3383 chandransh 5489
    }
5490
 
4496 mandeep.dh 5491
    public scan_args deepCopy() {
5492
      return new scan_args(this);
3383 chandransh 5493
    }
5494
 
3430 rajveer 5495
    @Override
5496
    public void clear() {
5361 mandeep.dh 5497
      this.inventoryItem = null;
4496 mandeep.dh 5498
      this.type = null;
5499
      setQuantityIsSet(false);
5500
      this.quantity = 0;
5361 mandeep.dh 5501
      setBillingWarehouseIdIsSet(false);
5502
      this.billingWarehouseId = 0;
7410 amar.kumar 5503
      setTransferLotIdIsSet(false);
5504
      this.transferLotId = 0;
3383 chandransh 5505
    }
5506
 
5361 mandeep.dh 5507
    public InventoryItem getInventoryItem() {
5508
      return this.inventoryItem;
3383 chandransh 5509
    }
5510
 
5361 mandeep.dh 5511
    public void setInventoryItem(InventoryItem inventoryItem) {
5512
      this.inventoryItem = inventoryItem;
3383 chandransh 5513
    }
5514
 
5361 mandeep.dh 5515
    public void unsetInventoryItem() {
5516
      this.inventoryItem = null;
3383 chandransh 5517
    }
5518
 
5361 mandeep.dh 5519
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
5520
    public boolean isSetInventoryItem() {
5521
      return this.inventoryItem != null;
3383 chandransh 5522
    }
5523
 
5361 mandeep.dh 5524
    public void setInventoryItemIsSet(boolean value) {
5525
      if (!value) {
5526
        this.inventoryItem = null;
5527
      }
3383 chandransh 5528
    }
5529
 
4496 mandeep.dh 5530
    /**
5531
     * 
5532
     * @see ScanType
5533
     */
5534
    public ScanType getType() {
5535
      return this.type;
3383 chandransh 5536
    }
5537
 
4496 mandeep.dh 5538
    /**
5539
     * 
5540
     * @see ScanType
5541
     */
5542
    public void setType(ScanType type) {
5543
      this.type = type;
3383 chandransh 5544
    }
5545
 
4496 mandeep.dh 5546
    public void unsetType() {
5547
      this.type = null;
3383 chandransh 5548
    }
5549
 
4496 mandeep.dh 5550
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
5551
    public boolean isSetType() {
5552
      return this.type != null;
3383 chandransh 5553
    }
5554
 
4496 mandeep.dh 5555
    public void setTypeIsSet(boolean value) {
5556
      if (!value) {
5557
        this.type = null;
5558
      }
3383 chandransh 5559
    }
5560
 
4496 mandeep.dh 5561
    public long getQuantity() {
5562
      return this.quantity;
5563
    }
5564
 
5565
    public void setQuantity(long quantity) {
5566
      this.quantity = quantity;
5567
      setQuantityIsSet(true);
5568
    }
5569
 
5570
    public void unsetQuantity() {
5571
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
5572
    }
5573
 
5574
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
5575
    public boolean isSetQuantity() {
5576
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
5577
    }
5578
 
5579
    public void setQuantityIsSet(boolean value) {
5580
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
5581
    }
5582
 
5361 mandeep.dh 5583
    public long getBillingWarehouseId() {
5584
      return this.billingWarehouseId;
4496 mandeep.dh 5585
    }
5586
 
5361 mandeep.dh 5587
    public void setBillingWarehouseId(long billingWarehouseId) {
5588
      this.billingWarehouseId = billingWarehouseId;
5589
      setBillingWarehouseIdIsSet(true);
4496 mandeep.dh 5590
    }
5591
 
5361 mandeep.dh 5592
    public void unsetBillingWarehouseId() {
5593
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 5594
    }
5595
 
5361 mandeep.dh 5596
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
5597
    public boolean isSetBillingWarehouseId() {
5598
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 5599
    }
5600
 
5361 mandeep.dh 5601
    public void setBillingWarehouseIdIsSet(boolean value) {
5602
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
4496 mandeep.dh 5603
    }
5604
 
7410 amar.kumar 5605
    public long getTransferLotId() {
5606
      return this.transferLotId;
5607
    }
5608
 
5609
    public void setTransferLotId(long transferLotId) {
5610
      this.transferLotId = transferLotId;
5611
      setTransferLotIdIsSet(true);
5612
    }
5613
 
5614
    public void unsetTransferLotId() {
5615
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
5616
    }
5617
 
5618
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
5619
    public boolean isSetTransferLotId() {
5620
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
5621
    }
5622
 
5623
    public void setTransferLotIdIsSet(boolean value) {
5624
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
5625
    }
5626
 
3383 chandransh 5627
    public void setFieldValue(_Fields field, Object value) {
5628
      switch (field) {
5361 mandeep.dh 5629
      case INVENTORY_ITEM:
3383 chandransh 5630
        if (value == null) {
5361 mandeep.dh 5631
          unsetInventoryItem();
3383 chandransh 5632
        } else {
5361 mandeep.dh 5633
          setInventoryItem((InventoryItem)value);
3383 chandransh 5634
        }
5635
        break;
5636
 
4496 mandeep.dh 5637
      case TYPE:
3383 chandransh 5638
        if (value == null) {
4496 mandeep.dh 5639
          unsetType();
3383 chandransh 5640
        } else {
4496 mandeep.dh 5641
          setType((ScanType)value);
3383 chandransh 5642
        }
5643
        break;
5644
 
4496 mandeep.dh 5645
      case QUANTITY:
5646
        if (value == null) {
5647
          unsetQuantity();
5648
        } else {
5649
          setQuantity((Long)value);
5650
        }
5651
        break;
5652
 
5361 mandeep.dh 5653
      case BILLING_WAREHOUSE_ID:
4496 mandeep.dh 5654
        if (value == null) {
5361 mandeep.dh 5655
          unsetBillingWarehouseId();
4496 mandeep.dh 5656
        } else {
5361 mandeep.dh 5657
          setBillingWarehouseId((Long)value);
4496 mandeep.dh 5658
        }
5659
        break;
5660
 
7410 amar.kumar 5661
      case TRANSFER_LOT_ID:
5662
        if (value == null) {
5663
          unsetTransferLotId();
5664
        } else {
5665
          setTransferLotId((Long)value);
5666
        }
5667
        break;
5668
 
3383 chandransh 5669
      }
5670
    }
5671
 
5672
    public Object getFieldValue(_Fields field) {
5673
      switch (field) {
5361 mandeep.dh 5674
      case INVENTORY_ITEM:
5675
        return getInventoryItem();
3383 chandransh 5676
 
4496 mandeep.dh 5677
      case TYPE:
5678
        return getType();
3383 chandransh 5679
 
4496 mandeep.dh 5680
      case QUANTITY:
5681
        return Long.valueOf(getQuantity());
5682
 
5361 mandeep.dh 5683
      case BILLING_WAREHOUSE_ID:
5684
        return Long.valueOf(getBillingWarehouseId());
4496 mandeep.dh 5685
 
7410 amar.kumar 5686
      case TRANSFER_LOT_ID:
5687
        return Long.valueOf(getTransferLotId());
5688
 
3383 chandransh 5689
      }
5690
      throw new IllegalStateException();
5691
    }
5692
 
3430 rajveer 5693
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5694
    public boolean isSet(_Fields field) {
5695
      if (field == null) {
5696
        throw new IllegalArgumentException();
5697
      }
3383 chandransh 5698
 
5699
      switch (field) {
5361 mandeep.dh 5700
      case INVENTORY_ITEM:
5701
        return isSetInventoryItem();
4496 mandeep.dh 5702
      case TYPE:
5703
        return isSetType();
5704
      case QUANTITY:
5705
        return isSetQuantity();
5361 mandeep.dh 5706
      case BILLING_WAREHOUSE_ID:
5707
        return isSetBillingWarehouseId();
7410 amar.kumar 5708
      case TRANSFER_LOT_ID:
5709
        return isSetTransferLotId();
3383 chandransh 5710
      }
5711
      throw new IllegalStateException();
5712
    }
5713
 
5714
    @Override
5715
    public boolean equals(Object that) {
5716
      if (that == null)
5717
        return false;
4496 mandeep.dh 5718
      if (that instanceof scan_args)
5719
        return this.equals((scan_args)that);
3383 chandransh 5720
      return false;
5721
    }
5722
 
4496 mandeep.dh 5723
    public boolean equals(scan_args that) {
3383 chandransh 5724
      if (that == null)
5725
        return false;
5726
 
5361 mandeep.dh 5727
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
5728
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
5729
      if (this_present_inventoryItem || that_present_inventoryItem) {
5730
        if (!(this_present_inventoryItem && that_present_inventoryItem))
3383 chandransh 5731
          return false;
5361 mandeep.dh 5732
        if (!this.inventoryItem.equals(that.inventoryItem))
3383 chandransh 5733
          return false;
5734
      }
5735
 
4496 mandeep.dh 5736
      boolean this_present_type = true && this.isSetType();
5737
      boolean that_present_type = true && that.isSetType();
5738
      if (this_present_type || that_present_type) {
5739
        if (!(this_present_type && that_present_type))
3383 chandransh 5740
          return false;
4496 mandeep.dh 5741
        if (!this.type.equals(that.type))
3383 chandransh 5742
          return false;
5743
      }
5744
 
4496 mandeep.dh 5745
      boolean this_present_quantity = true;
5746
      boolean that_present_quantity = true;
5747
      if (this_present_quantity || that_present_quantity) {
5748
        if (!(this_present_quantity && that_present_quantity))
5749
          return false;
5750
        if (this.quantity != that.quantity)
5751
          return false;
5752
      }
5753
 
5361 mandeep.dh 5754
      boolean this_present_billingWarehouseId = true;
5755
      boolean that_present_billingWarehouseId = true;
5756
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
5757
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
4496 mandeep.dh 5758
          return false;
5361 mandeep.dh 5759
        if (this.billingWarehouseId != that.billingWarehouseId)
4496 mandeep.dh 5760
          return false;
5761
      }
5762
 
7410 amar.kumar 5763
      boolean this_present_transferLotId = true;
5764
      boolean that_present_transferLotId = true;
5765
      if (this_present_transferLotId || that_present_transferLotId) {
5766
        if (!(this_present_transferLotId && that_present_transferLotId))
5767
          return false;
5768
        if (this.transferLotId != that.transferLotId)
5769
          return false;
5770
      }
5771
 
3383 chandransh 5772
      return true;
5773
    }
5774
 
5775
    @Override
5776
    public int hashCode() {
5777
      return 0;
5778
    }
5779
 
4496 mandeep.dh 5780
    public int compareTo(scan_args other) {
3383 chandransh 5781
      if (!getClass().equals(other.getClass())) {
5782
        return getClass().getName().compareTo(other.getClass().getName());
5783
      }
5784
 
5785
      int lastComparison = 0;
4496 mandeep.dh 5786
      scan_args typedOther = (scan_args)other;
3383 chandransh 5787
 
5361 mandeep.dh 5788
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
3383 chandransh 5789
      if (lastComparison != 0) {
5790
        return lastComparison;
5791
      }
5361 mandeep.dh 5792
      if (isSetInventoryItem()) {
5793
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
3430 rajveer 5794
        if (lastComparison != 0) {
5795
          return lastComparison;
5796
        }
3383 chandransh 5797
      }
4496 mandeep.dh 5798
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3383 chandransh 5799
      if (lastComparison != 0) {
5800
        return lastComparison;
5801
      }
4496 mandeep.dh 5802
      if (isSetType()) {
5803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 5804
        if (lastComparison != 0) {
5805
          return lastComparison;
5806
        }
3383 chandransh 5807
      }
4496 mandeep.dh 5808
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
5809
      if (lastComparison != 0) {
5810
        return lastComparison;
5811
      }
5812
      if (isSetQuantity()) {
5813
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
5814
        if (lastComparison != 0) {
5815
          return lastComparison;
5816
        }
5817
      }
5361 mandeep.dh 5818
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
4496 mandeep.dh 5819
      if (lastComparison != 0) {
5820
        return lastComparison;
5821
      }
5361 mandeep.dh 5822
      if (isSetBillingWarehouseId()) {
5823
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
4496 mandeep.dh 5824
        if (lastComparison != 0) {
5825
          return lastComparison;
5826
        }
5827
      }
7410 amar.kumar 5828
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
5829
      if (lastComparison != 0) {
5830
        return lastComparison;
5831
      }
5832
      if (isSetTransferLotId()) {
5833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
5834
        if (lastComparison != 0) {
5835
          return lastComparison;
5836
        }
5837
      }
3383 chandransh 5838
      return 0;
5839
    }
5840
 
3430 rajveer 5841
    public _Fields fieldForId(int fieldId) {
5842
      return _Fields.findByThriftId(fieldId);
5843
    }
5844
 
5845
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5846
      org.apache.thrift.protocol.TField field;
3383 chandransh 5847
      iprot.readStructBegin();
5848
      while (true)
5849
      {
5850
        field = iprot.readFieldBegin();
3430 rajveer 5851
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3383 chandransh 5852
          break;
5853
        }
3430 rajveer 5854
        switch (field.id) {
5361 mandeep.dh 5855
          case 1: // INVENTORY_ITEM
5856
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5857
              this.inventoryItem = new InventoryItem();
5858
              this.inventoryItem.read(iprot);
3430 rajveer 5859
            } else { 
5860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5861
            }
5862
            break;
4496 mandeep.dh 5863
          case 2: // TYPE
5864
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5865
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 5866
            } else { 
5867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5868
            }
5869
            break;
4496 mandeep.dh 5870
          case 3: // QUANTITY
5871
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5872
              this.quantity = iprot.readI64();
5873
              setQuantityIsSet(true);
5874
            } else { 
5875
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5876
            }
5877
            break;
5361 mandeep.dh 5878
          case 4: // BILLING_WAREHOUSE_ID
4496 mandeep.dh 5879
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5361 mandeep.dh 5880
              this.billingWarehouseId = iprot.readI64();
5881
              setBillingWarehouseIdIsSet(true);
4496 mandeep.dh 5882
            } else { 
5883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5884
            }
5885
            break;
7410 amar.kumar 5886
          case 5: // TRANSFER_LOT_ID
5887
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5888
              this.transferLotId = iprot.readI64();
5889
              setTransferLotIdIsSet(true);
5890
            } else { 
5891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5892
            }
5893
            break;
3430 rajveer 5894
          default:
5895
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3383 chandransh 5896
        }
3430 rajveer 5897
        iprot.readFieldEnd();
3383 chandransh 5898
      }
5899
      iprot.readStructEnd();
5900
      validate();
5901
    }
5902
 
3430 rajveer 5903
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3383 chandransh 5904
      validate();
5905
 
5906
      oprot.writeStructBegin(STRUCT_DESC);
5361 mandeep.dh 5907
      if (this.inventoryItem != null) {
5908
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
5909
        this.inventoryItem.write(oprot);
5910
        oprot.writeFieldEnd();
5911
      }
4496 mandeep.dh 5912
      if (this.type != null) {
5913
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5914
        oprot.writeI32(this.type.getValue());
5915
        oprot.writeFieldEnd();
5916
      }
5917
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
5918
      oprot.writeI64(this.quantity);
3383 chandransh 5919
      oprot.writeFieldEnd();
5361 mandeep.dh 5920
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
5921
      oprot.writeI64(this.billingWarehouseId);
4496 mandeep.dh 5922
      oprot.writeFieldEnd();
7410 amar.kumar 5923
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
5924
      oprot.writeI64(this.transferLotId);
5925
      oprot.writeFieldEnd();
3383 chandransh 5926
      oprot.writeFieldStop();
5927
      oprot.writeStructEnd();
5928
    }
5929
 
5930
    @Override
5931
    public String toString() {
4496 mandeep.dh 5932
      StringBuilder sb = new StringBuilder("scan_args(");
3383 chandransh 5933
      boolean first = true;
5934
 
5361 mandeep.dh 5935
      sb.append("inventoryItem:");
5936
      if (this.inventoryItem == null) {
5937
        sb.append("null");
5938
      } else {
5939
        sb.append(this.inventoryItem);
5940
      }
3383 chandransh 5941
      first = false;
5942
      if (!first) sb.append(", ");
4496 mandeep.dh 5943
      sb.append("type:");
5944
      if (this.type == null) {
5945
        sb.append("null");
5946
      } else {
5947
        sb.append(this.type);
5948
      }
3383 chandransh 5949
      first = false;
4496 mandeep.dh 5950
      if (!first) sb.append(", ");
5951
      sb.append("quantity:");
5952
      sb.append(this.quantity);
5953
      first = false;
5954
      if (!first) sb.append(", ");
5361 mandeep.dh 5955
      sb.append("billingWarehouseId:");
5956
      sb.append(this.billingWarehouseId);
4496 mandeep.dh 5957
      first = false;
7410 amar.kumar 5958
      if (!first) sb.append(", ");
5959
      sb.append("transferLotId:");
5960
      sb.append(this.transferLotId);
5961
      first = false;
3383 chandransh 5962
      sb.append(")");
5963
      return sb.toString();
5964
    }
5965
 
3430 rajveer 5966
    public void validate() throws org.apache.thrift.TException {
3383 chandransh 5967
      // check for required fields
5968
    }
5969
 
3430 rajveer 5970
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5971
      try {
5972
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5973
      } catch (org.apache.thrift.TException te) {
5974
        throw new java.io.IOException(te);
5975
      }
5976
    }
5977
 
5978
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5979
      try {
4496 mandeep.dh 5980
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5981
        __isset_bit_vector = new BitSet(1);
3430 rajveer 5982
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5983
      } catch (org.apache.thrift.TException te) {
5984
        throw new java.io.IOException(te);
5985
      }
5986
    }
5987
 
3383 chandransh 5988
  }
5989
 
4496 mandeep.dh 5990
  public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable   {
5991
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
3383 chandransh 5992
 
3430 rajveer 5993
    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 5994
 
3430 rajveer 5995
    private WarehouseServiceException wex; // required
3383 chandransh 5996
 
5997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3383 chandransh 5999
      WEX((short)1, "wex");
6000
 
6001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6002
 
6003
      static {
6004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6005
          byName.put(field.getFieldName(), field);
6006
        }
6007
      }
6008
 
6009
      /**
6010
       * Find the _Fields constant that matches fieldId, or null if its not found.
6011
       */
6012
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6013
        switch(fieldId) {
6014
          case 1: // WEX
6015
            return WEX;
6016
          default:
6017
            return null;
6018
        }
3383 chandransh 6019
      }
6020
 
6021
      /**
6022
       * Find the _Fields constant that matches fieldId, throwing an exception
6023
       * if it is not found.
6024
       */
6025
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6026
        _Fields fields = findByThriftId(fieldId);
6027
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6028
        return fields;
6029
      }
6030
 
6031
      /**
6032
       * Find the _Fields constant that matches name, or null if its not found.
6033
       */
6034
      public static _Fields findByName(String name) {
6035
        return byName.get(name);
6036
      }
6037
 
6038
      private final short _thriftId;
6039
      private final String _fieldName;
6040
 
6041
      _Fields(short thriftId, String fieldName) {
6042
        _thriftId = thriftId;
6043
        _fieldName = fieldName;
6044
      }
6045
 
6046
      public short getThriftFieldId() {
6047
        return _thriftId;
6048
      }
6049
 
6050
      public String getFieldName() {
6051
        return _fieldName;
6052
      }
6053
    }
6054
 
6055
    // isset id assignments
6056
 
3430 rajveer 6057
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3383 chandransh 6058
    static {
3430 rajveer 6059
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6060
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6061
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6062
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 6063
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
3383 chandransh 6064
    }
6065
 
4496 mandeep.dh 6066
    public scan_result() {
3383 chandransh 6067
    }
6068
 
4496 mandeep.dh 6069
    public scan_result(
3383 chandransh 6070
      WarehouseServiceException wex)
6071
    {
6072
      this();
6073
      this.wex = wex;
6074
    }
6075
 
6076
    /**
6077
     * Performs a deep copy on <i>other</i>.
6078
     */
4496 mandeep.dh 6079
    public scan_result(scan_result other) {
3383 chandransh 6080
      if (other.isSetWex()) {
6081
        this.wex = new WarehouseServiceException(other.wex);
6082
      }
6083
    }
6084
 
4496 mandeep.dh 6085
    public scan_result deepCopy() {
6086
      return new scan_result(this);
3383 chandransh 6087
    }
6088
 
3430 rajveer 6089
    @Override
6090
    public void clear() {
6091
      this.wex = null;
3383 chandransh 6092
    }
6093
 
6094
    public WarehouseServiceException getWex() {
6095
      return this.wex;
6096
    }
6097
 
3430 rajveer 6098
    public void setWex(WarehouseServiceException wex) {
3383 chandransh 6099
      this.wex = wex;
6100
    }
6101
 
6102
    public void unsetWex() {
6103
      this.wex = null;
6104
    }
6105
 
3430 rajveer 6106
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
3383 chandransh 6107
    public boolean isSetWex() {
6108
      return this.wex != null;
6109
    }
6110
 
6111
    public void setWexIsSet(boolean value) {
6112
      if (!value) {
6113
        this.wex = null;
6114
      }
6115
    }
6116
 
6117
    public void setFieldValue(_Fields field, Object value) {
6118
      switch (field) {
6119
      case WEX:
6120
        if (value == null) {
6121
          unsetWex();
6122
        } else {
6123
          setWex((WarehouseServiceException)value);
6124
        }
6125
        break;
6126
 
6127
      }
6128
    }
6129
 
6130
    public Object getFieldValue(_Fields field) {
6131
      switch (field) {
6132
      case WEX:
6133
        return getWex();
6134
 
6135
      }
6136
      throw new IllegalStateException();
6137
    }
6138
 
3430 rajveer 6139
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6140
    public boolean isSet(_Fields field) {
6141
      if (field == null) {
6142
        throw new IllegalArgumentException();
6143
      }
3383 chandransh 6144
 
6145
      switch (field) {
6146
      case WEX:
6147
        return isSetWex();
6148
      }
6149
      throw new IllegalStateException();
6150
    }
6151
 
6152
    @Override
6153
    public boolean equals(Object that) {
6154
      if (that == null)
6155
        return false;
4496 mandeep.dh 6156
      if (that instanceof scan_result)
6157
        return this.equals((scan_result)that);
3383 chandransh 6158
      return false;
6159
    }
6160
 
4496 mandeep.dh 6161
    public boolean equals(scan_result that) {
3383 chandransh 6162
      if (that == null)
6163
        return false;
6164
 
6165
      boolean this_present_wex = true && this.isSetWex();
6166
      boolean that_present_wex = true && that.isSetWex();
6167
      if (this_present_wex || that_present_wex) {
6168
        if (!(this_present_wex && that_present_wex))
6169
          return false;
6170
        if (!this.wex.equals(that.wex))
6171
          return false;
6172
      }
6173
 
6174
      return true;
6175
    }
6176
 
6177
    @Override
6178
    public int hashCode() {
6179
      return 0;
6180
    }
6181
 
4496 mandeep.dh 6182
    public int compareTo(scan_result other) {
3383 chandransh 6183
      if (!getClass().equals(other.getClass())) {
6184
        return getClass().getName().compareTo(other.getClass().getName());
6185
      }
6186
 
6187
      int lastComparison = 0;
4496 mandeep.dh 6188
      scan_result typedOther = (scan_result)other;
3383 chandransh 6189
 
3430 rajveer 6190
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
3383 chandransh 6191
      if (lastComparison != 0) {
6192
        return lastComparison;
6193
      }
3430 rajveer 6194
      if (isSetWex()) {
6195
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
6196
        if (lastComparison != 0) {
6197
          return lastComparison;
6198
        }
3383 chandransh 6199
      }
6200
      return 0;
6201
    }
6202
 
3430 rajveer 6203
    public _Fields fieldForId(int fieldId) {
6204
      return _Fields.findByThriftId(fieldId);
6205
    }
6206
 
6207
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6208
      org.apache.thrift.protocol.TField field;
3383 chandransh 6209
      iprot.readStructBegin();
6210
      while (true)
6211
      {
6212
        field = iprot.readFieldBegin();
3430 rajveer 6213
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3383 chandransh 6214
          break;
6215
        }
3430 rajveer 6216
        switch (field.id) {
6217
          case 1: // WEX
6218
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6219
              this.wex = new WarehouseServiceException();
6220
              this.wex.read(iprot);
6221
            } else { 
6222
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6223
            }
6224
            break;
6225
          default:
6226
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3383 chandransh 6227
        }
3430 rajveer 6228
        iprot.readFieldEnd();
3383 chandransh 6229
      }
6230
      iprot.readStructEnd();
6231
      validate();
6232
    }
6233
 
3430 rajveer 6234
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3383 chandransh 6235
      oprot.writeStructBegin(STRUCT_DESC);
6236
 
4496 mandeep.dh 6237
      if (this.isSetWex()) {
3383 chandransh 6238
        oprot.writeFieldBegin(WEX_FIELD_DESC);
6239
        this.wex.write(oprot);
6240
        oprot.writeFieldEnd();
6241
      }
6242
      oprot.writeFieldStop();
6243
      oprot.writeStructEnd();
6244
    }
6245
 
6246
    @Override
6247
    public String toString() {
4496 mandeep.dh 6248
      StringBuilder sb = new StringBuilder("scan_result(");
3383 chandransh 6249
      boolean first = true;
6250
 
6251
      sb.append("wex:");
6252
      if (this.wex == null) {
6253
        sb.append("null");
6254
      } else {
6255
        sb.append(this.wex);
6256
      }
6257
      first = false;
6258
      sb.append(")");
6259
      return sb.toString();
6260
    }
6261
 
3430 rajveer 6262
    public void validate() throws org.apache.thrift.TException {
3383 chandransh 6263
      // check for required fields
6264
    }
6265
 
3430 rajveer 6266
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6267
      try {
6268
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6269
      } catch (org.apache.thrift.TException te) {
6270
        throw new java.io.IOException(te);
6271
      }
6272
    }
6273
 
6274
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6275
      try {
6276
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6277
      } catch (org.apache.thrift.TException te) {
6278
        throw new java.io.IOException(te);
6279
      }
6280
    }
6281
 
3383 chandransh 6282
  }
6283
 
4496 mandeep.dh 6284
  public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable   {
6285
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
2820 chandransh 6286
 
4555 mandeep.dh 6287
    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 6288
    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);
6289
    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 6290
    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);
6291
    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);
6292
    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 6293
 
4555 mandeep.dh 6294
    private String serialNumber; // required
3430 rajveer 6295
    private ScanType type; // required
4496 mandeep.dh 6296
    private long orderId; // required
5110 mandeep.dh 6297
    private long fulfilmentWarehouseId; // required
6298
    private double quantity; // required
6299
    private long billingWarehouseId; // required
2820 chandransh 6300
 
6301
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6302
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4555 mandeep.dh 6303
      SERIAL_NUMBER((short)1, "serialNumber"),
2820 chandransh 6304
      /**
6305
       * 
6306
       * @see ScanType
6307
       */
4496 mandeep.dh 6308
      TYPE((short)2, "type"),
6309
      ORDER_ID((short)3, "orderId"),
5110 mandeep.dh 6310
      FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
6311
      QUANTITY((short)5, "quantity"),
6312
      BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
2820 chandransh 6313
 
6314
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6315
 
6316
      static {
6317
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6318
          byName.put(field.getFieldName(), field);
6319
        }
6320
      }
6321
 
6322
      /**
6323
       * Find the _Fields constant that matches fieldId, or null if its not found.
6324
       */
6325
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6326
        switch(fieldId) {
4555 mandeep.dh 6327
          case 1: // SERIAL_NUMBER
6328
            return SERIAL_NUMBER;
4496 mandeep.dh 6329
          case 2: // TYPE
3430 rajveer 6330
            return TYPE;
4496 mandeep.dh 6331
          case 3: // ORDER_ID
6332
            return ORDER_ID;
5110 mandeep.dh 6333
          case 4: // FULFILMENT_WAREHOUSE_ID
6334
            return FULFILMENT_WAREHOUSE_ID;
6335
          case 5: // QUANTITY
6336
            return QUANTITY;
6337
          case 6: // BILLING_WAREHOUSE_ID
6338
            return BILLING_WAREHOUSE_ID;
3430 rajveer 6339
          default:
6340
            return null;
6341
        }
2820 chandransh 6342
      }
6343
 
6344
      /**
6345
       * Find the _Fields constant that matches fieldId, throwing an exception
6346
       * if it is not found.
6347
       */
6348
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6349
        _Fields fields = findByThriftId(fieldId);
6350
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6351
        return fields;
6352
      }
6353
 
6354
      /**
6355
       * Find the _Fields constant that matches name, or null if its not found.
6356
       */
6357
      public static _Fields findByName(String name) {
6358
        return byName.get(name);
6359
      }
6360
 
6361
      private final short _thriftId;
6362
      private final String _fieldName;
6363
 
6364
      _Fields(short thriftId, String fieldName) {
6365
        _thriftId = thriftId;
6366
        _fieldName = fieldName;
6367
      }
6368
 
6369
      public short getThriftFieldId() {
6370
        return _thriftId;
6371
      }
6372
 
6373
      public String getFieldName() {
6374
        return _fieldName;
6375
      }
6376
    }
6377
 
6378
    // isset id assignments
4555 mandeep.dh 6379
    private static final int __ORDERID_ISSET_ID = 0;
5110 mandeep.dh 6380
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
6381
    private static final int __QUANTITY_ISSET_ID = 2;
6382
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
6383
    private BitSet __isset_bit_vector = new BitSet(4);
2820 chandransh 6384
 
3430 rajveer 6385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 6386
    static {
3430 rajveer 6387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4555 mandeep.dh 6388
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 6390
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6391
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
4496 mandeep.dh 6392
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6393
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 6394
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 6395
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 6396
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6397
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
6398
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6399
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 6400
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 6401
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
2820 chandransh 6402
    }
6403
 
4496 mandeep.dh 6404
    public scanSerializedItemForOrder_args() {
2820 chandransh 6405
    }
6406
 
4496 mandeep.dh 6407
    public scanSerializedItemForOrder_args(
4555 mandeep.dh 6408
      String serialNumber,
4496 mandeep.dh 6409
      ScanType type,
6410
      long orderId,
5110 mandeep.dh 6411
      long fulfilmentWarehouseId,
6412
      double quantity,
6413
      long billingWarehouseId)
2820 chandransh 6414
    {
6415
      this();
4555 mandeep.dh 6416
      this.serialNumber = serialNumber;
2820 chandransh 6417
      this.type = type;
4496 mandeep.dh 6418
      this.orderId = orderId;
6419
      setOrderIdIsSet(true);
5110 mandeep.dh 6420
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6421
      setFulfilmentWarehouseIdIsSet(true);
6422
      this.quantity = quantity;
6423
      setQuantityIsSet(true);
6424
      this.billingWarehouseId = billingWarehouseId;
6425
      setBillingWarehouseIdIsSet(true);
2820 chandransh 6426
    }
6427
 
6428
    /**
6429
     * Performs a deep copy on <i>other</i>.
6430
     */
4496 mandeep.dh 6431
    public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
2820 chandransh 6432
      __isset_bit_vector.clear();
6433
      __isset_bit_vector.or(other.__isset_bit_vector);
4555 mandeep.dh 6434
      if (other.isSetSerialNumber()) {
6435
        this.serialNumber = other.serialNumber;
6436
      }
2820 chandransh 6437
      if (other.isSetType()) {
6438
        this.type = other.type;
6439
      }
4496 mandeep.dh 6440
      this.orderId = other.orderId;
5110 mandeep.dh 6441
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
6442
      this.quantity = other.quantity;
6443
      this.billingWarehouseId = other.billingWarehouseId;
2820 chandransh 6444
    }
6445
 
4496 mandeep.dh 6446
    public scanSerializedItemForOrder_args deepCopy() {
6447
      return new scanSerializedItemForOrder_args(this);
2820 chandransh 6448
    }
6449
 
3430 rajveer 6450
    @Override
6451
    public void clear() {
4555 mandeep.dh 6452
      this.serialNumber = null;
3430 rajveer 6453
      this.type = null;
4496 mandeep.dh 6454
      setOrderIdIsSet(false);
6455
      this.orderId = 0;
5110 mandeep.dh 6456
      setFulfilmentWarehouseIdIsSet(false);
6457
      this.fulfilmentWarehouseId = 0;
6458
      setQuantityIsSet(false);
6459
      this.quantity = 0.0;
6460
      setBillingWarehouseIdIsSet(false);
6461
      this.billingWarehouseId = 0;
2820 chandransh 6462
    }
6463
 
4555 mandeep.dh 6464
    public String getSerialNumber() {
6465
      return this.serialNumber;
2820 chandransh 6466
    }
6467
 
4555 mandeep.dh 6468
    public void setSerialNumber(String serialNumber) {
6469
      this.serialNumber = serialNumber;
2820 chandransh 6470
    }
6471
 
4555 mandeep.dh 6472
    public void unsetSerialNumber() {
6473
      this.serialNumber = null;
2820 chandransh 6474
    }
6475
 
4555 mandeep.dh 6476
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
6477
    public boolean isSetSerialNumber() {
6478
      return this.serialNumber != null;
2820 chandransh 6479
    }
6480
 
4555 mandeep.dh 6481
    public void setSerialNumberIsSet(boolean value) {
6482
      if (!value) {
6483
        this.serialNumber = null;
6484
      }
2820 chandransh 6485
    }
6486
 
4496 mandeep.dh 6487
    /**
6488
     * 
6489
     * @see ScanType
6490
     */
6491
    public ScanType getType() {
6492
      return this.type;
2820 chandransh 6493
    }
6494
 
4496 mandeep.dh 6495
    /**
6496
     * 
6497
     * @see ScanType
6498
     */
6499
    public void setType(ScanType type) {
6500
      this.type = type;
2820 chandransh 6501
    }
6502
 
4496 mandeep.dh 6503
    public void unsetType() {
6504
      this.type = null;
2820 chandransh 6505
    }
6506
 
4496 mandeep.dh 6507
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6508
    public boolean isSetType() {
6509
      return this.type != null;
2820 chandransh 6510
    }
6511
 
4496 mandeep.dh 6512
    public void setTypeIsSet(boolean value) {
2820 chandransh 6513
      if (!value) {
4496 mandeep.dh 6514
        this.type = null;
2820 chandransh 6515
      }
6516
    }
6517
 
4496 mandeep.dh 6518
    public long getOrderId() {
6519
      return this.orderId;
2820 chandransh 6520
    }
6521
 
4496 mandeep.dh 6522
    public void setOrderId(long orderId) {
6523
      this.orderId = orderId;
6524
      setOrderIdIsSet(true);
2820 chandransh 6525
    }
6526
 
4496 mandeep.dh 6527
    public void unsetOrderId() {
6528
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2820 chandransh 6529
    }
6530
 
4496 mandeep.dh 6531
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
6532
    public boolean isSetOrderId() {
6533
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2820 chandransh 6534
    }
6535
 
4496 mandeep.dh 6536
    public void setOrderIdIsSet(boolean value) {
6537
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2820 chandransh 6538
    }
6539
 
5110 mandeep.dh 6540
    public long getFulfilmentWarehouseId() {
6541
      return this.fulfilmentWarehouseId;
2820 chandransh 6542
    }
6543
 
5110 mandeep.dh 6544
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
6545
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6546
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 6547
    }
6548
 
5110 mandeep.dh 6549
    public void unsetFulfilmentWarehouseId() {
6550
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 6551
    }
6552
 
5110 mandeep.dh 6553
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
6554
    public boolean isSetFulfilmentWarehouseId() {
6555
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 6556
    }
6557
 
5110 mandeep.dh 6558
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
6559
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
2820 chandransh 6560
    }
6561
 
5110 mandeep.dh 6562
    public double getQuantity() {
6563
      return this.quantity;
6564
    }
6565
 
6566
    public void setQuantity(double quantity) {
6567
      this.quantity = quantity;
6568
      setQuantityIsSet(true);
6569
    }
6570
 
6571
    public void unsetQuantity() {
6572
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
6573
    }
6574
 
6575
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
6576
    public boolean isSetQuantity() {
6577
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
6578
    }
6579
 
6580
    public void setQuantityIsSet(boolean value) {
6581
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
6582
    }
6583
 
6584
    public long getBillingWarehouseId() {
6585
      return this.billingWarehouseId;
6586
    }
6587
 
6588
    public void setBillingWarehouseId(long billingWarehouseId) {
6589
      this.billingWarehouseId = billingWarehouseId;
6590
      setBillingWarehouseIdIsSet(true);
6591
    }
6592
 
6593
    public void unsetBillingWarehouseId() {
6594
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
6595
    }
6596
 
6597
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
6598
    public boolean isSetBillingWarehouseId() {
6599
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
6600
    }
6601
 
6602
    public void setBillingWarehouseIdIsSet(boolean value) {
6603
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
6604
    }
6605
 
2820 chandransh 6606
    public void setFieldValue(_Fields field, Object value) {
6607
      switch (field) {
4555 mandeep.dh 6608
      case SERIAL_NUMBER:
2820 chandransh 6609
        if (value == null) {
4555 mandeep.dh 6610
          unsetSerialNumber();
2820 chandransh 6611
        } else {
4555 mandeep.dh 6612
          setSerialNumber((String)value);
2820 chandransh 6613
        }
6614
        break;
6615
 
4496 mandeep.dh 6616
      case TYPE:
2820 chandransh 6617
        if (value == null) {
4496 mandeep.dh 6618
          unsetType();
2820 chandransh 6619
        } else {
4496 mandeep.dh 6620
          setType((ScanType)value);
2820 chandransh 6621
        }
6622
        break;
6623
 
4496 mandeep.dh 6624
      case ORDER_ID:
2820 chandransh 6625
        if (value == null) {
4496 mandeep.dh 6626
          unsetOrderId();
2820 chandransh 6627
        } else {
4496 mandeep.dh 6628
          setOrderId((Long)value);
2820 chandransh 6629
        }
6630
        break;
6631
 
5110 mandeep.dh 6632
      case FULFILMENT_WAREHOUSE_ID:
2820 chandransh 6633
        if (value == null) {
5110 mandeep.dh 6634
          unsetFulfilmentWarehouseId();
2820 chandransh 6635
        } else {
5110 mandeep.dh 6636
          setFulfilmentWarehouseId((Long)value);
2820 chandransh 6637
        }
6638
        break;
6639
 
5110 mandeep.dh 6640
      case QUANTITY:
6641
        if (value == null) {
6642
          unsetQuantity();
6643
        } else {
6644
          setQuantity((Double)value);
6645
        }
6646
        break;
6647
 
6648
      case BILLING_WAREHOUSE_ID:
6649
        if (value == null) {
6650
          unsetBillingWarehouseId();
6651
        } else {
6652
          setBillingWarehouseId((Long)value);
6653
        }
6654
        break;
6655
 
2820 chandransh 6656
      }
6657
    }
6658
 
6659
    public Object getFieldValue(_Fields field) {
6660
      switch (field) {
4555 mandeep.dh 6661
      case SERIAL_NUMBER:
6662
        return getSerialNumber();
2820 chandransh 6663
 
6664
      case TYPE:
6665
        return getType();
6666
 
4496 mandeep.dh 6667
      case ORDER_ID:
6668
        return Long.valueOf(getOrderId());
6669
 
5110 mandeep.dh 6670
      case FULFILMENT_WAREHOUSE_ID:
6671
        return Long.valueOf(getFulfilmentWarehouseId());
4496 mandeep.dh 6672
 
5110 mandeep.dh 6673
      case QUANTITY:
6674
        return Double.valueOf(getQuantity());
6675
 
6676
      case BILLING_WAREHOUSE_ID:
6677
        return Long.valueOf(getBillingWarehouseId());
6678
 
2820 chandransh 6679
      }
6680
      throw new IllegalStateException();
6681
    }
6682
 
3430 rajveer 6683
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6684
    public boolean isSet(_Fields field) {
6685
      if (field == null) {
6686
        throw new IllegalArgumentException();
6687
      }
2820 chandransh 6688
 
6689
      switch (field) {
4555 mandeep.dh 6690
      case SERIAL_NUMBER:
6691
        return isSetSerialNumber();
2820 chandransh 6692
      case TYPE:
6693
        return isSetType();
4496 mandeep.dh 6694
      case ORDER_ID:
6695
        return isSetOrderId();
5110 mandeep.dh 6696
      case FULFILMENT_WAREHOUSE_ID:
6697
        return isSetFulfilmentWarehouseId();
6698
      case QUANTITY:
6699
        return isSetQuantity();
6700
      case BILLING_WAREHOUSE_ID:
6701
        return isSetBillingWarehouseId();
2820 chandransh 6702
      }
6703
      throw new IllegalStateException();
6704
    }
6705
 
6706
    @Override
6707
    public boolean equals(Object that) {
6708
      if (that == null)
6709
        return false;
4496 mandeep.dh 6710
      if (that instanceof scanSerializedItemForOrder_args)
6711
        return this.equals((scanSerializedItemForOrder_args)that);
2820 chandransh 6712
      return false;
6713
    }
6714
 
4496 mandeep.dh 6715
    public boolean equals(scanSerializedItemForOrder_args that) {
2820 chandransh 6716
      if (that == null)
6717
        return false;
6718
 
4555 mandeep.dh 6719
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
6720
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
6721
      if (this_present_serialNumber || that_present_serialNumber) {
6722
        if (!(this_present_serialNumber && that_present_serialNumber))
2820 chandransh 6723
          return false;
4555 mandeep.dh 6724
        if (!this.serialNumber.equals(that.serialNumber))
2820 chandransh 6725
          return false;
6726
      }
6727
 
4496 mandeep.dh 6728
      boolean this_present_type = true && this.isSetType();
6729
      boolean that_present_type = true && that.isSetType();
6730
      if (this_present_type || that_present_type) {
6731
        if (!(this_present_type && that_present_type))
2820 chandransh 6732
          return false;
4496 mandeep.dh 6733
        if (!this.type.equals(that.type))
2820 chandransh 6734
          return false;
6735
      }
6736
 
4496 mandeep.dh 6737
      boolean this_present_orderId = true;
6738
      boolean that_present_orderId = true;
6739
      if (this_present_orderId || that_present_orderId) {
6740
        if (!(this_present_orderId && that_present_orderId))
2820 chandransh 6741
          return false;
4496 mandeep.dh 6742
        if (this.orderId != that.orderId)
2820 chandransh 6743
          return false;
6744
      }
6745
 
5110 mandeep.dh 6746
      boolean this_present_fulfilmentWarehouseId = true;
6747
      boolean that_present_fulfilmentWarehouseId = true;
6748
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
6749
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
2820 chandransh 6750
          return false;
5110 mandeep.dh 6751
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
2820 chandransh 6752
          return false;
6753
      }
6754
 
5110 mandeep.dh 6755
      boolean this_present_quantity = true;
6756
      boolean that_present_quantity = true;
6757
      if (this_present_quantity || that_present_quantity) {
6758
        if (!(this_present_quantity && that_present_quantity))
6759
          return false;
6760
        if (this.quantity != that.quantity)
6761
          return false;
6762
      }
6763
 
6764
      boolean this_present_billingWarehouseId = true;
6765
      boolean that_present_billingWarehouseId = true;
6766
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
6767
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
6768
          return false;
6769
        if (this.billingWarehouseId != that.billingWarehouseId)
6770
          return false;
6771
      }
6772
 
2820 chandransh 6773
      return true;
6774
    }
6775
 
6776
    @Override
6777
    public int hashCode() {
6778
      return 0;
6779
    }
6780
 
4496 mandeep.dh 6781
    public int compareTo(scanSerializedItemForOrder_args other) {
2820 chandransh 6782
      if (!getClass().equals(other.getClass())) {
6783
        return getClass().getName().compareTo(other.getClass().getName());
6784
      }
6785
 
6786
      int lastComparison = 0;
4496 mandeep.dh 6787
      scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
2820 chandransh 6788
 
4555 mandeep.dh 6789
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
2820 chandransh 6790
      if (lastComparison != 0) {
6791
        return lastComparison;
6792
      }
4555 mandeep.dh 6793
      if (isSetSerialNumber()) {
6794
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
3430 rajveer 6795
        if (lastComparison != 0) {
6796
          return lastComparison;
6797
        }
2820 chandransh 6798
      }
4496 mandeep.dh 6799
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2820 chandransh 6800
      if (lastComparison != 0) {
6801
        return lastComparison;
6802
      }
4496 mandeep.dh 6803
      if (isSetType()) {
6804
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 6805
        if (lastComparison != 0) {
6806
          return lastComparison;
6807
        }
2820 chandransh 6808
      }
4496 mandeep.dh 6809
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2820 chandransh 6810
      if (lastComparison != 0) {
6811
        return lastComparison;
6812
      }
4496 mandeep.dh 6813
      if (isSetOrderId()) {
6814
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
3430 rajveer 6815
        if (lastComparison != 0) {
6816
          return lastComparison;
6817
        }
2820 chandransh 6818
      }
5110 mandeep.dh 6819
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
2820 chandransh 6820
      if (lastComparison != 0) {
6821
        return lastComparison;
6822
      }
5110 mandeep.dh 6823
      if (isSetFulfilmentWarehouseId()) {
6824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
3430 rajveer 6825
        if (lastComparison != 0) {
6826
          return lastComparison;
6827
        }
2820 chandransh 6828
      }
5110 mandeep.dh 6829
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
6830
      if (lastComparison != 0) {
6831
        return lastComparison;
6832
      }
6833
      if (isSetQuantity()) {
6834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
6835
        if (lastComparison != 0) {
6836
          return lastComparison;
6837
        }
6838
      }
6839
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
6840
      if (lastComparison != 0) {
6841
        return lastComparison;
6842
      }
6843
      if (isSetBillingWarehouseId()) {
6844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
6845
        if (lastComparison != 0) {
6846
          return lastComparison;
6847
        }
6848
      }
2820 chandransh 6849
      return 0;
6850
    }
6851
 
3430 rajveer 6852
    public _Fields fieldForId(int fieldId) {
6853
      return _Fields.findByThriftId(fieldId);
6854
    }
6855
 
6856
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6857
      org.apache.thrift.protocol.TField field;
2820 chandransh 6858
      iprot.readStructBegin();
6859
      while (true)
6860
      {
6861
        field = iprot.readFieldBegin();
3430 rajveer 6862
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 6863
          break;
6864
        }
3430 rajveer 6865
        switch (field.id) {
4555 mandeep.dh 6866
          case 1: // SERIAL_NUMBER
6867
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6868
              this.serialNumber = iprot.readString();
3430 rajveer 6869
            } else { 
6870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6871
            }
6872
            break;
4496 mandeep.dh 6873
          case 2: // TYPE
6874
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6875
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 6876
            } else { 
6877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6878
            }
6879
            break;
4496 mandeep.dh 6880
          case 3: // ORDER_ID
6881
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6882
              this.orderId = iprot.readI64();
6883
              setOrderIdIsSet(true);
3430 rajveer 6884
            } else { 
6885
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6886
            }
6887
            break;
5110 mandeep.dh 6888
          case 4: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 6889
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5110 mandeep.dh 6890
              this.fulfilmentWarehouseId = iprot.readI64();
6891
              setFulfilmentWarehouseIdIsSet(true);
3430 rajveer 6892
            } else { 
6893
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6894
            }
6895
            break;
5110 mandeep.dh 6896
          case 5: // QUANTITY
6897
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
6898
              this.quantity = iprot.readDouble();
6899
              setQuantityIsSet(true);
6900
            } else { 
6901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6902
            }
6903
            break;
6904
          case 6: // BILLING_WAREHOUSE_ID
6905
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6906
              this.billingWarehouseId = iprot.readI64();
6907
              setBillingWarehouseIdIsSet(true);
6908
            } else { 
6909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6910
            }
6911
            break;
3430 rajveer 6912
          default:
6913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 6914
        }
3430 rajveer 6915
        iprot.readFieldEnd();
2820 chandransh 6916
      }
6917
      iprot.readStructEnd();
6918
      validate();
6919
    }
6920
 
3430 rajveer 6921
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 6922
      validate();
6923
 
6924
      oprot.writeStructBegin(STRUCT_DESC);
4555 mandeep.dh 6925
      if (this.serialNumber != null) {
6926
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
6927
        oprot.writeString(this.serialNumber);
6928
        oprot.writeFieldEnd();
6929
      }
2820 chandransh 6930
      if (this.type != null) {
6931
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6932
        oprot.writeI32(this.type.getValue());
6933
        oprot.writeFieldEnd();
6934
      }
4496 mandeep.dh 6935
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
6936
      oprot.writeI64(this.orderId);
6937
      oprot.writeFieldEnd();
5110 mandeep.dh 6938
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
6939
      oprot.writeI64(this.fulfilmentWarehouseId);
4496 mandeep.dh 6940
      oprot.writeFieldEnd();
5110 mandeep.dh 6941
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
6942
      oprot.writeDouble(this.quantity);
6943
      oprot.writeFieldEnd();
6944
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
6945
      oprot.writeI64(this.billingWarehouseId);
6946
      oprot.writeFieldEnd();
2820 chandransh 6947
      oprot.writeFieldStop();
6948
      oprot.writeStructEnd();
6949
    }
6950
 
6951
    @Override
6952
    public String toString() {
4496 mandeep.dh 6953
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
2820 chandransh 6954
      boolean first = true;
6955
 
4555 mandeep.dh 6956
      sb.append("serialNumber:");
6957
      if (this.serialNumber == null) {
6958
        sb.append("null");
6959
      } else {
6960
        sb.append(this.serialNumber);
6961
      }
2820 chandransh 6962
      first = false;
6963
      if (!first) sb.append(", ");
4496 mandeep.dh 6964
      sb.append("type:");
6965
      if (this.type == null) {
2820 chandransh 6966
        sb.append("null");
6967
      } else {
4496 mandeep.dh 6968
        sb.append(this.type);
2820 chandransh 6969
      }
6970
      first = false;
6971
      if (!first) sb.append(", ");
4496 mandeep.dh 6972
      sb.append("orderId:");
6973
      sb.append(this.orderId);
2820 chandransh 6974
      first = false;
6975
      if (!first) sb.append(", ");
5110 mandeep.dh 6976
      sb.append("fulfilmentWarehouseId:");
6977
      sb.append(this.fulfilmentWarehouseId);
2820 chandransh 6978
      first = false;
5110 mandeep.dh 6979
      if (!first) sb.append(", ");
6980
      sb.append("quantity:");
6981
      sb.append(this.quantity);
6982
      first = false;
6983
      if (!first) sb.append(", ");
6984
      sb.append("billingWarehouseId:");
6985
      sb.append(this.billingWarehouseId);
6986
      first = false;
2820 chandransh 6987
      sb.append(")");
6988
      return sb.toString();
6989
    }
6990
 
3430 rajveer 6991
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 6992
      // check for required fields
6993
    }
6994
 
3430 rajveer 6995
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6996
      try {
6997
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6998
      } catch (org.apache.thrift.TException te) {
6999
        throw new java.io.IOException(te);
7000
      }
7001
    }
7002
 
7003
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7004
      try {
7005
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7006
      } catch (org.apache.thrift.TException te) {
7007
        throw new java.io.IOException(te);
7008
      }
7009
    }
7010
 
2820 chandransh 7011
  }
7012
 
4496 mandeep.dh 7013
  public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable   {
7014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
2820 chandransh 7015
 
4555 mandeep.dh 7016
    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 7017
    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 7018
 
4555 mandeep.dh 7019
    private InventoryItem success; // required
3430 rajveer 7020
    private WarehouseServiceException wex; // required
2820 chandransh 7021
 
7022
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7023
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4496 mandeep.dh 7024
      SUCCESS((short)0, "success"),
2820 chandransh 7025
      WEX((short)1, "wex");
7026
 
7027
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7028
 
7029
      static {
7030
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7031
          byName.put(field.getFieldName(), field);
7032
        }
7033
      }
7034
 
7035
      /**
7036
       * Find the _Fields constant that matches fieldId, or null if its not found.
7037
       */
7038
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7039
        switch(fieldId) {
4496 mandeep.dh 7040
          case 0: // SUCCESS
7041
            return SUCCESS;
3430 rajveer 7042
          case 1: // WEX
7043
            return WEX;
7044
          default:
7045
            return null;
7046
        }
2820 chandransh 7047
      }
7048
 
7049
      /**
7050
       * Find the _Fields constant that matches fieldId, throwing an exception
7051
       * if it is not found.
7052
       */
7053
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7054
        _Fields fields = findByThriftId(fieldId);
7055
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7056
        return fields;
7057
      }
7058
 
7059
      /**
7060
       * Find the _Fields constant that matches name, or null if its not found.
7061
       */
7062
      public static _Fields findByName(String name) {
7063
        return byName.get(name);
7064
      }
7065
 
7066
      private final short _thriftId;
7067
      private final String _fieldName;
7068
 
7069
      _Fields(short thriftId, String fieldName) {
7070
        _thriftId = thriftId;
7071
        _fieldName = fieldName;
7072
      }
7073
 
7074
      public short getThriftFieldId() {
7075
        return _thriftId;
7076
      }
7077
 
7078
      public String getFieldName() {
7079
        return _fieldName;
7080
      }
7081
    }
7082
 
7083
    // isset id assignments
7084
 
3430 rajveer 7085
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 7086
    static {
3430 rajveer 7087
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4496 mandeep.dh 7088
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4555 mandeep.dh 7089
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 7090
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7091
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7092
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 7093
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
2820 chandransh 7094
    }
7095
 
4496 mandeep.dh 7096
    public scanSerializedItemForOrder_result() {
2820 chandransh 7097
    }
7098
 
4496 mandeep.dh 7099
    public scanSerializedItemForOrder_result(
4555 mandeep.dh 7100
      InventoryItem success,
2820 chandransh 7101
      WarehouseServiceException wex)
7102
    {
7103
      this();
4496 mandeep.dh 7104
      this.success = success;
2820 chandransh 7105
      this.wex = wex;
7106
    }
7107
 
7108
    /**
7109
     * Performs a deep copy on <i>other</i>.
7110
     */
4496 mandeep.dh 7111
    public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
4555 mandeep.dh 7112
      if (other.isSetSuccess()) {
7113
        this.success = new InventoryItem(other.success);
7114
      }
2820 chandransh 7115
      if (other.isSetWex()) {
7116
        this.wex = new WarehouseServiceException(other.wex);
7117
      }
7118
    }
7119
 
4496 mandeep.dh 7120
    public scanSerializedItemForOrder_result deepCopy() {
7121
      return new scanSerializedItemForOrder_result(this);
2820 chandransh 7122
    }
7123
 
3430 rajveer 7124
    @Override
7125
    public void clear() {
4555 mandeep.dh 7126
      this.success = null;
3430 rajveer 7127
      this.wex = null;
2820 chandransh 7128
    }
7129
 
4555 mandeep.dh 7130
    public InventoryItem getSuccess() {
4496 mandeep.dh 7131
      return this.success;
7132
    }
7133
 
4555 mandeep.dh 7134
    public void setSuccess(InventoryItem success) {
4496 mandeep.dh 7135
      this.success = success;
7136
    }
7137
 
7138
    public void unsetSuccess() {
4555 mandeep.dh 7139
      this.success = null;
4496 mandeep.dh 7140
    }
7141
 
7142
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7143
    public boolean isSetSuccess() {
4555 mandeep.dh 7144
      return this.success != null;
4496 mandeep.dh 7145
    }
7146
 
7147
    public void setSuccessIsSet(boolean value) {
4555 mandeep.dh 7148
      if (!value) {
7149
        this.success = null;
7150
      }
4496 mandeep.dh 7151
    }
7152
 
2820 chandransh 7153
    public WarehouseServiceException getWex() {
7154
      return this.wex;
7155
    }
7156
 
3430 rajveer 7157
    public void setWex(WarehouseServiceException wex) {
2820 chandransh 7158
      this.wex = wex;
7159
    }
7160
 
7161
    public void unsetWex() {
7162
      this.wex = null;
7163
    }
7164
 
3430 rajveer 7165
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
2820 chandransh 7166
    public boolean isSetWex() {
7167
      return this.wex != null;
7168
    }
7169
 
7170
    public void setWexIsSet(boolean value) {
7171
      if (!value) {
7172
        this.wex = null;
7173
      }
7174
    }
7175
 
7176
    public void setFieldValue(_Fields field, Object value) {
7177
      switch (field) {
4496 mandeep.dh 7178
      case SUCCESS:
7179
        if (value == null) {
7180
          unsetSuccess();
7181
        } else {
4555 mandeep.dh 7182
          setSuccess((InventoryItem)value);
4496 mandeep.dh 7183
        }
7184
        break;
7185
 
2820 chandransh 7186
      case WEX:
7187
        if (value == null) {
7188
          unsetWex();
7189
        } else {
7190
          setWex((WarehouseServiceException)value);
7191
        }
7192
        break;
7193
 
7194
      }
7195
    }
7196
 
7197
    public Object getFieldValue(_Fields field) {
7198
      switch (field) {
4496 mandeep.dh 7199
      case SUCCESS:
4555 mandeep.dh 7200
        return getSuccess();
4496 mandeep.dh 7201
 
2820 chandransh 7202
      case WEX:
7203
        return getWex();
7204
 
7205
      }
7206
      throw new IllegalStateException();
7207
    }
7208
 
3430 rajveer 7209
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7210
    public boolean isSet(_Fields field) {
7211
      if (field == null) {
7212
        throw new IllegalArgumentException();
7213
      }
2820 chandransh 7214
 
7215
      switch (field) {
4496 mandeep.dh 7216
      case SUCCESS:
7217
        return isSetSuccess();
2820 chandransh 7218
      case WEX:
7219
        return isSetWex();
7220
      }
7221
      throw new IllegalStateException();
7222
    }
7223
 
7224
    @Override
7225
    public boolean equals(Object that) {
7226
      if (that == null)
7227
        return false;
4496 mandeep.dh 7228
      if (that instanceof scanSerializedItemForOrder_result)
7229
        return this.equals((scanSerializedItemForOrder_result)that);
2820 chandransh 7230
      return false;
7231
    }
7232
 
4496 mandeep.dh 7233
    public boolean equals(scanSerializedItemForOrder_result that) {
2820 chandransh 7234
      if (that == null)
7235
        return false;
7236
 
4555 mandeep.dh 7237
      boolean this_present_success = true && this.isSetSuccess();
7238
      boolean that_present_success = true && that.isSetSuccess();
4496 mandeep.dh 7239
      if (this_present_success || that_present_success) {
7240
        if (!(this_present_success && that_present_success))
7241
          return false;
4555 mandeep.dh 7242
        if (!this.success.equals(that.success))
4496 mandeep.dh 7243
          return false;
7244
      }
7245
 
2820 chandransh 7246
      boolean this_present_wex = true && this.isSetWex();
7247
      boolean that_present_wex = true && that.isSetWex();
7248
      if (this_present_wex || that_present_wex) {
7249
        if (!(this_present_wex && that_present_wex))
7250
          return false;
7251
        if (!this.wex.equals(that.wex))
7252
          return false;
7253
      }
7254
 
7255
      return true;
7256
    }
7257
 
7258
    @Override
7259
    public int hashCode() {
7260
      return 0;
7261
    }
7262
 
4496 mandeep.dh 7263
    public int compareTo(scanSerializedItemForOrder_result other) {
2820 chandransh 7264
      if (!getClass().equals(other.getClass())) {
7265
        return getClass().getName().compareTo(other.getClass().getName());
7266
      }
7267
 
7268
      int lastComparison = 0;
4496 mandeep.dh 7269
      scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
2820 chandransh 7270
 
4496 mandeep.dh 7271
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7272
      if (lastComparison != 0) {
7273
        return lastComparison;
7274
      }
7275
      if (isSetSuccess()) {
7276
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7277
        if (lastComparison != 0) {
7278
          return lastComparison;
7279
        }
7280
      }
3430 rajveer 7281
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 7282
      if (lastComparison != 0) {
7283
        return lastComparison;
7284
      }
3430 rajveer 7285
      if (isSetWex()) {
7286
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
7287
        if (lastComparison != 0) {
7288
          return lastComparison;
7289
        }
2820 chandransh 7290
      }
7291
      return 0;
7292
    }
7293
 
3430 rajveer 7294
    public _Fields fieldForId(int fieldId) {
7295
      return _Fields.findByThriftId(fieldId);
7296
    }
7297
 
7298
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7299
      org.apache.thrift.protocol.TField field;
2820 chandransh 7300
      iprot.readStructBegin();
7301
      while (true)
7302
      {
7303
        field = iprot.readFieldBegin();
3430 rajveer 7304
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 7305
          break;
7306
        }
3430 rajveer 7307
        switch (field.id) {
4496 mandeep.dh 7308
          case 0: // SUCCESS
4555 mandeep.dh 7309
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7310
              this.success = new InventoryItem();
7311
              this.success.read(iprot);
4496 mandeep.dh 7312
            } else { 
7313
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7314
            }
7315
            break;
3430 rajveer 7316
          case 1: // WEX
7317
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7318
              this.wex = new WarehouseServiceException();
7319
              this.wex.read(iprot);
7320
            } else { 
7321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7322
            }
7323
            break;
7324
          default:
7325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 7326
        }
3430 rajveer 7327
        iprot.readFieldEnd();
2820 chandransh 7328
      }
7329
      iprot.readStructEnd();
7330
      validate();
7331
    }
7332
 
3430 rajveer 7333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 7334
      oprot.writeStructBegin(STRUCT_DESC);
7335
 
4496 mandeep.dh 7336
      if (this.isSetSuccess()) {
7337
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4555 mandeep.dh 7338
        this.success.write(oprot);
4496 mandeep.dh 7339
        oprot.writeFieldEnd();
7340
      } else if (this.isSetWex()) {
2820 chandransh 7341
        oprot.writeFieldBegin(WEX_FIELD_DESC);
7342
        this.wex.write(oprot);
7343
        oprot.writeFieldEnd();
7344
      }
7345
      oprot.writeFieldStop();
7346
      oprot.writeStructEnd();
7347
    }
7348
 
7349
    @Override
7350
    public String toString() {
4496 mandeep.dh 7351
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
2820 chandransh 7352
      boolean first = true;
7353
 
4496 mandeep.dh 7354
      sb.append("success:");
4555 mandeep.dh 7355
      if (this.success == null) {
7356
        sb.append("null");
7357
      } else {
7358
        sb.append(this.success);
7359
      }
4496 mandeep.dh 7360
      first = false;
7361
      if (!first) sb.append(", ");
2820 chandransh 7362
      sb.append("wex:");
7363
      if (this.wex == null) {
7364
        sb.append("null");
7365
      } else {
7366
        sb.append(this.wex);
7367
      }
7368
      first = false;
7369
      sb.append(")");
7370
      return sb.toString();
7371
    }
7372
 
3430 rajveer 7373
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 7374
      // check for required fields
7375
    }
7376
 
3430 rajveer 7377
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7378
      try {
7379
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7380
      } catch (org.apache.thrift.TException te) {
7381
        throw new java.io.IOException(te);
7382
      }
7383
    }
7384
 
7385
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7386
      try {
7387
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7388
      } catch (org.apache.thrift.TException te) {
7389
        throw new java.io.IOException(te);
7390
      }
7391
    }
7392
 
2820 chandransh 7393
  }
7394
 
4496 mandeep.dh 7395
  public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable   {
7396
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
2820 chandransh 7397
 
5361 mandeep.dh 7398
    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 7399
    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);
7400
    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);
7401
    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 7402
    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 7403
    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 7404
 
5361 mandeep.dh 7405
    private InventoryItem inventoryItem; // required
3430 rajveer 7406
    private ScanType type; // required
4496 mandeep.dh 7407
    private long quantity; // required
7408
    private long orderId; // required
5110 mandeep.dh 7409
    private long fulfilmentWarehouseId; // required
5361 mandeep.dh 7410
    private long billingWarehouseId; // required
2820 chandransh 7411
 
7412
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7413
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 7414
      INVENTORY_ITEM((short)1, "inventoryItem"),
2820 chandransh 7415
      /**
7416
       * 
7417
       * @see ScanType
7418
       */
4496 mandeep.dh 7419
      TYPE((short)2, "type"),
7420
      QUANTITY((short)3, "quantity"),
7421
      ORDER_ID((short)4, "orderId"),
5361 mandeep.dh 7422
      FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
7423
      BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
2820 chandransh 7424
 
7425
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7426
 
7427
      static {
7428
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7429
          byName.put(field.getFieldName(), field);
7430
        }
7431
      }
7432
 
7433
      /**
7434
       * Find the _Fields constant that matches fieldId, or null if its not found.
7435
       */
7436
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7437
        switch(fieldId) {
5361 mandeep.dh 7438
          case 1: // INVENTORY_ITEM
7439
            return INVENTORY_ITEM;
4496 mandeep.dh 7440
          case 2: // TYPE
3430 rajveer 7441
            return TYPE;
4496 mandeep.dh 7442
          case 3: // QUANTITY
7443
            return QUANTITY;
7444
          case 4: // ORDER_ID
7445
            return ORDER_ID;
5110 mandeep.dh 7446
          case 5: // FULFILMENT_WAREHOUSE_ID
7447
            return FULFILMENT_WAREHOUSE_ID;
5361 mandeep.dh 7448
          case 6: // BILLING_WAREHOUSE_ID
7449
            return BILLING_WAREHOUSE_ID;
3430 rajveer 7450
          default:
7451
            return null;
7452
        }
2820 chandransh 7453
      }
7454
 
7455
      /**
7456
       * Find the _Fields constant that matches fieldId, throwing an exception
7457
       * if it is not found.
7458
       */
7459
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7460
        _Fields fields = findByThriftId(fieldId);
7461
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7462
        return fields;
7463
      }
7464
 
7465
      /**
7466
       * Find the _Fields constant that matches name, or null if its not found.
7467
       */
7468
      public static _Fields findByName(String name) {
7469
        return byName.get(name);
7470
      }
7471
 
7472
      private final short _thriftId;
7473
      private final String _fieldName;
7474
 
7475
      _Fields(short thriftId, String fieldName) {
7476
        _thriftId = thriftId;
7477
        _fieldName = fieldName;
7478
      }
7479
 
7480
      public short getThriftFieldId() {
7481
        return _thriftId;
7482
      }
7483
 
7484
      public String getFieldName() {
7485
        return _fieldName;
7486
      }
7487
    }
7488
 
7489
    // isset id assignments
5361 mandeep.dh 7490
    private static final int __QUANTITY_ISSET_ID = 0;
7491
    private static final int __ORDERID_ISSET_ID = 1;
7492
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
7493
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
4496 mandeep.dh 7494
    private BitSet __isset_bit_vector = new BitSet(4);
2820 chandransh 7495
 
3430 rajveer 7496
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 7497
    static {
3430 rajveer 7498
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 7499
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7500
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 7501
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7502
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
4496 mandeep.dh 7503
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7505
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7506
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 7507
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 7508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5361 mandeep.dh 7509
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7510
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 7511
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 7512
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
2820 chandransh 7513
    }
7514
 
4496 mandeep.dh 7515
    public scanForOrder_args() {
2820 chandransh 7516
    }
7517
 
4496 mandeep.dh 7518
    public scanForOrder_args(
5361 mandeep.dh 7519
      InventoryItem inventoryItem,
4496 mandeep.dh 7520
      ScanType type,
7521
      long quantity,
7522
      long orderId,
5361 mandeep.dh 7523
      long fulfilmentWarehouseId,
7524
      long billingWarehouseId)
2820 chandransh 7525
    {
7526
      this();
5361 mandeep.dh 7527
      this.inventoryItem = inventoryItem;
2820 chandransh 7528
      this.type = type;
4496 mandeep.dh 7529
      this.quantity = quantity;
7530
      setQuantityIsSet(true);
7531
      this.orderId = orderId;
7532
      setOrderIdIsSet(true);
5110 mandeep.dh 7533
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
7534
      setFulfilmentWarehouseIdIsSet(true);
5361 mandeep.dh 7535
      this.billingWarehouseId = billingWarehouseId;
7536
      setBillingWarehouseIdIsSet(true);
2820 chandransh 7537
    }
7538
 
7539
    /**
7540
     * Performs a deep copy on <i>other</i>.
7541
     */
4496 mandeep.dh 7542
    public scanForOrder_args(scanForOrder_args other) {
7543
      __isset_bit_vector.clear();
7544
      __isset_bit_vector.or(other.__isset_bit_vector);
5361 mandeep.dh 7545
      if (other.isSetInventoryItem()) {
7546
        this.inventoryItem = new InventoryItem(other.inventoryItem);
7547
      }
2820 chandransh 7548
      if (other.isSetType()) {
7549
        this.type = other.type;
7550
      }
4496 mandeep.dh 7551
      this.quantity = other.quantity;
7552
      this.orderId = other.orderId;
5110 mandeep.dh 7553
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
5361 mandeep.dh 7554
      this.billingWarehouseId = other.billingWarehouseId;
2820 chandransh 7555
    }
7556
 
4496 mandeep.dh 7557
    public scanForOrder_args deepCopy() {
7558
      return new scanForOrder_args(this);
2820 chandransh 7559
    }
7560
 
3430 rajveer 7561
    @Override
7562
    public void clear() {
5361 mandeep.dh 7563
      this.inventoryItem = null;
3430 rajveer 7564
      this.type = null;
4496 mandeep.dh 7565
      setQuantityIsSet(false);
7566
      this.quantity = 0;
7567
      setOrderIdIsSet(false);
7568
      this.orderId = 0;
5110 mandeep.dh 7569
      setFulfilmentWarehouseIdIsSet(false);
7570
      this.fulfilmentWarehouseId = 0;
5361 mandeep.dh 7571
      setBillingWarehouseIdIsSet(false);
7572
      this.billingWarehouseId = 0;
2820 chandransh 7573
    }
7574
 
5361 mandeep.dh 7575
    public InventoryItem getInventoryItem() {
7576
      return this.inventoryItem;
2820 chandransh 7577
    }
7578
 
5361 mandeep.dh 7579
    public void setInventoryItem(InventoryItem inventoryItem) {
7580
      this.inventoryItem = inventoryItem;
2820 chandransh 7581
    }
7582
 
5361 mandeep.dh 7583
    public void unsetInventoryItem() {
7584
      this.inventoryItem = null;
2820 chandransh 7585
    }
7586
 
5361 mandeep.dh 7587
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
7588
    public boolean isSetInventoryItem() {
7589
      return this.inventoryItem != null;
2820 chandransh 7590
    }
7591
 
5361 mandeep.dh 7592
    public void setInventoryItemIsSet(boolean value) {
7593
      if (!value) {
7594
        this.inventoryItem = null;
7595
      }
2820 chandransh 7596
    }
7597
 
7598
    /**
7599
     * 
7600
     * @see ScanType
7601
     */
7602
    public ScanType getType() {
7603
      return this.type;
7604
    }
7605
 
7606
    /**
7607
     * 
7608
     * @see ScanType
7609
     */
3430 rajveer 7610
    public void setType(ScanType type) {
2820 chandransh 7611
      this.type = type;
7612
    }
7613
 
7614
    public void unsetType() {
7615
      this.type = null;
7616
    }
7617
 
3430 rajveer 7618
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
2820 chandransh 7619
    public boolean isSetType() {
7620
      return this.type != null;
7621
    }
7622
 
7623
    public void setTypeIsSet(boolean value) {
7624
      if (!value) {
7625
        this.type = null;
7626
      }
7627
    }
7628
 
4496 mandeep.dh 7629
    public long getQuantity() {
7630
      return this.quantity;
7631
    }
7632
 
7633
    public void setQuantity(long quantity) {
7634
      this.quantity = quantity;
7635
      setQuantityIsSet(true);
7636
    }
7637
 
7638
    public void unsetQuantity() {
7639
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
7640
    }
7641
 
7642
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
7643
    public boolean isSetQuantity() {
7644
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
7645
    }
7646
 
7647
    public void setQuantityIsSet(boolean value) {
7648
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
7649
    }
7650
 
7651
    public long getOrderId() {
7652
      return this.orderId;
7653
    }
7654
 
7655
    public void setOrderId(long orderId) {
7656
      this.orderId = orderId;
7657
      setOrderIdIsSet(true);
7658
    }
7659
 
7660
    public void unsetOrderId() {
7661
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
7662
    }
7663
 
7664
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
7665
    public boolean isSetOrderId() {
7666
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
7667
    }
7668
 
7669
    public void setOrderIdIsSet(boolean value) {
7670
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
7671
    }
7672
 
5110 mandeep.dh 7673
    public long getFulfilmentWarehouseId() {
7674
      return this.fulfilmentWarehouseId;
4496 mandeep.dh 7675
    }
7676
 
5110 mandeep.dh 7677
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
7678
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
7679
      setFulfilmentWarehouseIdIsSet(true);
4496 mandeep.dh 7680
    }
7681
 
5110 mandeep.dh 7682
    public void unsetFulfilmentWarehouseId() {
7683
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 7684
    }
7685
 
5110 mandeep.dh 7686
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
7687
    public boolean isSetFulfilmentWarehouseId() {
7688
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 7689
    }
7690
 
5110 mandeep.dh 7691
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
7692
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
4496 mandeep.dh 7693
    }
7694
 
5361 mandeep.dh 7695
    public long getBillingWarehouseId() {
7696
      return this.billingWarehouseId;
7697
    }
7698
 
7699
    public void setBillingWarehouseId(long billingWarehouseId) {
7700
      this.billingWarehouseId = billingWarehouseId;
7701
      setBillingWarehouseIdIsSet(true);
7702
    }
7703
 
7704
    public void unsetBillingWarehouseId() {
7705
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
7706
    }
7707
 
7708
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
7709
    public boolean isSetBillingWarehouseId() {
7710
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
7711
    }
7712
 
7713
    public void setBillingWarehouseIdIsSet(boolean value) {
7714
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
7715
    }
7716
 
2820 chandransh 7717
    public void setFieldValue(_Fields field, Object value) {
7718
      switch (field) {
5361 mandeep.dh 7719
      case INVENTORY_ITEM:
2820 chandransh 7720
        if (value == null) {
5361 mandeep.dh 7721
          unsetInventoryItem();
2820 chandransh 7722
        } else {
5361 mandeep.dh 7723
          setInventoryItem((InventoryItem)value);
2820 chandransh 7724
        }
7725
        break;
7726
 
4496 mandeep.dh 7727
      case TYPE:
2820 chandransh 7728
        if (value == null) {
4496 mandeep.dh 7729
          unsetType();
2820 chandransh 7730
        } else {
4496 mandeep.dh 7731
          setType((ScanType)value);
2820 chandransh 7732
        }
7733
        break;
7734
 
4496 mandeep.dh 7735
      case QUANTITY:
2820 chandransh 7736
        if (value == null) {
4496 mandeep.dh 7737
          unsetQuantity();
2820 chandransh 7738
        } else {
4496 mandeep.dh 7739
          setQuantity((Long)value);
2820 chandransh 7740
        }
7741
        break;
7742
 
4496 mandeep.dh 7743
      case ORDER_ID:
7744
        if (value == null) {
7745
          unsetOrderId();
7746
        } else {
7747
          setOrderId((Long)value);
7748
        }
7749
        break;
7750
 
5110 mandeep.dh 7751
      case FULFILMENT_WAREHOUSE_ID:
4496 mandeep.dh 7752
        if (value == null) {
5110 mandeep.dh 7753
          unsetFulfilmentWarehouseId();
4496 mandeep.dh 7754
        } else {
5110 mandeep.dh 7755
          setFulfilmentWarehouseId((Long)value);
4496 mandeep.dh 7756
        }
7757
        break;
7758
 
5361 mandeep.dh 7759
      case BILLING_WAREHOUSE_ID:
7760
        if (value == null) {
7761
          unsetBillingWarehouseId();
7762
        } else {
7763
          setBillingWarehouseId((Long)value);
7764
        }
7765
        break;
7766
 
2820 chandransh 7767
      }
7768
    }
7769
 
7770
    public Object getFieldValue(_Fields field) {
7771
      switch (field) {
5361 mandeep.dh 7772
      case INVENTORY_ITEM:
7773
        return getInventoryItem();
2820 chandransh 7774
 
7775
      case TYPE:
7776
        return getType();
7777
 
4496 mandeep.dh 7778
      case QUANTITY:
7779
        return Long.valueOf(getQuantity());
7780
 
7781
      case ORDER_ID:
7782
        return Long.valueOf(getOrderId());
7783
 
5110 mandeep.dh 7784
      case FULFILMENT_WAREHOUSE_ID:
7785
        return Long.valueOf(getFulfilmentWarehouseId());
4496 mandeep.dh 7786
 
5361 mandeep.dh 7787
      case BILLING_WAREHOUSE_ID:
7788
        return Long.valueOf(getBillingWarehouseId());
7789
 
2820 chandransh 7790
      }
7791
      throw new IllegalStateException();
7792
    }
7793
 
3430 rajveer 7794
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7795
    public boolean isSet(_Fields field) {
7796
      if (field == null) {
7797
        throw new IllegalArgumentException();
7798
      }
2820 chandransh 7799
 
7800
      switch (field) {
5361 mandeep.dh 7801
      case INVENTORY_ITEM:
7802
        return isSetInventoryItem();
2820 chandransh 7803
      case TYPE:
7804
        return isSetType();
4496 mandeep.dh 7805
      case QUANTITY:
7806
        return isSetQuantity();
7807
      case ORDER_ID:
7808
        return isSetOrderId();
5110 mandeep.dh 7809
      case FULFILMENT_WAREHOUSE_ID:
7810
        return isSetFulfilmentWarehouseId();
5361 mandeep.dh 7811
      case BILLING_WAREHOUSE_ID:
7812
        return isSetBillingWarehouseId();
2820 chandransh 7813
      }
7814
      throw new IllegalStateException();
7815
    }
7816
 
7817
    @Override
7818
    public boolean equals(Object that) {
7819
      if (that == null)
7820
        return false;
4496 mandeep.dh 7821
      if (that instanceof scanForOrder_args)
7822
        return this.equals((scanForOrder_args)that);
2820 chandransh 7823
      return false;
7824
    }
7825
 
4496 mandeep.dh 7826
    public boolean equals(scanForOrder_args that) {
2820 chandransh 7827
      if (that == null)
7828
        return false;
7829
 
5361 mandeep.dh 7830
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
7831
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
7832
      if (this_present_inventoryItem || that_present_inventoryItem) {
7833
        if (!(this_present_inventoryItem && that_present_inventoryItem))
2820 chandransh 7834
          return false;
5361 mandeep.dh 7835
        if (!this.inventoryItem.equals(that.inventoryItem))
2820 chandransh 7836
          return false;
7837
      }
7838
 
7839
      boolean this_present_type = true && this.isSetType();
7840
      boolean that_present_type = true && that.isSetType();
7841
      if (this_present_type || that_present_type) {
7842
        if (!(this_present_type && that_present_type))
7843
          return false;
7844
        if (!this.type.equals(that.type))
7845
          return false;
7846
      }
7847
 
4496 mandeep.dh 7848
      boolean this_present_quantity = true;
7849
      boolean that_present_quantity = true;
7850
      if (this_present_quantity || that_present_quantity) {
7851
        if (!(this_present_quantity && that_present_quantity))
7852
          return false;
7853
        if (this.quantity != that.quantity)
7854
          return false;
7855
      }
7856
 
7857
      boolean this_present_orderId = true;
7858
      boolean that_present_orderId = true;
7859
      if (this_present_orderId || that_present_orderId) {
7860
        if (!(this_present_orderId && that_present_orderId))
7861
          return false;
7862
        if (this.orderId != that.orderId)
7863
          return false;
7864
      }
7865
 
5110 mandeep.dh 7866
      boolean this_present_fulfilmentWarehouseId = true;
7867
      boolean that_present_fulfilmentWarehouseId = true;
7868
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
7869
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
4496 mandeep.dh 7870
          return false;
5110 mandeep.dh 7871
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
4496 mandeep.dh 7872
          return false;
7873
      }
7874
 
5361 mandeep.dh 7875
      boolean this_present_billingWarehouseId = true;
7876
      boolean that_present_billingWarehouseId = true;
7877
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
7878
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
7879
          return false;
7880
        if (this.billingWarehouseId != that.billingWarehouseId)
7881
          return false;
7882
      }
7883
 
2820 chandransh 7884
      return true;
7885
    }
7886
 
7887
    @Override
7888
    public int hashCode() {
7889
      return 0;
7890
    }
7891
 
4496 mandeep.dh 7892
    public int compareTo(scanForOrder_args other) {
2820 chandransh 7893
      if (!getClass().equals(other.getClass())) {
7894
        return getClass().getName().compareTo(other.getClass().getName());
7895
      }
7896
 
7897
      int lastComparison = 0;
4496 mandeep.dh 7898
      scanForOrder_args typedOther = (scanForOrder_args)other;
2820 chandransh 7899
 
5361 mandeep.dh 7900
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
2820 chandransh 7901
      if (lastComparison != 0) {
7902
        return lastComparison;
7903
      }
5361 mandeep.dh 7904
      if (isSetInventoryItem()) {
7905
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
3430 rajveer 7906
        if (lastComparison != 0) {
7907
          return lastComparison;
7908
        }
2820 chandransh 7909
      }
4496 mandeep.dh 7910
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2820 chandransh 7911
      if (lastComparison != 0) {
7912
        return lastComparison;
7913
      }
4496 mandeep.dh 7914
      if (isSetType()) {
7915
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 7916
        if (lastComparison != 0) {
7917
          return lastComparison;
7918
        }
2820 chandransh 7919
      }
4496 mandeep.dh 7920
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
2820 chandransh 7921
      if (lastComparison != 0) {
7922
        return lastComparison;
7923
      }
4496 mandeep.dh 7924
      if (isSetQuantity()) {
7925
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
3430 rajveer 7926
        if (lastComparison != 0) {
7927
          return lastComparison;
7928
        }
2820 chandransh 7929
      }
4496 mandeep.dh 7930
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
7931
      if (lastComparison != 0) {
7932
        return lastComparison;
7933
      }
7934
      if (isSetOrderId()) {
7935
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
7936
        if (lastComparison != 0) {
7937
          return lastComparison;
7938
        }
7939
      }
5110 mandeep.dh 7940
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
4496 mandeep.dh 7941
      if (lastComparison != 0) {
7942
        return lastComparison;
7943
      }
5110 mandeep.dh 7944
      if (isSetFulfilmentWarehouseId()) {
7945
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
4496 mandeep.dh 7946
        if (lastComparison != 0) {
7947
          return lastComparison;
7948
        }
7949
      }
5361 mandeep.dh 7950
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
7951
      if (lastComparison != 0) {
7952
        return lastComparison;
7953
      }
7954
      if (isSetBillingWarehouseId()) {
7955
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
7956
        if (lastComparison != 0) {
7957
          return lastComparison;
7958
        }
7959
      }
2820 chandransh 7960
      return 0;
7961
    }
7962
 
3430 rajveer 7963
    public _Fields fieldForId(int fieldId) {
7964
      return _Fields.findByThriftId(fieldId);
7965
    }
7966
 
7967
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7968
      org.apache.thrift.protocol.TField field;
2820 chandransh 7969
      iprot.readStructBegin();
7970
      while (true)
7971
      {
7972
        field = iprot.readFieldBegin();
3430 rajveer 7973
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 7974
          break;
7975
        }
3430 rajveer 7976
        switch (field.id) {
5361 mandeep.dh 7977
          case 1: // INVENTORY_ITEM
7978
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7979
              this.inventoryItem = new InventoryItem();
7980
              this.inventoryItem.read(iprot);
3430 rajveer 7981
            } else { 
7982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7983
            }
7984
            break;
4496 mandeep.dh 7985
          case 2: // TYPE
7986
            if (field.type == org.apache.thrift.protocol.TType.I32) {
7987
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 7988
            } else { 
7989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7990
            }
7991
            break;
4496 mandeep.dh 7992
          case 3: // QUANTITY
7993
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7994
              this.quantity = iprot.readI64();
7995
              setQuantityIsSet(true);
3430 rajveer 7996
            } else { 
7997
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7998
            }
7999
            break;
4496 mandeep.dh 8000
          case 4: // ORDER_ID
8001
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8002
              this.orderId = iprot.readI64();
8003
              setOrderIdIsSet(true);
8004
            } else { 
8005
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8006
            }
8007
            break;
5110 mandeep.dh 8008
          case 5: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 8009
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5110 mandeep.dh 8010
              this.fulfilmentWarehouseId = iprot.readI64();
8011
              setFulfilmentWarehouseIdIsSet(true);
4496 mandeep.dh 8012
            } else { 
8013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8014
            }
8015
            break;
5361 mandeep.dh 8016
          case 6: // BILLING_WAREHOUSE_ID
8017
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8018
              this.billingWarehouseId = iprot.readI64();
8019
              setBillingWarehouseIdIsSet(true);
8020
            } else { 
8021
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8022
            }
8023
            break;
3430 rajveer 8024
          default:
8025
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 8026
        }
3430 rajveer 8027
        iprot.readFieldEnd();
2820 chandransh 8028
      }
8029
      iprot.readStructEnd();
8030
      validate();
8031
    }
8032
 
3430 rajveer 8033
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 8034
      validate();
8035
 
8036
      oprot.writeStructBegin(STRUCT_DESC);
5361 mandeep.dh 8037
      if (this.inventoryItem != null) {
8038
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
8039
        this.inventoryItem.write(oprot);
8040
        oprot.writeFieldEnd();
8041
      }
2820 chandransh 8042
      if (this.type != null) {
8043
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
8044
        oprot.writeI32(this.type.getValue());
8045
        oprot.writeFieldEnd();
8046
      }
4496 mandeep.dh 8047
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
8048
      oprot.writeI64(this.quantity);
8049
      oprot.writeFieldEnd();
8050
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
8051
      oprot.writeI64(this.orderId);
8052
      oprot.writeFieldEnd();
5110 mandeep.dh 8053
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
8054
      oprot.writeI64(this.fulfilmentWarehouseId);
4496 mandeep.dh 8055
      oprot.writeFieldEnd();
5361 mandeep.dh 8056
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
8057
      oprot.writeI64(this.billingWarehouseId);
8058
      oprot.writeFieldEnd();
2820 chandransh 8059
      oprot.writeFieldStop();
8060
      oprot.writeStructEnd();
8061
    }
8062
 
8063
    @Override
8064
    public String toString() {
4496 mandeep.dh 8065
      StringBuilder sb = new StringBuilder("scanForOrder_args(");
2820 chandransh 8066
      boolean first = true;
8067
 
5361 mandeep.dh 8068
      sb.append("inventoryItem:");
8069
      if (this.inventoryItem == null) {
8070
        sb.append("null");
8071
      } else {
8072
        sb.append(this.inventoryItem);
8073
      }
2820 chandransh 8074
      first = false;
8075
      if (!first) sb.append(", ");
8076
      sb.append("type:");
8077
      if (this.type == null) {
8078
        sb.append("null");
8079
      } else {
8080
        sb.append(this.type);
8081
      }
8082
      first = false;
4496 mandeep.dh 8083
      if (!first) sb.append(", ");
8084
      sb.append("quantity:");
8085
      sb.append(this.quantity);
8086
      first = false;
8087
      if (!first) sb.append(", ");
8088
      sb.append("orderId:");
8089
      sb.append(this.orderId);
8090
      first = false;
8091
      if (!first) sb.append(", ");
5110 mandeep.dh 8092
      sb.append("fulfilmentWarehouseId:");
8093
      sb.append(this.fulfilmentWarehouseId);
4496 mandeep.dh 8094
      first = false;
5361 mandeep.dh 8095
      if (!first) sb.append(", ");
8096
      sb.append("billingWarehouseId:");
8097
      sb.append(this.billingWarehouseId);
8098
      first = false;
2820 chandransh 8099
      sb.append(")");
8100
      return sb.toString();
8101
    }
8102
 
3430 rajveer 8103
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 8104
      // check for required fields
8105
    }
8106
 
3430 rajveer 8107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8108
      try {
8109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8110
      } catch (org.apache.thrift.TException te) {
8111
        throw new java.io.IOException(te);
8112
      }
8113
    }
8114
 
8115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8116
      try {
4496 mandeep.dh 8117
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8118
        __isset_bit_vector = new BitSet(1);
3430 rajveer 8119
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8120
      } catch (org.apache.thrift.TException te) {
8121
        throw new java.io.IOException(te);
8122
      }
8123
    }
8124
 
2820 chandransh 8125
  }
8126
 
4496 mandeep.dh 8127
  public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable   {
8128
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
2820 chandransh 8129
 
5361 mandeep.dh 8130
    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 8131
    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 8132
 
5361 mandeep.dh 8133
    private InventoryItem success; // required
3430 rajveer 8134
    private WarehouseServiceException wex; // required
2820 chandransh 8135
 
8136
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8137
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 8138
      SUCCESS((short)0, "success"),
2820 chandransh 8139
      WEX((short)1, "wex");
8140
 
8141
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8142
 
8143
      static {
8144
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8145
          byName.put(field.getFieldName(), field);
8146
        }
8147
      }
8148
 
8149
      /**
8150
       * Find the _Fields constant that matches fieldId, or null if its not found.
8151
       */
8152
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8153
        switch(fieldId) {
5361 mandeep.dh 8154
          case 0: // SUCCESS
8155
            return SUCCESS;
3430 rajveer 8156
          case 1: // WEX
8157
            return WEX;
8158
          default:
8159
            return null;
8160
        }
2820 chandransh 8161
      }
8162
 
8163
      /**
8164
       * Find the _Fields constant that matches fieldId, throwing an exception
8165
       * if it is not found.
8166
       */
8167
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8168
        _Fields fields = findByThriftId(fieldId);
8169
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8170
        return fields;
8171
      }
8172
 
8173
      /**
8174
       * Find the _Fields constant that matches name, or null if its not found.
8175
       */
8176
      public static _Fields findByName(String name) {
8177
        return byName.get(name);
8178
      }
8179
 
8180
      private final short _thriftId;
8181
      private final String _fieldName;
8182
 
8183
      _Fields(short thriftId, String fieldName) {
8184
        _thriftId = thriftId;
8185
        _fieldName = fieldName;
8186
      }
8187
 
8188
      public short getThriftFieldId() {
8189
        return _thriftId;
8190
      }
8191
 
8192
      public String getFieldName() {
8193
        return _fieldName;
8194
      }
8195
    }
8196
 
8197
    // isset id assignments
8198
 
3430 rajveer 8199
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 8200
    static {
3430 rajveer 8201
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 8202
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8203
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 8204
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8205
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8206
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 8207
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
2820 chandransh 8208
    }
8209
 
4496 mandeep.dh 8210
    public scanForOrder_result() {
2820 chandransh 8211
    }
8212
 
4496 mandeep.dh 8213
    public scanForOrder_result(
5361 mandeep.dh 8214
      InventoryItem success,
2820 chandransh 8215
      WarehouseServiceException wex)
8216
    {
8217
      this();
5361 mandeep.dh 8218
      this.success = success;
2820 chandransh 8219
      this.wex = wex;
8220
    }
8221
 
8222
    /**
8223
     * Performs a deep copy on <i>other</i>.
8224
     */
4496 mandeep.dh 8225
    public scanForOrder_result(scanForOrder_result other) {
5361 mandeep.dh 8226
      if (other.isSetSuccess()) {
8227
        this.success = new InventoryItem(other.success);
8228
      }
2820 chandransh 8229
      if (other.isSetWex()) {
8230
        this.wex = new WarehouseServiceException(other.wex);
8231
      }
8232
    }
8233
 
4496 mandeep.dh 8234
    public scanForOrder_result deepCopy() {
8235
      return new scanForOrder_result(this);
2820 chandransh 8236
    }
8237
 
3430 rajveer 8238
    @Override
8239
    public void clear() {
5361 mandeep.dh 8240
      this.success = null;
3430 rajveer 8241
      this.wex = null;
2820 chandransh 8242
    }
8243
 
5361 mandeep.dh 8244
    public InventoryItem getSuccess() {
8245
      return this.success;
8246
    }
8247
 
8248
    public void setSuccess(InventoryItem success) {
8249
      this.success = success;
8250
    }
8251
 
8252
    public void unsetSuccess() {
8253
      this.success = null;
8254
    }
8255
 
8256
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8257
    public boolean isSetSuccess() {
8258
      return this.success != null;
8259
    }
8260
 
8261
    public void setSuccessIsSet(boolean value) {
8262
      if (!value) {
8263
        this.success = null;
8264
      }
8265
    }
8266
 
2820 chandransh 8267
    public WarehouseServiceException getWex() {
8268
      return this.wex;
8269
    }
8270
 
3430 rajveer 8271
    public void setWex(WarehouseServiceException wex) {
2820 chandransh 8272
      this.wex = wex;
8273
    }
8274
 
8275
    public void unsetWex() {
8276
      this.wex = null;
8277
    }
8278
 
3430 rajveer 8279
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
2820 chandransh 8280
    public boolean isSetWex() {
8281
      return this.wex != null;
8282
    }
8283
 
8284
    public void setWexIsSet(boolean value) {
8285
      if (!value) {
8286
        this.wex = null;
8287
      }
8288
    }
8289
 
8290
    public void setFieldValue(_Fields field, Object value) {
8291
      switch (field) {
5361 mandeep.dh 8292
      case SUCCESS:
8293
        if (value == null) {
8294
          unsetSuccess();
8295
        } else {
8296
          setSuccess((InventoryItem)value);
8297
        }
8298
        break;
8299
 
2820 chandransh 8300
      case WEX:
8301
        if (value == null) {
8302
          unsetWex();
8303
        } else {
8304
          setWex((WarehouseServiceException)value);
8305
        }
8306
        break;
8307
 
8308
      }
8309
    }
8310
 
8311
    public Object getFieldValue(_Fields field) {
8312
      switch (field) {
5361 mandeep.dh 8313
      case SUCCESS:
8314
        return getSuccess();
8315
 
2820 chandransh 8316
      case WEX:
8317
        return getWex();
8318
 
8319
      }
8320
      throw new IllegalStateException();
8321
    }
8322
 
3430 rajveer 8323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8324
    public boolean isSet(_Fields field) {
8325
      if (field == null) {
8326
        throw new IllegalArgumentException();
8327
      }
2820 chandransh 8328
 
8329
      switch (field) {
5361 mandeep.dh 8330
      case SUCCESS:
8331
        return isSetSuccess();
2820 chandransh 8332
      case WEX:
8333
        return isSetWex();
8334
      }
8335
      throw new IllegalStateException();
8336
    }
8337
 
8338
    @Override
8339
    public boolean equals(Object that) {
8340
      if (that == null)
8341
        return false;
4496 mandeep.dh 8342
      if (that instanceof scanForOrder_result)
8343
        return this.equals((scanForOrder_result)that);
2820 chandransh 8344
      return false;
8345
    }
8346
 
4496 mandeep.dh 8347
    public boolean equals(scanForOrder_result that) {
2820 chandransh 8348
      if (that == null)
8349
        return false;
8350
 
5361 mandeep.dh 8351
      boolean this_present_success = true && this.isSetSuccess();
8352
      boolean that_present_success = true && that.isSetSuccess();
8353
      if (this_present_success || that_present_success) {
8354
        if (!(this_present_success && that_present_success))
8355
          return false;
8356
        if (!this.success.equals(that.success))
8357
          return false;
8358
      }
8359
 
2820 chandransh 8360
      boolean this_present_wex = true && this.isSetWex();
8361
      boolean that_present_wex = true && that.isSetWex();
8362
      if (this_present_wex || that_present_wex) {
8363
        if (!(this_present_wex && that_present_wex))
8364
          return false;
8365
        if (!this.wex.equals(that.wex))
8366
          return false;
8367
      }
8368
 
8369
      return true;
8370
    }
8371
 
8372
    @Override
8373
    public int hashCode() {
8374
      return 0;
8375
    }
8376
 
4496 mandeep.dh 8377
    public int compareTo(scanForOrder_result other) {
2820 chandransh 8378
      if (!getClass().equals(other.getClass())) {
8379
        return getClass().getName().compareTo(other.getClass().getName());
8380
      }
8381
 
8382
      int lastComparison = 0;
4496 mandeep.dh 8383
      scanForOrder_result typedOther = (scanForOrder_result)other;
2820 chandransh 8384
 
5361 mandeep.dh 8385
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8386
      if (lastComparison != 0) {
8387
        return lastComparison;
8388
      }
8389
      if (isSetSuccess()) {
8390
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8391
        if (lastComparison != 0) {
8392
          return lastComparison;
8393
        }
8394
      }
3430 rajveer 8395
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 8396
      if (lastComparison != 0) {
8397
        return lastComparison;
8398
      }
3430 rajveer 8399
      if (isSetWex()) {
8400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
8401
        if (lastComparison != 0) {
8402
          return lastComparison;
8403
        }
2820 chandransh 8404
      }
8405
      return 0;
8406
    }
8407
 
3430 rajveer 8408
    public _Fields fieldForId(int fieldId) {
8409
      return _Fields.findByThriftId(fieldId);
8410
    }
8411
 
8412
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8413
      org.apache.thrift.protocol.TField field;
2820 chandransh 8414
      iprot.readStructBegin();
8415
      while (true)
8416
      {
8417
        field = iprot.readFieldBegin();
3430 rajveer 8418
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 8419
          break;
8420
        }
3430 rajveer 8421
        switch (field.id) {
5361 mandeep.dh 8422
          case 0: // SUCCESS
8423
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8424
              this.success = new InventoryItem();
8425
              this.success.read(iprot);
8426
            } else { 
8427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8428
            }
8429
            break;
3430 rajveer 8430
          case 1: // WEX
8431
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8432
              this.wex = new WarehouseServiceException();
8433
              this.wex.read(iprot);
8434
            } else { 
8435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8436
            }
8437
            break;
8438
          default:
8439
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 8440
        }
3430 rajveer 8441
        iprot.readFieldEnd();
2820 chandransh 8442
      }
8443
      iprot.readStructEnd();
8444
      validate();
8445
    }
8446
 
3430 rajveer 8447
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 8448
      oprot.writeStructBegin(STRUCT_DESC);
8449
 
5361 mandeep.dh 8450
      if (this.isSetSuccess()) {
8451
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8452
        this.success.write(oprot);
8453
        oprot.writeFieldEnd();
8454
      } else if (this.isSetWex()) {
2820 chandransh 8455
        oprot.writeFieldBegin(WEX_FIELD_DESC);
8456
        this.wex.write(oprot);
8457
        oprot.writeFieldEnd();
8458
      }
8459
      oprot.writeFieldStop();
8460
      oprot.writeStructEnd();
8461
    }
8462
 
8463
    @Override
8464
    public String toString() {
4496 mandeep.dh 8465
      StringBuilder sb = new StringBuilder("scanForOrder_result(");
2820 chandransh 8466
      boolean first = true;
8467
 
5361 mandeep.dh 8468
      sb.append("success:");
8469
      if (this.success == null) {
8470
        sb.append("null");
8471
      } else {
8472
        sb.append(this.success);
8473
      }
8474
      first = false;
8475
      if (!first) sb.append(", ");
2820 chandransh 8476
      sb.append("wex:");
8477
      if (this.wex == null) {
8478
        sb.append("null");
8479
      } else {
8480
        sb.append(this.wex);
8481
      }
8482
      first = false;
8483
      sb.append(")");
8484
      return sb.toString();
8485
    }
8486
 
3430 rajveer 8487
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 8488
      // check for required fields
8489
    }
8490
 
3430 rajveer 8491
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8492
      try {
8493
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8494
      } catch (org.apache.thrift.TException te) {
8495
        throw new java.io.IOException(te);
8496
      }
8497
    }
8498
 
8499
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8500
      try {
8501
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8502
      } catch (org.apache.thrift.TException te) {
8503
        throw new java.io.IOException(te);
8504
      }
8505
    }
8506
 
2820 chandransh 8507
  }
8508
 
4496 mandeep.dh 8509
  public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable   {
8510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
8511
 
8512
    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);
8513
    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);
8514
 
8515
    private String itemNumber; // required
8516
    private long itemId; // required
8517
 
8518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8520
      ITEM_NUMBER((short)1, "itemNumber"),
8521
      ITEM_ID((short)2, "itemId");
8522
 
8523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8524
 
8525
      static {
8526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8527
          byName.put(field.getFieldName(), field);
8528
        }
8529
      }
8530
 
8531
      /**
8532
       * Find the _Fields constant that matches fieldId, or null if its not found.
8533
       */
8534
      public static _Fields findByThriftId(int fieldId) {
8535
        switch(fieldId) {
8536
          case 1: // ITEM_NUMBER
8537
            return ITEM_NUMBER;
8538
          case 2: // ITEM_ID
8539
            return ITEM_ID;
8540
          default:
8541
            return null;
8542
        }
8543
      }
8544
 
8545
      /**
8546
       * Find the _Fields constant that matches fieldId, throwing an exception
8547
       * if it is not found.
8548
       */
8549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8550
        _Fields fields = findByThriftId(fieldId);
8551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8552
        return fields;
8553
      }
8554
 
8555
      /**
8556
       * Find the _Fields constant that matches name, or null if its not found.
8557
       */
8558
      public static _Fields findByName(String name) {
8559
        return byName.get(name);
8560
      }
8561
 
8562
      private final short _thriftId;
8563
      private final String _fieldName;
8564
 
8565
      _Fields(short thriftId, String fieldName) {
8566
        _thriftId = thriftId;
8567
        _fieldName = fieldName;
8568
      }
8569
 
8570
      public short getThriftFieldId() {
8571
        return _thriftId;
8572
      }
8573
 
8574
      public String getFieldName() {
8575
        return _fieldName;
8576
      }
8577
    }
8578
 
8579
    // isset id assignments
8580
    private static final int __ITEMID_ISSET_ID = 0;
8581
    private BitSet __isset_bit_vector = new BitSet(1);
8582
 
8583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8584
    static {
8585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8586
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8588
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
8592
    }
8593
 
8594
    public createItemNumberMapping_args() {
8595
    }
8596
 
8597
    public createItemNumberMapping_args(
8598
      String itemNumber,
8599
      long itemId)
8600
    {
8601
      this();
8602
      this.itemNumber = itemNumber;
8603
      this.itemId = itemId;
8604
      setItemIdIsSet(true);
8605
    }
8606
 
8607
    /**
8608
     * Performs a deep copy on <i>other</i>.
8609
     */
8610
    public createItemNumberMapping_args(createItemNumberMapping_args other) {
8611
      __isset_bit_vector.clear();
8612
      __isset_bit_vector.or(other.__isset_bit_vector);
8613
      if (other.isSetItemNumber()) {
8614
        this.itemNumber = other.itemNumber;
8615
      }
8616
      this.itemId = other.itemId;
8617
    }
8618
 
8619
    public createItemNumberMapping_args deepCopy() {
8620
      return new createItemNumberMapping_args(this);
8621
    }
8622
 
8623
    @Override
8624
    public void clear() {
8625
      this.itemNumber = null;
8626
      setItemIdIsSet(false);
8627
      this.itemId = 0;
8628
    }
8629
 
8630
    public String getItemNumber() {
8631
      return this.itemNumber;
8632
    }
8633
 
8634
    public void setItemNumber(String itemNumber) {
8635
      this.itemNumber = itemNumber;
8636
    }
8637
 
8638
    public void unsetItemNumber() {
8639
      this.itemNumber = null;
8640
    }
8641
 
8642
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
8643
    public boolean isSetItemNumber() {
8644
      return this.itemNumber != null;
8645
    }
8646
 
8647
    public void setItemNumberIsSet(boolean value) {
8648
      if (!value) {
8649
        this.itemNumber = null;
8650
      }
8651
    }
8652
 
8653
    public long getItemId() {
8654
      return this.itemId;
8655
    }
8656
 
8657
    public void setItemId(long itemId) {
8658
      this.itemId = itemId;
8659
      setItemIdIsSet(true);
8660
    }
8661
 
8662
    public void unsetItemId() {
8663
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
8664
    }
8665
 
8666
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
8667
    public boolean isSetItemId() {
8668
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
8669
    }
8670
 
8671
    public void setItemIdIsSet(boolean value) {
8672
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
8673
    }
8674
 
8675
    public void setFieldValue(_Fields field, Object value) {
8676
      switch (field) {
8677
      case ITEM_NUMBER:
8678
        if (value == null) {
8679
          unsetItemNumber();
8680
        } else {
8681
          setItemNumber((String)value);
8682
        }
8683
        break;
8684
 
8685
      case ITEM_ID:
8686
        if (value == null) {
8687
          unsetItemId();
8688
        } else {
8689
          setItemId((Long)value);
8690
        }
8691
        break;
8692
 
8693
      }
8694
    }
8695
 
8696
    public Object getFieldValue(_Fields field) {
8697
      switch (field) {
8698
      case ITEM_NUMBER:
8699
        return getItemNumber();
8700
 
8701
      case ITEM_ID:
8702
        return Long.valueOf(getItemId());
8703
 
8704
      }
8705
      throw new IllegalStateException();
8706
    }
8707
 
8708
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8709
    public boolean isSet(_Fields field) {
8710
      if (field == null) {
8711
        throw new IllegalArgumentException();
8712
      }
8713
 
8714
      switch (field) {
8715
      case ITEM_NUMBER:
8716
        return isSetItemNumber();
8717
      case ITEM_ID:
8718
        return isSetItemId();
8719
      }
8720
      throw new IllegalStateException();
8721
    }
8722
 
8723
    @Override
8724
    public boolean equals(Object that) {
8725
      if (that == null)
8726
        return false;
8727
      if (that instanceof createItemNumberMapping_args)
8728
        return this.equals((createItemNumberMapping_args)that);
8729
      return false;
8730
    }
8731
 
8732
    public boolean equals(createItemNumberMapping_args that) {
8733
      if (that == null)
8734
        return false;
8735
 
8736
      boolean this_present_itemNumber = true && this.isSetItemNumber();
8737
      boolean that_present_itemNumber = true && that.isSetItemNumber();
8738
      if (this_present_itemNumber || that_present_itemNumber) {
8739
        if (!(this_present_itemNumber && that_present_itemNumber))
8740
          return false;
8741
        if (!this.itemNumber.equals(that.itemNumber))
8742
          return false;
8743
      }
8744
 
8745
      boolean this_present_itemId = true;
8746
      boolean that_present_itemId = true;
8747
      if (this_present_itemId || that_present_itemId) {
8748
        if (!(this_present_itemId && that_present_itemId))
8749
          return false;
8750
        if (this.itemId != that.itemId)
8751
          return false;
8752
      }
8753
 
8754
      return true;
8755
    }
8756
 
8757
    @Override
8758
    public int hashCode() {
8759
      return 0;
8760
    }
8761
 
8762
    public int compareTo(createItemNumberMapping_args other) {
8763
      if (!getClass().equals(other.getClass())) {
8764
        return getClass().getName().compareTo(other.getClass().getName());
8765
      }
8766
 
8767
      int lastComparison = 0;
8768
      createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
8769
 
8770
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
8771
      if (lastComparison != 0) {
8772
        return lastComparison;
8773
      }
8774
      if (isSetItemNumber()) {
8775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
8776
        if (lastComparison != 0) {
8777
          return lastComparison;
8778
        }
8779
      }
8780
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
8781
      if (lastComparison != 0) {
8782
        return lastComparison;
8783
      }
8784
      if (isSetItemId()) {
8785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
8786
        if (lastComparison != 0) {
8787
          return lastComparison;
8788
        }
8789
      }
8790
      return 0;
8791
    }
8792
 
8793
    public _Fields fieldForId(int fieldId) {
8794
      return _Fields.findByThriftId(fieldId);
8795
    }
8796
 
8797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8798
      org.apache.thrift.protocol.TField field;
8799
      iprot.readStructBegin();
8800
      while (true)
8801
      {
8802
        field = iprot.readFieldBegin();
8803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8804
          break;
8805
        }
8806
        switch (field.id) {
8807
          case 1: // ITEM_NUMBER
8808
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8809
              this.itemNumber = iprot.readString();
8810
            } else { 
8811
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8812
            }
8813
            break;
8814
          case 2: // ITEM_ID
8815
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8816
              this.itemId = iprot.readI64();
8817
              setItemIdIsSet(true);
8818
            } else { 
8819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8820
            }
8821
            break;
8822
          default:
8823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8824
        }
8825
        iprot.readFieldEnd();
8826
      }
8827
      iprot.readStructEnd();
8828
      validate();
8829
    }
8830
 
8831
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8832
      validate();
8833
 
8834
      oprot.writeStructBegin(STRUCT_DESC);
8835
      if (this.itemNumber != null) {
8836
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
8837
        oprot.writeString(this.itemNumber);
8838
        oprot.writeFieldEnd();
8839
      }
8840
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8841
      oprot.writeI64(this.itemId);
8842
      oprot.writeFieldEnd();
8843
      oprot.writeFieldStop();
8844
      oprot.writeStructEnd();
8845
    }
8846
 
8847
    @Override
8848
    public String toString() {
8849
      StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
8850
      boolean first = true;
8851
 
8852
      sb.append("itemNumber:");
8853
      if (this.itemNumber == null) {
8854
        sb.append("null");
8855
      } else {
8856
        sb.append(this.itemNumber);
8857
      }
8858
      first = false;
8859
      if (!first) sb.append(", ");
8860
      sb.append("itemId:");
8861
      sb.append(this.itemId);
8862
      first = false;
8863
      sb.append(")");
8864
      return sb.toString();
8865
    }
8866
 
8867
    public void validate() throws org.apache.thrift.TException {
8868
      // check for required fields
8869
    }
8870
 
8871
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8872
      try {
8873
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8874
      } catch (org.apache.thrift.TException te) {
8875
        throw new java.io.IOException(te);
8876
      }
8877
    }
8878
 
8879
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8880
      try {
8881
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8882
        __isset_bit_vector = new BitSet(1);
8883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8884
      } catch (org.apache.thrift.TException te) {
8885
        throw new java.io.IOException(te);
8886
      }
8887
    }
8888
 
8889
  }
8890
 
8891
  public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable   {
8892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
8893
 
8894
 
8895
 
8896
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8897
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8898
;
8899
 
8900
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8901
 
8902
      static {
8903
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8904
          byName.put(field.getFieldName(), field);
8905
        }
8906
      }
8907
 
8908
      /**
8909
       * Find the _Fields constant that matches fieldId, or null if its not found.
8910
       */
8911
      public static _Fields findByThriftId(int fieldId) {
8912
        switch(fieldId) {
8913
          default:
8914
            return null;
8915
        }
8916
      }
8917
 
8918
      /**
8919
       * Find the _Fields constant that matches fieldId, throwing an exception
8920
       * if it is not found.
8921
       */
8922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8923
        _Fields fields = findByThriftId(fieldId);
8924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8925
        return fields;
8926
      }
8927
 
8928
      /**
8929
       * Find the _Fields constant that matches name, or null if its not found.
8930
       */
8931
      public static _Fields findByName(String name) {
8932
        return byName.get(name);
8933
      }
8934
 
8935
      private final short _thriftId;
8936
      private final String _fieldName;
8937
 
8938
      _Fields(short thriftId, String fieldName) {
8939
        _thriftId = thriftId;
8940
        _fieldName = fieldName;
8941
      }
8942
 
8943
      public short getThriftFieldId() {
8944
        return _thriftId;
8945
      }
8946
 
8947
      public String getFieldName() {
8948
        return _fieldName;
8949
      }
8950
    }
8951
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8952
    static {
8953
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8954
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8955
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
8956
    }
8957
 
8958
    public createItemNumberMapping_result() {
8959
    }
8960
 
8961
    /**
8962
     * Performs a deep copy on <i>other</i>.
8963
     */
8964
    public createItemNumberMapping_result(createItemNumberMapping_result other) {
8965
    }
8966
 
8967
    public createItemNumberMapping_result deepCopy() {
8968
      return new createItemNumberMapping_result(this);
8969
    }
8970
 
8971
    @Override
8972
    public void clear() {
8973
    }
8974
 
8975
    public void setFieldValue(_Fields field, Object value) {
8976
      switch (field) {
8977
      }
8978
    }
8979
 
8980
    public Object getFieldValue(_Fields field) {
8981
      switch (field) {
8982
      }
8983
      throw new IllegalStateException();
8984
    }
8985
 
8986
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8987
    public boolean isSet(_Fields field) {
8988
      if (field == null) {
8989
        throw new IllegalArgumentException();
8990
      }
8991
 
8992
      switch (field) {
8993
      }
8994
      throw new IllegalStateException();
8995
    }
8996
 
8997
    @Override
8998
    public boolean equals(Object that) {
8999
      if (that == null)
9000
        return false;
9001
      if (that instanceof createItemNumberMapping_result)
9002
        return this.equals((createItemNumberMapping_result)that);
9003
      return false;
9004
    }
9005
 
9006
    public boolean equals(createItemNumberMapping_result that) {
9007
      if (that == null)
9008
        return false;
9009
 
9010
      return true;
9011
    }
9012
 
9013
    @Override
9014
    public int hashCode() {
9015
      return 0;
9016
    }
9017
 
9018
    public int compareTo(createItemNumberMapping_result other) {
9019
      if (!getClass().equals(other.getClass())) {
9020
        return getClass().getName().compareTo(other.getClass().getName());
9021
      }
9022
 
9023
      int lastComparison = 0;
9024
      createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
9025
 
9026
      return 0;
9027
    }
9028
 
9029
    public _Fields fieldForId(int fieldId) {
9030
      return _Fields.findByThriftId(fieldId);
9031
    }
9032
 
9033
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9034
      org.apache.thrift.protocol.TField field;
9035
      iprot.readStructBegin();
9036
      while (true)
9037
      {
9038
        field = iprot.readFieldBegin();
9039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9040
          break;
9041
        }
9042
        switch (field.id) {
9043
          default:
9044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9045
        }
9046
        iprot.readFieldEnd();
9047
      }
9048
      iprot.readStructEnd();
9049
      validate();
9050
    }
9051
 
9052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9053
      oprot.writeStructBegin(STRUCT_DESC);
9054
 
9055
      oprot.writeFieldStop();
9056
      oprot.writeStructEnd();
9057
    }
9058
 
9059
    @Override
9060
    public String toString() {
9061
      StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
9062
      boolean first = true;
9063
 
9064
      sb.append(")");
9065
      return sb.toString();
9066
    }
9067
 
9068
    public void validate() throws org.apache.thrift.TException {
9069
      // check for required fields
9070
    }
9071
 
9072
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9073
      try {
9074
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9075
      } catch (org.apache.thrift.TException te) {
9076
        throw new java.io.IOException(te);
9077
      }
9078
    }
9079
 
9080
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9081
      try {
9082
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9083
      } catch (org.apache.thrift.TException te) {
9084
        throw new java.io.IOException(te);
9085
      }
9086
    }
9087
 
9088
  }
9089
 
4622 amit.gupta 9090
  public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable   {
9091
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
9092
 
9093
    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);
9094
 
9095
    private long itemId; // required
9096
 
9097
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9098
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9099
      ITEM_ID((short)1, "itemId");
9100
 
9101
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9102
 
9103
      static {
9104
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9105
          byName.put(field.getFieldName(), field);
9106
        }
9107
      }
9108
 
9109
      /**
9110
       * Find the _Fields constant that matches fieldId, or null if its not found.
9111
       */
9112
      public static _Fields findByThriftId(int fieldId) {
9113
        switch(fieldId) {
9114
          case 1: // ITEM_ID
9115
            return ITEM_ID;
9116
          default:
9117
            return null;
9118
        }
9119
      }
9120
 
9121
      /**
9122
       * Find the _Fields constant that matches fieldId, throwing an exception
9123
       * if it is not found.
9124
       */
9125
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9126
        _Fields fields = findByThriftId(fieldId);
9127
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9128
        return fields;
9129
      }
9130
 
9131
      /**
9132
       * Find the _Fields constant that matches name, or null if its not found.
9133
       */
9134
      public static _Fields findByName(String name) {
9135
        return byName.get(name);
9136
      }
9137
 
9138
      private final short _thriftId;
9139
      private final String _fieldName;
9140
 
9141
      _Fields(short thriftId, String fieldName) {
9142
        _thriftId = thriftId;
9143
        _fieldName = fieldName;
9144
      }
9145
 
9146
      public short getThriftFieldId() {
9147
        return _thriftId;
9148
      }
9149
 
9150
      public String getFieldName() {
9151
        return _fieldName;
9152
      }
9153
    }
9154
 
9155
    // isset id assignments
9156
    private static final int __ITEMID_ISSET_ID = 0;
9157
    private BitSet __isset_bit_vector = new BitSet(1);
9158
 
9159
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9160
    static {
9161
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9162
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9163
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9164
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9165
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
9166
    }
9167
 
9168
    public getItemNumbers_args() {
9169
    }
9170
 
9171
    public getItemNumbers_args(
9172
      long itemId)
9173
    {
9174
      this();
9175
      this.itemId = itemId;
9176
      setItemIdIsSet(true);
9177
    }
9178
 
9179
    /**
9180
     * Performs a deep copy on <i>other</i>.
9181
     */
9182
    public getItemNumbers_args(getItemNumbers_args other) {
9183
      __isset_bit_vector.clear();
9184
      __isset_bit_vector.or(other.__isset_bit_vector);
9185
      this.itemId = other.itemId;
9186
    }
9187
 
9188
    public getItemNumbers_args deepCopy() {
9189
      return new getItemNumbers_args(this);
9190
    }
9191
 
9192
    @Override
9193
    public void clear() {
9194
      setItemIdIsSet(false);
9195
      this.itemId = 0;
9196
    }
9197
 
9198
    public long getItemId() {
9199
      return this.itemId;
9200
    }
9201
 
9202
    public void setItemId(long itemId) {
9203
      this.itemId = itemId;
9204
      setItemIdIsSet(true);
9205
    }
9206
 
9207
    public void unsetItemId() {
9208
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9209
    }
9210
 
9211
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9212
    public boolean isSetItemId() {
9213
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9214
    }
9215
 
9216
    public void setItemIdIsSet(boolean value) {
9217
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9218
    }
9219
 
9220
    public void setFieldValue(_Fields field, Object value) {
9221
      switch (field) {
9222
      case ITEM_ID:
9223
        if (value == null) {
9224
          unsetItemId();
9225
        } else {
9226
          setItemId((Long)value);
9227
        }
9228
        break;
9229
 
9230
      }
9231
    }
9232
 
9233
    public Object getFieldValue(_Fields field) {
9234
      switch (field) {
9235
      case ITEM_ID:
9236
        return Long.valueOf(getItemId());
9237
 
9238
      }
9239
      throw new IllegalStateException();
9240
    }
9241
 
9242
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9243
    public boolean isSet(_Fields field) {
9244
      if (field == null) {
9245
        throw new IllegalArgumentException();
9246
      }
9247
 
9248
      switch (field) {
9249
      case ITEM_ID:
9250
        return isSetItemId();
9251
      }
9252
      throw new IllegalStateException();
9253
    }
9254
 
9255
    @Override
9256
    public boolean equals(Object that) {
9257
      if (that == null)
9258
        return false;
9259
      if (that instanceof getItemNumbers_args)
9260
        return this.equals((getItemNumbers_args)that);
9261
      return false;
9262
    }
9263
 
9264
    public boolean equals(getItemNumbers_args that) {
9265
      if (that == null)
9266
        return false;
9267
 
9268
      boolean this_present_itemId = true;
9269
      boolean that_present_itemId = true;
9270
      if (this_present_itemId || that_present_itemId) {
9271
        if (!(this_present_itemId && that_present_itemId))
9272
          return false;
9273
        if (this.itemId != that.itemId)
9274
          return false;
9275
      }
9276
 
9277
      return true;
9278
    }
9279
 
9280
    @Override
9281
    public int hashCode() {
9282
      return 0;
9283
    }
9284
 
9285
    public int compareTo(getItemNumbers_args other) {
9286
      if (!getClass().equals(other.getClass())) {
9287
        return getClass().getName().compareTo(other.getClass().getName());
9288
      }
9289
 
9290
      int lastComparison = 0;
9291
      getItemNumbers_args typedOther = (getItemNumbers_args)other;
9292
 
9293
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9294
      if (lastComparison != 0) {
9295
        return lastComparison;
9296
      }
9297
      if (isSetItemId()) {
9298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9299
        if (lastComparison != 0) {
9300
          return lastComparison;
9301
        }
9302
      }
9303
      return 0;
9304
    }
9305
 
9306
    public _Fields fieldForId(int fieldId) {
9307
      return _Fields.findByThriftId(fieldId);
9308
    }
9309
 
9310
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9311
      org.apache.thrift.protocol.TField field;
9312
      iprot.readStructBegin();
9313
      while (true)
9314
      {
9315
        field = iprot.readFieldBegin();
9316
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9317
          break;
9318
        }
9319
        switch (field.id) {
9320
          case 1: // ITEM_ID
9321
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9322
              this.itemId = iprot.readI64();
9323
              setItemIdIsSet(true);
9324
            } else { 
9325
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9326
            }
9327
            break;
9328
          default:
9329
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9330
        }
9331
        iprot.readFieldEnd();
9332
      }
9333
      iprot.readStructEnd();
9334
      validate();
9335
    }
9336
 
9337
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9338
      validate();
9339
 
9340
      oprot.writeStructBegin(STRUCT_DESC);
9341
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9342
      oprot.writeI64(this.itemId);
9343
      oprot.writeFieldEnd();
9344
      oprot.writeFieldStop();
9345
      oprot.writeStructEnd();
9346
    }
9347
 
9348
    @Override
9349
    public String toString() {
9350
      StringBuilder sb = new StringBuilder("getItemNumbers_args(");
9351
      boolean first = true;
9352
 
9353
      sb.append("itemId:");
9354
      sb.append(this.itemId);
9355
      first = false;
9356
      sb.append(")");
9357
      return sb.toString();
9358
    }
9359
 
9360
    public void validate() throws org.apache.thrift.TException {
9361
      // check for required fields
9362
    }
9363
 
9364
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9365
      try {
9366
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9367
      } catch (org.apache.thrift.TException te) {
9368
        throw new java.io.IOException(te);
9369
      }
9370
    }
9371
 
9372
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9373
      try {
9374
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9375
        __isset_bit_vector = new BitSet(1);
9376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9377
      } catch (org.apache.thrift.TException te) {
9378
        throw new java.io.IOException(te);
9379
      }
9380
    }
9381
 
9382
  }
9383
 
9384
  public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable   {
9385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
9386
 
9387
    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);
9388
 
9389
    private List<String> success; // required
9390
 
9391
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9392
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9393
      SUCCESS((short)0, "success");
9394
 
9395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9396
 
9397
      static {
9398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9399
          byName.put(field.getFieldName(), field);
9400
        }
9401
      }
9402
 
9403
      /**
9404
       * Find the _Fields constant that matches fieldId, or null if its not found.
9405
       */
9406
      public static _Fields findByThriftId(int fieldId) {
9407
        switch(fieldId) {
9408
          case 0: // SUCCESS
9409
            return SUCCESS;
9410
          default:
9411
            return null;
9412
        }
9413
      }
9414
 
9415
      /**
9416
       * Find the _Fields constant that matches fieldId, throwing an exception
9417
       * if it is not found.
9418
       */
9419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9420
        _Fields fields = findByThriftId(fieldId);
9421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9422
        return fields;
9423
      }
9424
 
9425
      /**
9426
       * Find the _Fields constant that matches name, or null if its not found.
9427
       */
9428
      public static _Fields findByName(String name) {
9429
        return byName.get(name);
9430
      }
9431
 
9432
      private final short _thriftId;
9433
      private final String _fieldName;
9434
 
9435
      _Fields(short thriftId, String fieldName) {
9436
        _thriftId = thriftId;
9437
        _fieldName = fieldName;
9438
      }
9439
 
9440
      public short getThriftFieldId() {
9441
        return _thriftId;
9442
      }
9443
 
9444
      public String getFieldName() {
9445
        return _fieldName;
9446
      }
9447
    }
9448
 
9449
    // isset id assignments
9450
 
9451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9452
    static {
9453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9454
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9455
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9456
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
9459
    }
9460
 
9461
    public getItemNumbers_result() {
9462
    }
9463
 
9464
    public getItemNumbers_result(
9465
      List<String> success)
9466
    {
9467
      this();
9468
      this.success = success;
9469
    }
9470
 
9471
    /**
9472
     * Performs a deep copy on <i>other</i>.
9473
     */
9474
    public getItemNumbers_result(getItemNumbers_result other) {
9475
      if (other.isSetSuccess()) {
9476
        List<String> __this__success = new ArrayList<String>();
9477
        for (String other_element : other.success) {
9478
          __this__success.add(other_element);
9479
        }
9480
        this.success = __this__success;
9481
      }
9482
    }
9483
 
9484
    public getItemNumbers_result deepCopy() {
9485
      return new getItemNumbers_result(this);
9486
    }
9487
 
9488
    @Override
9489
    public void clear() {
9490
      this.success = null;
9491
    }
9492
 
9493
    public int getSuccessSize() {
9494
      return (this.success == null) ? 0 : this.success.size();
9495
    }
9496
 
9497
    public java.util.Iterator<String> getSuccessIterator() {
9498
      return (this.success == null) ? null : this.success.iterator();
9499
    }
9500
 
9501
    public void addToSuccess(String elem) {
9502
      if (this.success == null) {
9503
        this.success = new ArrayList<String>();
9504
      }
9505
      this.success.add(elem);
9506
    }
9507
 
9508
    public List<String> getSuccess() {
9509
      return this.success;
9510
    }
9511
 
9512
    public void setSuccess(List<String> success) {
9513
      this.success = success;
9514
    }
9515
 
9516
    public void unsetSuccess() {
9517
      this.success = null;
9518
    }
9519
 
9520
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9521
    public boolean isSetSuccess() {
9522
      return this.success != null;
9523
    }
9524
 
9525
    public void setSuccessIsSet(boolean value) {
9526
      if (!value) {
9527
        this.success = null;
9528
      }
9529
    }
9530
 
9531
    public void setFieldValue(_Fields field, Object value) {
9532
      switch (field) {
9533
      case SUCCESS:
9534
        if (value == null) {
9535
          unsetSuccess();
9536
        } else {
9537
          setSuccess((List<String>)value);
9538
        }
9539
        break;
9540
 
9541
      }
9542
    }
9543
 
9544
    public Object getFieldValue(_Fields field) {
9545
      switch (field) {
9546
      case SUCCESS:
9547
        return getSuccess();
9548
 
9549
      }
9550
      throw new IllegalStateException();
9551
    }
9552
 
9553
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9554
    public boolean isSet(_Fields field) {
9555
      if (field == null) {
9556
        throw new IllegalArgumentException();
9557
      }
9558
 
9559
      switch (field) {
9560
      case SUCCESS:
9561
        return isSetSuccess();
9562
      }
9563
      throw new IllegalStateException();
9564
    }
9565
 
9566
    @Override
9567
    public boolean equals(Object that) {
9568
      if (that == null)
9569
        return false;
9570
      if (that instanceof getItemNumbers_result)
9571
        return this.equals((getItemNumbers_result)that);
9572
      return false;
9573
    }
9574
 
9575
    public boolean equals(getItemNumbers_result that) {
9576
      if (that == null)
9577
        return false;
9578
 
9579
      boolean this_present_success = true && this.isSetSuccess();
9580
      boolean that_present_success = true && that.isSetSuccess();
9581
      if (this_present_success || that_present_success) {
9582
        if (!(this_present_success && that_present_success))
9583
          return false;
9584
        if (!this.success.equals(that.success))
9585
          return false;
9586
      }
9587
 
9588
      return true;
9589
    }
9590
 
9591
    @Override
9592
    public int hashCode() {
9593
      return 0;
9594
    }
9595
 
9596
    public int compareTo(getItemNumbers_result other) {
9597
      if (!getClass().equals(other.getClass())) {
9598
        return getClass().getName().compareTo(other.getClass().getName());
9599
      }
9600
 
9601
      int lastComparison = 0;
9602
      getItemNumbers_result typedOther = (getItemNumbers_result)other;
9603
 
9604
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9605
      if (lastComparison != 0) {
9606
        return lastComparison;
9607
      }
9608
      if (isSetSuccess()) {
9609
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9610
        if (lastComparison != 0) {
9611
          return lastComparison;
9612
        }
9613
      }
9614
      return 0;
9615
    }
9616
 
9617
    public _Fields fieldForId(int fieldId) {
9618
      return _Fields.findByThriftId(fieldId);
9619
    }
9620
 
9621
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9622
      org.apache.thrift.protocol.TField field;
9623
      iprot.readStructBegin();
9624
      while (true)
9625
      {
9626
        field = iprot.readFieldBegin();
9627
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9628
          break;
9629
        }
9630
        switch (field.id) {
9631
          case 0: // SUCCESS
9632
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9633
              {
5361 mandeep.dh 9634
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
9635
                this.success = new ArrayList<String>(_list0.size);
9636
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
4622 amit.gupta 9637
                {
5361 mandeep.dh 9638
                  String _elem2; // required
9639
                  _elem2 = iprot.readString();
9640
                  this.success.add(_elem2);
4622 amit.gupta 9641
                }
9642
                iprot.readListEnd();
9643
              }
9644
            } else { 
9645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9646
            }
9647
            break;
9648
          default:
9649
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9650
        }
9651
        iprot.readFieldEnd();
9652
      }
9653
      iprot.readStructEnd();
9654
      validate();
9655
    }
9656
 
9657
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9658
      oprot.writeStructBegin(STRUCT_DESC);
9659
 
9660
      if (this.isSetSuccess()) {
9661
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9662
        {
9663
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5361 mandeep.dh 9664
          for (String _iter3 : this.success)
4622 amit.gupta 9665
          {
5361 mandeep.dh 9666
            oprot.writeString(_iter3);
4622 amit.gupta 9667
          }
9668
          oprot.writeListEnd();
9669
        }
9670
        oprot.writeFieldEnd();
9671
      }
9672
      oprot.writeFieldStop();
9673
      oprot.writeStructEnd();
9674
    }
9675
 
9676
    @Override
9677
    public String toString() {
9678
      StringBuilder sb = new StringBuilder("getItemNumbers_result(");
9679
      boolean first = true;
9680
 
9681
      sb.append("success:");
9682
      if (this.success == null) {
9683
        sb.append("null");
9684
      } else {
9685
        sb.append(this.success);
9686
      }
9687
      first = false;
9688
      sb.append(")");
9689
      return sb.toString();
9690
    }
9691
 
9692
    public void validate() throws org.apache.thrift.TException {
9693
      // check for required fields
9694
    }
9695
 
9696
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9697
      try {
9698
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9699
      } catch (org.apache.thrift.TException te) {
9700
        throw new java.io.IOException(te);
9701
      }
9702
    }
9703
 
9704
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9705
      try {
9706
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9707
      } catch (org.apache.thrift.TException te) {
9708
        throw new java.io.IOException(te);
9709
      }
9710
    }
9711
 
9712
  }
9713
 
5110 mandeep.dh 9714
  public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable   {
9715
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
9716
 
9717
    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);
9718
 
9719
    private String itemNumber; // required
9720
 
9721
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9722
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9723
      ITEM_NUMBER((short)1, "itemNumber");
9724
 
9725
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9726
 
9727
      static {
9728
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9729
          byName.put(field.getFieldName(), field);
9730
        }
9731
      }
9732
 
9733
      /**
9734
       * Find the _Fields constant that matches fieldId, or null if its not found.
9735
       */
9736
      public static _Fields findByThriftId(int fieldId) {
9737
        switch(fieldId) {
9738
          case 1: // ITEM_NUMBER
9739
            return ITEM_NUMBER;
9740
          default:
9741
            return null;
9742
        }
9743
      }
9744
 
9745
      /**
9746
       * Find the _Fields constant that matches fieldId, throwing an exception
9747
       * if it is not found.
9748
       */
9749
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9750
        _Fields fields = findByThriftId(fieldId);
9751
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9752
        return fields;
9753
      }
9754
 
9755
      /**
9756
       * Find the _Fields constant that matches name, or null if its not found.
9757
       */
9758
      public static _Fields findByName(String name) {
9759
        return byName.get(name);
9760
      }
9761
 
9762
      private final short _thriftId;
9763
      private final String _fieldName;
9764
 
9765
      _Fields(short thriftId, String fieldName) {
9766
        _thriftId = thriftId;
9767
        _fieldName = fieldName;
9768
      }
9769
 
9770
      public short getThriftFieldId() {
9771
        return _thriftId;
9772
      }
9773
 
9774
      public String getFieldName() {
9775
        return _fieldName;
9776
      }
9777
    }
9778
 
9779
    // isset id assignments
9780
 
9781
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9782
    static {
9783
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9784
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9785
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9786
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9787
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
9788
    }
9789
 
9790
    public getItemIds_args() {
9791
    }
9792
 
9793
    public getItemIds_args(
9794
      String itemNumber)
9795
    {
9796
      this();
9797
      this.itemNumber = itemNumber;
9798
    }
9799
 
9800
    /**
9801
     * Performs a deep copy on <i>other</i>.
9802
     */
9803
    public getItemIds_args(getItemIds_args other) {
9804
      if (other.isSetItemNumber()) {
9805
        this.itemNumber = other.itemNumber;
9806
      }
9807
    }
9808
 
9809
    public getItemIds_args deepCopy() {
9810
      return new getItemIds_args(this);
9811
    }
9812
 
9813
    @Override
9814
    public void clear() {
9815
      this.itemNumber = null;
9816
    }
9817
 
9818
    public String getItemNumber() {
9819
      return this.itemNumber;
9820
    }
9821
 
9822
    public void setItemNumber(String itemNumber) {
9823
      this.itemNumber = itemNumber;
9824
    }
9825
 
9826
    public void unsetItemNumber() {
9827
      this.itemNumber = null;
9828
    }
9829
 
9830
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
9831
    public boolean isSetItemNumber() {
9832
      return this.itemNumber != null;
9833
    }
9834
 
9835
    public void setItemNumberIsSet(boolean value) {
9836
      if (!value) {
9837
        this.itemNumber = null;
9838
      }
9839
    }
9840
 
9841
    public void setFieldValue(_Fields field, Object value) {
9842
      switch (field) {
9843
      case ITEM_NUMBER:
9844
        if (value == null) {
9845
          unsetItemNumber();
9846
        } else {
9847
          setItemNumber((String)value);
9848
        }
9849
        break;
9850
 
9851
      }
9852
    }
9853
 
9854
    public Object getFieldValue(_Fields field) {
9855
      switch (field) {
9856
      case ITEM_NUMBER:
9857
        return getItemNumber();
9858
 
9859
      }
9860
      throw new IllegalStateException();
9861
    }
9862
 
9863
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9864
    public boolean isSet(_Fields field) {
9865
      if (field == null) {
9866
        throw new IllegalArgumentException();
9867
      }
9868
 
9869
      switch (field) {
9870
      case ITEM_NUMBER:
9871
        return isSetItemNumber();
9872
      }
9873
      throw new IllegalStateException();
9874
    }
9875
 
9876
    @Override
9877
    public boolean equals(Object that) {
9878
      if (that == null)
9879
        return false;
9880
      if (that instanceof getItemIds_args)
9881
        return this.equals((getItemIds_args)that);
9882
      return false;
9883
    }
9884
 
9885
    public boolean equals(getItemIds_args that) {
9886
      if (that == null)
9887
        return false;
9888
 
9889
      boolean this_present_itemNumber = true && this.isSetItemNumber();
9890
      boolean that_present_itemNumber = true && that.isSetItemNumber();
9891
      if (this_present_itemNumber || that_present_itemNumber) {
9892
        if (!(this_present_itemNumber && that_present_itemNumber))
9893
          return false;
9894
        if (!this.itemNumber.equals(that.itemNumber))
9895
          return false;
9896
      }
9897
 
9898
      return true;
9899
    }
9900
 
9901
    @Override
9902
    public int hashCode() {
9903
      return 0;
9904
    }
9905
 
9906
    public int compareTo(getItemIds_args other) {
9907
      if (!getClass().equals(other.getClass())) {
9908
        return getClass().getName().compareTo(other.getClass().getName());
9909
      }
9910
 
9911
      int lastComparison = 0;
9912
      getItemIds_args typedOther = (getItemIds_args)other;
9913
 
9914
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
9915
      if (lastComparison != 0) {
9916
        return lastComparison;
9917
      }
9918
      if (isSetItemNumber()) {
9919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
9920
        if (lastComparison != 0) {
9921
          return lastComparison;
9922
        }
9923
      }
9924
      return 0;
9925
    }
9926
 
9927
    public _Fields fieldForId(int fieldId) {
9928
      return _Fields.findByThriftId(fieldId);
9929
    }
9930
 
9931
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9932
      org.apache.thrift.protocol.TField field;
9933
      iprot.readStructBegin();
9934
      while (true)
9935
      {
9936
        field = iprot.readFieldBegin();
9937
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9938
          break;
9939
        }
9940
        switch (field.id) {
9941
          case 1: // ITEM_NUMBER
9942
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9943
              this.itemNumber = iprot.readString();
9944
            } else { 
9945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9946
            }
9947
            break;
9948
          default:
9949
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9950
        }
9951
        iprot.readFieldEnd();
9952
      }
9953
      iprot.readStructEnd();
9954
      validate();
9955
    }
9956
 
9957
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9958
      validate();
9959
 
9960
      oprot.writeStructBegin(STRUCT_DESC);
9961
      if (this.itemNumber != null) {
9962
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
9963
        oprot.writeString(this.itemNumber);
9964
        oprot.writeFieldEnd();
9965
      }
9966
      oprot.writeFieldStop();
9967
      oprot.writeStructEnd();
9968
    }
9969
 
9970
    @Override
9971
    public String toString() {
9972
      StringBuilder sb = new StringBuilder("getItemIds_args(");
9973
      boolean first = true;
9974
 
9975
      sb.append("itemNumber:");
9976
      if (this.itemNumber == null) {
9977
        sb.append("null");
9978
      } else {
9979
        sb.append(this.itemNumber);
9980
      }
9981
      first = false;
9982
      sb.append(")");
9983
      return sb.toString();
9984
    }
9985
 
9986
    public void validate() throws org.apache.thrift.TException {
9987
      // check for required fields
9988
    }
9989
 
9990
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9991
      try {
9992
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9993
      } catch (org.apache.thrift.TException te) {
9994
        throw new java.io.IOException(te);
9995
      }
9996
    }
9997
 
9998
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9999
      try {
10000
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10001
      } catch (org.apache.thrift.TException te) {
10002
        throw new java.io.IOException(te);
10003
      }
10004
    }
10005
 
10006
  }
10007
 
10008
  public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable   {
10009
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
10010
 
10011
    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);
10012
 
10013
    private List<Long> success; // required
10014
 
10015
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10016
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10017
      SUCCESS((short)0, "success");
10018
 
10019
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10020
 
10021
      static {
10022
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10023
          byName.put(field.getFieldName(), field);
10024
        }
10025
      }
10026
 
10027
      /**
10028
       * Find the _Fields constant that matches fieldId, or null if its not found.
10029
       */
10030
      public static _Fields findByThriftId(int fieldId) {
10031
        switch(fieldId) {
10032
          case 0: // SUCCESS
10033
            return SUCCESS;
10034
          default:
10035
            return null;
10036
        }
10037
      }
10038
 
10039
      /**
10040
       * Find the _Fields constant that matches fieldId, throwing an exception
10041
       * if it is not found.
10042
       */
10043
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10044
        _Fields fields = findByThriftId(fieldId);
10045
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10046
        return fields;
10047
      }
10048
 
10049
      /**
10050
       * Find the _Fields constant that matches name, or null if its not found.
10051
       */
10052
      public static _Fields findByName(String name) {
10053
        return byName.get(name);
10054
      }
10055
 
10056
      private final short _thriftId;
10057
      private final String _fieldName;
10058
 
10059
      _Fields(short thriftId, String fieldName) {
10060
        _thriftId = thriftId;
10061
        _fieldName = fieldName;
10062
      }
10063
 
10064
      public short getThriftFieldId() {
10065
        return _thriftId;
10066
      }
10067
 
10068
      public String getFieldName() {
10069
        return _fieldName;
10070
      }
10071
    }
10072
 
10073
    // isset id assignments
10074
 
10075
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10076
    static {
10077
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10078
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10079
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10080
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10081
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10082
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
10083
    }
10084
 
10085
    public getItemIds_result() {
10086
    }
10087
 
10088
    public getItemIds_result(
10089
      List<Long> success)
10090
    {
10091
      this();
10092
      this.success = success;
10093
    }
10094
 
10095
    /**
10096
     * Performs a deep copy on <i>other</i>.
10097
     */
10098
    public getItemIds_result(getItemIds_result other) {
10099
      if (other.isSetSuccess()) {
10100
        List<Long> __this__success = new ArrayList<Long>();
10101
        for (Long other_element : other.success) {
10102
          __this__success.add(other_element);
10103
        }
10104
        this.success = __this__success;
10105
      }
10106
    }
10107
 
10108
    public getItemIds_result deepCopy() {
10109
      return new getItemIds_result(this);
10110
    }
10111
 
10112
    @Override
10113
    public void clear() {
10114
      this.success = null;
10115
    }
10116
 
10117
    public int getSuccessSize() {
10118
      return (this.success == null) ? 0 : this.success.size();
10119
    }
10120
 
10121
    public java.util.Iterator<Long> getSuccessIterator() {
10122
      return (this.success == null) ? null : this.success.iterator();
10123
    }
10124
 
10125
    public void addToSuccess(long elem) {
10126
      if (this.success == null) {
10127
        this.success = new ArrayList<Long>();
10128
      }
10129
      this.success.add(elem);
10130
    }
10131
 
10132
    public List<Long> getSuccess() {
10133
      return this.success;
10134
    }
10135
 
10136
    public void setSuccess(List<Long> success) {
10137
      this.success = success;
10138
    }
10139
 
10140
    public void unsetSuccess() {
10141
      this.success = null;
10142
    }
10143
 
10144
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10145
    public boolean isSetSuccess() {
10146
      return this.success != null;
10147
    }
10148
 
10149
    public void setSuccessIsSet(boolean value) {
10150
      if (!value) {
10151
        this.success = null;
10152
      }
10153
    }
10154
 
10155
    public void setFieldValue(_Fields field, Object value) {
10156
      switch (field) {
10157
      case SUCCESS:
10158
        if (value == null) {
10159
          unsetSuccess();
10160
        } else {
10161
          setSuccess((List<Long>)value);
10162
        }
10163
        break;
10164
 
10165
      }
10166
    }
10167
 
10168
    public Object getFieldValue(_Fields field) {
10169
      switch (field) {
10170
      case SUCCESS:
10171
        return getSuccess();
10172
 
10173
      }
10174
      throw new IllegalStateException();
10175
    }
10176
 
10177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10178
    public boolean isSet(_Fields field) {
10179
      if (field == null) {
10180
        throw new IllegalArgumentException();
10181
      }
10182
 
10183
      switch (field) {
10184
      case SUCCESS:
10185
        return isSetSuccess();
10186
      }
10187
      throw new IllegalStateException();
10188
    }
10189
 
10190
    @Override
10191
    public boolean equals(Object that) {
10192
      if (that == null)
10193
        return false;
10194
      if (that instanceof getItemIds_result)
10195
        return this.equals((getItemIds_result)that);
10196
      return false;
10197
    }
10198
 
10199
    public boolean equals(getItemIds_result that) {
10200
      if (that == null)
10201
        return false;
10202
 
10203
      boolean this_present_success = true && this.isSetSuccess();
10204
      boolean that_present_success = true && that.isSetSuccess();
10205
      if (this_present_success || that_present_success) {
10206
        if (!(this_present_success && that_present_success))
10207
          return false;
10208
        if (!this.success.equals(that.success))
10209
          return false;
10210
      }
10211
 
10212
      return true;
10213
    }
10214
 
10215
    @Override
10216
    public int hashCode() {
10217
      return 0;
10218
    }
10219
 
10220
    public int compareTo(getItemIds_result other) {
10221
      if (!getClass().equals(other.getClass())) {
10222
        return getClass().getName().compareTo(other.getClass().getName());
10223
      }
10224
 
10225
      int lastComparison = 0;
10226
      getItemIds_result typedOther = (getItemIds_result)other;
10227
 
10228
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10229
      if (lastComparison != 0) {
10230
        return lastComparison;
10231
      }
10232
      if (isSetSuccess()) {
10233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10234
        if (lastComparison != 0) {
10235
          return lastComparison;
10236
        }
10237
      }
10238
      return 0;
10239
    }
10240
 
10241
    public _Fields fieldForId(int fieldId) {
10242
      return _Fields.findByThriftId(fieldId);
10243
    }
10244
 
10245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10246
      org.apache.thrift.protocol.TField field;
10247
      iprot.readStructBegin();
10248
      while (true)
10249
      {
10250
        field = iprot.readFieldBegin();
10251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10252
          break;
10253
        }
10254
        switch (field.id) {
10255
          case 0: // SUCCESS
10256
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10257
              {
5361 mandeep.dh 10258
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
10259
                this.success = new ArrayList<Long>(_list4.size);
10260
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
5110 mandeep.dh 10261
                {
5361 mandeep.dh 10262
                  long _elem6; // required
10263
                  _elem6 = iprot.readI64();
10264
                  this.success.add(_elem6);
5110 mandeep.dh 10265
                }
10266
                iprot.readListEnd();
10267
              }
10268
            } else { 
10269
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10270
            }
10271
            break;
10272
          default:
10273
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10274
        }
10275
        iprot.readFieldEnd();
10276
      }
10277
      iprot.readStructEnd();
10278
      validate();
10279
    }
10280
 
10281
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10282
      oprot.writeStructBegin(STRUCT_DESC);
10283
 
10284
      if (this.isSetSuccess()) {
10285
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10286
        {
10287
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
5361 mandeep.dh 10288
          for (long _iter7 : this.success)
5110 mandeep.dh 10289
          {
5361 mandeep.dh 10290
            oprot.writeI64(_iter7);
5110 mandeep.dh 10291
          }
10292
          oprot.writeListEnd();
10293
        }
10294
        oprot.writeFieldEnd();
10295
      }
10296
      oprot.writeFieldStop();
10297
      oprot.writeStructEnd();
10298
    }
10299
 
10300
    @Override
10301
    public String toString() {
10302
      StringBuilder sb = new StringBuilder("getItemIds_result(");
10303
      boolean first = true;
10304
 
10305
      sb.append("success:");
10306
      if (this.success == null) {
10307
        sb.append("null");
10308
      } else {
10309
        sb.append(this.success);
10310
      }
10311
      first = false;
10312
      sb.append(")");
10313
      return sb.toString();
10314
    }
10315
 
10316
    public void validate() throws org.apache.thrift.TException {
10317
      // check for required fields
10318
    }
10319
 
10320
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10321
      try {
10322
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10323
      } catch (org.apache.thrift.TException te) {
10324
        throw new java.io.IOException(te);
10325
      }
10326
    }
10327
 
10328
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10329
      try {
10330
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10331
      } catch (org.apache.thrift.TException te) {
10332
        throw new java.io.IOException(te);
10333
      }
10334
    }
10335
 
10336
  }
10337
 
5185 mandeep.dh 10338
  public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable   {
10339
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
10340
 
10341
    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);
10342
 
10343
    private ScanType lastScanType; // required
10344
 
10345
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10346
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10347
      /**
10348
       * 
10349
       * @see ScanType
10350
       */
10351
      LAST_SCAN_TYPE((short)1, "lastScanType");
10352
 
10353
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10354
 
10355
      static {
10356
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10357
          byName.put(field.getFieldName(), field);
10358
        }
10359
      }
10360
 
10361
      /**
10362
       * Find the _Fields constant that matches fieldId, or null if its not found.
10363
       */
10364
      public static _Fields findByThriftId(int fieldId) {
10365
        switch(fieldId) {
10366
          case 1: // LAST_SCAN_TYPE
10367
            return LAST_SCAN_TYPE;
10368
          default:
10369
            return null;
10370
        }
10371
      }
10372
 
10373
      /**
10374
       * Find the _Fields constant that matches fieldId, throwing an exception
10375
       * if it is not found.
10376
       */
10377
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10378
        _Fields fields = findByThriftId(fieldId);
10379
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10380
        return fields;
10381
      }
10382
 
10383
      /**
10384
       * Find the _Fields constant that matches name, or null if its not found.
10385
       */
10386
      public static _Fields findByName(String name) {
10387
        return byName.get(name);
10388
      }
10389
 
10390
      private final short _thriftId;
10391
      private final String _fieldName;
10392
 
10393
      _Fields(short thriftId, String fieldName) {
10394
        _thriftId = thriftId;
10395
        _fieldName = fieldName;
10396
      }
10397
 
10398
      public short getThriftFieldId() {
10399
        return _thriftId;
10400
      }
10401
 
10402
      public String getFieldName() {
10403
        return _fieldName;
10404
      }
10405
    }
10406
 
10407
    // isset id assignments
10408
 
10409
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10410
    static {
10411
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10412
      tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10413
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
10414
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10415
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
10416
    }
10417
 
10418
    public getInventoryItemsFromLastScanType_args() {
10419
    }
10420
 
10421
    public getInventoryItemsFromLastScanType_args(
10422
      ScanType lastScanType)
10423
    {
10424
      this();
10425
      this.lastScanType = lastScanType;
10426
    }
10427
 
10428
    /**
10429
     * Performs a deep copy on <i>other</i>.
10430
     */
10431
    public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
10432
      if (other.isSetLastScanType()) {
10433
        this.lastScanType = other.lastScanType;
10434
      }
10435
    }
10436
 
10437
    public getInventoryItemsFromLastScanType_args deepCopy() {
10438
      return new getInventoryItemsFromLastScanType_args(this);
10439
    }
10440
 
10441
    @Override
10442
    public void clear() {
10443
      this.lastScanType = null;
10444
    }
10445
 
10446
    /**
10447
     * 
10448
     * @see ScanType
10449
     */
10450
    public ScanType getLastScanType() {
10451
      return this.lastScanType;
10452
    }
10453
 
10454
    /**
10455
     * 
10456
     * @see ScanType
10457
     */
10458
    public void setLastScanType(ScanType lastScanType) {
10459
      this.lastScanType = lastScanType;
10460
    }
10461
 
10462
    public void unsetLastScanType() {
10463
      this.lastScanType = null;
10464
    }
10465
 
10466
    /** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
10467
    public boolean isSetLastScanType() {
10468
      return this.lastScanType != null;
10469
    }
10470
 
10471
    public void setLastScanTypeIsSet(boolean value) {
10472
      if (!value) {
10473
        this.lastScanType = null;
10474
      }
10475
    }
10476
 
10477
    public void setFieldValue(_Fields field, Object value) {
10478
      switch (field) {
10479
      case LAST_SCAN_TYPE:
10480
        if (value == null) {
10481
          unsetLastScanType();
10482
        } else {
10483
          setLastScanType((ScanType)value);
10484
        }
10485
        break;
10486
 
10487
      }
10488
    }
10489
 
10490
    public Object getFieldValue(_Fields field) {
10491
      switch (field) {
10492
      case LAST_SCAN_TYPE:
10493
        return getLastScanType();
10494
 
10495
      }
10496
      throw new IllegalStateException();
10497
    }
10498
 
10499
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10500
    public boolean isSet(_Fields field) {
10501
      if (field == null) {
10502
        throw new IllegalArgumentException();
10503
      }
10504
 
10505
      switch (field) {
10506
      case LAST_SCAN_TYPE:
10507
        return isSetLastScanType();
10508
      }
10509
      throw new IllegalStateException();
10510
    }
10511
 
10512
    @Override
10513
    public boolean equals(Object that) {
10514
      if (that == null)
10515
        return false;
10516
      if (that instanceof getInventoryItemsFromLastScanType_args)
10517
        return this.equals((getInventoryItemsFromLastScanType_args)that);
10518
      return false;
10519
    }
10520
 
10521
    public boolean equals(getInventoryItemsFromLastScanType_args that) {
10522
      if (that == null)
10523
        return false;
10524
 
10525
      boolean this_present_lastScanType = true && this.isSetLastScanType();
10526
      boolean that_present_lastScanType = true && that.isSetLastScanType();
10527
      if (this_present_lastScanType || that_present_lastScanType) {
10528
        if (!(this_present_lastScanType && that_present_lastScanType))
10529
          return false;
10530
        if (!this.lastScanType.equals(that.lastScanType))
10531
          return false;
10532
      }
10533
 
10534
      return true;
10535
    }
10536
 
10537
    @Override
10538
    public int hashCode() {
10539
      return 0;
10540
    }
10541
 
10542
    public int compareTo(getInventoryItemsFromLastScanType_args other) {
10543
      if (!getClass().equals(other.getClass())) {
10544
        return getClass().getName().compareTo(other.getClass().getName());
10545
      }
10546
 
10547
      int lastComparison = 0;
10548
      getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
10549
 
10550
      lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
10551
      if (lastComparison != 0) {
10552
        return lastComparison;
10553
      }
10554
      if (isSetLastScanType()) {
10555
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
10556
        if (lastComparison != 0) {
10557
          return lastComparison;
10558
        }
10559
      }
10560
      return 0;
10561
    }
10562
 
10563
    public _Fields fieldForId(int fieldId) {
10564
      return _Fields.findByThriftId(fieldId);
10565
    }
10566
 
10567
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10568
      org.apache.thrift.protocol.TField field;
10569
      iprot.readStructBegin();
10570
      while (true)
10571
      {
10572
        field = iprot.readFieldBegin();
10573
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10574
          break;
10575
        }
10576
        switch (field.id) {
10577
          case 1: // LAST_SCAN_TYPE
10578
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10579
              this.lastScanType = ScanType.findByValue(iprot.readI32());
10580
            } else { 
10581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10582
            }
10583
            break;
10584
          default:
10585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10586
        }
10587
        iprot.readFieldEnd();
10588
      }
10589
      iprot.readStructEnd();
10590
      validate();
10591
    }
10592
 
10593
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10594
      validate();
10595
 
10596
      oprot.writeStructBegin(STRUCT_DESC);
10597
      if (this.lastScanType != null) {
10598
        oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
10599
        oprot.writeI32(this.lastScanType.getValue());
10600
        oprot.writeFieldEnd();
10601
      }
10602
      oprot.writeFieldStop();
10603
      oprot.writeStructEnd();
10604
    }
10605
 
10606
    @Override
10607
    public String toString() {
10608
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
10609
      boolean first = true;
10610
 
10611
      sb.append("lastScanType:");
10612
      if (this.lastScanType == null) {
10613
        sb.append("null");
10614
      } else {
10615
        sb.append(this.lastScanType);
10616
      }
10617
      first = false;
10618
      sb.append(")");
10619
      return sb.toString();
10620
    }
10621
 
10622
    public void validate() throws org.apache.thrift.TException {
10623
      // check for required fields
10624
    }
10625
 
10626
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10627
      try {
10628
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10629
      } catch (org.apache.thrift.TException te) {
10630
        throw new java.io.IOException(te);
10631
      }
10632
    }
10633
 
10634
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10635
      try {
10636
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10637
      } catch (org.apache.thrift.TException te) {
10638
        throw new java.io.IOException(te);
10639
      }
10640
    }
10641
 
10642
  }
10643
 
10644
  public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable   {
10645
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
10646
 
10647
    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);
10648
    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);
10649
 
10650
    private List<InventoryItem> success; // required
10651
    private WarehouseServiceException wex; // required
10652
 
10653
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10654
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10655
      SUCCESS((short)0, "success"),
10656
      WEX((short)1, "wex");
10657
 
10658
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10659
 
10660
      static {
10661
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10662
          byName.put(field.getFieldName(), field);
10663
        }
10664
      }
10665
 
10666
      /**
10667
       * Find the _Fields constant that matches fieldId, or null if its not found.
10668
       */
10669
      public static _Fields findByThriftId(int fieldId) {
10670
        switch(fieldId) {
10671
          case 0: // SUCCESS
10672
            return SUCCESS;
10673
          case 1: // WEX
10674
            return WEX;
10675
          default:
10676
            return null;
10677
        }
10678
      }
10679
 
10680
      /**
10681
       * Find the _Fields constant that matches fieldId, throwing an exception
10682
       * if it is not found.
10683
       */
10684
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10685
        _Fields fields = findByThriftId(fieldId);
10686
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10687
        return fields;
10688
      }
10689
 
10690
      /**
10691
       * Find the _Fields constant that matches name, or null if its not found.
10692
       */
10693
      public static _Fields findByName(String name) {
10694
        return byName.get(name);
10695
      }
10696
 
10697
      private final short _thriftId;
10698
      private final String _fieldName;
10699
 
10700
      _Fields(short thriftId, String fieldName) {
10701
        _thriftId = thriftId;
10702
        _fieldName = fieldName;
10703
      }
10704
 
10705
      public short getThriftFieldId() {
10706
        return _thriftId;
10707
      }
10708
 
10709
      public String getFieldName() {
10710
        return _fieldName;
10711
      }
10712
    }
10713
 
10714
    // isset id assignments
10715
 
10716
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10717
    static {
10718
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10719
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10720
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10721
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
10722
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10723
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10724
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10725
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
10726
    }
10727
 
10728
    public getInventoryItemsFromLastScanType_result() {
10729
    }
10730
 
10731
    public getInventoryItemsFromLastScanType_result(
10732
      List<InventoryItem> success,
10733
      WarehouseServiceException wex)
10734
    {
10735
      this();
10736
      this.success = success;
10737
      this.wex = wex;
10738
    }
10739
 
10740
    /**
10741
     * Performs a deep copy on <i>other</i>.
10742
     */
10743
    public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
10744
      if (other.isSetSuccess()) {
10745
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
10746
        for (InventoryItem other_element : other.success) {
10747
          __this__success.add(new InventoryItem(other_element));
10748
        }
10749
        this.success = __this__success;
10750
      }
10751
      if (other.isSetWex()) {
10752
        this.wex = new WarehouseServiceException(other.wex);
10753
      }
10754
    }
10755
 
10756
    public getInventoryItemsFromLastScanType_result deepCopy() {
10757
      return new getInventoryItemsFromLastScanType_result(this);
10758
    }
10759
 
10760
    @Override
10761
    public void clear() {
10762
      this.success = null;
10763
      this.wex = null;
10764
    }
10765
 
10766
    public int getSuccessSize() {
10767
      return (this.success == null) ? 0 : this.success.size();
10768
    }
10769
 
10770
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
10771
      return (this.success == null) ? null : this.success.iterator();
10772
    }
10773
 
10774
    public void addToSuccess(InventoryItem elem) {
10775
      if (this.success == null) {
10776
        this.success = new ArrayList<InventoryItem>();
10777
      }
10778
      this.success.add(elem);
10779
    }
10780
 
10781
    public List<InventoryItem> getSuccess() {
10782
      return this.success;
10783
    }
10784
 
10785
    public void setSuccess(List<InventoryItem> success) {
10786
      this.success = success;
10787
    }
10788
 
10789
    public void unsetSuccess() {
10790
      this.success = null;
10791
    }
10792
 
10793
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10794
    public boolean isSetSuccess() {
10795
      return this.success != null;
10796
    }
10797
 
10798
    public void setSuccessIsSet(boolean value) {
10799
      if (!value) {
10800
        this.success = null;
10801
      }
10802
    }
10803
 
10804
    public WarehouseServiceException getWex() {
10805
      return this.wex;
10806
    }
10807
 
10808
    public void setWex(WarehouseServiceException wex) {
10809
      this.wex = wex;
10810
    }
10811
 
10812
    public void unsetWex() {
10813
      this.wex = null;
10814
    }
10815
 
10816
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
10817
    public boolean isSetWex() {
10818
      return this.wex != null;
10819
    }
10820
 
10821
    public void setWexIsSet(boolean value) {
10822
      if (!value) {
10823
        this.wex = null;
10824
      }
10825
    }
10826
 
10827
    public void setFieldValue(_Fields field, Object value) {
10828
      switch (field) {
10829
      case SUCCESS:
10830
        if (value == null) {
10831
          unsetSuccess();
10832
        } else {
10833
          setSuccess((List<InventoryItem>)value);
10834
        }
10835
        break;
10836
 
10837
      case WEX:
10838
        if (value == null) {
10839
          unsetWex();
10840
        } else {
10841
          setWex((WarehouseServiceException)value);
10842
        }
10843
        break;
10844
 
10845
      }
10846
    }
10847
 
10848
    public Object getFieldValue(_Fields field) {
10849
      switch (field) {
10850
      case SUCCESS:
10851
        return getSuccess();
10852
 
10853
      case WEX:
10854
        return getWex();
10855
 
10856
      }
10857
      throw new IllegalStateException();
10858
    }
10859
 
10860
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10861
    public boolean isSet(_Fields field) {
10862
      if (field == null) {
10863
        throw new IllegalArgumentException();
10864
      }
10865
 
10866
      switch (field) {
10867
      case SUCCESS:
10868
        return isSetSuccess();
10869
      case WEX:
10870
        return isSetWex();
10871
      }
10872
      throw new IllegalStateException();
10873
    }
10874
 
10875
    @Override
10876
    public boolean equals(Object that) {
10877
      if (that == null)
10878
        return false;
10879
      if (that instanceof getInventoryItemsFromLastScanType_result)
10880
        return this.equals((getInventoryItemsFromLastScanType_result)that);
10881
      return false;
10882
    }
10883
 
10884
    public boolean equals(getInventoryItemsFromLastScanType_result that) {
10885
      if (that == null)
10886
        return false;
10887
 
10888
      boolean this_present_success = true && this.isSetSuccess();
10889
      boolean that_present_success = true && that.isSetSuccess();
10890
      if (this_present_success || that_present_success) {
10891
        if (!(this_present_success && that_present_success))
10892
          return false;
10893
        if (!this.success.equals(that.success))
10894
          return false;
10895
      }
10896
 
10897
      boolean this_present_wex = true && this.isSetWex();
10898
      boolean that_present_wex = true && that.isSetWex();
10899
      if (this_present_wex || that_present_wex) {
10900
        if (!(this_present_wex && that_present_wex))
10901
          return false;
10902
        if (!this.wex.equals(that.wex))
10903
          return false;
10904
      }
10905
 
10906
      return true;
10907
    }
10908
 
10909
    @Override
10910
    public int hashCode() {
10911
      return 0;
10912
    }
10913
 
10914
    public int compareTo(getInventoryItemsFromLastScanType_result other) {
10915
      if (!getClass().equals(other.getClass())) {
10916
        return getClass().getName().compareTo(other.getClass().getName());
10917
      }
10918
 
10919
      int lastComparison = 0;
10920
      getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
10921
 
10922
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10923
      if (lastComparison != 0) {
10924
        return lastComparison;
10925
      }
10926
      if (isSetSuccess()) {
10927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10928
        if (lastComparison != 0) {
10929
          return lastComparison;
10930
        }
10931
      }
10932
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
10933
      if (lastComparison != 0) {
10934
        return lastComparison;
10935
      }
10936
      if (isSetWex()) {
10937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
10938
        if (lastComparison != 0) {
10939
          return lastComparison;
10940
        }
10941
      }
10942
      return 0;
10943
    }
10944
 
10945
    public _Fields fieldForId(int fieldId) {
10946
      return _Fields.findByThriftId(fieldId);
10947
    }
10948
 
10949
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10950
      org.apache.thrift.protocol.TField field;
10951
      iprot.readStructBegin();
10952
      while (true)
10953
      {
10954
        field = iprot.readFieldBegin();
10955
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10956
          break;
10957
        }
10958
        switch (field.id) {
10959
          case 0: // SUCCESS
10960
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10961
              {
5361 mandeep.dh 10962
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
10963
                this.success = new ArrayList<InventoryItem>(_list8.size);
10964
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
5185 mandeep.dh 10965
                {
5361 mandeep.dh 10966
                  InventoryItem _elem10; // required
10967
                  _elem10 = new InventoryItem();
10968
                  _elem10.read(iprot);
10969
                  this.success.add(_elem10);
5185 mandeep.dh 10970
                }
10971
                iprot.readListEnd();
10972
              }
10973
            } else { 
10974
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10975
            }
10976
            break;
10977
          case 1: // WEX
10978
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10979
              this.wex = new WarehouseServiceException();
10980
              this.wex.read(iprot);
10981
            } else { 
10982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10983
            }
10984
            break;
10985
          default:
10986
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10987
        }
10988
        iprot.readFieldEnd();
10989
      }
10990
      iprot.readStructEnd();
10991
      validate();
10992
    }
10993
 
10994
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10995
      oprot.writeStructBegin(STRUCT_DESC);
10996
 
10997
      if (this.isSetSuccess()) {
10998
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10999
        {
11000
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5361 mandeep.dh 11001
          for (InventoryItem _iter11 : this.success)
5185 mandeep.dh 11002
          {
5361 mandeep.dh 11003
            _iter11.write(oprot);
5185 mandeep.dh 11004
          }
11005
          oprot.writeListEnd();
11006
        }
11007
        oprot.writeFieldEnd();
11008
      } else if (this.isSetWex()) {
11009
        oprot.writeFieldBegin(WEX_FIELD_DESC);
11010
        this.wex.write(oprot);
11011
        oprot.writeFieldEnd();
11012
      }
11013
      oprot.writeFieldStop();
11014
      oprot.writeStructEnd();
11015
    }
11016
 
11017
    @Override
11018
    public String toString() {
11019
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
11020
      boolean first = true;
11021
 
11022
      sb.append("success:");
11023
      if (this.success == null) {
11024
        sb.append("null");
11025
      } else {
11026
        sb.append(this.success);
11027
      }
11028
      first = false;
11029
      if (!first) sb.append(", ");
11030
      sb.append("wex:");
11031
      if (this.wex == null) {
11032
        sb.append("null");
11033
      } else {
11034
        sb.append(this.wex);
11035
      }
11036
      first = false;
11037
      sb.append(")");
11038
      return sb.toString();
11039
    }
11040
 
11041
    public void validate() throws org.apache.thrift.TException {
11042
      // check for required fields
11043
    }
11044
 
11045
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11046
      try {
11047
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11048
      } catch (org.apache.thrift.TException te) {
11049
        throw new java.io.IOException(te);
11050
      }
11051
    }
11052
 
11053
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11054
      try {
11055
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11056
      } catch (org.apache.thrift.TException te) {
11057
        throw new java.io.IOException(te);
11058
      }
11059
    }
11060
 
11061
  }
11062
 
11063
  public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable   {
11064
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
11065
 
11066
    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);
11067
 
11068
    private long inventoryItemId; // required
11069
 
11070
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11071
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11072
      INVENTORY_ITEM_ID((short)1, "inventoryItemId");
11073
 
11074
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11075
 
11076
      static {
11077
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11078
          byName.put(field.getFieldName(), field);
11079
        }
11080
      }
11081
 
11082
      /**
11083
       * Find the _Fields constant that matches fieldId, or null if its not found.
11084
       */
11085
      public static _Fields findByThriftId(int fieldId) {
11086
        switch(fieldId) {
11087
          case 1: // INVENTORY_ITEM_ID
11088
            return INVENTORY_ITEM_ID;
11089
          default:
11090
            return null;
11091
        }
11092
      }
11093
 
11094
      /**
11095
       * Find the _Fields constant that matches fieldId, throwing an exception
11096
       * if it is not found.
11097
       */
11098
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11099
        _Fields fields = findByThriftId(fieldId);
11100
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11101
        return fields;
11102
      }
11103
 
11104
      /**
11105
       * Find the _Fields constant that matches name, or null if its not found.
11106
       */
11107
      public static _Fields findByName(String name) {
11108
        return byName.get(name);
11109
      }
11110
 
11111
      private final short _thriftId;
11112
      private final String _fieldName;
11113
 
11114
      _Fields(short thriftId, String fieldName) {
11115
        _thriftId = thriftId;
11116
        _fieldName = fieldName;
11117
      }
11118
 
11119
      public short getThriftFieldId() {
11120
        return _thriftId;
11121
      }
11122
 
11123
      public String getFieldName() {
11124
        return _fieldName;
11125
      }
11126
    }
11127
 
11128
    // isset id assignments
11129
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
11130
    private BitSet __isset_bit_vector = new BitSet(1);
11131
 
11132
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11133
    static {
11134
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11135
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11136
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11137
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11138
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
11139
    }
11140
 
11141
    public getInventoryItemFromId_args() {
11142
    }
11143
 
11144
    public getInventoryItemFromId_args(
11145
      long inventoryItemId)
11146
    {
11147
      this();
11148
      this.inventoryItemId = inventoryItemId;
11149
      setInventoryItemIdIsSet(true);
11150
    }
11151
 
11152
    /**
11153
     * Performs a deep copy on <i>other</i>.
11154
     */
11155
    public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
11156
      __isset_bit_vector.clear();
11157
      __isset_bit_vector.or(other.__isset_bit_vector);
11158
      this.inventoryItemId = other.inventoryItemId;
11159
    }
11160
 
11161
    public getInventoryItemFromId_args deepCopy() {
11162
      return new getInventoryItemFromId_args(this);
11163
    }
11164
 
11165
    @Override
11166
    public void clear() {
11167
      setInventoryItemIdIsSet(false);
11168
      this.inventoryItemId = 0;
11169
    }
11170
 
11171
    public long getInventoryItemId() {
11172
      return this.inventoryItemId;
11173
    }
11174
 
11175
    public void setInventoryItemId(long inventoryItemId) {
11176
      this.inventoryItemId = inventoryItemId;
11177
      setInventoryItemIdIsSet(true);
11178
    }
11179
 
11180
    public void unsetInventoryItemId() {
11181
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
11182
    }
11183
 
11184
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
11185
    public boolean isSetInventoryItemId() {
11186
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
11187
    }
11188
 
11189
    public void setInventoryItemIdIsSet(boolean value) {
11190
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
11191
    }
11192
 
11193
    public void setFieldValue(_Fields field, Object value) {
11194
      switch (field) {
11195
      case INVENTORY_ITEM_ID:
11196
        if (value == null) {
11197
          unsetInventoryItemId();
11198
        } else {
11199
          setInventoryItemId((Long)value);
11200
        }
11201
        break;
11202
 
11203
      }
11204
    }
11205
 
11206
    public Object getFieldValue(_Fields field) {
11207
      switch (field) {
11208
      case INVENTORY_ITEM_ID:
11209
        return Long.valueOf(getInventoryItemId());
11210
 
11211
      }
11212
      throw new IllegalStateException();
11213
    }
11214
 
11215
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11216
    public boolean isSet(_Fields field) {
11217
      if (field == null) {
11218
        throw new IllegalArgumentException();
11219
      }
11220
 
11221
      switch (field) {
11222
      case INVENTORY_ITEM_ID:
11223
        return isSetInventoryItemId();
11224
      }
11225
      throw new IllegalStateException();
11226
    }
11227
 
11228
    @Override
11229
    public boolean equals(Object that) {
11230
      if (that == null)
11231
        return false;
11232
      if (that instanceof getInventoryItemFromId_args)
11233
        return this.equals((getInventoryItemFromId_args)that);
11234
      return false;
11235
    }
11236
 
11237
    public boolean equals(getInventoryItemFromId_args that) {
11238
      if (that == null)
11239
        return false;
11240
 
11241
      boolean this_present_inventoryItemId = true;
11242
      boolean that_present_inventoryItemId = true;
11243
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
11244
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
11245
          return false;
11246
        if (this.inventoryItemId != that.inventoryItemId)
11247
          return false;
11248
      }
11249
 
11250
      return true;
11251
    }
11252
 
11253
    @Override
11254
    public int hashCode() {
11255
      return 0;
11256
    }
11257
 
11258
    public int compareTo(getInventoryItemFromId_args other) {
11259
      if (!getClass().equals(other.getClass())) {
11260
        return getClass().getName().compareTo(other.getClass().getName());
11261
      }
11262
 
11263
      int lastComparison = 0;
11264
      getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
11265
 
11266
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
11267
      if (lastComparison != 0) {
11268
        return lastComparison;
11269
      }
11270
      if (isSetInventoryItemId()) {
11271
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
11272
        if (lastComparison != 0) {
11273
          return lastComparison;
11274
        }
11275
      }
11276
      return 0;
11277
    }
11278
 
11279
    public _Fields fieldForId(int fieldId) {
11280
      return _Fields.findByThriftId(fieldId);
11281
    }
11282
 
11283
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11284
      org.apache.thrift.protocol.TField field;
11285
      iprot.readStructBegin();
11286
      while (true)
11287
      {
11288
        field = iprot.readFieldBegin();
11289
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11290
          break;
11291
        }
11292
        switch (field.id) {
11293
          case 1: // INVENTORY_ITEM_ID
11294
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11295
              this.inventoryItemId = iprot.readI64();
11296
              setInventoryItemIdIsSet(true);
11297
            } else { 
11298
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11299
            }
11300
            break;
11301
          default:
11302
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11303
        }
11304
        iprot.readFieldEnd();
11305
      }
11306
      iprot.readStructEnd();
11307
      validate();
11308
    }
11309
 
11310
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11311
      validate();
11312
 
11313
      oprot.writeStructBegin(STRUCT_DESC);
11314
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
11315
      oprot.writeI64(this.inventoryItemId);
11316
      oprot.writeFieldEnd();
11317
      oprot.writeFieldStop();
11318
      oprot.writeStructEnd();
11319
    }
11320
 
11321
    @Override
11322
    public String toString() {
11323
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
11324
      boolean first = true;
11325
 
11326
      sb.append("inventoryItemId:");
11327
      sb.append(this.inventoryItemId);
11328
      first = false;
11329
      sb.append(")");
11330
      return sb.toString();
11331
    }
11332
 
11333
    public void validate() throws org.apache.thrift.TException {
11334
      // check for required fields
11335
    }
11336
 
11337
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11338
      try {
11339
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11340
      } catch (org.apache.thrift.TException te) {
11341
        throw new java.io.IOException(te);
11342
      }
11343
    }
11344
 
11345
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11346
      try {
5372 mandeep.dh 11347
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11348
        __isset_bit_vector = new BitSet(1);
5185 mandeep.dh 11349
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11350
      } catch (org.apache.thrift.TException te) {
11351
        throw new java.io.IOException(te);
11352
      }
11353
    }
11354
 
11355
  }
11356
 
11357
  public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable   {
11358
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
11359
 
11360
    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);
11361
    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);
11362
 
11363
    private InventoryItem success; // required
11364
    private WarehouseServiceException wex; // required
11365
 
11366
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11367
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11368
      SUCCESS((short)0, "success"),
11369
      WEX((short)1, "wex");
11370
 
11371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11372
 
11373
      static {
11374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11375
          byName.put(field.getFieldName(), field);
11376
        }
11377
      }
11378
 
11379
      /**
11380
       * Find the _Fields constant that matches fieldId, or null if its not found.
11381
       */
11382
      public static _Fields findByThriftId(int fieldId) {
11383
        switch(fieldId) {
11384
          case 0: // SUCCESS
11385
            return SUCCESS;
11386
          case 1: // WEX
11387
            return WEX;
11388
          default:
11389
            return null;
11390
        }
11391
      }
11392
 
11393
      /**
11394
       * Find the _Fields constant that matches fieldId, throwing an exception
11395
       * if it is not found.
11396
       */
11397
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11398
        _Fields fields = findByThriftId(fieldId);
11399
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11400
        return fields;
11401
      }
11402
 
11403
      /**
11404
       * Find the _Fields constant that matches name, or null if its not found.
11405
       */
11406
      public static _Fields findByName(String name) {
11407
        return byName.get(name);
11408
      }
11409
 
11410
      private final short _thriftId;
11411
      private final String _fieldName;
11412
 
11413
      _Fields(short thriftId, String fieldName) {
11414
        _thriftId = thriftId;
11415
        _fieldName = fieldName;
11416
      }
11417
 
11418
      public short getThriftFieldId() {
11419
        return _thriftId;
11420
      }
11421
 
11422
      public String getFieldName() {
11423
        return _fieldName;
11424
      }
11425
    }
11426
 
11427
    // isset id assignments
11428
 
11429
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11430
    static {
11431
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11432
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11433
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
11434
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11435
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11436
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11437
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
11438
    }
11439
 
11440
    public getInventoryItemFromId_result() {
11441
    }
11442
 
11443
    public getInventoryItemFromId_result(
11444
      InventoryItem success,
11445
      WarehouseServiceException wex)
11446
    {
11447
      this();
11448
      this.success = success;
11449
      this.wex = wex;
11450
    }
11451
 
11452
    /**
11453
     * Performs a deep copy on <i>other</i>.
11454
     */
11455
    public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
11456
      if (other.isSetSuccess()) {
11457
        this.success = new InventoryItem(other.success);
11458
      }
11459
      if (other.isSetWex()) {
11460
        this.wex = new WarehouseServiceException(other.wex);
11461
      }
11462
    }
11463
 
11464
    public getInventoryItemFromId_result deepCopy() {
11465
      return new getInventoryItemFromId_result(this);
11466
    }
11467
 
11468
    @Override
11469
    public void clear() {
11470
      this.success = null;
11471
      this.wex = null;
11472
    }
11473
 
11474
    public InventoryItem getSuccess() {
11475
      return this.success;
11476
    }
11477
 
11478
    public void setSuccess(InventoryItem success) {
11479
      this.success = success;
11480
    }
11481
 
11482
    public void unsetSuccess() {
11483
      this.success = null;
11484
    }
11485
 
11486
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11487
    public boolean isSetSuccess() {
11488
      return this.success != null;
11489
    }
11490
 
11491
    public void setSuccessIsSet(boolean value) {
11492
      if (!value) {
11493
        this.success = null;
11494
      }
11495
    }
11496
 
11497
    public WarehouseServiceException getWex() {
11498
      return this.wex;
11499
    }
11500
 
11501
    public void setWex(WarehouseServiceException wex) {
11502
      this.wex = wex;
11503
    }
11504
 
11505
    public void unsetWex() {
11506
      this.wex = null;
11507
    }
11508
 
11509
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
11510
    public boolean isSetWex() {
11511
      return this.wex != null;
11512
    }
11513
 
11514
    public void setWexIsSet(boolean value) {
11515
      if (!value) {
11516
        this.wex = null;
11517
      }
11518
    }
11519
 
11520
    public void setFieldValue(_Fields field, Object value) {
11521
      switch (field) {
11522
      case SUCCESS:
11523
        if (value == null) {
11524
          unsetSuccess();
11525
        } else {
11526
          setSuccess((InventoryItem)value);
11527
        }
11528
        break;
11529
 
11530
      case WEX:
11531
        if (value == null) {
11532
          unsetWex();
11533
        } else {
11534
          setWex((WarehouseServiceException)value);
11535
        }
11536
        break;
11537
 
11538
      }
11539
    }
11540
 
11541
    public Object getFieldValue(_Fields field) {
11542
      switch (field) {
11543
      case SUCCESS:
11544
        return getSuccess();
11545
 
11546
      case WEX:
11547
        return getWex();
11548
 
11549
      }
11550
      throw new IllegalStateException();
11551
    }
11552
 
11553
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11554
    public boolean isSet(_Fields field) {
11555
      if (field == null) {
11556
        throw new IllegalArgumentException();
11557
      }
11558
 
11559
      switch (field) {
11560
      case SUCCESS:
11561
        return isSetSuccess();
11562
      case WEX:
11563
        return isSetWex();
11564
      }
11565
      throw new IllegalStateException();
11566
    }
11567
 
11568
    @Override
11569
    public boolean equals(Object that) {
11570
      if (that == null)
11571
        return false;
11572
      if (that instanceof getInventoryItemFromId_result)
11573
        return this.equals((getInventoryItemFromId_result)that);
11574
      return false;
11575
    }
11576
 
11577
    public boolean equals(getInventoryItemFromId_result that) {
11578
      if (that == null)
11579
        return false;
11580
 
11581
      boolean this_present_success = true && this.isSetSuccess();
11582
      boolean that_present_success = true && that.isSetSuccess();
11583
      if (this_present_success || that_present_success) {
11584
        if (!(this_present_success && that_present_success))
11585
          return false;
11586
        if (!this.success.equals(that.success))
11587
          return false;
11588
      }
11589
 
11590
      boolean this_present_wex = true && this.isSetWex();
11591
      boolean that_present_wex = true && that.isSetWex();
11592
      if (this_present_wex || that_present_wex) {
11593
        if (!(this_present_wex && that_present_wex))
11594
          return false;
11595
        if (!this.wex.equals(that.wex))
11596
          return false;
11597
      }
11598
 
11599
      return true;
11600
    }
11601
 
11602
    @Override
11603
    public int hashCode() {
11604
      return 0;
11605
    }
11606
 
11607
    public int compareTo(getInventoryItemFromId_result other) {
11608
      if (!getClass().equals(other.getClass())) {
11609
        return getClass().getName().compareTo(other.getClass().getName());
11610
      }
11611
 
11612
      int lastComparison = 0;
11613
      getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
11614
 
11615
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11616
      if (lastComparison != 0) {
11617
        return lastComparison;
11618
      }
11619
      if (isSetSuccess()) {
11620
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11621
        if (lastComparison != 0) {
11622
          return lastComparison;
11623
        }
11624
      }
11625
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
11626
      if (lastComparison != 0) {
11627
        return lastComparison;
11628
      }
11629
      if (isSetWex()) {
11630
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
11631
        if (lastComparison != 0) {
11632
          return lastComparison;
11633
        }
11634
      }
11635
      return 0;
11636
    }
11637
 
11638
    public _Fields fieldForId(int fieldId) {
11639
      return _Fields.findByThriftId(fieldId);
11640
    }
11641
 
11642
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11643
      org.apache.thrift.protocol.TField field;
11644
      iprot.readStructBegin();
11645
      while (true)
11646
      {
11647
        field = iprot.readFieldBegin();
11648
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11649
          break;
11650
        }
11651
        switch (field.id) {
11652
          case 0: // SUCCESS
11653
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11654
              this.success = new InventoryItem();
11655
              this.success.read(iprot);
11656
            } else { 
11657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11658
            }
11659
            break;
11660
          case 1: // WEX
11661
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11662
              this.wex = new WarehouseServiceException();
11663
              this.wex.read(iprot);
11664
            } else { 
11665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11666
            }
11667
            break;
11668
          default:
11669
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11670
        }
11671
        iprot.readFieldEnd();
11672
      }
11673
      iprot.readStructEnd();
11674
      validate();
11675
    }
11676
 
11677
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11678
      oprot.writeStructBegin(STRUCT_DESC);
11679
 
11680
      if (this.isSetSuccess()) {
11681
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11682
        this.success.write(oprot);
11683
        oprot.writeFieldEnd();
11684
      } else if (this.isSetWex()) {
11685
        oprot.writeFieldBegin(WEX_FIELD_DESC);
11686
        this.wex.write(oprot);
11687
        oprot.writeFieldEnd();
11688
      }
11689
      oprot.writeFieldStop();
11690
      oprot.writeStructEnd();
11691
    }
11692
 
11693
    @Override
11694
    public String toString() {
11695
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
11696
      boolean first = true;
11697
 
11698
      sb.append("success:");
11699
      if (this.success == null) {
11700
        sb.append("null");
11701
      } else {
11702
        sb.append(this.success);
11703
      }
11704
      first = false;
11705
      if (!first) sb.append(", ");
11706
      sb.append("wex:");
11707
      if (this.wex == null) {
11708
        sb.append("null");
11709
      } else {
11710
        sb.append(this.wex);
11711
      }
11712
      first = false;
11713
      sb.append(")");
11714
      return sb.toString();
11715
    }
11716
 
11717
    public void validate() throws org.apache.thrift.TException {
11718
      // check for required fields
11719
    }
11720
 
11721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11722
      try {
11723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11724
      } catch (org.apache.thrift.TException te) {
11725
        throw new java.io.IOException(te);
11726
      }
11727
    }
11728
 
11729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11730
      try {
11731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11732
      } catch (org.apache.thrift.TException te) {
11733
        throw new java.io.IOException(te);
11734
      }
11735
    }
11736
 
11737
  }
11738
 
5372 mandeep.dh 11739
  public static class getPurchaseScans_args implements org.apache.thrift.TBase<getPurchaseScans_args, getPurchaseScans_args._Fields>, java.io.Serializable, Cloneable   {
11740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_args");
11741
 
11742
    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);
11743
    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);
11744
 
11745
    private long startDate; // required
11746
    private long endDate; // required
11747
 
11748
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11749
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11750
      START_DATE((short)1, "startDate"),
11751
      END_DATE((short)2, "endDate");
11752
 
11753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11754
 
11755
      static {
11756
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11757
          byName.put(field.getFieldName(), field);
11758
        }
11759
      }
11760
 
11761
      /**
11762
       * Find the _Fields constant that matches fieldId, or null if its not found.
11763
       */
11764
      public static _Fields findByThriftId(int fieldId) {
11765
        switch(fieldId) {
11766
          case 1: // START_DATE
11767
            return START_DATE;
11768
          case 2: // END_DATE
11769
            return END_DATE;
11770
          default:
11771
            return null;
11772
        }
11773
      }
11774
 
11775
      /**
11776
       * Find the _Fields constant that matches fieldId, throwing an exception
11777
       * if it is not found.
11778
       */
11779
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11780
        _Fields fields = findByThriftId(fieldId);
11781
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11782
        return fields;
11783
      }
11784
 
11785
      /**
11786
       * Find the _Fields constant that matches name, or null if its not found.
11787
       */
11788
      public static _Fields findByName(String name) {
11789
        return byName.get(name);
11790
      }
11791
 
11792
      private final short _thriftId;
11793
      private final String _fieldName;
11794
 
11795
      _Fields(short thriftId, String fieldName) {
11796
        _thriftId = thriftId;
11797
        _fieldName = fieldName;
11798
      }
11799
 
11800
      public short getThriftFieldId() {
11801
        return _thriftId;
11802
      }
11803
 
11804
      public String getFieldName() {
11805
        return _fieldName;
11806
      }
11807
    }
11808
 
11809
    // isset id assignments
11810
    private static final int __STARTDATE_ISSET_ID = 0;
11811
    private static final int __ENDDATE_ISSET_ID = 1;
11812
    private BitSet __isset_bit_vector = new BitSet(2);
11813
 
11814
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11815
    static {
11816
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11817
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11818
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11819
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11820
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11821
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11822
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_args.class, metaDataMap);
11823
    }
11824
 
11825
    public getPurchaseScans_args() {
11826
    }
11827
 
11828
    public getPurchaseScans_args(
11829
      long startDate,
11830
      long endDate)
11831
    {
11832
      this();
11833
      this.startDate = startDate;
11834
      setStartDateIsSet(true);
11835
      this.endDate = endDate;
11836
      setEndDateIsSet(true);
11837
    }
11838
 
11839
    /**
11840
     * Performs a deep copy on <i>other</i>.
11841
     */
11842
    public getPurchaseScans_args(getPurchaseScans_args other) {
11843
      __isset_bit_vector.clear();
11844
      __isset_bit_vector.or(other.__isset_bit_vector);
11845
      this.startDate = other.startDate;
11846
      this.endDate = other.endDate;
11847
    }
11848
 
11849
    public getPurchaseScans_args deepCopy() {
11850
      return new getPurchaseScans_args(this);
11851
    }
11852
 
11853
    @Override
11854
    public void clear() {
11855
      setStartDateIsSet(false);
11856
      this.startDate = 0;
11857
      setEndDateIsSet(false);
11858
      this.endDate = 0;
11859
    }
11860
 
11861
    public long getStartDate() {
11862
      return this.startDate;
11863
    }
11864
 
11865
    public void setStartDate(long startDate) {
11866
      this.startDate = startDate;
11867
      setStartDateIsSet(true);
11868
    }
11869
 
11870
    public void unsetStartDate() {
11871
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
11872
    }
11873
 
11874
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
11875
    public boolean isSetStartDate() {
11876
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
11877
    }
11878
 
11879
    public void setStartDateIsSet(boolean value) {
11880
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
11881
    }
11882
 
11883
    public long getEndDate() {
11884
      return this.endDate;
11885
    }
11886
 
11887
    public void setEndDate(long endDate) {
11888
      this.endDate = endDate;
11889
      setEndDateIsSet(true);
11890
    }
11891
 
11892
    public void unsetEndDate() {
11893
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
11894
    }
11895
 
11896
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
11897
    public boolean isSetEndDate() {
11898
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
11899
    }
11900
 
11901
    public void setEndDateIsSet(boolean value) {
11902
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
11903
    }
11904
 
11905
    public void setFieldValue(_Fields field, Object value) {
11906
      switch (field) {
11907
      case START_DATE:
11908
        if (value == null) {
11909
          unsetStartDate();
11910
        } else {
11911
          setStartDate((Long)value);
11912
        }
11913
        break;
11914
 
11915
      case END_DATE:
11916
        if (value == null) {
11917
          unsetEndDate();
11918
        } else {
11919
          setEndDate((Long)value);
11920
        }
11921
        break;
11922
 
11923
      }
11924
    }
11925
 
11926
    public Object getFieldValue(_Fields field) {
11927
      switch (field) {
11928
      case START_DATE:
11929
        return Long.valueOf(getStartDate());
11930
 
11931
      case END_DATE:
11932
        return Long.valueOf(getEndDate());
11933
 
11934
      }
11935
      throw new IllegalStateException();
11936
    }
11937
 
11938
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11939
    public boolean isSet(_Fields field) {
11940
      if (field == null) {
11941
        throw new IllegalArgumentException();
11942
      }
11943
 
11944
      switch (field) {
11945
      case START_DATE:
11946
        return isSetStartDate();
11947
      case END_DATE:
11948
        return isSetEndDate();
11949
      }
11950
      throw new IllegalStateException();
11951
    }
11952
 
11953
    @Override
11954
    public boolean equals(Object that) {
11955
      if (that == null)
11956
        return false;
11957
      if (that instanceof getPurchaseScans_args)
11958
        return this.equals((getPurchaseScans_args)that);
11959
      return false;
11960
    }
11961
 
11962
    public boolean equals(getPurchaseScans_args that) {
11963
      if (that == null)
11964
        return false;
11965
 
11966
      boolean this_present_startDate = true;
11967
      boolean that_present_startDate = true;
11968
      if (this_present_startDate || that_present_startDate) {
11969
        if (!(this_present_startDate && that_present_startDate))
11970
          return false;
11971
        if (this.startDate != that.startDate)
11972
          return false;
11973
      }
11974
 
11975
      boolean this_present_endDate = true;
11976
      boolean that_present_endDate = true;
11977
      if (this_present_endDate || that_present_endDate) {
11978
        if (!(this_present_endDate && that_present_endDate))
11979
          return false;
11980
        if (this.endDate != that.endDate)
11981
          return false;
11982
      }
11983
 
11984
      return true;
11985
    }
11986
 
11987
    @Override
11988
    public int hashCode() {
11989
      return 0;
11990
    }
11991
 
11992
    public int compareTo(getPurchaseScans_args other) {
11993
      if (!getClass().equals(other.getClass())) {
11994
        return getClass().getName().compareTo(other.getClass().getName());
11995
      }
11996
 
11997
      int lastComparison = 0;
11998
      getPurchaseScans_args typedOther = (getPurchaseScans_args)other;
11999
 
12000
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
12001
      if (lastComparison != 0) {
12002
        return lastComparison;
12003
      }
12004
      if (isSetStartDate()) {
12005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
12006
        if (lastComparison != 0) {
12007
          return lastComparison;
12008
        }
12009
      }
12010
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
12011
      if (lastComparison != 0) {
12012
        return lastComparison;
12013
      }
12014
      if (isSetEndDate()) {
12015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
12016
        if (lastComparison != 0) {
12017
          return lastComparison;
12018
        }
12019
      }
12020
      return 0;
12021
    }
12022
 
12023
    public _Fields fieldForId(int fieldId) {
12024
      return _Fields.findByThriftId(fieldId);
12025
    }
12026
 
12027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12028
      org.apache.thrift.protocol.TField field;
12029
      iprot.readStructBegin();
12030
      while (true)
12031
      {
12032
        field = iprot.readFieldBegin();
12033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12034
          break;
12035
        }
12036
        switch (field.id) {
12037
          case 1: // START_DATE
12038
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12039
              this.startDate = iprot.readI64();
12040
              setStartDateIsSet(true);
12041
            } else { 
12042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12043
            }
12044
            break;
12045
          case 2: // END_DATE
12046
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12047
              this.endDate = iprot.readI64();
12048
              setEndDateIsSet(true);
12049
            } else { 
12050
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12051
            }
12052
            break;
12053
          default:
12054
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12055
        }
12056
        iprot.readFieldEnd();
12057
      }
12058
      iprot.readStructEnd();
12059
      validate();
12060
    }
12061
 
12062
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12063
      validate();
12064
 
12065
      oprot.writeStructBegin(STRUCT_DESC);
12066
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
12067
      oprot.writeI64(this.startDate);
12068
      oprot.writeFieldEnd();
12069
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
12070
      oprot.writeI64(this.endDate);
12071
      oprot.writeFieldEnd();
12072
      oprot.writeFieldStop();
12073
      oprot.writeStructEnd();
12074
    }
12075
 
12076
    @Override
12077
    public String toString() {
12078
      StringBuilder sb = new StringBuilder("getPurchaseScans_args(");
12079
      boolean first = true;
12080
 
12081
      sb.append("startDate:");
12082
      sb.append(this.startDate);
12083
      first = false;
12084
      if (!first) sb.append(", ");
12085
      sb.append("endDate:");
12086
      sb.append(this.endDate);
12087
      first = false;
12088
      sb.append(")");
12089
      return sb.toString();
12090
    }
12091
 
12092
    public void validate() throws org.apache.thrift.TException {
12093
      // check for required fields
12094
    }
12095
 
12096
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12097
      try {
12098
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12099
      } catch (org.apache.thrift.TException te) {
12100
        throw new java.io.IOException(te);
12101
      }
12102
    }
12103
 
12104
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12105
      try {
12106
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12107
        __isset_bit_vector = new BitSet(1);
12108
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12109
      } catch (org.apache.thrift.TException te) {
12110
        throw new java.io.IOException(te);
12111
      }
12112
    }
12113
 
12114
  }
12115
 
12116
  public static class getPurchaseScans_result implements org.apache.thrift.TBase<getPurchaseScans_result, getPurchaseScans_result._Fields>, java.io.Serializable, Cloneable   {
12117
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_result");
12118
 
12119
    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);
12120
 
12121
    private List<DetailedPurchaseScan> success; // required
12122
 
12123
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12124
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12125
      SUCCESS((short)0, "success");
12126
 
12127
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12128
 
12129
      static {
12130
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12131
          byName.put(field.getFieldName(), field);
12132
        }
12133
      }
12134
 
12135
      /**
12136
       * Find the _Fields constant that matches fieldId, or null if its not found.
12137
       */
12138
      public static _Fields findByThriftId(int fieldId) {
12139
        switch(fieldId) {
12140
          case 0: // SUCCESS
12141
            return SUCCESS;
12142
          default:
12143
            return null;
12144
        }
12145
      }
12146
 
12147
      /**
12148
       * Find the _Fields constant that matches fieldId, throwing an exception
12149
       * if it is not found.
12150
       */
12151
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12152
        _Fields fields = findByThriftId(fieldId);
12153
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12154
        return fields;
12155
      }
12156
 
12157
      /**
12158
       * Find the _Fields constant that matches name, or null if its not found.
12159
       */
12160
      public static _Fields findByName(String name) {
12161
        return byName.get(name);
12162
      }
12163
 
12164
      private final short _thriftId;
12165
      private final String _fieldName;
12166
 
12167
      _Fields(short thriftId, String fieldName) {
12168
        _thriftId = thriftId;
12169
        _fieldName = fieldName;
12170
      }
12171
 
12172
      public short getThriftFieldId() {
12173
        return _thriftId;
12174
      }
12175
 
12176
      public String getFieldName() {
12177
        return _fieldName;
12178
      }
12179
    }
12180
 
12181
    // isset id assignments
12182
 
12183
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12184
    static {
12185
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12186
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12187
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12188
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
12189
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12190
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_result.class, metaDataMap);
12191
    }
12192
 
12193
    public getPurchaseScans_result() {
12194
    }
12195
 
12196
    public getPurchaseScans_result(
12197
      List<DetailedPurchaseScan> success)
12198
    {
12199
      this();
12200
      this.success = success;
12201
    }
12202
 
12203
    /**
12204
     * Performs a deep copy on <i>other</i>.
12205
     */
12206
    public getPurchaseScans_result(getPurchaseScans_result other) {
12207
      if (other.isSetSuccess()) {
12208
        List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
12209
        for (DetailedPurchaseScan other_element : other.success) {
12210
          __this__success.add(new DetailedPurchaseScan(other_element));
12211
        }
12212
        this.success = __this__success;
12213
      }
12214
    }
12215
 
12216
    public getPurchaseScans_result deepCopy() {
12217
      return new getPurchaseScans_result(this);
12218
    }
12219
 
12220
    @Override
12221
    public void clear() {
12222
      this.success = null;
12223
    }
12224
 
12225
    public int getSuccessSize() {
12226
      return (this.success == null) ? 0 : this.success.size();
12227
    }
12228
 
12229
    public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
12230
      return (this.success == null) ? null : this.success.iterator();
12231
    }
12232
 
12233
    public void addToSuccess(DetailedPurchaseScan elem) {
12234
      if (this.success == null) {
12235
        this.success = new ArrayList<DetailedPurchaseScan>();
12236
      }
12237
      this.success.add(elem);
12238
    }
12239
 
12240
    public List<DetailedPurchaseScan> getSuccess() {
12241
      return this.success;
12242
    }
12243
 
12244
    public void setSuccess(List<DetailedPurchaseScan> success) {
12245
      this.success = success;
12246
    }
12247
 
12248
    public void unsetSuccess() {
12249
      this.success = null;
12250
    }
12251
 
12252
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12253
    public boolean isSetSuccess() {
12254
      return this.success != null;
12255
    }
12256
 
12257
    public void setSuccessIsSet(boolean value) {
12258
      if (!value) {
12259
        this.success = null;
12260
      }
12261
    }
12262
 
12263
    public void setFieldValue(_Fields field, Object value) {
12264
      switch (field) {
12265
      case SUCCESS:
12266
        if (value == null) {
12267
          unsetSuccess();
12268
        } else {
12269
          setSuccess((List<DetailedPurchaseScan>)value);
12270
        }
12271
        break;
12272
 
12273
      }
12274
    }
12275
 
12276
    public Object getFieldValue(_Fields field) {
12277
      switch (field) {
12278
      case SUCCESS:
12279
        return getSuccess();
12280
 
12281
      }
12282
      throw new IllegalStateException();
12283
    }
12284
 
12285
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12286
    public boolean isSet(_Fields field) {
12287
      if (field == null) {
12288
        throw new IllegalArgumentException();
12289
      }
12290
 
12291
      switch (field) {
12292
      case SUCCESS:
12293
        return isSetSuccess();
12294
      }
12295
      throw new IllegalStateException();
12296
    }
12297
 
12298
    @Override
12299
    public boolean equals(Object that) {
12300
      if (that == null)
12301
        return false;
12302
      if (that instanceof getPurchaseScans_result)
12303
        return this.equals((getPurchaseScans_result)that);
12304
      return false;
12305
    }
12306
 
12307
    public boolean equals(getPurchaseScans_result that) {
12308
      if (that == null)
12309
        return false;
12310
 
12311
      boolean this_present_success = true && this.isSetSuccess();
12312
      boolean that_present_success = true && that.isSetSuccess();
12313
      if (this_present_success || that_present_success) {
12314
        if (!(this_present_success && that_present_success))
12315
          return false;
12316
        if (!this.success.equals(that.success))
12317
          return false;
12318
      }
12319
 
12320
      return true;
12321
    }
12322
 
12323
    @Override
12324
    public int hashCode() {
12325
      return 0;
12326
    }
12327
 
12328
    public int compareTo(getPurchaseScans_result other) {
12329
      if (!getClass().equals(other.getClass())) {
12330
        return getClass().getName().compareTo(other.getClass().getName());
12331
      }
12332
 
12333
      int lastComparison = 0;
12334
      getPurchaseScans_result typedOther = (getPurchaseScans_result)other;
12335
 
12336
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12337
      if (lastComparison != 0) {
12338
        return lastComparison;
12339
      }
12340
      if (isSetSuccess()) {
12341
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12342
        if (lastComparison != 0) {
12343
          return lastComparison;
12344
        }
12345
      }
12346
      return 0;
12347
    }
12348
 
12349
    public _Fields fieldForId(int fieldId) {
12350
      return _Fields.findByThriftId(fieldId);
12351
    }
12352
 
12353
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12354
      org.apache.thrift.protocol.TField field;
12355
      iprot.readStructBegin();
12356
      while (true)
12357
      {
12358
        field = iprot.readFieldBegin();
12359
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12360
          break;
12361
        }
12362
        switch (field.id) {
12363
          case 0: // SUCCESS
12364
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12365
              {
12366
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
12367
                this.success = new ArrayList<DetailedPurchaseScan>(_list12.size);
12368
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
12369
                {
12370
                  DetailedPurchaseScan _elem14; // required
12371
                  _elem14 = new DetailedPurchaseScan();
12372
                  _elem14.read(iprot);
12373
                  this.success.add(_elem14);
12374
                }
12375
                iprot.readListEnd();
12376
              }
12377
            } else { 
12378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12379
            }
12380
            break;
12381
          default:
12382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12383
        }
12384
        iprot.readFieldEnd();
12385
      }
12386
      iprot.readStructEnd();
12387
      validate();
12388
    }
12389
 
12390
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12391
      oprot.writeStructBegin(STRUCT_DESC);
12392
 
12393
      if (this.isSetSuccess()) {
12394
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12395
        {
12396
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12397
          for (DetailedPurchaseScan _iter15 : this.success)
12398
          {
12399
            _iter15.write(oprot);
12400
          }
12401
          oprot.writeListEnd();
12402
        }
12403
        oprot.writeFieldEnd();
12404
      }
12405
      oprot.writeFieldStop();
12406
      oprot.writeStructEnd();
12407
    }
12408
 
12409
    @Override
12410
    public String toString() {
12411
      StringBuilder sb = new StringBuilder("getPurchaseScans_result(");
12412
      boolean first = true;
12413
 
12414
      sb.append("success:");
12415
      if (this.success == null) {
12416
        sb.append("null");
12417
      } else {
12418
        sb.append(this.success);
12419
      }
12420
      first = false;
12421
      sb.append(")");
12422
      return sb.toString();
12423
    }
12424
 
12425
    public void validate() throws org.apache.thrift.TException {
12426
      // check for required fields
12427
    }
12428
 
12429
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12430
      try {
12431
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12432
      } catch (org.apache.thrift.TException te) {
12433
        throw new java.io.IOException(te);
12434
      }
12435
    }
12436
 
12437
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12438
      try {
12439
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12440
      } catch (org.apache.thrift.TException te) {
12441
        throw new java.io.IOException(te);
12442
      }
12443
    }
12444
 
12445
  }
12446
 
7210 amar.kumar 12447
  public static class getPurchaseScansByGrnDate_args implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_args, getPurchaseScansByGrnDate_args._Fields>, java.io.Serializable, Cloneable   {
12448
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_args");
12449
 
12450
    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);
12451
    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);
12452
 
12453
    private long startDate; // required
12454
    private long endDate; // required
12455
 
12456
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12457
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12458
      START_DATE((short)1, "startDate"),
12459
      END_DATE((short)2, "endDate");
12460
 
12461
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12462
 
12463
      static {
12464
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12465
          byName.put(field.getFieldName(), field);
12466
        }
12467
      }
12468
 
12469
      /**
12470
       * Find the _Fields constant that matches fieldId, or null if its not found.
12471
       */
12472
      public static _Fields findByThriftId(int fieldId) {
12473
        switch(fieldId) {
12474
          case 1: // START_DATE
12475
            return START_DATE;
12476
          case 2: // END_DATE
12477
            return END_DATE;
12478
          default:
12479
            return null;
12480
        }
12481
      }
12482
 
12483
      /**
12484
       * Find the _Fields constant that matches fieldId, throwing an exception
12485
       * if it is not found.
12486
       */
12487
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12488
        _Fields fields = findByThriftId(fieldId);
12489
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12490
        return fields;
12491
      }
12492
 
12493
      /**
12494
       * Find the _Fields constant that matches name, or null if its not found.
12495
       */
12496
      public static _Fields findByName(String name) {
12497
        return byName.get(name);
12498
      }
12499
 
12500
      private final short _thriftId;
12501
      private final String _fieldName;
12502
 
12503
      _Fields(short thriftId, String fieldName) {
12504
        _thriftId = thriftId;
12505
        _fieldName = fieldName;
12506
      }
12507
 
12508
      public short getThriftFieldId() {
12509
        return _thriftId;
12510
      }
12511
 
12512
      public String getFieldName() {
12513
        return _fieldName;
12514
      }
12515
    }
12516
 
12517
    // isset id assignments
12518
    private static final int __STARTDATE_ISSET_ID = 0;
12519
    private static final int __ENDDATE_ISSET_ID = 1;
12520
    private BitSet __isset_bit_vector = new BitSet(2);
12521
 
12522
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12523
    static {
12524
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12525
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12526
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12527
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12528
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12529
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12530
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_args.class, metaDataMap);
12531
    }
12532
 
12533
    public getPurchaseScansByGrnDate_args() {
12534
    }
12535
 
12536
    public getPurchaseScansByGrnDate_args(
12537
      long startDate,
12538
      long endDate)
12539
    {
12540
      this();
12541
      this.startDate = startDate;
12542
      setStartDateIsSet(true);
12543
      this.endDate = endDate;
12544
      setEndDateIsSet(true);
12545
    }
12546
 
12547
    /**
12548
     * Performs a deep copy on <i>other</i>.
12549
     */
12550
    public getPurchaseScansByGrnDate_args(getPurchaseScansByGrnDate_args other) {
12551
      __isset_bit_vector.clear();
12552
      __isset_bit_vector.or(other.__isset_bit_vector);
12553
      this.startDate = other.startDate;
12554
      this.endDate = other.endDate;
12555
    }
12556
 
12557
    public getPurchaseScansByGrnDate_args deepCopy() {
12558
      return new getPurchaseScansByGrnDate_args(this);
12559
    }
12560
 
12561
    @Override
12562
    public void clear() {
12563
      setStartDateIsSet(false);
12564
      this.startDate = 0;
12565
      setEndDateIsSet(false);
12566
      this.endDate = 0;
12567
    }
12568
 
12569
    public long getStartDate() {
12570
      return this.startDate;
12571
    }
12572
 
12573
    public void setStartDate(long startDate) {
12574
      this.startDate = startDate;
12575
      setStartDateIsSet(true);
12576
    }
12577
 
12578
    public void unsetStartDate() {
12579
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
12580
    }
12581
 
12582
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
12583
    public boolean isSetStartDate() {
12584
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
12585
    }
12586
 
12587
    public void setStartDateIsSet(boolean value) {
12588
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
12589
    }
12590
 
12591
    public long getEndDate() {
12592
      return this.endDate;
12593
    }
12594
 
12595
    public void setEndDate(long endDate) {
12596
      this.endDate = endDate;
12597
      setEndDateIsSet(true);
12598
    }
12599
 
12600
    public void unsetEndDate() {
12601
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
12602
    }
12603
 
12604
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
12605
    public boolean isSetEndDate() {
12606
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
12607
    }
12608
 
12609
    public void setEndDateIsSet(boolean value) {
12610
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
12611
    }
12612
 
12613
    public void setFieldValue(_Fields field, Object value) {
12614
      switch (field) {
12615
      case START_DATE:
12616
        if (value == null) {
12617
          unsetStartDate();
12618
        } else {
12619
          setStartDate((Long)value);
12620
        }
12621
        break;
12622
 
12623
      case END_DATE:
12624
        if (value == null) {
12625
          unsetEndDate();
12626
        } else {
12627
          setEndDate((Long)value);
12628
        }
12629
        break;
12630
 
12631
      }
12632
    }
12633
 
12634
    public Object getFieldValue(_Fields field) {
12635
      switch (field) {
12636
      case START_DATE:
12637
        return Long.valueOf(getStartDate());
12638
 
12639
      case END_DATE:
12640
        return Long.valueOf(getEndDate());
12641
 
12642
      }
12643
      throw new IllegalStateException();
12644
    }
12645
 
12646
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12647
    public boolean isSet(_Fields field) {
12648
      if (field == null) {
12649
        throw new IllegalArgumentException();
12650
      }
12651
 
12652
      switch (field) {
12653
      case START_DATE:
12654
        return isSetStartDate();
12655
      case END_DATE:
12656
        return isSetEndDate();
12657
      }
12658
      throw new IllegalStateException();
12659
    }
12660
 
12661
    @Override
12662
    public boolean equals(Object that) {
12663
      if (that == null)
12664
        return false;
12665
      if (that instanceof getPurchaseScansByGrnDate_args)
12666
        return this.equals((getPurchaseScansByGrnDate_args)that);
12667
      return false;
12668
    }
12669
 
12670
    public boolean equals(getPurchaseScansByGrnDate_args that) {
12671
      if (that == null)
12672
        return false;
12673
 
12674
      boolean this_present_startDate = true;
12675
      boolean that_present_startDate = true;
12676
      if (this_present_startDate || that_present_startDate) {
12677
        if (!(this_present_startDate && that_present_startDate))
12678
          return false;
12679
        if (this.startDate != that.startDate)
12680
          return false;
12681
      }
12682
 
12683
      boolean this_present_endDate = true;
12684
      boolean that_present_endDate = true;
12685
      if (this_present_endDate || that_present_endDate) {
12686
        if (!(this_present_endDate && that_present_endDate))
12687
          return false;
12688
        if (this.endDate != that.endDate)
12689
          return false;
12690
      }
12691
 
12692
      return true;
12693
    }
12694
 
12695
    @Override
12696
    public int hashCode() {
12697
      return 0;
12698
    }
12699
 
12700
    public int compareTo(getPurchaseScansByGrnDate_args other) {
12701
      if (!getClass().equals(other.getClass())) {
12702
        return getClass().getName().compareTo(other.getClass().getName());
12703
      }
12704
 
12705
      int lastComparison = 0;
12706
      getPurchaseScansByGrnDate_args typedOther = (getPurchaseScansByGrnDate_args)other;
12707
 
12708
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
12709
      if (lastComparison != 0) {
12710
        return lastComparison;
12711
      }
12712
      if (isSetStartDate()) {
12713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
12714
        if (lastComparison != 0) {
12715
          return lastComparison;
12716
        }
12717
      }
12718
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
12719
      if (lastComparison != 0) {
12720
        return lastComparison;
12721
      }
12722
      if (isSetEndDate()) {
12723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
12724
        if (lastComparison != 0) {
12725
          return lastComparison;
12726
        }
12727
      }
12728
      return 0;
12729
    }
12730
 
12731
    public _Fields fieldForId(int fieldId) {
12732
      return _Fields.findByThriftId(fieldId);
12733
    }
12734
 
12735
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12736
      org.apache.thrift.protocol.TField field;
12737
      iprot.readStructBegin();
12738
      while (true)
12739
      {
12740
        field = iprot.readFieldBegin();
12741
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12742
          break;
12743
        }
12744
        switch (field.id) {
12745
          case 1: // START_DATE
12746
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12747
              this.startDate = iprot.readI64();
12748
              setStartDateIsSet(true);
12749
            } else { 
12750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12751
            }
12752
            break;
12753
          case 2: // END_DATE
12754
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12755
              this.endDate = iprot.readI64();
12756
              setEndDateIsSet(true);
12757
            } else { 
12758
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12759
            }
12760
            break;
12761
          default:
12762
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12763
        }
12764
        iprot.readFieldEnd();
12765
      }
12766
      iprot.readStructEnd();
12767
      validate();
12768
    }
12769
 
12770
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12771
      validate();
12772
 
12773
      oprot.writeStructBegin(STRUCT_DESC);
12774
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
12775
      oprot.writeI64(this.startDate);
12776
      oprot.writeFieldEnd();
12777
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
12778
      oprot.writeI64(this.endDate);
12779
      oprot.writeFieldEnd();
12780
      oprot.writeFieldStop();
12781
      oprot.writeStructEnd();
12782
    }
12783
 
12784
    @Override
12785
    public String toString() {
12786
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_args(");
12787
      boolean first = true;
12788
 
12789
      sb.append("startDate:");
12790
      sb.append(this.startDate);
12791
      first = false;
12792
      if (!first) sb.append(", ");
12793
      sb.append("endDate:");
12794
      sb.append(this.endDate);
12795
      first = false;
12796
      sb.append(")");
12797
      return sb.toString();
12798
    }
12799
 
12800
    public void validate() throws org.apache.thrift.TException {
12801
      // check for required fields
12802
    }
12803
 
12804
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12805
      try {
12806
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12807
      } catch (org.apache.thrift.TException te) {
12808
        throw new java.io.IOException(te);
12809
      }
12810
    }
12811
 
12812
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12813
      try {
12814
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12815
        __isset_bit_vector = new BitSet(1);
12816
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12817
      } catch (org.apache.thrift.TException te) {
12818
        throw new java.io.IOException(te);
12819
      }
12820
    }
12821
 
12822
  }
12823
 
12824
  public static class getPurchaseScansByGrnDate_result implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_result, getPurchaseScansByGrnDate_result._Fields>, java.io.Serializable, Cloneable   {
12825
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_result");
12826
 
12827
    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);
12828
 
12829
    private List<DetailedPurchaseScan> success; // required
12830
 
12831
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12832
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12833
      SUCCESS((short)0, "success");
12834
 
12835
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12836
 
12837
      static {
12838
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12839
          byName.put(field.getFieldName(), field);
12840
        }
12841
      }
12842
 
12843
      /**
12844
       * Find the _Fields constant that matches fieldId, or null if its not found.
12845
       */
12846
      public static _Fields findByThriftId(int fieldId) {
12847
        switch(fieldId) {
12848
          case 0: // SUCCESS
12849
            return SUCCESS;
12850
          default:
12851
            return null;
12852
        }
12853
      }
12854
 
12855
      /**
12856
       * Find the _Fields constant that matches fieldId, throwing an exception
12857
       * if it is not found.
12858
       */
12859
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12860
        _Fields fields = findByThriftId(fieldId);
12861
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12862
        return fields;
12863
      }
12864
 
12865
      /**
12866
       * Find the _Fields constant that matches name, or null if its not found.
12867
       */
12868
      public static _Fields findByName(String name) {
12869
        return byName.get(name);
12870
      }
12871
 
12872
      private final short _thriftId;
12873
      private final String _fieldName;
12874
 
12875
      _Fields(short thriftId, String fieldName) {
12876
        _thriftId = thriftId;
12877
        _fieldName = fieldName;
12878
      }
12879
 
12880
      public short getThriftFieldId() {
12881
        return _thriftId;
12882
      }
12883
 
12884
      public String getFieldName() {
12885
        return _fieldName;
12886
      }
12887
    }
12888
 
12889
    // isset id assignments
12890
 
12891
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12892
    static {
12893
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12894
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12895
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12896
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
12897
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12898
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_result.class, metaDataMap);
12899
    }
12900
 
12901
    public getPurchaseScansByGrnDate_result() {
12902
    }
12903
 
12904
    public getPurchaseScansByGrnDate_result(
12905
      List<DetailedPurchaseScan> success)
12906
    {
12907
      this();
12908
      this.success = success;
12909
    }
12910
 
12911
    /**
12912
     * Performs a deep copy on <i>other</i>.
12913
     */
12914
    public getPurchaseScansByGrnDate_result(getPurchaseScansByGrnDate_result other) {
12915
      if (other.isSetSuccess()) {
12916
        List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
12917
        for (DetailedPurchaseScan other_element : other.success) {
12918
          __this__success.add(new DetailedPurchaseScan(other_element));
12919
        }
12920
        this.success = __this__success;
12921
      }
12922
    }
12923
 
12924
    public getPurchaseScansByGrnDate_result deepCopy() {
12925
      return new getPurchaseScansByGrnDate_result(this);
12926
    }
12927
 
12928
    @Override
12929
    public void clear() {
12930
      this.success = null;
12931
    }
12932
 
12933
    public int getSuccessSize() {
12934
      return (this.success == null) ? 0 : this.success.size();
12935
    }
12936
 
12937
    public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
12938
      return (this.success == null) ? null : this.success.iterator();
12939
    }
12940
 
12941
    public void addToSuccess(DetailedPurchaseScan elem) {
12942
      if (this.success == null) {
12943
        this.success = new ArrayList<DetailedPurchaseScan>();
12944
      }
12945
      this.success.add(elem);
12946
    }
12947
 
12948
    public List<DetailedPurchaseScan> getSuccess() {
12949
      return this.success;
12950
    }
12951
 
12952
    public void setSuccess(List<DetailedPurchaseScan> success) {
12953
      this.success = success;
12954
    }
12955
 
12956
    public void unsetSuccess() {
12957
      this.success = null;
12958
    }
12959
 
12960
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12961
    public boolean isSetSuccess() {
12962
      return this.success != null;
12963
    }
12964
 
12965
    public void setSuccessIsSet(boolean value) {
12966
      if (!value) {
12967
        this.success = null;
12968
      }
12969
    }
12970
 
12971
    public void setFieldValue(_Fields field, Object value) {
12972
      switch (field) {
12973
      case SUCCESS:
12974
        if (value == null) {
12975
          unsetSuccess();
12976
        } else {
12977
          setSuccess((List<DetailedPurchaseScan>)value);
12978
        }
12979
        break;
12980
 
12981
      }
12982
    }
12983
 
12984
    public Object getFieldValue(_Fields field) {
12985
      switch (field) {
12986
      case SUCCESS:
12987
        return getSuccess();
12988
 
12989
      }
12990
      throw new IllegalStateException();
12991
    }
12992
 
12993
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12994
    public boolean isSet(_Fields field) {
12995
      if (field == null) {
12996
        throw new IllegalArgumentException();
12997
      }
12998
 
12999
      switch (field) {
13000
      case SUCCESS:
13001
        return isSetSuccess();
13002
      }
13003
      throw new IllegalStateException();
13004
    }
13005
 
13006
    @Override
13007
    public boolean equals(Object that) {
13008
      if (that == null)
13009
        return false;
13010
      if (that instanceof getPurchaseScansByGrnDate_result)
13011
        return this.equals((getPurchaseScansByGrnDate_result)that);
13012
      return false;
13013
    }
13014
 
13015
    public boolean equals(getPurchaseScansByGrnDate_result that) {
13016
      if (that == null)
13017
        return false;
13018
 
13019
      boolean this_present_success = true && this.isSetSuccess();
13020
      boolean that_present_success = true && that.isSetSuccess();
13021
      if (this_present_success || that_present_success) {
13022
        if (!(this_present_success && that_present_success))
13023
          return false;
13024
        if (!this.success.equals(that.success))
13025
          return false;
13026
      }
13027
 
13028
      return true;
13029
    }
13030
 
13031
    @Override
13032
    public int hashCode() {
13033
      return 0;
13034
    }
13035
 
13036
    public int compareTo(getPurchaseScansByGrnDate_result other) {
13037
      if (!getClass().equals(other.getClass())) {
13038
        return getClass().getName().compareTo(other.getClass().getName());
13039
      }
13040
 
13041
      int lastComparison = 0;
13042
      getPurchaseScansByGrnDate_result typedOther = (getPurchaseScansByGrnDate_result)other;
13043
 
13044
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13045
      if (lastComparison != 0) {
13046
        return lastComparison;
13047
      }
13048
      if (isSetSuccess()) {
13049
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13050
        if (lastComparison != 0) {
13051
          return lastComparison;
13052
        }
13053
      }
13054
      return 0;
13055
    }
13056
 
13057
    public _Fields fieldForId(int fieldId) {
13058
      return _Fields.findByThriftId(fieldId);
13059
    }
13060
 
13061
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13062
      org.apache.thrift.protocol.TField field;
13063
      iprot.readStructBegin();
13064
      while (true)
13065
      {
13066
        field = iprot.readFieldBegin();
13067
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13068
          break;
13069
        }
13070
        switch (field.id) {
13071
          case 0: // SUCCESS
13072
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13073
              {
13074
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
13075
                this.success = new ArrayList<DetailedPurchaseScan>(_list16.size);
13076
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
13077
                {
13078
                  DetailedPurchaseScan _elem18; // required
13079
                  _elem18 = new DetailedPurchaseScan();
13080
                  _elem18.read(iprot);
13081
                  this.success.add(_elem18);
13082
                }
13083
                iprot.readListEnd();
13084
              }
13085
            } else { 
13086
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13087
            }
13088
            break;
13089
          default:
13090
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13091
        }
13092
        iprot.readFieldEnd();
13093
      }
13094
      iprot.readStructEnd();
13095
      validate();
13096
    }
13097
 
13098
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13099
      oprot.writeStructBegin(STRUCT_DESC);
13100
 
13101
      if (this.isSetSuccess()) {
13102
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13103
        {
13104
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13105
          for (DetailedPurchaseScan _iter19 : this.success)
13106
          {
13107
            _iter19.write(oprot);
13108
          }
13109
          oprot.writeListEnd();
13110
        }
13111
        oprot.writeFieldEnd();
13112
      }
13113
      oprot.writeFieldStop();
13114
      oprot.writeStructEnd();
13115
    }
13116
 
13117
    @Override
13118
    public String toString() {
13119
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_result(");
13120
      boolean first = true;
13121
 
13122
      sb.append("success:");
13123
      if (this.success == null) {
13124
        sb.append("null");
13125
      } else {
13126
        sb.append(this.success);
13127
      }
13128
      first = false;
13129
      sb.append(")");
13130
      return sb.toString();
13131
    }
13132
 
13133
    public void validate() throws org.apache.thrift.TException {
13134
      // check for required fields
13135
    }
13136
 
13137
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13138
      try {
13139
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13140
      } catch (org.apache.thrift.TException te) {
13141
        throw new java.io.IOException(te);
13142
      }
13143
    }
13144
 
13145
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13146
      try {
13147
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13148
      } catch (org.apache.thrift.TException te) {
13149
        throw new java.io.IOException(te);
13150
      }
13151
    }
13152
 
13153
  }
13154
 
5496 mandeep.dh 13155
  public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable   {
13156
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
13157
 
13158
    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);
13159
 
13160
    private long date; // required
13161
 
13162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13164
      DATE((short)1, "date");
13165
 
13166
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13167
 
13168
      static {
13169
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13170
          byName.put(field.getFieldName(), field);
13171
        }
13172
      }
13173
 
13174
      /**
13175
       * Find the _Fields constant that matches fieldId, or null if its not found.
13176
       */
13177
      public static _Fields findByThriftId(int fieldId) {
13178
        switch(fieldId) {
13179
          case 1: // DATE
13180
            return DATE;
13181
          default:
13182
            return null;
13183
        }
13184
      }
13185
 
13186
      /**
13187
       * Find the _Fields constant that matches fieldId, throwing an exception
13188
       * if it is not found.
13189
       */
13190
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13191
        _Fields fields = findByThriftId(fieldId);
13192
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13193
        return fields;
13194
      }
13195
 
13196
      /**
13197
       * Find the _Fields constant that matches name, or null if its not found.
13198
       */
13199
      public static _Fields findByName(String name) {
13200
        return byName.get(name);
13201
      }
13202
 
13203
      private final short _thriftId;
13204
      private final String _fieldName;
13205
 
13206
      _Fields(short thriftId, String fieldName) {
13207
        _thriftId = thriftId;
13208
        _fieldName = fieldName;
13209
      }
13210
 
13211
      public short getThriftFieldId() {
13212
        return _thriftId;
13213
      }
13214
 
13215
      public String getFieldName() {
13216
        return _fieldName;
13217
      }
13218
    }
13219
 
13220
    // isset id assignments
13221
    private static final int __DATE_ISSET_ID = 0;
13222
    private BitSet __isset_bit_vector = new BitSet(1);
13223
 
13224
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13225
    static {
13226
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13227
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13229
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13230
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_args.class, metaDataMap);
13231
    }
13232
 
13233
    public fetchScansPerInvoiceNumber_args() {
13234
    }
13235
 
13236
    public fetchScansPerInvoiceNumber_args(
13237
      long date)
13238
    {
13239
      this();
13240
      this.date = date;
13241
      setDateIsSet(true);
13242
    }
13243
 
13244
    /**
13245
     * Performs a deep copy on <i>other</i>.
13246
     */
13247
    public fetchScansPerInvoiceNumber_args(fetchScansPerInvoiceNumber_args other) {
13248
      __isset_bit_vector.clear();
13249
      __isset_bit_vector.or(other.__isset_bit_vector);
13250
      this.date = other.date;
13251
    }
13252
 
13253
    public fetchScansPerInvoiceNumber_args deepCopy() {
13254
      return new fetchScansPerInvoiceNumber_args(this);
13255
    }
13256
 
13257
    @Override
13258
    public void clear() {
13259
      setDateIsSet(false);
13260
      this.date = 0;
13261
    }
13262
 
13263
    public long getDate() {
13264
      return this.date;
13265
    }
13266
 
13267
    public void setDate(long date) {
13268
      this.date = date;
13269
      setDateIsSet(true);
13270
    }
13271
 
13272
    public void unsetDate() {
13273
      __isset_bit_vector.clear(__DATE_ISSET_ID);
13274
    }
13275
 
13276
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
13277
    public boolean isSetDate() {
13278
      return __isset_bit_vector.get(__DATE_ISSET_ID);
13279
    }
13280
 
13281
    public void setDateIsSet(boolean value) {
13282
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
13283
    }
13284
 
13285
    public void setFieldValue(_Fields field, Object value) {
13286
      switch (field) {
13287
      case DATE:
13288
        if (value == null) {
13289
          unsetDate();
13290
        } else {
13291
          setDate((Long)value);
13292
        }
13293
        break;
13294
 
13295
      }
13296
    }
13297
 
13298
    public Object getFieldValue(_Fields field) {
13299
      switch (field) {
13300
      case DATE:
13301
        return Long.valueOf(getDate());
13302
 
13303
      }
13304
      throw new IllegalStateException();
13305
    }
13306
 
13307
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13308
    public boolean isSet(_Fields field) {
13309
      if (field == null) {
13310
        throw new IllegalArgumentException();
13311
      }
13312
 
13313
      switch (field) {
13314
      case DATE:
13315
        return isSetDate();
13316
      }
13317
      throw new IllegalStateException();
13318
    }
13319
 
13320
    @Override
13321
    public boolean equals(Object that) {
13322
      if (that == null)
13323
        return false;
13324
      if (that instanceof fetchScansPerInvoiceNumber_args)
13325
        return this.equals((fetchScansPerInvoiceNumber_args)that);
13326
      return false;
13327
    }
13328
 
13329
    public boolean equals(fetchScansPerInvoiceNumber_args that) {
13330
      if (that == null)
13331
        return false;
13332
 
13333
      boolean this_present_date = true;
13334
      boolean that_present_date = true;
13335
      if (this_present_date || that_present_date) {
13336
        if (!(this_present_date && that_present_date))
13337
          return false;
13338
        if (this.date != that.date)
13339
          return false;
13340
      }
13341
 
13342
      return true;
13343
    }
13344
 
13345
    @Override
13346
    public int hashCode() {
13347
      return 0;
13348
    }
13349
 
13350
    public int compareTo(fetchScansPerInvoiceNumber_args other) {
13351
      if (!getClass().equals(other.getClass())) {
13352
        return getClass().getName().compareTo(other.getClass().getName());
13353
      }
13354
 
13355
      int lastComparison = 0;
13356
      fetchScansPerInvoiceNumber_args typedOther = (fetchScansPerInvoiceNumber_args)other;
13357
 
13358
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
13359
      if (lastComparison != 0) {
13360
        return lastComparison;
13361
      }
13362
      if (isSetDate()) {
13363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
13364
        if (lastComparison != 0) {
13365
          return lastComparison;
13366
        }
13367
      }
13368
      return 0;
13369
    }
13370
 
13371
    public _Fields fieldForId(int fieldId) {
13372
      return _Fields.findByThriftId(fieldId);
13373
    }
13374
 
13375
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13376
      org.apache.thrift.protocol.TField field;
13377
      iprot.readStructBegin();
13378
      while (true)
13379
      {
13380
        field = iprot.readFieldBegin();
13381
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13382
          break;
13383
        }
13384
        switch (field.id) {
13385
          case 1: // DATE
13386
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13387
              this.date = iprot.readI64();
13388
              setDateIsSet(true);
13389
            } else { 
13390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13391
            }
13392
            break;
13393
          default:
13394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13395
        }
13396
        iprot.readFieldEnd();
13397
      }
13398
      iprot.readStructEnd();
13399
      validate();
13400
    }
13401
 
13402
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13403
      validate();
13404
 
13405
      oprot.writeStructBegin(STRUCT_DESC);
13406
      oprot.writeFieldBegin(DATE_FIELD_DESC);
13407
      oprot.writeI64(this.date);
13408
      oprot.writeFieldEnd();
13409
      oprot.writeFieldStop();
13410
      oprot.writeStructEnd();
13411
    }
13412
 
13413
    @Override
13414
    public String toString() {
13415
      StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_args(");
13416
      boolean first = true;
13417
 
13418
      sb.append("date:");
13419
      sb.append(this.date);
13420
      first = false;
13421
      sb.append(")");
13422
      return sb.toString();
13423
    }
13424
 
13425
    public void validate() throws org.apache.thrift.TException {
13426
      // check for required fields
13427
    }
13428
 
13429
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13430
      try {
13431
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13432
      } catch (org.apache.thrift.TException te) {
13433
        throw new java.io.IOException(te);
13434
      }
13435
    }
13436
 
13437
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13438
      try {
5711 mandeep.dh 13439
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13440
        __isset_bit_vector = new BitSet(1);
5496 mandeep.dh 13441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13442
      } catch (org.apache.thrift.TException te) {
13443
        throw new java.io.IOException(te);
13444
      }
13445
    }
13446
 
13447
  }
13448
 
13449
  public static class fetchScansPerInvoiceNumber_result implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_result, fetchScansPerInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable   {
13450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_result");
13451
 
13452
    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);
13453
 
13454
    private List<InvoiceScan> success; // required
13455
 
13456
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13457
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13458
      SUCCESS((short)0, "success");
13459
 
13460
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13461
 
13462
      static {
13463
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13464
          byName.put(field.getFieldName(), field);
13465
        }
13466
      }
13467
 
13468
      /**
13469
       * Find the _Fields constant that matches fieldId, or null if its not found.
13470
       */
13471
      public static _Fields findByThriftId(int fieldId) {
13472
        switch(fieldId) {
13473
          case 0: // SUCCESS
13474
            return SUCCESS;
13475
          default:
13476
            return null;
13477
        }
13478
      }
13479
 
13480
      /**
13481
       * Find the _Fields constant that matches fieldId, throwing an exception
13482
       * if it is not found.
13483
       */
13484
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13485
        _Fields fields = findByThriftId(fieldId);
13486
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13487
        return fields;
13488
      }
13489
 
13490
      /**
13491
       * Find the _Fields constant that matches name, or null if its not found.
13492
       */
13493
      public static _Fields findByName(String name) {
13494
        return byName.get(name);
13495
      }
13496
 
13497
      private final short _thriftId;
13498
      private final String _fieldName;
13499
 
13500
      _Fields(short thriftId, String fieldName) {
13501
        _thriftId = thriftId;
13502
        _fieldName = fieldName;
13503
      }
13504
 
13505
      public short getThriftFieldId() {
13506
        return _thriftId;
13507
      }
13508
 
13509
      public String getFieldName() {
13510
        return _fieldName;
13511
      }
13512
    }
13513
 
13514
    // isset id assignments
13515
 
13516
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13517
    static {
13518
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13519
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13520
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13521
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InvoiceScan.class))));
13522
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13523
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_result.class, metaDataMap);
13524
    }
13525
 
13526
    public fetchScansPerInvoiceNumber_result() {
13527
    }
13528
 
13529
    public fetchScansPerInvoiceNumber_result(
13530
      List<InvoiceScan> success)
13531
    {
13532
      this();
13533
      this.success = success;
13534
    }
13535
 
13536
    /**
13537
     * Performs a deep copy on <i>other</i>.
13538
     */
13539
    public fetchScansPerInvoiceNumber_result(fetchScansPerInvoiceNumber_result other) {
13540
      if (other.isSetSuccess()) {
13541
        List<InvoiceScan> __this__success = new ArrayList<InvoiceScan>();
13542
        for (InvoiceScan other_element : other.success) {
13543
          __this__success.add(new InvoiceScan(other_element));
13544
        }
13545
        this.success = __this__success;
13546
      }
13547
    }
13548
 
13549
    public fetchScansPerInvoiceNumber_result deepCopy() {
13550
      return new fetchScansPerInvoiceNumber_result(this);
13551
    }
13552
 
13553
    @Override
13554
    public void clear() {
13555
      this.success = null;
13556
    }
13557
 
13558
    public int getSuccessSize() {
13559
      return (this.success == null) ? 0 : this.success.size();
13560
    }
13561
 
13562
    public java.util.Iterator<InvoiceScan> getSuccessIterator() {
13563
      return (this.success == null) ? null : this.success.iterator();
13564
    }
13565
 
13566
    public void addToSuccess(InvoiceScan elem) {
13567
      if (this.success == null) {
13568
        this.success = new ArrayList<InvoiceScan>();
13569
      }
13570
      this.success.add(elem);
13571
    }
13572
 
13573
    public List<InvoiceScan> getSuccess() {
13574
      return this.success;
13575
    }
13576
 
13577
    public void setSuccess(List<InvoiceScan> success) {
13578
      this.success = success;
13579
    }
13580
 
13581
    public void unsetSuccess() {
13582
      this.success = null;
13583
    }
13584
 
13585
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13586
    public boolean isSetSuccess() {
13587
      return this.success != null;
13588
    }
13589
 
13590
    public void setSuccessIsSet(boolean value) {
13591
      if (!value) {
13592
        this.success = null;
13593
      }
13594
    }
13595
 
13596
    public void setFieldValue(_Fields field, Object value) {
13597
      switch (field) {
13598
      case SUCCESS:
13599
        if (value == null) {
13600
          unsetSuccess();
13601
        } else {
13602
          setSuccess((List<InvoiceScan>)value);
13603
        }
13604
        break;
13605
 
13606
      }
13607
    }
13608
 
13609
    public Object getFieldValue(_Fields field) {
13610
      switch (field) {
13611
      case SUCCESS:
13612
        return getSuccess();
13613
 
13614
      }
13615
      throw new IllegalStateException();
13616
    }
13617
 
13618
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13619
    public boolean isSet(_Fields field) {
13620
      if (field == null) {
13621
        throw new IllegalArgumentException();
13622
      }
13623
 
13624
      switch (field) {
13625
      case SUCCESS:
13626
        return isSetSuccess();
13627
      }
13628
      throw new IllegalStateException();
13629
    }
13630
 
13631
    @Override
13632
    public boolean equals(Object that) {
13633
      if (that == null)
13634
        return false;
13635
      if (that instanceof fetchScansPerInvoiceNumber_result)
13636
        return this.equals((fetchScansPerInvoiceNumber_result)that);
13637
      return false;
13638
    }
13639
 
13640
    public boolean equals(fetchScansPerInvoiceNumber_result that) {
13641
      if (that == null)
13642
        return false;
13643
 
13644
      boolean this_present_success = true && this.isSetSuccess();
13645
      boolean that_present_success = true && that.isSetSuccess();
13646
      if (this_present_success || that_present_success) {
13647
        if (!(this_present_success && that_present_success))
13648
          return false;
13649
        if (!this.success.equals(that.success))
13650
          return false;
13651
      }
13652
 
13653
      return true;
13654
    }
13655
 
13656
    @Override
13657
    public int hashCode() {
13658
      return 0;
13659
    }
13660
 
13661
    public int compareTo(fetchScansPerInvoiceNumber_result other) {
13662
      if (!getClass().equals(other.getClass())) {
13663
        return getClass().getName().compareTo(other.getClass().getName());
13664
      }
13665
 
13666
      int lastComparison = 0;
13667
      fetchScansPerInvoiceNumber_result typedOther = (fetchScansPerInvoiceNumber_result)other;
13668
 
13669
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13670
      if (lastComparison != 0) {
13671
        return lastComparison;
13672
      }
13673
      if (isSetSuccess()) {
13674
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13675
        if (lastComparison != 0) {
13676
          return lastComparison;
13677
        }
13678
      }
13679
      return 0;
13680
    }
13681
 
13682
    public _Fields fieldForId(int fieldId) {
13683
      return _Fields.findByThriftId(fieldId);
13684
    }
13685
 
13686
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13687
      org.apache.thrift.protocol.TField field;
13688
      iprot.readStructBegin();
13689
      while (true)
13690
      {
13691
        field = iprot.readFieldBegin();
13692
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13693
          break;
13694
        }
13695
        switch (field.id) {
13696
          case 0: // SUCCESS
13697
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13698
              {
7210 amar.kumar 13699
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
13700
                this.success = new ArrayList<InvoiceScan>(_list20.size);
13701
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5496 mandeep.dh 13702
                {
7210 amar.kumar 13703
                  InvoiceScan _elem22; // required
13704
                  _elem22 = new InvoiceScan();
13705
                  _elem22.read(iprot);
13706
                  this.success.add(_elem22);
5496 mandeep.dh 13707
                }
13708
                iprot.readListEnd();
13709
              }
13710
            } else { 
13711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13712
            }
13713
            break;
13714
          default:
13715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13716
        }
13717
        iprot.readFieldEnd();
13718
      }
13719
      iprot.readStructEnd();
13720
      validate();
13721
    }
13722
 
13723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13724
      oprot.writeStructBegin(STRUCT_DESC);
13725
 
13726
      if (this.isSetSuccess()) {
13727
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13728
        {
13729
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 13730
          for (InvoiceScan _iter23 : this.success)
5496 mandeep.dh 13731
          {
7210 amar.kumar 13732
            _iter23.write(oprot);
5496 mandeep.dh 13733
          }
13734
          oprot.writeListEnd();
13735
        }
13736
        oprot.writeFieldEnd();
13737
      }
13738
      oprot.writeFieldStop();
13739
      oprot.writeStructEnd();
13740
    }
13741
 
13742
    @Override
13743
    public String toString() {
13744
      StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_result(");
13745
      boolean first = true;
13746
 
13747
      sb.append("success:");
13748
      if (this.success == null) {
13749
        sb.append("null");
13750
      } else {
13751
        sb.append(this.success);
13752
      }
13753
      first = false;
13754
      sb.append(")");
13755
      return sb.toString();
13756
    }
13757
 
13758
    public void validate() throws org.apache.thrift.TException {
13759
      // check for required fields
13760
    }
13761
 
13762
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13763
      try {
13764
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13765
      } catch (org.apache.thrift.TException te) {
13766
        throw new java.io.IOException(te);
13767
      }
13768
    }
13769
 
13770
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13771
      try {
13772
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13773
      } catch (org.apache.thrift.TException te) {
13774
        throw new java.io.IOException(te);
13775
      }
13776
    }
13777
 
13778
  }
13779
 
5620 mandeep.dh 13780
  public static class getInventoryItemFromOrder_args implements org.apache.thrift.TBase<getInventoryItemFromOrder_args, getInventoryItemFromOrder_args._Fields>, java.io.Serializable, Cloneable   {
13781
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_args");
13782
 
13783
    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);
13784
 
13785
    private long orderId; // required
13786
 
13787
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13788
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13789
      ORDER_ID((short)1, "orderId");
13790
 
13791
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13792
 
13793
      static {
13794
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13795
          byName.put(field.getFieldName(), field);
13796
        }
13797
      }
13798
 
13799
      /**
13800
       * Find the _Fields constant that matches fieldId, or null if its not found.
13801
       */
13802
      public static _Fields findByThriftId(int fieldId) {
13803
        switch(fieldId) {
13804
          case 1: // ORDER_ID
13805
            return ORDER_ID;
13806
          default:
13807
            return null;
13808
        }
13809
      }
13810
 
13811
      /**
13812
       * Find the _Fields constant that matches fieldId, throwing an exception
13813
       * if it is not found.
13814
       */
13815
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13816
        _Fields fields = findByThriftId(fieldId);
13817
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13818
        return fields;
13819
      }
13820
 
13821
      /**
13822
       * Find the _Fields constant that matches name, or null if its not found.
13823
       */
13824
      public static _Fields findByName(String name) {
13825
        return byName.get(name);
13826
      }
13827
 
13828
      private final short _thriftId;
13829
      private final String _fieldName;
13830
 
13831
      _Fields(short thriftId, String fieldName) {
13832
        _thriftId = thriftId;
13833
        _fieldName = fieldName;
13834
      }
13835
 
13836
      public short getThriftFieldId() {
13837
        return _thriftId;
13838
      }
13839
 
13840
      public String getFieldName() {
13841
        return _fieldName;
13842
      }
13843
    }
13844
 
13845
    // isset id assignments
13846
    private static final int __ORDERID_ISSET_ID = 0;
13847
    private BitSet __isset_bit_vector = new BitSet(1);
13848
 
13849
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13850
    static {
13851
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13852
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13854
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13855
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_args.class, metaDataMap);
13856
    }
13857
 
13858
    public getInventoryItemFromOrder_args() {
13859
    }
13860
 
13861
    public getInventoryItemFromOrder_args(
13862
      long orderId)
13863
    {
13864
      this();
13865
      this.orderId = orderId;
13866
      setOrderIdIsSet(true);
13867
    }
13868
 
13869
    /**
13870
     * Performs a deep copy on <i>other</i>.
13871
     */
13872
    public getInventoryItemFromOrder_args(getInventoryItemFromOrder_args other) {
13873
      __isset_bit_vector.clear();
13874
      __isset_bit_vector.or(other.__isset_bit_vector);
13875
      this.orderId = other.orderId;
13876
    }
13877
 
13878
    public getInventoryItemFromOrder_args deepCopy() {
13879
      return new getInventoryItemFromOrder_args(this);
13880
    }
13881
 
13882
    @Override
13883
    public void clear() {
13884
      setOrderIdIsSet(false);
13885
      this.orderId = 0;
13886
    }
13887
 
13888
    public long getOrderId() {
13889
      return this.orderId;
13890
    }
13891
 
13892
    public void setOrderId(long orderId) {
13893
      this.orderId = orderId;
13894
      setOrderIdIsSet(true);
13895
    }
13896
 
13897
    public void unsetOrderId() {
13898
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13899
    }
13900
 
13901
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13902
    public boolean isSetOrderId() {
13903
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13904
    }
13905
 
13906
    public void setOrderIdIsSet(boolean value) {
13907
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13908
    }
13909
 
13910
    public void setFieldValue(_Fields field, Object value) {
13911
      switch (field) {
13912
      case ORDER_ID:
13913
        if (value == null) {
13914
          unsetOrderId();
13915
        } else {
13916
          setOrderId((Long)value);
13917
        }
13918
        break;
13919
 
13920
      }
13921
    }
13922
 
13923
    public Object getFieldValue(_Fields field) {
13924
      switch (field) {
13925
      case ORDER_ID:
13926
        return Long.valueOf(getOrderId());
13927
 
13928
      }
13929
      throw new IllegalStateException();
13930
    }
13931
 
13932
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13933
    public boolean isSet(_Fields field) {
13934
      if (field == null) {
13935
        throw new IllegalArgumentException();
13936
      }
13937
 
13938
      switch (field) {
13939
      case ORDER_ID:
13940
        return isSetOrderId();
13941
      }
13942
      throw new IllegalStateException();
13943
    }
13944
 
13945
    @Override
13946
    public boolean equals(Object that) {
13947
      if (that == null)
13948
        return false;
13949
      if (that instanceof getInventoryItemFromOrder_args)
13950
        return this.equals((getInventoryItemFromOrder_args)that);
13951
      return false;
13952
    }
13953
 
13954
    public boolean equals(getInventoryItemFromOrder_args that) {
13955
      if (that == null)
13956
        return false;
13957
 
13958
      boolean this_present_orderId = true;
13959
      boolean that_present_orderId = true;
13960
      if (this_present_orderId || that_present_orderId) {
13961
        if (!(this_present_orderId && that_present_orderId))
13962
          return false;
13963
        if (this.orderId != that.orderId)
13964
          return false;
13965
      }
13966
 
13967
      return true;
13968
    }
13969
 
13970
    @Override
13971
    public int hashCode() {
13972
      return 0;
13973
    }
13974
 
13975
    public int compareTo(getInventoryItemFromOrder_args other) {
13976
      if (!getClass().equals(other.getClass())) {
13977
        return getClass().getName().compareTo(other.getClass().getName());
13978
      }
13979
 
13980
      int lastComparison = 0;
13981
      getInventoryItemFromOrder_args typedOther = (getInventoryItemFromOrder_args)other;
13982
 
13983
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
13984
      if (lastComparison != 0) {
13985
        return lastComparison;
13986
      }
13987
      if (isSetOrderId()) {
13988
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13989
        if (lastComparison != 0) {
13990
          return lastComparison;
13991
        }
13992
      }
13993
      return 0;
13994
    }
13995
 
13996
    public _Fields fieldForId(int fieldId) {
13997
      return _Fields.findByThriftId(fieldId);
13998
    }
13999
 
14000
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14001
      org.apache.thrift.protocol.TField field;
14002
      iprot.readStructBegin();
14003
      while (true)
14004
      {
14005
        field = iprot.readFieldBegin();
14006
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14007
          break;
14008
        }
14009
        switch (field.id) {
14010
          case 1: // ORDER_ID
14011
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14012
              this.orderId = iprot.readI64();
14013
              setOrderIdIsSet(true);
14014
            } else { 
14015
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14016
            }
14017
            break;
14018
          default:
14019
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14020
        }
14021
        iprot.readFieldEnd();
14022
      }
14023
      iprot.readStructEnd();
14024
      validate();
14025
    }
14026
 
14027
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14028
      validate();
14029
 
14030
      oprot.writeStructBegin(STRUCT_DESC);
14031
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14032
      oprot.writeI64(this.orderId);
14033
      oprot.writeFieldEnd();
14034
      oprot.writeFieldStop();
14035
      oprot.writeStructEnd();
14036
    }
14037
 
14038
    @Override
14039
    public String toString() {
14040
      StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_args(");
14041
      boolean first = true;
14042
 
14043
      sb.append("orderId:");
14044
      sb.append(this.orderId);
14045
      first = false;
14046
      sb.append(")");
14047
      return sb.toString();
14048
    }
14049
 
14050
    public void validate() throws org.apache.thrift.TException {
14051
      // check for required fields
14052
    }
14053
 
14054
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14055
      try {
14056
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14057
      } catch (org.apache.thrift.TException te) {
14058
        throw new java.io.IOException(te);
14059
      }
14060
    }
14061
 
14062
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14063
      try {
14064
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14065
        __isset_bit_vector = new BitSet(1);
14066
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14067
      } catch (org.apache.thrift.TException te) {
14068
        throw new java.io.IOException(te);
14069
      }
14070
    }
14071
 
14072
  }
14073
 
14074
  public static class getInventoryItemFromOrder_result implements org.apache.thrift.TBase<getInventoryItemFromOrder_result, getInventoryItemFromOrder_result._Fields>, java.io.Serializable, Cloneable   {
14075
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_result");
14076
 
14077
    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);
14078
    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);
14079
 
14080
    private InventoryItem success; // required
14081
    private WarehouseServiceException we; // required
14082
 
14083
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14084
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14085
      SUCCESS((short)0, "success"),
14086
      WE((short)1, "we");
14087
 
14088
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14089
 
14090
      static {
14091
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14092
          byName.put(field.getFieldName(), field);
14093
        }
14094
      }
14095
 
14096
      /**
14097
       * Find the _Fields constant that matches fieldId, or null if its not found.
14098
       */
14099
      public static _Fields findByThriftId(int fieldId) {
14100
        switch(fieldId) {
14101
          case 0: // SUCCESS
14102
            return SUCCESS;
14103
          case 1: // WE
14104
            return WE;
14105
          default:
14106
            return null;
14107
        }
14108
      }
14109
 
14110
      /**
14111
       * Find the _Fields constant that matches fieldId, throwing an exception
14112
       * if it is not found.
14113
       */
14114
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14115
        _Fields fields = findByThriftId(fieldId);
14116
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14117
        return fields;
14118
      }
14119
 
14120
      /**
14121
       * Find the _Fields constant that matches name, or null if its not found.
14122
       */
14123
      public static _Fields findByName(String name) {
14124
        return byName.get(name);
14125
      }
14126
 
14127
      private final short _thriftId;
14128
      private final String _fieldName;
14129
 
14130
      _Fields(short thriftId, String fieldName) {
14131
        _thriftId = thriftId;
14132
        _fieldName = fieldName;
14133
      }
14134
 
14135
      public short getThriftFieldId() {
14136
        return _thriftId;
14137
      }
14138
 
14139
      public String getFieldName() {
14140
        return _fieldName;
14141
      }
14142
    }
14143
 
14144
    // isset id assignments
14145
 
14146
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14147
    static {
14148
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14149
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14150
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
14151
      tmpMap.put(_Fields.WE, new org.apache.thrift.meta_data.FieldMetaData("we", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14152
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14153
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14154
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_result.class, metaDataMap);
14155
    }
14156
 
14157
    public getInventoryItemFromOrder_result() {
14158
    }
14159
 
14160
    public getInventoryItemFromOrder_result(
14161
      InventoryItem success,
14162
      WarehouseServiceException we)
14163
    {
14164
      this();
14165
      this.success = success;
14166
      this.we = we;
14167
    }
14168
 
14169
    /**
14170
     * Performs a deep copy on <i>other</i>.
14171
     */
14172
    public getInventoryItemFromOrder_result(getInventoryItemFromOrder_result other) {
14173
      if (other.isSetSuccess()) {
14174
        this.success = new InventoryItem(other.success);
14175
      }
14176
      if (other.isSetWe()) {
14177
        this.we = new WarehouseServiceException(other.we);
14178
      }
14179
    }
14180
 
14181
    public getInventoryItemFromOrder_result deepCopy() {
14182
      return new getInventoryItemFromOrder_result(this);
14183
    }
14184
 
14185
    @Override
14186
    public void clear() {
14187
      this.success = null;
14188
      this.we = null;
14189
    }
14190
 
14191
    public InventoryItem getSuccess() {
14192
      return this.success;
14193
    }
14194
 
14195
    public void setSuccess(InventoryItem success) {
14196
      this.success = success;
14197
    }
14198
 
14199
    public void unsetSuccess() {
14200
      this.success = null;
14201
    }
14202
 
14203
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14204
    public boolean isSetSuccess() {
14205
      return this.success != null;
14206
    }
14207
 
14208
    public void setSuccessIsSet(boolean value) {
14209
      if (!value) {
14210
        this.success = null;
14211
      }
14212
    }
14213
 
14214
    public WarehouseServiceException getWe() {
14215
      return this.we;
14216
    }
14217
 
14218
    public void setWe(WarehouseServiceException we) {
14219
      this.we = we;
14220
    }
14221
 
14222
    public void unsetWe() {
14223
      this.we = null;
14224
    }
14225
 
14226
    /** Returns true if field we is set (has been assigned a value) and false otherwise */
14227
    public boolean isSetWe() {
14228
      return this.we != null;
14229
    }
14230
 
14231
    public void setWeIsSet(boolean value) {
14232
      if (!value) {
14233
        this.we = null;
14234
      }
14235
    }
14236
 
14237
    public void setFieldValue(_Fields field, Object value) {
14238
      switch (field) {
14239
      case SUCCESS:
14240
        if (value == null) {
14241
          unsetSuccess();
14242
        } else {
14243
          setSuccess((InventoryItem)value);
14244
        }
14245
        break;
14246
 
14247
      case WE:
14248
        if (value == null) {
14249
          unsetWe();
14250
        } else {
14251
          setWe((WarehouseServiceException)value);
14252
        }
14253
        break;
14254
 
14255
      }
14256
    }
14257
 
14258
    public Object getFieldValue(_Fields field) {
14259
      switch (field) {
14260
      case SUCCESS:
14261
        return getSuccess();
14262
 
14263
      case WE:
14264
        return getWe();
14265
 
14266
      }
14267
      throw new IllegalStateException();
14268
    }
14269
 
14270
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14271
    public boolean isSet(_Fields field) {
14272
      if (field == null) {
14273
        throw new IllegalArgumentException();
14274
      }
14275
 
14276
      switch (field) {
14277
      case SUCCESS:
14278
        return isSetSuccess();
14279
      case WE:
14280
        return isSetWe();
14281
      }
14282
      throw new IllegalStateException();
14283
    }
14284
 
14285
    @Override
14286
    public boolean equals(Object that) {
14287
      if (that == null)
14288
        return false;
14289
      if (that instanceof getInventoryItemFromOrder_result)
14290
        return this.equals((getInventoryItemFromOrder_result)that);
14291
      return false;
14292
    }
14293
 
14294
    public boolean equals(getInventoryItemFromOrder_result that) {
14295
      if (that == null)
14296
        return false;
14297
 
14298
      boolean this_present_success = true && this.isSetSuccess();
14299
      boolean that_present_success = true && that.isSetSuccess();
14300
      if (this_present_success || that_present_success) {
14301
        if (!(this_present_success && that_present_success))
14302
          return false;
14303
        if (!this.success.equals(that.success))
14304
          return false;
14305
      }
14306
 
14307
      boolean this_present_we = true && this.isSetWe();
14308
      boolean that_present_we = true && that.isSetWe();
14309
      if (this_present_we || that_present_we) {
14310
        if (!(this_present_we && that_present_we))
14311
          return false;
14312
        if (!this.we.equals(that.we))
14313
          return false;
14314
      }
14315
 
14316
      return true;
14317
    }
14318
 
14319
    @Override
14320
    public int hashCode() {
14321
      return 0;
14322
    }
14323
 
14324
    public int compareTo(getInventoryItemFromOrder_result other) {
14325
      if (!getClass().equals(other.getClass())) {
14326
        return getClass().getName().compareTo(other.getClass().getName());
14327
      }
14328
 
14329
      int lastComparison = 0;
14330
      getInventoryItemFromOrder_result typedOther = (getInventoryItemFromOrder_result)other;
14331
 
14332
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14333
      if (lastComparison != 0) {
14334
        return lastComparison;
14335
      }
14336
      if (isSetSuccess()) {
14337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14338
        if (lastComparison != 0) {
14339
          return lastComparison;
14340
        }
14341
      }
14342
      lastComparison = Boolean.valueOf(isSetWe()).compareTo(typedOther.isSetWe());
14343
      if (lastComparison != 0) {
14344
        return lastComparison;
14345
      }
14346
      if (isSetWe()) {
14347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.we, typedOther.we);
14348
        if (lastComparison != 0) {
14349
          return lastComparison;
14350
        }
14351
      }
14352
      return 0;
14353
    }
14354
 
14355
    public _Fields fieldForId(int fieldId) {
14356
      return _Fields.findByThriftId(fieldId);
14357
    }
14358
 
14359
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14360
      org.apache.thrift.protocol.TField field;
14361
      iprot.readStructBegin();
14362
      while (true)
14363
      {
14364
        field = iprot.readFieldBegin();
14365
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14366
          break;
14367
        }
14368
        switch (field.id) {
14369
          case 0: // SUCCESS
14370
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14371
              this.success = new InventoryItem();
14372
              this.success.read(iprot);
14373
            } else { 
14374
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14375
            }
14376
            break;
14377
          case 1: // WE
14378
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14379
              this.we = new WarehouseServiceException();
14380
              this.we.read(iprot);
14381
            } else { 
14382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14383
            }
14384
            break;
14385
          default:
14386
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14387
        }
14388
        iprot.readFieldEnd();
14389
      }
14390
      iprot.readStructEnd();
14391
      validate();
14392
    }
14393
 
14394
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14395
      oprot.writeStructBegin(STRUCT_DESC);
14396
 
14397
      if (this.isSetSuccess()) {
14398
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14399
        this.success.write(oprot);
14400
        oprot.writeFieldEnd();
14401
      } else if (this.isSetWe()) {
14402
        oprot.writeFieldBegin(WE_FIELD_DESC);
14403
        this.we.write(oprot);
14404
        oprot.writeFieldEnd();
14405
      }
14406
      oprot.writeFieldStop();
14407
      oprot.writeStructEnd();
14408
    }
14409
 
14410
    @Override
14411
    public String toString() {
14412
      StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_result(");
14413
      boolean first = true;
14414
 
14415
      sb.append("success:");
14416
      if (this.success == null) {
14417
        sb.append("null");
14418
      } else {
14419
        sb.append(this.success);
14420
      }
14421
      first = false;
14422
      if (!first) sb.append(", ");
14423
      sb.append("we:");
14424
      if (this.we == null) {
14425
        sb.append("null");
14426
      } else {
14427
        sb.append(this.we);
14428
      }
14429
      first = false;
14430
      sb.append(")");
14431
      return sb.toString();
14432
    }
14433
 
14434
    public void validate() throws org.apache.thrift.TException {
14435
      // check for required fields
14436
    }
14437
 
14438
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14439
      try {
14440
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14441
      } catch (org.apache.thrift.TException te) {
14442
        throw new java.io.IOException(te);
14443
      }
14444
    }
14445
 
14446
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14447
      try {
14448
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14449
      } catch (org.apache.thrift.TException te) {
14450
        throw new java.io.IOException(te);
14451
      }
14452
    }
14453
 
14454
  }
14455
 
5711 mandeep.dh 14456
  public static class getInventoryAge_args implements org.apache.thrift.TBase<getInventoryAge_args, getInventoryAge_args._Fields>, java.io.Serializable, Cloneable   {
14457
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_args");
14458
 
14459
 
14460
 
14461
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14462
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14463
;
14464
 
14465
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14466
 
14467
      static {
14468
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14469
          byName.put(field.getFieldName(), field);
14470
        }
14471
      }
14472
 
14473
      /**
14474
       * Find the _Fields constant that matches fieldId, or null if its not found.
14475
       */
14476
      public static _Fields findByThriftId(int fieldId) {
14477
        switch(fieldId) {
14478
          default:
14479
            return null;
14480
        }
14481
      }
14482
 
14483
      /**
14484
       * Find the _Fields constant that matches fieldId, throwing an exception
14485
       * if it is not found.
14486
       */
14487
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14488
        _Fields fields = findByThriftId(fieldId);
14489
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14490
        return fields;
14491
      }
14492
 
14493
      /**
14494
       * Find the _Fields constant that matches name, or null if its not found.
14495
       */
14496
      public static _Fields findByName(String name) {
14497
        return byName.get(name);
14498
      }
14499
 
14500
      private final short _thriftId;
14501
      private final String _fieldName;
14502
 
14503
      _Fields(short thriftId, String fieldName) {
14504
        _thriftId = thriftId;
14505
        _fieldName = fieldName;
14506
      }
14507
 
14508
      public short getThriftFieldId() {
14509
        return _thriftId;
14510
      }
14511
 
14512
      public String getFieldName() {
14513
        return _fieldName;
14514
      }
14515
    }
14516
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14517
    static {
14518
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14519
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14520
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_args.class, metaDataMap);
14521
    }
14522
 
14523
    public getInventoryAge_args() {
14524
    }
14525
 
14526
    /**
14527
     * Performs a deep copy on <i>other</i>.
14528
     */
14529
    public getInventoryAge_args(getInventoryAge_args other) {
14530
    }
14531
 
14532
    public getInventoryAge_args deepCopy() {
14533
      return new getInventoryAge_args(this);
14534
    }
14535
 
14536
    @Override
14537
    public void clear() {
14538
    }
14539
 
14540
    public void setFieldValue(_Fields field, Object value) {
14541
      switch (field) {
14542
      }
14543
    }
14544
 
14545
    public Object getFieldValue(_Fields field) {
14546
      switch (field) {
14547
      }
14548
      throw new IllegalStateException();
14549
    }
14550
 
14551
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14552
    public boolean isSet(_Fields field) {
14553
      if (field == null) {
14554
        throw new IllegalArgumentException();
14555
      }
14556
 
14557
      switch (field) {
14558
      }
14559
      throw new IllegalStateException();
14560
    }
14561
 
14562
    @Override
14563
    public boolean equals(Object that) {
14564
      if (that == null)
14565
        return false;
14566
      if (that instanceof getInventoryAge_args)
14567
        return this.equals((getInventoryAge_args)that);
14568
      return false;
14569
    }
14570
 
14571
    public boolean equals(getInventoryAge_args that) {
14572
      if (that == null)
14573
        return false;
14574
 
14575
      return true;
14576
    }
14577
 
14578
    @Override
14579
    public int hashCode() {
14580
      return 0;
14581
    }
14582
 
14583
    public int compareTo(getInventoryAge_args other) {
14584
      if (!getClass().equals(other.getClass())) {
14585
        return getClass().getName().compareTo(other.getClass().getName());
14586
      }
14587
 
14588
      int lastComparison = 0;
14589
      getInventoryAge_args typedOther = (getInventoryAge_args)other;
14590
 
14591
      return 0;
14592
    }
14593
 
14594
    public _Fields fieldForId(int fieldId) {
14595
      return _Fields.findByThriftId(fieldId);
14596
    }
14597
 
14598
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14599
      org.apache.thrift.protocol.TField field;
14600
      iprot.readStructBegin();
14601
      while (true)
14602
      {
14603
        field = iprot.readFieldBegin();
14604
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14605
          break;
14606
        }
14607
        switch (field.id) {
14608
          default:
14609
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14610
        }
14611
        iprot.readFieldEnd();
14612
      }
14613
      iprot.readStructEnd();
14614
      validate();
14615
    }
14616
 
14617
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14618
      validate();
14619
 
14620
      oprot.writeStructBegin(STRUCT_DESC);
14621
      oprot.writeFieldStop();
14622
      oprot.writeStructEnd();
14623
    }
14624
 
14625
    @Override
14626
    public String toString() {
14627
      StringBuilder sb = new StringBuilder("getInventoryAge_args(");
14628
      boolean first = true;
14629
 
14630
      sb.append(")");
14631
      return sb.toString();
14632
    }
14633
 
14634
    public void validate() throws org.apache.thrift.TException {
14635
      // check for required fields
14636
    }
14637
 
14638
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14639
      try {
14640
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14641
      } catch (org.apache.thrift.TException te) {
14642
        throw new java.io.IOException(te);
14643
      }
14644
    }
14645
 
14646
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14647
      try {
14648
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14649
      } catch (org.apache.thrift.TException te) {
14650
        throw new java.io.IOException(te);
14651
      }
14652
    }
14653
 
14654
  }
14655
 
14656
  public static class getInventoryAge_result implements org.apache.thrift.TBase<getInventoryAge_result, getInventoryAge_result._Fields>, java.io.Serializable, Cloneable   {
14657
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_result");
14658
 
14659
    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);
14660
 
14661
    private List<InventoryAge> success; // required
14662
 
14663
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14664
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14665
      SUCCESS((short)0, "success");
14666
 
14667
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14668
 
14669
      static {
14670
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14671
          byName.put(field.getFieldName(), field);
14672
        }
14673
      }
14674
 
14675
      /**
14676
       * Find the _Fields constant that matches fieldId, or null if its not found.
14677
       */
14678
      public static _Fields findByThriftId(int fieldId) {
14679
        switch(fieldId) {
14680
          case 0: // SUCCESS
14681
            return SUCCESS;
14682
          default:
14683
            return null;
14684
        }
14685
      }
14686
 
14687
      /**
14688
       * Find the _Fields constant that matches fieldId, throwing an exception
14689
       * if it is not found.
14690
       */
14691
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14692
        _Fields fields = findByThriftId(fieldId);
14693
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14694
        return fields;
14695
      }
14696
 
14697
      /**
14698
       * Find the _Fields constant that matches name, or null if its not found.
14699
       */
14700
      public static _Fields findByName(String name) {
14701
        return byName.get(name);
14702
      }
14703
 
14704
      private final short _thriftId;
14705
      private final String _fieldName;
14706
 
14707
      _Fields(short thriftId, String fieldName) {
14708
        _thriftId = thriftId;
14709
        _fieldName = fieldName;
14710
      }
14711
 
14712
      public short getThriftFieldId() {
14713
        return _thriftId;
14714
      }
14715
 
14716
      public String getFieldName() {
14717
        return _fieldName;
14718
      }
14719
    }
14720
 
14721
    // isset id assignments
14722
 
14723
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14724
    static {
14725
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14726
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14727
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14728
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAge.class))));
14729
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14730
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_result.class, metaDataMap);
14731
    }
14732
 
14733
    public getInventoryAge_result() {
14734
    }
14735
 
14736
    public getInventoryAge_result(
14737
      List<InventoryAge> success)
14738
    {
14739
      this();
14740
      this.success = success;
14741
    }
14742
 
14743
    /**
14744
     * Performs a deep copy on <i>other</i>.
14745
     */
14746
    public getInventoryAge_result(getInventoryAge_result other) {
14747
      if (other.isSetSuccess()) {
14748
        List<InventoryAge> __this__success = new ArrayList<InventoryAge>();
14749
        for (InventoryAge other_element : other.success) {
14750
          __this__success.add(new InventoryAge(other_element));
14751
        }
14752
        this.success = __this__success;
14753
      }
14754
    }
14755
 
14756
    public getInventoryAge_result deepCopy() {
14757
      return new getInventoryAge_result(this);
14758
    }
14759
 
14760
    @Override
14761
    public void clear() {
14762
      this.success = null;
14763
    }
14764
 
14765
    public int getSuccessSize() {
14766
      return (this.success == null) ? 0 : this.success.size();
14767
    }
14768
 
14769
    public java.util.Iterator<InventoryAge> getSuccessIterator() {
14770
      return (this.success == null) ? null : this.success.iterator();
14771
    }
14772
 
14773
    public void addToSuccess(InventoryAge elem) {
14774
      if (this.success == null) {
14775
        this.success = new ArrayList<InventoryAge>();
14776
      }
14777
      this.success.add(elem);
14778
    }
14779
 
14780
    public List<InventoryAge> getSuccess() {
14781
      return this.success;
14782
    }
14783
 
14784
    public void setSuccess(List<InventoryAge> success) {
14785
      this.success = success;
14786
    }
14787
 
14788
    public void unsetSuccess() {
14789
      this.success = null;
14790
    }
14791
 
14792
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14793
    public boolean isSetSuccess() {
14794
      return this.success != null;
14795
    }
14796
 
14797
    public void setSuccessIsSet(boolean value) {
14798
      if (!value) {
14799
        this.success = null;
14800
      }
14801
    }
14802
 
14803
    public void setFieldValue(_Fields field, Object value) {
14804
      switch (field) {
14805
      case SUCCESS:
14806
        if (value == null) {
14807
          unsetSuccess();
14808
        } else {
14809
          setSuccess((List<InventoryAge>)value);
14810
        }
14811
        break;
14812
 
14813
      }
14814
    }
14815
 
14816
    public Object getFieldValue(_Fields field) {
14817
      switch (field) {
14818
      case SUCCESS:
14819
        return getSuccess();
14820
 
14821
      }
14822
      throw new IllegalStateException();
14823
    }
14824
 
14825
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14826
    public boolean isSet(_Fields field) {
14827
      if (field == null) {
14828
        throw new IllegalArgumentException();
14829
      }
14830
 
14831
      switch (field) {
14832
      case SUCCESS:
14833
        return isSetSuccess();
14834
      }
14835
      throw new IllegalStateException();
14836
    }
14837
 
14838
    @Override
14839
    public boolean equals(Object that) {
14840
      if (that == null)
14841
        return false;
14842
      if (that instanceof getInventoryAge_result)
14843
        return this.equals((getInventoryAge_result)that);
14844
      return false;
14845
    }
14846
 
14847
    public boolean equals(getInventoryAge_result that) {
14848
      if (that == null)
14849
        return false;
14850
 
14851
      boolean this_present_success = true && this.isSetSuccess();
14852
      boolean that_present_success = true && that.isSetSuccess();
14853
      if (this_present_success || that_present_success) {
14854
        if (!(this_present_success && that_present_success))
14855
          return false;
14856
        if (!this.success.equals(that.success))
14857
          return false;
14858
      }
14859
 
14860
      return true;
14861
    }
14862
 
14863
    @Override
14864
    public int hashCode() {
14865
      return 0;
14866
    }
14867
 
14868
    public int compareTo(getInventoryAge_result other) {
14869
      if (!getClass().equals(other.getClass())) {
14870
        return getClass().getName().compareTo(other.getClass().getName());
14871
      }
14872
 
14873
      int lastComparison = 0;
14874
      getInventoryAge_result typedOther = (getInventoryAge_result)other;
14875
 
14876
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14877
      if (lastComparison != 0) {
14878
        return lastComparison;
14879
      }
14880
      if (isSetSuccess()) {
14881
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14882
        if (lastComparison != 0) {
14883
          return lastComparison;
14884
        }
14885
      }
14886
      return 0;
14887
    }
14888
 
14889
    public _Fields fieldForId(int fieldId) {
14890
      return _Fields.findByThriftId(fieldId);
14891
    }
14892
 
14893
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14894
      org.apache.thrift.protocol.TField field;
14895
      iprot.readStructBegin();
14896
      while (true)
14897
      {
14898
        field = iprot.readFieldBegin();
14899
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14900
          break;
14901
        }
14902
        switch (field.id) {
14903
          case 0: // SUCCESS
14904
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14905
              {
7210 amar.kumar 14906
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
14907
                this.success = new ArrayList<InventoryAge>(_list24.size);
14908
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
5711 mandeep.dh 14909
                {
7210 amar.kumar 14910
                  InventoryAge _elem26; // required
14911
                  _elem26 = new InventoryAge();
14912
                  _elem26.read(iprot);
14913
                  this.success.add(_elem26);
5711 mandeep.dh 14914
                }
14915
                iprot.readListEnd();
14916
              }
14917
            } else { 
14918
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14919
            }
14920
            break;
14921
          default:
14922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14923
        }
14924
        iprot.readFieldEnd();
14925
      }
14926
      iprot.readStructEnd();
14927
      validate();
14928
    }
14929
 
14930
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14931
      oprot.writeStructBegin(STRUCT_DESC);
14932
 
14933
      if (this.isSetSuccess()) {
14934
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14935
        {
14936
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 14937
          for (InventoryAge _iter27 : this.success)
5711 mandeep.dh 14938
          {
7210 amar.kumar 14939
            _iter27.write(oprot);
5711 mandeep.dh 14940
          }
14941
          oprot.writeListEnd();
14942
        }
14943
        oprot.writeFieldEnd();
14944
      }
14945
      oprot.writeFieldStop();
14946
      oprot.writeStructEnd();
14947
    }
14948
 
14949
    @Override
14950
    public String toString() {
14951
      StringBuilder sb = new StringBuilder("getInventoryAge_result(");
14952
      boolean first = true;
14953
 
14954
      sb.append("success:");
14955
      if (this.success == null) {
14956
        sb.append("null");
14957
      } else {
14958
        sb.append(this.success);
14959
      }
14960
      first = false;
14961
      sb.append(")");
14962
      return sb.toString();
14963
    }
14964
 
14965
    public void validate() throws org.apache.thrift.TException {
14966
      // check for required fields
14967
    }
14968
 
14969
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14970
      try {
14971
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14972
      } catch (org.apache.thrift.TException te) {
14973
        throw new java.io.IOException(te);
14974
      }
14975
    }
14976
 
14977
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14978
      try {
14979
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14980
      } catch (org.apache.thrift.TException te) {
14981
        throw new java.io.IOException(te);
14982
      }
14983
    }
14984
 
14985
  }
14986
 
6322 amar.kumar 14987
  public static class getInventoryScansForItem_args implements org.apache.thrift.TBase<getInventoryScansForItem_args, getInventoryScansForItem_args._Fields>, java.io.Serializable, Cloneable   {
14988
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_args");
14989
 
14990
    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);
14991
    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);
14992
    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);
14993
 
14994
    private long itemId; // required
14995
    private long fromDate; // required
14996
    private long toDate; // required
14997
 
14998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14999
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15000
      ITEM_ID((short)1, "itemId"),
15001
      FROM_DATE((short)2, "fromDate"),
15002
      TO_DATE((short)3, "toDate");
15003
 
15004
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15005
 
15006
      static {
15007
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15008
          byName.put(field.getFieldName(), field);
15009
        }
15010
      }
15011
 
15012
      /**
15013
       * Find the _Fields constant that matches fieldId, or null if its not found.
15014
       */
15015
      public static _Fields findByThriftId(int fieldId) {
15016
        switch(fieldId) {
15017
          case 1: // ITEM_ID
15018
            return ITEM_ID;
15019
          case 2: // FROM_DATE
15020
            return FROM_DATE;
15021
          case 3: // TO_DATE
15022
            return TO_DATE;
15023
          default:
15024
            return null;
15025
        }
15026
      }
15027
 
15028
      /**
15029
       * Find the _Fields constant that matches fieldId, throwing an exception
15030
       * if it is not found.
15031
       */
15032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15033
        _Fields fields = findByThriftId(fieldId);
15034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15035
        return fields;
15036
      }
15037
 
15038
      /**
15039
       * Find the _Fields constant that matches name, or null if its not found.
15040
       */
15041
      public static _Fields findByName(String name) {
15042
        return byName.get(name);
15043
      }
15044
 
15045
      private final short _thriftId;
15046
      private final String _fieldName;
15047
 
15048
      _Fields(short thriftId, String fieldName) {
15049
        _thriftId = thriftId;
15050
        _fieldName = fieldName;
15051
      }
15052
 
15053
      public short getThriftFieldId() {
15054
        return _thriftId;
15055
      }
15056
 
15057
      public String getFieldName() {
15058
        return _fieldName;
15059
      }
15060
    }
15061
 
15062
    // isset id assignments
15063
    private static final int __ITEMID_ISSET_ID = 0;
15064
    private static final int __FROMDATE_ISSET_ID = 1;
15065
    private static final int __TODATE_ISSET_ID = 2;
15066
    private BitSet __isset_bit_vector = new BitSet(3);
15067
 
15068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15069
    static {
15070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15071
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15073
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15075
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15076
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15077
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15078
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_args.class, metaDataMap);
15079
    }
15080
 
15081
    public getInventoryScansForItem_args() {
15082
    }
15083
 
15084
    public getInventoryScansForItem_args(
15085
      long itemId,
15086
      long fromDate,
15087
      long toDate)
15088
    {
15089
      this();
15090
      this.itemId = itemId;
15091
      setItemIdIsSet(true);
15092
      this.fromDate = fromDate;
15093
      setFromDateIsSet(true);
15094
      this.toDate = toDate;
15095
      setToDateIsSet(true);
15096
    }
15097
 
15098
    /**
15099
     * Performs a deep copy on <i>other</i>.
15100
     */
15101
    public getInventoryScansForItem_args(getInventoryScansForItem_args other) {
15102
      __isset_bit_vector.clear();
15103
      __isset_bit_vector.or(other.__isset_bit_vector);
15104
      this.itemId = other.itemId;
15105
      this.fromDate = other.fromDate;
15106
      this.toDate = other.toDate;
15107
    }
15108
 
15109
    public getInventoryScansForItem_args deepCopy() {
15110
      return new getInventoryScansForItem_args(this);
15111
    }
15112
 
15113
    @Override
15114
    public void clear() {
15115
      setItemIdIsSet(false);
15116
      this.itemId = 0;
15117
      setFromDateIsSet(false);
15118
      this.fromDate = 0;
15119
      setToDateIsSet(false);
15120
      this.toDate = 0;
15121
    }
15122
 
15123
    public long getItemId() {
15124
      return this.itemId;
15125
    }
15126
 
15127
    public void setItemId(long itemId) {
15128
      this.itemId = itemId;
15129
      setItemIdIsSet(true);
15130
    }
15131
 
15132
    public void unsetItemId() {
15133
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15134
    }
15135
 
15136
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15137
    public boolean isSetItemId() {
15138
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15139
    }
15140
 
15141
    public void setItemIdIsSet(boolean value) {
15142
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15143
    }
15144
 
15145
    public long getFromDate() {
15146
      return this.fromDate;
15147
    }
15148
 
15149
    public void setFromDate(long fromDate) {
15150
      this.fromDate = fromDate;
15151
      setFromDateIsSet(true);
15152
    }
15153
 
15154
    public void unsetFromDate() {
15155
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
15156
    }
15157
 
15158
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
15159
    public boolean isSetFromDate() {
15160
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
15161
    }
15162
 
15163
    public void setFromDateIsSet(boolean value) {
15164
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
15165
    }
15166
 
15167
    public long getToDate() {
15168
      return this.toDate;
15169
    }
15170
 
15171
    public void setToDate(long toDate) {
15172
      this.toDate = toDate;
15173
      setToDateIsSet(true);
15174
    }
15175
 
15176
    public void unsetToDate() {
15177
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
15178
    }
15179
 
15180
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
15181
    public boolean isSetToDate() {
15182
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
15183
    }
15184
 
15185
    public void setToDateIsSet(boolean value) {
15186
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
15187
    }
15188
 
15189
    public void setFieldValue(_Fields field, Object value) {
15190
      switch (field) {
15191
      case ITEM_ID:
15192
        if (value == null) {
15193
          unsetItemId();
15194
        } else {
15195
          setItemId((Long)value);
15196
        }
15197
        break;
15198
 
15199
      case FROM_DATE:
15200
        if (value == null) {
15201
          unsetFromDate();
15202
        } else {
15203
          setFromDate((Long)value);
15204
        }
15205
        break;
15206
 
15207
      case TO_DATE:
15208
        if (value == null) {
15209
          unsetToDate();
15210
        } else {
15211
          setToDate((Long)value);
15212
        }
15213
        break;
15214
 
15215
      }
15216
    }
15217
 
15218
    public Object getFieldValue(_Fields field) {
15219
      switch (field) {
15220
      case ITEM_ID:
15221
        return Long.valueOf(getItemId());
15222
 
15223
      case FROM_DATE:
15224
        return Long.valueOf(getFromDate());
15225
 
15226
      case TO_DATE:
15227
        return Long.valueOf(getToDate());
15228
 
15229
      }
15230
      throw new IllegalStateException();
15231
    }
15232
 
15233
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15234
    public boolean isSet(_Fields field) {
15235
      if (field == null) {
15236
        throw new IllegalArgumentException();
15237
      }
15238
 
15239
      switch (field) {
15240
      case ITEM_ID:
15241
        return isSetItemId();
15242
      case FROM_DATE:
15243
        return isSetFromDate();
15244
      case TO_DATE:
15245
        return isSetToDate();
15246
      }
15247
      throw new IllegalStateException();
15248
    }
15249
 
15250
    @Override
15251
    public boolean equals(Object that) {
15252
      if (that == null)
15253
        return false;
15254
      if (that instanceof getInventoryScansForItem_args)
15255
        return this.equals((getInventoryScansForItem_args)that);
15256
      return false;
15257
    }
15258
 
15259
    public boolean equals(getInventoryScansForItem_args that) {
15260
      if (that == null)
15261
        return false;
15262
 
15263
      boolean this_present_itemId = true;
15264
      boolean that_present_itemId = true;
15265
      if (this_present_itemId || that_present_itemId) {
15266
        if (!(this_present_itemId && that_present_itemId))
15267
          return false;
15268
        if (this.itemId != that.itemId)
15269
          return false;
15270
      }
15271
 
15272
      boolean this_present_fromDate = true;
15273
      boolean that_present_fromDate = true;
15274
      if (this_present_fromDate || that_present_fromDate) {
15275
        if (!(this_present_fromDate && that_present_fromDate))
15276
          return false;
15277
        if (this.fromDate != that.fromDate)
15278
          return false;
15279
      }
15280
 
15281
      boolean this_present_toDate = true;
15282
      boolean that_present_toDate = true;
15283
      if (this_present_toDate || that_present_toDate) {
15284
        if (!(this_present_toDate && that_present_toDate))
15285
          return false;
15286
        if (this.toDate != that.toDate)
15287
          return false;
15288
      }
15289
 
15290
      return true;
15291
    }
15292
 
15293
    @Override
15294
    public int hashCode() {
15295
      return 0;
15296
    }
15297
 
15298
    public int compareTo(getInventoryScansForItem_args other) {
15299
      if (!getClass().equals(other.getClass())) {
15300
        return getClass().getName().compareTo(other.getClass().getName());
15301
      }
15302
 
15303
      int lastComparison = 0;
15304
      getInventoryScansForItem_args typedOther = (getInventoryScansForItem_args)other;
15305
 
15306
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15307
      if (lastComparison != 0) {
15308
        return lastComparison;
15309
      }
15310
      if (isSetItemId()) {
15311
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15312
        if (lastComparison != 0) {
15313
          return lastComparison;
15314
        }
15315
      }
15316
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
15317
      if (lastComparison != 0) {
15318
        return lastComparison;
15319
      }
15320
      if (isSetFromDate()) {
15321
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
15322
        if (lastComparison != 0) {
15323
          return lastComparison;
15324
        }
15325
      }
15326
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
15327
      if (lastComparison != 0) {
15328
        return lastComparison;
15329
      }
15330
      if (isSetToDate()) {
15331
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
15332
        if (lastComparison != 0) {
15333
          return lastComparison;
15334
        }
15335
      }
15336
      return 0;
15337
    }
15338
 
15339
    public _Fields fieldForId(int fieldId) {
15340
      return _Fields.findByThriftId(fieldId);
15341
    }
15342
 
15343
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15344
      org.apache.thrift.protocol.TField field;
15345
      iprot.readStructBegin();
15346
      while (true)
15347
      {
15348
        field = iprot.readFieldBegin();
15349
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15350
          break;
15351
        }
15352
        switch (field.id) {
15353
          case 1: // ITEM_ID
15354
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15355
              this.itemId = iprot.readI64();
15356
              setItemIdIsSet(true);
15357
            } else { 
15358
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15359
            }
15360
            break;
15361
          case 2: // FROM_DATE
15362
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15363
              this.fromDate = iprot.readI64();
15364
              setFromDateIsSet(true);
15365
            } else { 
15366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15367
            }
15368
            break;
15369
          case 3: // TO_DATE
15370
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15371
              this.toDate = iprot.readI64();
15372
              setToDateIsSet(true);
15373
            } else { 
15374
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15375
            }
15376
            break;
15377
          default:
15378
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15379
        }
15380
        iprot.readFieldEnd();
15381
      }
15382
      iprot.readStructEnd();
15383
      validate();
15384
    }
15385
 
15386
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15387
      validate();
15388
 
15389
      oprot.writeStructBegin(STRUCT_DESC);
15390
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15391
      oprot.writeI64(this.itemId);
15392
      oprot.writeFieldEnd();
15393
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
15394
      oprot.writeI64(this.fromDate);
15395
      oprot.writeFieldEnd();
15396
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
15397
      oprot.writeI64(this.toDate);
15398
      oprot.writeFieldEnd();
15399
      oprot.writeFieldStop();
15400
      oprot.writeStructEnd();
15401
    }
15402
 
15403
    @Override
15404
    public String toString() {
15405
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_args(");
15406
      boolean first = true;
15407
 
15408
      sb.append("itemId:");
15409
      sb.append(this.itemId);
15410
      first = false;
15411
      if (!first) sb.append(", ");
15412
      sb.append("fromDate:");
15413
      sb.append(this.fromDate);
15414
      first = false;
15415
      if (!first) sb.append(", ");
15416
      sb.append("toDate:");
15417
      sb.append(this.toDate);
15418
      first = false;
15419
      sb.append(")");
15420
      return sb.toString();
15421
    }
15422
 
15423
    public void validate() throws org.apache.thrift.TException {
15424
      // check for required fields
15425
    }
15426
 
15427
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15428
      try {
15429
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15430
      } catch (org.apache.thrift.TException te) {
15431
        throw new java.io.IOException(te);
15432
      }
15433
    }
15434
 
15435
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15436
      try {
15437
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15438
      } catch (org.apache.thrift.TException te) {
15439
        throw new java.io.IOException(te);
15440
      }
15441
    }
15442
 
15443
  }
15444
 
15445
  public static class getInventoryScansForItem_result implements org.apache.thrift.TBase<getInventoryScansForItem_result, getInventoryScansForItem_result._Fields>, java.io.Serializable, Cloneable   {
15446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_result");
15447
 
15448
    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);
15449
 
15450
    private List<Scan> success; // required
15451
 
15452
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15453
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15454
      SUCCESS((short)0, "success");
15455
 
15456
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15457
 
15458
      static {
15459
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15460
          byName.put(field.getFieldName(), field);
15461
        }
15462
      }
15463
 
15464
      /**
15465
       * Find the _Fields constant that matches fieldId, or null if its not found.
15466
       */
15467
      public static _Fields findByThriftId(int fieldId) {
15468
        switch(fieldId) {
15469
          case 0: // SUCCESS
15470
            return SUCCESS;
15471
          default:
15472
            return null;
15473
        }
15474
      }
15475
 
15476
      /**
15477
       * Find the _Fields constant that matches fieldId, throwing an exception
15478
       * if it is not found.
15479
       */
15480
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15481
        _Fields fields = findByThriftId(fieldId);
15482
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15483
        return fields;
15484
      }
15485
 
15486
      /**
15487
       * Find the _Fields constant that matches name, or null if its not found.
15488
       */
15489
      public static _Fields findByName(String name) {
15490
        return byName.get(name);
15491
      }
15492
 
15493
      private final short _thriftId;
15494
      private final String _fieldName;
15495
 
15496
      _Fields(short thriftId, String fieldName) {
15497
        _thriftId = thriftId;
15498
        _fieldName = fieldName;
15499
      }
15500
 
15501
      public short getThriftFieldId() {
15502
        return _thriftId;
15503
      }
15504
 
15505
      public String getFieldName() {
15506
        return _fieldName;
15507
      }
15508
    }
15509
 
15510
    // isset id assignments
15511
 
15512
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15513
    static {
15514
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15515
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15516
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15517
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
15518
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15519
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_result.class, metaDataMap);
15520
    }
15521
 
15522
    public getInventoryScansForItem_result() {
15523
    }
15524
 
15525
    public getInventoryScansForItem_result(
15526
      List<Scan> success)
15527
    {
15528
      this();
15529
      this.success = success;
15530
    }
15531
 
15532
    /**
15533
     * Performs a deep copy on <i>other</i>.
15534
     */
15535
    public getInventoryScansForItem_result(getInventoryScansForItem_result other) {
15536
      if (other.isSetSuccess()) {
15537
        List<Scan> __this__success = new ArrayList<Scan>();
15538
        for (Scan other_element : other.success) {
15539
          __this__success.add(new Scan(other_element));
15540
        }
15541
        this.success = __this__success;
15542
      }
15543
    }
15544
 
15545
    public getInventoryScansForItem_result deepCopy() {
15546
      return new getInventoryScansForItem_result(this);
15547
    }
15548
 
15549
    @Override
15550
    public void clear() {
15551
      this.success = null;
15552
    }
15553
 
15554
    public int getSuccessSize() {
15555
      return (this.success == null) ? 0 : this.success.size();
15556
    }
15557
 
15558
    public java.util.Iterator<Scan> getSuccessIterator() {
15559
      return (this.success == null) ? null : this.success.iterator();
15560
    }
15561
 
15562
    public void addToSuccess(Scan elem) {
15563
      if (this.success == null) {
15564
        this.success = new ArrayList<Scan>();
15565
      }
15566
      this.success.add(elem);
15567
    }
15568
 
15569
    public List<Scan> getSuccess() {
15570
      return this.success;
15571
    }
15572
 
15573
    public void setSuccess(List<Scan> success) {
15574
      this.success = success;
15575
    }
15576
 
15577
    public void unsetSuccess() {
15578
      this.success = null;
15579
    }
15580
 
15581
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15582
    public boolean isSetSuccess() {
15583
      return this.success != null;
15584
    }
15585
 
15586
    public void setSuccessIsSet(boolean value) {
15587
      if (!value) {
15588
        this.success = null;
15589
      }
15590
    }
15591
 
15592
    public void setFieldValue(_Fields field, Object value) {
15593
      switch (field) {
15594
      case SUCCESS:
15595
        if (value == null) {
15596
          unsetSuccess();
15597
        } else {
15598
          setSuccess((List<Scan>)value);
15599
        }
15600
        break;
15601
 
15602
      }
15603
    }
15604
 
15605
    public Object getFieldValue(_Fields field) {
15606
      switch (field) {
15607
      case SUCCESS:
15608
        return getSuccess();
15609
 
15610
      }
15611
      throw new IllegalStateException();
15612
    }
15613
 
15614
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15615
    public boolean isSet(_Fields field) {
15616
      if (field == null) {
15617
        throw new IllegalArgumentException();
15618
      }
15619
 
15620
      switch (field) {
15621
      case SUCCESS:
15622
        return isSetSuccess();
15623
      }
15624
      throw new IllegalStateException();
15625
    }
15626
 
15627
    @Override
15628
    public boolean equals(Object that) {
15629
      if (that == null)
15630
        return false;
15631
      if (that instanceof getInventoryScansForItem_result)
15632
        return this.equals((getInventoryScansForItem_result)that);
15633
      return false;
15634
    }
15635
 
15636
    public boolean equals(getInventoryScansForItem_result that) {
15637
      if (that == null)
15638
        return false;
15639
 
15640
      boolean this_present_success = true && this.isSetSuccess();
15641
      boolean that_present_success = true && that.isSetSuccess();
15642
      if (this_present_success || that_present_success) {
15643
        if (!(this_present_success && that_present_success))
15644
          return false;
15645
        if (!this.success.equals(that.success))
15646
          return false;
15647
      }
15648
 
15649
      return true;
15650
    }
15651
 
15652
    @Override
15653
    public int hashCode() {
15654
      return 0;
15655
    }
15656
 
15657
    public int compareTo(getInventoryScansForItem_result other) {
15658
      if (!getClass().equals(other.getClass())) {
15659
        return getClass().getName().compareTo(other.getClass().getName());
15660
      }
15661
 
15662
      int lastComparison = 0;
15663
      getInventoryScansForItem_result typedOther = (getInventoryScansForItem_result)other;
15664
 
15665
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15666
      if (lastComparison != 0) {
15667
        return lastComparison;
15668
      }
15669
      if (isSetSuccess()) {
15670
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15671
        if (lastComparison != 0) {
15672
          return lastComparison;
15673
        }
15674
      }
15675
      return 0;
15676
    }
15677
 
15678
    public _Fields fieldForId(int fieldId) {
15679
      return _Fields.findByThriftId(fieldId);
15680
    }
15681
 
15682
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15683
      org.apache.thrift.protocol.TField field;
15684
      iprot.readStructBegin();
15685
      while (true)
15686
      {
15687
        field = iprot.readFieldBegin();
15688
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15689
          break;
15690
        }
15691
        switch (field.id) {
15692
          case 0: // SUCCESS
15693
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15694
              {
7210 amar.kumar 15695
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
15696
                this.success = new ArrayList<Scan>(_list28.size);
15697
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
6322 amar.kumar 15698
                {
7210 amar.kumar 15699
                  Scan _elem30; // required
15700
                  _elem30 = new Scan();
15701
                  _elem30.read(iprot);
15702
                  this.success.add(_elem30);
6322 amar.kumar 15703
                }
15704
                iprot.readListEnd();
15705
              }
15706
            } else { 
15707
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15708
            }
15709
            break;
15710
          default:
15711
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15712
        }
15713
        iprot.readFieldEnd();
15714
      }
15715
      iprot.readStructEnd();
15716
      validate();
15717
    }
15718
 
15719
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15720
      oprot.writeStructBegin(STRUCT_DESC);
15721
 
15722
      if (this.isSetSuccess()) {
15723
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15724
        {
15725
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 15726
          for (Scan _iter31 : this.success)
6322 amar.kumar 15727
          {
7210 amar.kumar 15728
            _iter31.write(oprot);
6322 amar.kumar 15729
          }
15730
          oprot.writeListEnd();
15731
        }
15732
        oprot.writeFieldEnd();
15733
      }
15734
      oprot.writeFieldStop();
15735
      oprot.writeStructEnd();
15736
    }
15737
 
15738
    @Override
15739
    public String toString() {
15740
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_result(");
15741
      boolean first = true;
15742
 
15743
      sb.append("success:");
15744
      if (this.success == null) {
15745
        sb.append("null");
15746
      } else {
15747
        sb.append(this.success);
15748
      }
15749
      first = false;
15750
      sb.append(")");
15751
      return sb.toString();
15752
    }
15753
 
15754
    public void validate() throws org.apache.thrift.TException {
15755
      // check for required fields
15756
    }
15757
 
15758
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15759
      try {
15760
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15761
      } catch (org.apache.thrift.TException te) {
15762
        throw new java.io.IOException(te);
15763
      }
15764
    }
15765
 
15766
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15767
      try {
15768
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15769
      } catch (org.apache.thrift.TException te) {
15770
        throw new java.io.IOException(te);
15771
      }
15772
    }
15773
 
15774
  }
15775
 
15776
  public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable   {
15777
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
15778
 
7410 amar.kumar 15779
    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 15780
 
7410 amar.kumar 15781
    private String serialNumber; // required
6322 amar.kumar 15782
 
15783
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15784
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15785
      SERIAL_NUMBER((short)1, "serialNumber");
15786
 
15787
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15788
 
15789
      static {
15790
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15791
          byName.put(field.getFieldName(), field);
15792
        }
15793
      }
15794
 
15795
      /**
15796
       * Find the _Fields constant that matches fieldId, or null if its not found.
15797
       */
15798
      public static _Fields findByThriftId(int fieldId) {
15799
        switch(fieldId) {
15800
          case 1: // SERIAL_NUMBER
15801
            return SERIAL_NUMBER;
15802
          default:
15803
            return null;
15804
        }
15805
      }
15806
 
15807
      /**
15808
       * Find the _Fields constant that matches fieldId, throwing an exception
15809
       * if it is not found.
15810
       */
15811
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15812
        _Fields fields = findByThriftId(fieldId);
15813
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15814
        return fields;
15815
      }
15816
 
15817
      /**
15818
       * Find the _Fields constant that matches name, or null if its not found.
15819
       */
15820
      public static _Fields findByName(String name) {
15821
        return byName.get(name);
15822
      }
15823
 
15824
      private final short _thriftId;
15825
      private final String _fieldName;
15826
 
15827
      _Fields(short thriftId, String fieldName) {
15828
        _thriftId = thriftId;
15829
        _fieldName = fieldName;
15830
      }
15831
 
15832
      public short getThriftFieldId() {
15833
        return _thriftId;
15834
      }
15835
 
15836
      public String getFieldName() {
15837
        return _fieldName;
15838
      }
15839
    }
15840
 
15841
    // isset id assignments
15842
 
15843
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15844
    static {
15845
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15846
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7410 amar.kumar 15847
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6322 amar.kumar 15848
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15849
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
15850
    }
15851
 
15852
    public getScanRecordsForSerialNumber_args() {
15853
    }
15854
 
15855
    public getScanRecordsForSerialNumber_args(
7410 amar.kumar 15856
      String serialNumber)
6322 amar.kumar 15857
    {
15858
      this();
15859
      this.serialNumber = serialNumber;
15860
    }
15861
 
15862
    /**
15863
     * Performs a deep copy on <i>other</i>.
15864
     */
15865
    public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
7410 amar.kumar 15866
      if (other.isSetSerialNumber()) {
15867
        this.serialNumber = other.serialNumber;
15868
      }
6322 amar.kumar 15869
    }
15870
 
15871
    public getScanRecordsForSerialNumber_args deepCopy() {
15872
      return new getScanRecordsForSerialNumber_args(this);
15873
    }
15874
 
15875
    @Override
15876
    public void clear() {
7410 amar.kumar 15877
      this.serialNumber = null;
6322 amar.kumar 15878
    }
15879
 
7410 amar.kumar 15880
    public String getSerialNumber() {
6322 amar.kumar 15881
      return this.serialNumber;
15882
    }
15883
 
7410 amar.kumar 15884
    public void setSerialNumber(String serialNumber) {
6322 amar.kumar 15885
      this.serialNumber = serialNumber;
15886
    }
15887
 
15888
    public void unsetSerialNumber() {
7410 amar.kumar 15889
      this.serialNumber = null;
6322 amar.kumar 15890
    }
15891
 
15892
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
15893
    public boolean isSetSerialNumber() {
7410 amar.kumar 15894
      return this.serialNumber != null;
6322 amar.kumar 15895
    }
15896
 
15897
    public void setSerialNumberIsSet(boolean value) {
7410 amar.kumar 15898
      if (!value) {
15899
        this.serialNumber = null;
15900
      }
6322 amar.kumar 15901
    }
15902
 
15903
    public void setFieldValue(_Fields field, Object value) {
15904
      switch (field) {
15905
      case SERIAL_NUMBER:
15906
        if (value == null) {
15907
          unsetSerialNumber();
15908
        } else {
7410 amar.kumar 15909
          setSerialNumber((String)value);
6322 amar.kumar 15910
        }
15911
        break;
15912
 
15913
      }
15914
    }
15915
 
15916
    public Object getFieldValue(_Fields field) {
15917
      switch (field) {
15918
      case SERIAL_NUMBER:
7410 amar.kumar 15919
        return getSerialNumber();
6322 amar.kumar 15920
 
15921
      }
15922
      throw new IllegalStateException();
15923
    }
15924
 
15925
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15926
    public boolean isSet(_Fields field) {
15927
      if (field == null) {
15928
        throw new IllegalArgumentException();
15929
      }
15930
 
15931
      switch (field) {
15932
      case SERIAL_NUMBER:
15933
        return isSetSerialNumber();
15934
      }
15935
      throw new IllegalStateException();
15936
    }
15937
 
15938
    @Override
15939
    public boolean equals(Object that) {
15940
      if (that == null)
15941
        return false;
15942
      if (that instanceof getScanRecordsForSerialNumber_args)
15943
        return this.equals((getScanRecordsForSerialNumber_args)that);
15944
      return false;
15945
    }
15946
 
15947
    public boolean equals(getScanRecordsForSerialNumber_args that) {
15948
      if (that == null)
15949
        return false;
15950
 
7410 amar.kumar 15951
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
15952
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
6322 amar.kumar 15953
      if (this_present_serialNumber || that_present_serialNumber) {
15954
        if (!(this_present_serialNumber && that_present_serialNumber))
15955
          return false;
7410 amar.kumar 15956
        if (!this.serialNumber.equals(that.serialNumber))
6322 amar.kumar 15957
          return false;
15958
      }
15959
 
15960
      return true;
15961
    }
15962
 
15963
    @Override
15964
    public int hashCode() {
15965
      return 0;
15966
    }
15967
 
15968
    public int compareTo(getScanRecordsForSerialNumber_args other) {
15969
      if (!getClass().equals(other.getClass())) {
15970
        return getClass().getName().compareTo(other.getClass().getName());
15971
      }
15972
 
15973
      int lastComparison = 0;
15974
      getScanRecordsForSerialNumber_args typedOther = (getScanRecordsForSerialNumber_args)other;
15975
 
15976
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
15977
      if (lastComparison != 0) {
15978
        return lastComparison;
15979
      }
15980
      if (isSetSerialNumber()) {
15981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
15982
        if (lastComparison != 0) {
15983
          return lastComparison;
15984
        }
15985
      }
15986
      return 0;
15987
    }
15988
 
15989
    public _Fields fieldForId(int fieldId) {
15990
      return _Fields.findByThriftId(fieldId);
15991
    }
15992
 
15993
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15994
      org.apache.thrift.protocol.TField field;
15995
      iprot.readStructBegin();
15996
      while (true)
15997
      {
15998
        field = iprot.readFieldBegin();
15999
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16000
          break;
16001
        }
16002
        switch (field.id) {
16003
          case 1: // SERIAL_NUMBER
7410 amar.kumar 16004
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16005
              this.serialNumber = iprot.readString();
6322 amar.kumar 16006
            } else { 
16007
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16008
            }
16009
            break;
16010
          default:
16011
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16012
        }
16013
        iprot.readFieldEnd();
16014
      }
16015
      iprot.readStructEnd();
16016
      validate();
16017
    }
16018
 
16019
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16020
      validate();
16021
 
16022
      oprot.writeStructBegin(STRUCT_DESC);
7410 amar.kumar 16023
      if (this.serialNumber != null) {
16024
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
16025
        oprot.writeString(this.serialNumber);
16026
        oprot.writeFieldEnd();
16027
      }
6322 amar.kumar 16028
      oprot.writeFieldStop();
16029
      oprot.writeStructEnd();
16030
    }
16031
 
16032
    @Override
16033
    public String toString() {
16034
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
16035
      boolean first = true;
16036
 
16037
      sb.append("serialNumber:");
7410 amar.kumar 16038
      if (this.serialNumber == null) {
16039
        sb.append("null");
16040
      } else {
16041
        sb.append(this.serialNumber);
16042
      }
6322 amar.kumar 16043
      first = false;
16044
      sb.append(")");
16045
      return sb.toString();
16046
    }
16047
 
16048
    public void validate() throws org.apache.thrift.TException {
16049
      // check for required fields
16050
    }
16051
 
16052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16053
      try {
16054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16055
      } catch (org.apache.thrift.TException te) {
16056
        throw new java.io.IOException(te);
16057
      }
16058
    }
16059
 
16060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16061
      try {
16062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16063
      } catch (org.apache.thrift.TException te) {
16064
        throw new java.io.IOException(te);
16065
      }
16066
    }
16067
 
16068
  }
16069
 
16070
  public static class getScanRecordsForSerialNumber_result implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_result, getScanRecordsForSerialNumber_result._Fields>, java.io.Serializable, Cloneable   {
16071
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_result");
16072
 
16073
    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);
16074
 
16075
    private List<Scan> success; // required
16076
 
16077
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16078
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16079
      SUCCESS((short)0, "success");
16080
 
16081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16082
 
16083
      static {
16084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16085
          byName.put(field.getFieldName(), field);
16086
        }
16087
      }
16088
 
16089
      /**
16090
       * Find the _Fields constant that matches fieldId, or null if its not found.
16091
       */
16092
      public static _Fields findByThriftId(int fieldId) {
16093
        switch(fieldId) {
16094
          case 0: // SUCCESS
16095
            return SUCCESS;
16096
          default:
16097
            return null;
16098
        }
16099
      }
16100
 
16101
      /**
16102
       * Find the _Fields constant that matches fieldId, throwing an exception
16103
       * if it is not found.
16104
       */
16105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16106
        _Fields fields = findByThriftId(fieldId);
16107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16108
        return fields;
16109
      }
16110
 
16111
      /**
16112
       * Find the _Fields constant that matches name, or null if its not found.
16113
       */
16114
      public static _Fields findByName(String name) {
16115
        return byName.get(name);
16116
      }
16117
 
16118
      private final short _thriftId;
16119
      private final String _fieldName;
16120
 
16121
      _Fields(short thriftId, String fieldName) {
16122
        _thriftId = thriftId;
16123
        _fieldName = fieldName;
16124
      }
16125
 
16126
      public short getThriftFieldId() {
16127
        return _thriftId;
16128
      }
16129
 
16130
      public String getFieldName() {
16131
        return _fieldName;
16132
      }
16133
    }
16134
 
16135
    // isset id assignments
16136
 
16137
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16138
    static {
16139
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16140
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16141
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16142
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
16143
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16144
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_result.class, metaDataMap);
16145
    }
16146
 
16147
    public getScanRecordsForSerialNumber_result() {
16148
    }
16149
 
16150
    public getScanRecordsForSerialNumber_result(
16151
      List<Scan> success)
16152
    {
16153
      this();
16154
      this.success = success;
16155
    }
16156
 
16157
    /**
16158
     * Performs a deep copy on <i>other</i>.
16159
     */
16160
    public getScanRecordsForSerialNumber_result(getScanRecordsForSerialNumber_result other) {
16161
      if (other.isSetSuccess()) {
16162
        List<Scan> __this__success = new ArrayList<Scan>();
16163
        for (Scan other_element : other.success) {
16164
          __this__success.add(new Scan(other_element));
16165
        }
16166
        this.success = __this__success;
16167
      }
16168
    }
16169
 
16170
    public getScanRecordsForSerialNumber_result deepCopy() {
16171
      return new getScanRecordsForSerialNumber_result(this);
16172
    }
16173
 
16174
    @Override
16175
    public void clear() {
16176
      this.success = null;
16177
    }
16178
 
16179
    public int getSuccessSize() {
16180
      return (this.success == null) ? 0 : this.success.size();
16181
    }
16182
 
16183
    public java.util.Iterator<Scan> getSuccessIterator() {
16184
      return (this.success == null) ? null : this.success.iterator();
16185
    }
16186
 
16187
    public void addToSuccess(Scan elem) {
16188
      if (this.success == null) {
16189
        this.success = new ArrayList<Scan>();
16190
      }
16191
      this.success.add(elem);
16192
    }
16193
 
16194
    public List<Scan> getSuccess() {
16195
      return this.success;
16196
    }
16197
 
16198
    public void setSuccess(List<Scan> success) {
16199
      this.success = success;
16200
    }
16201
 
16202
    public void unsetSuccess() {
16203
      this.success = null;
16204
    }
16205
 
16206
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16207
    public boolean isSetSuccess() {
16208
      return this.success != null;
16209
    }
16210
 
16211
    public void setSuccessIsSet(boolean value) {
16212
      if (!value) {
16213
        this.success = null;
16214
      }
16215
    }
16216
 
16217
    public void setFieldValue(_Fields field, Object value) {
16218
      switch (field) {
16219
      case SUCCESS:
16220
        if (value == null) {
16221
          unsetSuccess();
16222
        } else {
16223
          setSuccess((List<Scan>)value);
16224
        }
16225
        break;
16226
 
16227
      }
16228
    }
16229
 
16230
    public Object getFieldValue(_Fields field) {
16231
      switch (field) {
16232
      case SUCCESS:
16233
        return getSuccess();
16234
 
16235
      }
16236
      throw new IllegalStateException();
16237
    }
16238
 
16239
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16240
    public boolean isSet(_Fields field) {
16241
      if (field == null) {
16242
        throw new IllegalArgumentException();
16243
      }
16244
 
16245
      switch (field) {
16246
      case SUCCESS:
16247
        return isSetSuccess();
16248
      }
16249
      throw new IllegalStateException();
16250
    }
16251
 
16252
    @Override
16253
    public boolean equals(Object that) {
16254
      if (that == null)
16255
        return false;
16256
      if (that instanceof getScanRecordsForSerialNumber_result)
16257
        return this.equals((getScanRecordsForSerialNumber_result)that);
16258
      return false;
16259
    }
16260
 
16261
    public boolean equals(getScanRecordsForSerialNumber_result that) {
16262
      if (that == null)
16263
        return false;
16264
 
16265
      boolean this_present_success = true && this.isSetSuccess();
16266
      boolean that_present_success = true && that.isSetSuccess();
16267
      if (this_present_success || that_present_success) {
16268
        if (!(this_present_success && that_present_success))
16269
          return false;
16270
        if (!this.success.equals(that.success))
16271
          return false;
16272
      }
16273
 
16274
      return true;
16275
    }
16276
 
16277
    @Override
16278
    public int hashCode() {
16279
      return 0;
16280
    }
16281
 
16282
    public int compareTo(getScanRecordsForSerialNumber_result other) {
16283
      if (!getClass().equals(other.getClass())) {
16284
        return getClass().getName().compareTo(other.getClass().getName());
16285
      }
16286
 
16287
      int lastComparison = 0;
16288
      getScanRecordsForSerialNumber_result typedOther = (getScanRecordsForSerialNumber_result)other;
16289
 
16290
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16291
      if (lastComparison != 0) {
16292
        return lastComparison;
16293
      }
16294
      if (isSetSuccess()) {
16295
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16296
        if (lastComparison != 0) {
16297
          return lastComparison;
16298
        }
16299
      }
16300
      return 0;
16301
    }
16302
 
16303
    public _Fields fieldForId(int fieldId) {
16304
      return _Fields.findByThriftId(fieldId);
16305
    }
16306
 
16307
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16308
      org.apache.thrift.protocol.TField field;
16309
      iprot.readStructBegin();
16310
      while (true)
16311
      {
16312
        field = iprot.readFieldBegin();
16313
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16314
          break;
16315
        }
16316
        switch (field.id) {
16317
          case 0: // SUCCESS
16318
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16319
              {
7210 amar.kumar 16320
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
16321
                this.success = new ArrayList<Scan>(_list32.size);
16322
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
6322 amar.kumar 16323
                {
7210 amar.kumar 16324
                  Scan _elem34; // required
16325
                  _elem34 = new Scan();
16326
                  _elem34.read(iprot);
16327
                  this.success.add(_elem34);
6322 amar.kumar 16328
                }
16329
                iprot.readListEnd();
16330
              }
16331
            } else { 
16332
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16333
            }
16334
            break;
16335
          default:
16336
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16337
        }
16338
        iprot.readFieldEnd();
16339
      }
16340
      iprot.readStructEnd();
16341
      validate();
16342
    }
16343
 
16344
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16345
      oprot.writeStructBegin(STRUCT_DESC);
16346
 
16347
      if (this.isSetSuccess()) {
16348
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16349
        {
16350
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 16351
          for (Scan _iter35 : this.success)
6322 amar.kumar 16352
          {
7210 amar.kumar 16353
            _iter35.write(oprot);
6322 amar.kumar 16354
          }
16355
          oprot.writeListEnd();
16356
        }
16357
        oprot.writeFieldEnd();
16358
      }
16359
      oprot.writeFieldStop();
16360
      oprot.writeStructEnd();
16361
    }
16362
 
16363
    @Override
16364
    public String toString() {
16365
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_result(");
16366
      boolean first = true;
16367
 
16368
      sb.append("success:");
16369
      if (this.success == null) {
16370
        sb.append("null");
16371
      } else {
16372
        sb.append(this.success);
16373
      }
16374
      first = false;
16375
      sb.append(")");
16376
      return sb.toString();
16377
    }
16378
 
16379
    public void validate() throws org.apache.thrift.TException {
16380
      // check for required fields
16381
    }
16382
 
16383
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16384
      try {
16385
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16386
      } catch (org.apache.thrift.TException te) {
16387
        throw new java.io.IOException(te);
16388
      }
16389
    }
16390
 
16391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16392
      try {
16393
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16394
      } catch (org.apache.thrift.TException te) {
16395
        throw new java.io.IOException(te);
16396
      }
16397
    }
16398
 
16399
  }
16400
 
6467 amar.kumar 16401
  public static class scanForPurchaseReturn_args implements org.apache.thrift.TBase<scanForPurchaseReturn_args, scanForPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
16402
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_args");
16403
 
16404
    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);
16405
    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);
16406
 
16407
    private List<InventoryItem> saleReturnItems; // required
16408
    private long vendorId; // required
16409
 
16410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16412
      SALE_RETURN_ITEMS((short)1, "saleReturnItems"),
16413
      VENDOR_ID((short)2, "vendorId");
16414
 
16415
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16416
 
16417
      static {
16418
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16419
          byName.put(field.getFieldName(), field);
16420
        }
16421
      }
16422
 
16423
      /**
16424
       * Find the _Fields constant that matches fieldId, or null if its not found.
16425
       */
16426
      public static _Fields findByThriftId(int fieldId) {
16427
        switch(fieldId) {
16428
          case 1: // SALE_RETURN_ITEMS
16429
            return SALE_RETURN_ITEMS;
16430
          case 2: // VENDOR_ID
16431
            return VENDOR_ID;
16432
          default:
16433
            return null;
16434
        }
16435
      }
16436
 
16437
      /**
16438
       * Find the _Fields constant that matches fieldId, throwing an exception
16439
       * if it is not found.
16440
       */
16441
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16442
        _Fields fields = findByThriftId(fieldId);
16443
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16444
        return fields;
16445
      }
16446
 
16447
      /**
16448
       * Find the _Fields constant that matches name, or null if its not found.
16449
       */
16450
      public static _Fields findByName(String name) {
16451
        return byName.get(name);
16452
      }
16453
 
16454
      private final short _thriftId;
16455
      private final String _fieldName;
16456
 
16457
      _Fields(short thriftId, String fieldName) {
16458
        _thriftId = thriftId;
16459
        _fieldName = fieldName;
16460
      }
16461
 
16462
      public short getThriftFieldId() {
16463
        return _thriftId;
16464
      }
16465
 
16466
      public String getFieldName() {
16467
        return _fieldName;
16468
      }
16469
    }
16470
 
16471
    // isset id assignments
16472
    private static final int __VENDORID_ISSET_ID = 0;
16473
    private BitSet __isset_bit_vector = new BitSet(1);
16474
 
16475
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16476
    static {
16477
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16478
      tmpMap.put(_Fields.SALE_RETURN_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("saleReturnItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16479
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16480
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
16481
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16482
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16483
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16484
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_args.class, metaDataMap);
16485
    }
16486
 
16487
    public scanForPurchaseReturn_args() {
16488
    }
16489
 
16490
    public scanForPurchaseReturn_args(
16491
      List<InventoryItem> saleReturnItems,
16492
      long vendorId)
16493
    {
16494
      this();
16495
      this.saleReturnItems = saleReturnItems;
16496
      this.vendorId = vendorId;
16497
      setVendorIdIsSet(true);
16498
    }
16499
 
16500
    /**
16501
     * Performs a deep copy on <i>other</i>.
16502
     */
16503
    public scanForPurchaseReturn_args(scanForPurchaseReturn_args other) {
16504
      __isset_bit_vector.clear();
16505
      __isset_bit_vector.or(other.__isset_bit_vector);
16506
      if (other.isSetSaleReturnItems()) {
16507
        List<InventoryItem> __this__saleReturnItems = new ArrayList<InventoryItem>();
16508
        for (InventoryItem other_element : other.saleReturnItems) {
16509
          __this__saleReturnItems.add(new InventoryItem(other_element));
16510
        }
16511
        this.saleReturnItems = __this__saleReturnItems;
16512
      }
16513
      this.vendorId = other.vendorId;
16514
    }
16515
 
16516
    public scanForPurchaseReturn_args deepCopy() {
16517
      return new scanForPurchaseReturn_args(this);
16518
    }
16519
 
16520
    @Override
16521
    public void clear() {
16522
      this.saleReturnItems = null;
16523
      setVendorIdIsSet(false);
16524
      this.vendorId = 0;
16525
    }
16526
 
16527
    public int getSaleReturnItemsSize() {
16528
      return (this.saleReturnItems == null) ? 0 : this.saleReturnItems.size();
16529
    }
16530
 
16531
    public java.util.Iterator<InventoryItem> getSaleReturnItemsIterator() {
16532
      return (this.saleReturnItems == null) ? null : this.saleReturnItems.iterator();
16533
    }
16534
 
16535
    public void addToSaleReturnItems(InventoryItem elem) {
16536
      if (this.saleReturnItems == null) {
16537
        this.saleReturnItems = new ArrayList<InventoryItem>();
16538
      }
16539
      this.saleReturnItems.add(elem);
16540
    }
16541
 
16542
    public List<InventoryItem> getSaleReturnItems() {
16543
      return this.saleReturnItems;
16544
    }
16545
 
16546
    public void setSaleReturnItems(List<InventoryItem> saleReturnItems) {
16547
      this.saleReturnItems = saleReturnItems;
16548
    }
16549
 
16550
    public void unsetSaleReturnItems() {
16551
      this.saleReturnItems = null;
16552
    }
16553
 
16554
    /** Returns true if field saleReturnItems is set (has been assigned a value) and false otherwise */
16555
    public boolean isSetSaleReturnItems() {
16556
      return this.saleReturnItems != null;
16557
    }
16558
 
16559
    public void setSaleReturnItemsIsSet(boolean value) {
16560
      if (!value) {
16561
        this.saleReturnItems = null;
16562
      }
16563
    }
16564
 
16565
    public long getVendorId() {
16566
      return this.vendorId;
16567
    }
16568
 
16569
    public void setVendorId(long vendorId) {
16570
      this.vendorId = vendorId;
16571
      setVendorIdIsSet(true);
16572
    }
16573
 
16574
    public void unsetVendorId() {
16575
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
16576
    }
16577
 
16578
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
16579
    public boolean isSetVendorId() {
16580
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
16581
    }
16582
 
16583
    public void setVendorIdIsSet(boolean value) {
16584
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
16585
    }
16586
 
16587
    public void setFieldValue(_Fields field, Object value) {
16588
      switch (field) {
16589
      case SALE_RETURN_ITEMS:
16590
        if (value == null) {
16591
          unsetSaleReturnItems();
16592
        } else {
16593
          setSaleReturnItems((List<InventoryItem>)value);
16594
        }
16595
        break;
16596
 
16597
      case VENDOR_ID:
16598
        if (value == null) {
16599
          unsetVendorId();
16600
        } else {
16601
          setVendorId((Long)value);
16602
        }
16603
        break;
16604
 
16605
      }
16606
    }
16607
 
16608
    public Object getFieldValue(_Fields field) {
16609
      switch (field) {
16610
      case SALE_RETURN_ITEMS:
16611
        return getSaleReturnItems();
16612
 
16613
      case VENDOR_ID:
16614
        return Long.valueOf(getVendorId());
16615
 
16616
      }
16617
      throw new IllegalStateException();
16618
    }
16619
 
16620
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16621
    public boolean isSet(_Fields field) {
16622
      if (field == null) {
16623
        throw new IllegalArgumentException();
16624
      }
16625
 
16626
      switch (field) {
16627
      case SALE_RETURN_ITEMS:
16628
        return isSetSaleReturnItems();
16629
      case VENDOR_ID:
16630
        return isSetVendorId();
16631
      }
16632
      throw new IllegalStateException();
16633
    }
16634
 
16635
    @Override
16636
    public boolean equals(Object that) {
16637
      if (that == null)
16638
        return false;
16639
      if (that instanceof scanForPurchaseReturn_args)
16640
        return this.equals((scanForPurchaseReturn_args)that);
16641
      return false;
16642
    }
16643
 
16644
    public boolean equals(scanForPurchaseReturn_args that) {
16645
      if (that == null)
16646
        return false;
16647
 
16648
      boolean this_present_saleReturnItems = true && this.isSetSaleReturnItems();
16649
      boolean that_present_saleReturnItems = true && that.isSetSaleReturnItems();
16650
      if (this_present_saleReturnItems || that_present_saleReturnItems) {
16651
        if (!(this_present_saleReturnItems && that_present_saleReturnItems))
16652
          return false;
16653
        if (!this.saleReturnItems.equals(that.saleReturnItems))
16654
          return false;
16655
      }
16656
 
16657
      boolean this_present_vendorId = true;
16658
      boolean that_present_vendorId = true;
16659
      if (this_present_vendorId || that_present_vendorId) {
16660
        if (!(this_present_vendorId && that_present_vendorId))
16661
          return false;
16662
        if (this.vendorId != that.vendorId)
16663
          return false;
16664
      }
16665
 
16666
      return true;
16667
    }
16668
 
16669
    @Override
16670
    public int hashCode() {
16671
      return 0;
16672
    }
16673
 
16674
    public int compareTo(scanForPurchaseReturn_args other) {
16675
      if (!getClass().equals(other.getClass())) {
16676
        return getClass().getName().compareTo(other.getClass().getName());
16677
      }
16678
 
16679
      int lastComparison = 0;
16680
      scanForPurchaseReturn_args typedOther = (scanForPurchaseReturn_args)other;
16681
 
16682
      lastComparison = Boolean.valueOf(isSetSaleReturnItems()).compareTo(typedOther.isSetSaleReturnItems());
16683
      if (lastComparison != 0) {
16684
        return lastComparison;
16685
      }
16686
      if (isSetSaleReturnItems()) {
16687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.saleReturnItems, typedOther.saleReturnItems);
16688
        if (lastComparison != 0) {
16689
          return lastComparison;
16690
        }
16691
      }
16692
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
16693
      if (lastComparison != 0) {
16694
        return lastComparison;
16695
      }
16696
      if (isSetVendorId()) {
16697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
16698
        if (lastComparison != 0) {
16699
          return lastComparison;
16700
        }
16701
      }
16702
      return 0;
16703
    }
16704
 
16705
    public _Fields fieldForId(int fieldId) {
16706
      return _Fields.findByThriftId(fieldId);
16707
    }
16708
 
16709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16710
      org.apache.thrift.protocol.TField field;
16711
      iprot.readStructBegin();
16712
      while (true)
16713
      {
16714
        field = iprot.readFieldBegin();
16715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16716
          break;
16717
        }
16718
        switch (field.id) {
16719
          case 1: // SALE_RETURN_ITEMS
16720
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16721
              {
7210 amar.kumar 16722
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
16723
                this.saleReturnItems = new ArrayList<InventoryItem>(_list36.size);
16724
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
6467 amar.kumar 16725
                {
7210 amar.kumar 16726
                  InventoryItem _elem38; // required
16727
                  _elem38 = new InventoryItem();
16728
                  _elem38.read(iprot);
16729
                  this.saleReturnItems.add(_elem38);
6467 amar.kumar 16730
                }
16731
                iprot.readListEnd();
16732
              }
16733
            } else { 
16734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16735
            }
16736
            break;
16737
          case 2: // VENDOR_ID
16738
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16739
              this.vendorId = iprot.readI64();
16740
              setVendorIdIsSet(true);
16741
            } else { 
16742
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16743
            }
16744
            break;
16745
          default:
16746
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16747
        }
16748
        iprot.readFieldEnd();
16749
      }
16750
      iprot.readStructEnd();
16751
      validate();
16752
    }
16753
 
16754
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16755
      validate();
16756
 
16757
      oprot.writeStructBegin(STRUCT_DESC);
16758
      if (this.saleReturnItems != null) {
16759
        oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
16760
        {
16761
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
7210 amar.kumar 16762
          for (InventoryItem _iter39 : this.saleReturnItems)
6467 amar.kumar 16763
          {
7210 amar.kumar 16764
            _iter39.write(oprot);
6467 amar.kumar 16765
          }
16766
          oprot.writeListEnd();
16767
        }
16768
        oprot.writeFieldEnd();
16769
      }
16770
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
16771
      oprot.writeI64(this.vendorId);
16772
      oprot.writeFieldEnd();
16773
      oprot.writeFieldStop();
16774
      oprot.writeStructEnd();
16775
    }
16776
 
16777
    @Override
16778
    public String toString() {
16779
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_args(");
16780
      boolean first = true;
16781
 
16782
      sb.append("saleReturnItems:");
16783
      if (this.saleReturnItems == null) {
16784
        sb.append("null");
16785
      } else {
16786
        sb.append(this.saleReturnItems);
16787
      }
16788
      first = false;
16789
      if (!first) sb.append(", ");
16790
      sb.append("vendorId:");
16791
      sb.append(this.vendorId);
16792
      first = false;
16793
      sb.append(")");
16794
      return sb.toString();
16795
    }
16796
 
16797
    public void validate() throws org.apache.thrift.TException {
16798
      // check for required fields
16799
    }
16800
 
16801
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16802
      try {
16803
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16804
      } catch (org.apache.thrift.TException te) {
16805
        throw new java.io.IOException(te);
16806
      }
16807
    }
16808
 
16809
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16810
      try {
16811
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16812
      } catch (org.apache.thrift.TException te) {
16813
        throw new java.io.IOException(te);
16814
      }
16815
    }
16816
 
16817
  }
16818
 
16819
  public static class scanForPurchaseReturn_result implements org.apache.thrift.TBase<scanForPurchaseReturn_result, scanForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
16820
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_result");
16821
 
16822
    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);
16823
 
16824
    private WarehouseServiceException ex; // required
16825
 
16826
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16827
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16828
      EX((short)1, "ex");
16829
 
16830
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16831
 
16832
      static {
16833
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16834
          byName.put(field.getFieldName(), field);
16835
        }
16836
      }
16837
 
16838
      /**
16839
       * Find the _Fields constant that matches fieldId, or null if its not found.
16840
       */
16841
      public static _Fields findByThriftId(int fieldId) {
16842
        switch(fieldId) {
16843
          case 1: // EX
16844
            return EX;
16845
          default:
16846
            return null;
16847
        }
16848
      }
16849
 
16850
      /**
16851
       * Find the _Fields constant that matches fieldId, throwing an exception
16852
       * if it is not found.
16853
       */
16854
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16855
        _Fields fields = findByThriftId(fieldId);
16856
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16857
        return fields;
16858
      }
16859
 
16860
      /**
16861
       * Find the _Fields constant that matches name, or null if its not found.
16862
       */
16863
      public static _Fields findByName(String name) {
16864
        return byName.get(name);
16865
      }
16866
 
16867
      private final short _thriftId;
16868
      private final String _fieldName;
16869
 
16870
      _Fields(short thriftId, String fieldName) {
16871
        _thriftId = thriftId;
16872
        _fieldName = fieldName;
16873
      }
16874
 
16875
      public short getThriftFieldId() {
16876
        return _thriftId;
16877
      }
16878
 
16879
      public String getFieldName() {
16880
        return _fieldName;
16881
      }
16882
    }
16883
 
16884
    // isset id assignments
16885
 
16886
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16887
    static {
16888
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16889
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16891
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16892
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_result.class, metaDataMap);
16893
    }
16894
 
16895
    public scanForPurchaseReturn_result() {
16896
    }
16897
 
16898
    public scanForPurchaseReturn_result(
16899
      WarehouseServiceException ex)
16900
    {
16901
      this();
16902
      this.ex = ex;
16903
    }
16904
 
16905
    /**
16906
     * Performs a deep copy on <i>other</i>.
16907
     */
16908
    public scanForPurchaseReturn_result(scanForPurchaseReturn_result other) {
16909
      if (other.isSetEx()) {
16910
        this.ex = new WarehouseServiceException(other.ex);
16911
      }
16912
    }
16913
 
16914
    public scanForPurchaseReturn_result deepCopy() {
16915
      return new scanForPurchaseReturn_result(this);
16916
    }
16917
 
16918
    @Override
16919
    public void clear() {
16920
      this.ex = null;
16921
    }
16922
 
16923
    public WarehouseServiceException getEx() {
16924
      return this.ex;
16925
    }
16926
 
16927
    public void setEx(WarehouseServiceException ex) {
16928
      this.ex = ex;
16929
    }
16930
 
16931
    public void unsetEx() {
16932
      this.ex = null;
16933
    }
16934
 
16935
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
16936
    public boolean isSetEx() {
16937
      return this.ex != null;
16938
    }
16939
 
16940
    public void setExIsSet(boolean value) {
16941
      if (!value) {
16942
        this.ex = null;
16943
      }
16944
    }
16945
 
16946
    public void setFieldValue(_Fields field, Object value) {
16947
      switch (field) {
16948
      case EX:
16949
        if (value == null) {
16950
          unsetEx();
16951
        } else {
16952
          setEx((WarehouseServiceException)value);
16953
        }
16954
        break;
16955
 
16956
      }
16957
    }
16958
 
16959
    public Object getFieldValue(_Fields field) {
16960
      switch (field) {
16961
      case EX:
16962
        return getEx();
16963
 
16964
      }
16965
      throw new IllegalStateException();
16966
    }
16967
 
16968
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16969
    public boolean isSet(_Fields field) {
16970
      if (field == null) {
16971
        throw new IllegalArgumentException();
16972
      }
16973
 
16974
      switch (field) {
16975
      case EX:
16976
        return isSetEx();
16977
      }
16978
      throw new IllegalStateException();
16979
    }
16980
 
16981
    @Override
16982
    public boolean equals(Object that) {
16983
      if (that == null)
16984
        return false;
16985
      if (that instanceof scanForPurchaseReturn_result)
16986
        return this.equals((scanForPurchaseReturn_result)that);
16987
      return false;
16988
    }
16989
 
16990
    public boolean equals(scanForPurchaseReturn_result that) {
16991
      if (that == null)
16992
        return false;
16993
 
16994
      boolean this_present_ex = true && this.isSetEx();
16995
      boolean that_present_ex = true && that.isSetEx();
16996
      if (this_present_ex || that_present_ex) {
16997
        if (!(this_present_ex && that_present_ex))
16998
          return false;
16999
        if (!this.ex.equals(that.ex))
17000
          return false;
17001
      }
17002
 
17003
      return true;
17004
    }
17005
 
17006
    @Override
17007
    public int hashCode() {
17008
      return 0;
17009
    }
17010
 
17011
    public int compareTo(scanForPurchaseReturn_result other) {
17012
      if (!getClass().equals(other.getClass())) {
17013
        return getClass().getName().compareTo(other.getClass().getName());
17014
      }
17015
 
17016
      int lastComparison = 0;
17017
      scanForPurchaseReturn_result typedOther = (scanForPurchaseReturn_result)other;
17018
 
17019
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
17020
      if (lastComparison != 0) {
17021
        return lastComparison;
17022
      }
17023
      if (isSetEx()) {
17024
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17025
        if (lastComparison != 0) {
17026
          return lastComparison;
17027
        }
17028
      }
17029
      return 0;
17030
    }
17031
 
17032
    public _Fields fieldForId(int fieldId) {
17033
      return _Fields.findByThriftId(fieldId);
17034
    }
17035
 
17036
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17037
      org.apache.thrift.protocol.TField field;
17038
      iprot.readStructBegin();
17039
      while (true)
17040
      {
17041
        field = iprot.readFieldBegin();
17042
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17043
          break;
17044
        }
17045
        switch (field.id) {
17046
          case 1: // EX
17047
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17048
              this.ex = new WarehouseServiceException();
17049
              this.ex.read(iprot);
17050
            } else { 
17051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17052
            }
17053
            break;
17054
          default:
17055
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17056
        }
17057
        iprot.readFieldEnd();
17058
      }
17059
      iprot.readStructEnd();
17060
      validate();
17061
    }
17062
 
17063
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17064
      oprot.writeStructBegin(STRUCT_DESC);
17065
 
17066
      if (this.isSetEx()) {
17067
        oprot.writeFieldBegin(EX_FIELD_DESC);
17068
        this.ex.write(oprot);
17069
        oprot.writeFieldEnd();
17070
      }
17071
      oprot.writeFieldStop();
17072
      oprot.writeStructEnd();
17073
    }
17074
 
17075
    @Override
17076
    public String toString() {
17077
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_result(");
17078
      boolean first = true;
17079
 
17080
      sb.append("ex:");
17081
      if (this.ex == null) {
17082
        sb.append("null");
17083
      } else {
17084
        sb.append(this.ex);
17085
      }
17086
      first = false;
17087
      sb.append(")");
17088
      return sb.toString();
17089
    }
17090
 
17091
    public void validate() throws org.apache.thrift.TException {
17092
      // check for required fields
17093
    }
17094
 
17095
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17096
      try {
17097
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17098
      } catch (org.apache.thrift.TException te) {
17099
        throw new java.io.IOException(te);
17100
      }
17101
    }
17102
 
17103
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17104
      try {
17105
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17106
      } catch (org.apache.thrift.TException te) {
17107
        throw new java.io.IOException(te);
17108
      }
17109
    }
17110
 
17111
  }
17112
 
6548 amar.kumar 17113
  public static class scanForLostItem_args implements org.apache.thrift.TBase<scanForLostItem_args, scanForLostItem_args._Fields>, java.io.Serializable, Cloneable   {
17114
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_args");
17115
 
17116
    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);
17117
    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);
17118
 
17119
    private List<InventoryItem> lostItems; // required
17120
    private long vendorId; // required
17121
 
17122
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17123
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17124
      LOST_ITEMS((short)1, "lostItems"),
17125
      VENDOR_ID((short)2, "vendorId");
17126
 
17127
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17128
 
17129
      static {
17130
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17131
          byName.put(field.getFieldName(), field);
17132
        }
17133
      }
17134
 
17135
      /**
17136
       * Find the _Fields constant that matches fieldId, or null if its not found.
17137
       */
17138
      public static _Fields findByThriftId(int fieldId) {
17139
        switch(fieldId) {
17140
          case 1: // LOST_ITEMS
17141
            return LOST_ITEMS;
17142
          case 2: // VENDOR_ID
17143
            return VENDOR_ID;
17144
          default:
17145
            return null;
17146
        }
17147
      }
17148
 
17149
      /**
17150
       * Find the _Fields constant that matches fieldId, throwing an exception
17151
       * if it is not found.
17152
       */
17153
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17154
        _Fields fields = findByThriftId(fieldId);
17155
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17156
        return fields;
17157
      }
17158
 
17159
      /**
17160
       * Find the _Fields constant that matches name, or null if its not found.
17161
       */
17162
      public static _Fields findByName(String name) {
17163
        return byName.get(name);
17164
      }
17165
 
17166
      private final short _thriftId;
17167
      private final String _fieldName;
17168
 
17169
      _Fields(short thriftId, String fieldName) {
17170
        _thriftId = thriftId;
17171
        _fieldName = fieldName;
17172
      }
17173
 
17174
      public short getThriftFieldId() {
17175
        return _thriftId;
17176
      }
17177
 
17178
      public String getFieldName() {
17179
        return _fieldName;
17180
      }
17181
    }
17182
 
17183
    // isset id assignments
17184
    private static final int __VENDORID_ISSET_ID = 0;
17185
    private BitSet __isset_bit_vector = new BitSet(1);
17186
 
17187
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17188
    static {
17189
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17190
      tmpMap.put(_Fields.LOST_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("lostItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17191
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17192
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
17193
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17194
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17195
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17196
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_args.class, metaDataMap);
17197
    }
17198
 
17199
    public scanForLostItem_args() {
17200
    }
17201
 
17202
    public scanForLostItem_args(
17203
      List<InventoryItem> lostItems,
17204
      long vendorId)
17205
    {
17206
      this();
17207
      this.lostItems = lostItems;
17208
      this.vendorId = vendorId;
17209
      setVendorIdIsSet(true);
17210
    }
17211
 
17212
    /**
17213
     * Performs a deep copy on <i>other</i>.
17214
     */
17215
    public scanForLostItem_args(scanForLostItem_args other) {
17216
      __isset_bit_vector.clear();
17217
      __isset_bit_vector.or(other.__isset_bit_vector);
17218
      if (other.isSetLostItems()) {
17219
        List<InventoryItem> __this__lostItems = new ArrayList<InventoryItem>();
17220
        for (InventoryItem other_element : other.lostItems) {
17221
          __this__lostItems.add(new InventoryItem(other_element));
17222
        }
17223
        this.lostItems = __this__lostItems;
17224
      }
17225
      this.vendorId = other.vendorId;
17226
    }
17227
 
17228
    public scanForLostItem_args deepCopy() {
17229
      return new scanForLostItem_args(this);
17230
    }
17231
 
17232
    @Override
17233
    public void clear() {
17234
      this.lostItems = null;
17235
      setVendorIdIsSet(false);
17236
      this.vendorId = 0;
17237
    }
17238
 
17239
    public int getLostItemsSize() {
17240
      return (this.lostItems == null) ? 0 : this.lostItems.size();
17241
    }
17242
 
17243
    public java.util.Iterator<InventoryItem> getLostItemsIterator() {
17244
      return (this.lostItems == null) ? null : this.lostItems.iterator();
17245
    }
17246
 
17247
    public void addToLostItems(InventoryItem elem) {
17248
      if (this.lostItems == null) {
17249
        this.lostItems = new ArrayList<InventoryItem>();
17250
      }
17251
      this.lostItems.add(elem);
17252
    }
17253
 
17254
    public List<InventoryItem> getLostItems() {
17255
      return this.lostItems;
17256
    }
17257
 
17258
    public void setLostItems(List<InventoryItem> lostItems) {
17259
      this.lostItems = lostItems;
17260
    }
17261
 
17262
    public void unsetLostItems() {
17263
      this.lostItems = null;
17264
    }
17265
 
17266
    /** Returns true if field lostItems is set (has been assigned a value) and false otherwise */
17267
    public boolean isSetLostItems() {
17268
      return this.lostItems != null;
17269
    }
17270
 
17271
    public void setLostItemsIsSet(boolean value) {
17272
      if (!value) {
17273
        this.lostItems = null;
17274
      }
17275
    }
17276
 
17277
    public long getVendorId() {
17278
      return this.vendorId;
17279
    }
17280
 
17281
    public void setVendorId(long vendorId) {
17282
      this.vendorId = vendorId;
17283
      setVendorIdIsSet(true);
17284
    }
17285
 
17286
    public void unsetVendorId() {
17287
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17288
    }
17289
 
17290
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17291
    public boolean isSetVendorId() {
17292
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17293
    }
17294
 
17295
    public void setVendorIdIsSet(boolean value) {
17296
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17297
    }
17298
 
17299
    public void setFieldValue(_Fields field, Object value) {
17300
      switch (field) {
17301
      case LOST_ITEMS:
17302
        if (value == null) {
17303
          unsetLostItems();
17304
        } else {
17305
          setLostItems((List<InventoryItem>)value);
17306
        }
17307
        break;
17308
 
17309
      case VENDOR_ID:
17310
        if (value == null) {
17311
          unsetVendorId();
17312
        } else {
17313
          setVendorId((Long)value);
17314
        }
17315
        break;
17316
 
17317
      }
17318
    }
17319
 
17320
    public Object getFieldValue(_Fields field) {
17321
      switch (field) {
17322
      case LOST_ITEMS:
17323
        return getLostItems();
17324
 
17325
      case VENDOR_ID:
17326
        return Long.valueOf(getVendorId());
17327
 
17328
      }
17329
      throw new IllegalStateException();
17330
    }
17331
 
17332
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17333
    public boolean isSet(_Fields field) {
17334
      if (field == null) {
17335
        throw new IllegalArgumentException();
17336
      }
17337
 
17338
      switch (field) {
17339
      case LOST_ITEMS:
17340
        return isSetLostItems();
17341
      case VENDOR_ID:
17342
        return isSetVendorId();
17343
      }
17344
      throw new IllegalStateException();
17345
    }
17346
 
17347
    @Override
17348
    public boolean equals(Object that) {
17349
      if (that == null)
17350
        return false;
17351
      if (that instanceof scanForLostItem_args)
17352
        return this.equals((scanForLostItem_args)that);
17353
      return false;
17354
    }
17355
 
17356
    public boolean equals(scanForLostItem_args that) {
17357
      if (that == null)
17358
        return false;
17359
 
17360
      boolean this_present_lostItems = true && this.isSetLostItems();
17361
      boolean that_present_lostItems = true && that.isSetLostItems();
17362
      if (this_present_lostItems || that_present_lostItems) {
17363
        if (!(this_present_lostItems && that_present_lostItems))
17364
          return false;
17365
        if (!this.lostItems.equals(that.lostItems))
17366
          return false;
17367
      }
17368
 
17369
      boolean this_present_vendorId = true;
17370
      boolean that_present_vendorId = true;
17371
      if (this_present_vendorId || that_present_vendorId) {
17372
        if (!(this_present_vendorId && that_present_vendorId))
17373
          return false;
17374
        if (this.vendorId != that.vendorId)
17375
          return false;
17376
      }
17377
 
17378
      return true;
17379
    }
17380
 
17381
    @Override
17382
    public int hashCode() {
17383
      return 0;
17384
    }
17385
 
17386
    public int compareTo(scanForLostItem_args other) {
17387
      if (!getClass().equals(other.getClass())) {
17388
        return getClass().getName().compareTo(other.getClass().getName());
17389
      }
17390
 
17391
      int lastComparison = 0;
17392
      scanForLostItem_args typedOther = (scanForLostItem_args)other;
17393
 
17394
      lastComparison = Boolean.valueOf(isSetLostItems()).compareTo(typedOther.isSetLostItems());
17395
      if (lastComparison != 0) {
17396
        return lastComparison;
17397
      }
17398
      if (isSetLostItems()) {
17399
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lostItems, typedOther.lostItems);
17400
        if (lastComparison != 0) {
17401
          return lastComparison;
17402
        }
17403
      }
17404
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
17405
      if (lastComparison != 0) {
17406
        return lastComparison;
17407
      }
17408
      if (isSetVendorId()) {
17409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
17410
        if (lastComparison != 0) {
17411
          return lastComparison;
17412
        }
17413
      }
17414
      return 0;
17415
    }
17416
 
17417
    public _Fields fieldForId(int fieldId) {
17418
      return _Fields.findByThriftId(fieldId);
17419
    }
17420
 
17421
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17422
      org.apache.thrift.protocol.TField field;
17423
      iprot.readStructBegin();
17424
      while (true)
17425
      {
17426
        field = iprot.readFieldBegin();
17427
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17428
          break;
17429
        }
17430
        switch (field.id) {
17431
          case 1: // LOST_ITEMS
17432
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17433
              {
7210 amar.kumar 17434
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
17435
                this.lostItems = new ArrayList<InventoryItem>(_list40.size);
17436
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
6548 amar.kumar 17437
                {
7210 amar.kumar 17438
                  InventoryItem _elem42; // required
17439
                  _elem42 = new InventoryItem();
17440
                  _elem42.read(iprot);
17441
                  this.lostItems.add(_elem42);
6548 amar.kumar 17442
                }
17443
                iprot.readListEnd();
17444
              }
17445
            } else { 
17446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17447
            }
17448
            break;
17449
          case 2: // VENDOR_ID
17450
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17451
              this.vendorId = iprot.readI64();
17452
              setVendorIdIsSet(true);
17453
            } else { 
17454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17455
            }
17456
            break;
17457
          default:
17458
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17459
        }
17460
        iprot.readFieldEnd();
17461
      }
17462
      iprot.readStructEnd();
17463
      validate();
17464
    }
17465
 
17466
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17467
      validate();
17468
 
17469
      oprot.writeStructBegin(STRUCT_DESC);
17470
      if (this.lostItems != null) {
17471
        oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
17472
        {
17473
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
7210 amar.kumar 17474
          for (InventoryItem _iter43 : this.lostItems)
6548 amar.kumar 17475
          {
7210 amar.kumar 17476
            _iter43.write(oprot);
6548 amar.kumar 17477
          }
17478
          oprot.writeListEnd();
17479
        }
17480
        oprot.writeFieldEnd();
17481
      }
17482
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
17483
      oprot.writeI64(this.vendorId);
17484
      oprot.writeFieldEnd();
17485
      oprot.writeFieldStop();
17486
      oprot.writeStructEnd();
17487
    }
17488
 
17489
    @Override
17490
    public String toString() {
17491
      StringBuilder sb = new StringBuilder("scanForLostItem_args(");
17492
      boolean first = true;
17493
 
17494
      sb.append("lostItems:");
17495
      if (this.lostItems == null) {
17496
        sb.append("null");
17497
      } else {
17498
        sb.append(this.lostItems);
17499
      }
17500
      first = false;
17501
      if (!first) sb.append(", ");
17502
      sb.append("vendorId:");
17503
      sb.append(this.vendorId);
17504
      first = false;
17505
      sb.append(")");
17506
      return sb.toString();
17507
    }
17508
 
17509
    public void validate() throws org.apache.thrift.TException {
17510
      // check for required fields
17511
    }
17512
 
17513
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17514
      try {
17515
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17516
      } catch (org.apache.thrift.TException te) {
17517
        throw new java.io.IOException(te);
17518
      }
17519
    }
17520
 
17521
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17522
      try {
17523
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17524
      } catch (org.apache.thrift.TException te) {
17525
        throw new java.io.IOException(te);
17526
      }
17527
    }
17528
 
17529
  }
17530
 
17531
  public static class scanForLostItem_result implements org.apache.thrift.TBase<scanForLostItem_result, scanForLostItem_result._Fields>, java.io.Serializable, Cloneable   {
17532
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_result");
17533
 
17534
    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);
17535
 
17536
    private WarehouseServiceException ex; // required
17537
 
17538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17539
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17540
      EX((short)1, "ex");
17541
 
17542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17543
 
17544
      static {
17545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17546
          byName.put(field.getFieldName(), field);
17547
        }
17548
      }
17549
 
17550
      /**
17551
       * Find the _Fields constant that matches fieldId, or null if its not found.
17552
       */
17553
      public static _Fields findByThriftId(int fieldId) {
17554
        switch(fieldId) {
17555
          case 1: // EX
17556
            return EX;
17557
          default:
17558
            return null;
17559
        }
17560
      }
17561
 
17562
      /**
17563
       * Find the _Fields constant that matches fieldId, throwing an exception
17564
       * if it is not found.
17565
       */
17566
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17567
        _Fields fields = findByThriftId(fieldId);
17568
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17569
        return fields;
17570
      }
17571
 
17572
      /**
17573
       * Find the _Fields constant that matches name, or null if its not found.
17574
       */
17575
      public static _Fields findByName(String name) {
17576
        return byName.get(name);
17577
      }
17578
 
17579
      private final short _thriftId;
17580
      private final String _fieldName;
17581
 
17582
      _Fields(short thriftId, String fieldName) {
17583
        _thriftId = thriftId;
17584
        _fieldName = fieldName;
17585
      }
17586
 
17587
      public short getThriftFieldId() {
17588
        return _thriftId;
17589
      }
17590
 
17591
      public String getFieldName() {
17592
        return _fieldName;
17593
      }
17594
    }
17595
 
17596
    // isset id assignments
17597
 
17598
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17599
    static {
17600
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17601
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17602
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17603
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17604
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_result.class, metaDataMap);
17605
    }
17606
 
17607
    public scanForLostItem_result() {
17608
    }
17609
 
17610
    public scanForLostItem_result(
17611
      WarehouseServiceException ex)
17612
    {
17613
      this();
17614
      this.ex = ex;
17615
    }
17616
 
17617
    /**
17618
     * Performs a deep copy on <i>other</i>.
17619
     */
17620
    public scanForLostItem_result(scanForLostItem_result other) {
17621
      if (other.isSetEx()) {
17622
        this.ex = new WarehouseServiceException(other.ex);
17623
      }
17624
    }
17625
 
17626
    public scanForLostItem_result deepCopy() {
17627
      return new scanForLostItem_result(this);
17628
    }
17629
 
17630
    @Override
17631
    public void clear() {
17632
      this.ex = null;
17633
    }
17634
 
17635
    public WarehouseServiceException getEx() {
17636
      return this.ex;
17637
    }
17638
 
17639
    public void setEx(WarehouseServiceException ex) {
17640
      this.ex = ex;
17641
    }
17642
 
17643
    public void unsetEx() {
17644
      this.ex = null;
17645
    }
17646
 
17647
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
17648
    public boolean isSetEx() {
17649
      return this.ex != null;
17650
    }
17651
 
17652
    public void setExIsSet(boolean value) {
17653
      if (!value) {
17654
        this.ex = null;
17655
      }
17656
    }
17657
 
17658
    public void setFieldValue(_Fields field, Object value) {
17659
      switch (field) {
17660
      case EX:
17661
        if (value == null) {
17662
          unsetEx();
17663
        } else {
17664
          setEx((WarehouseServiceException)value);
17665
        }
17666
        break;
17667
 
17668
      }
17669
    }
17670
 
17671
    public Object getFieldValue(_Fields field) {
17672
      switch (field) {
17673
      case EX:
17674
        return getEx();
17675
 
17676
      }
17677
      throw new IllegalStateException();
17678
    }
17679
 
17680
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17681
    public boolean isSet(_Fields field) {
17682
      if (field == null) {
17683
        throw new IllegalArgumentException();
17684
      }
17685
 
17686
      switch (field) {
17687
      case EX:
17688
        return isSetEx();
17689
      }
17690
      throw new IllegalStateException();
17691
    }
17692
 
17693
    @Override
17694
    public boolean equals(Object that) {
17695
      if (that == null)
17696
        return false;
17697
      if (that instanceof scanForLostItem_result)
17698
        return this.equals((scanForLostItem_result)that);
17699
      return false;
17700
    }
17701
 
17702
    public boolean equals(scanForLostItem_result that) {
17703
      if (that == null)
17704
        return false;
17705
 
17706
      boolean this_present_ex = true && this.isSetEx();
17707
      boolean that_present_ex = true && that.isSetEx();
17708
      if (this_present_ex || that_present_ex) {
17709
        if (!(this_present_ex && that_present_ex))
17710
          return false;
17711
        if (!this.ex.equals(that.ex))
17712
          return false;
17713
      }
17714
 
17715
      return true;
17716
    }
17717
 
17718
    @Override
17719
    public int hashCode() {
17720
      return 0;
17721
    }
17722
 
17723
    public int compareTo(scanForLostItem_result other) {
17724
      if (!getClass().equals(other.getClass())) {
17725
        return getClass().getName().compareTo(other.getClass().getName());
17726
      }
17727
 
17728
      int lastComparison = 0;
17729
      scanForLostItem_result typedOther = (scanForLostItem_result)other;
17730
 
17731
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
17732
      if (lastComparison != 0) {
17733
        return lastComparison;
17734
      }
17735
      if (isSetEx()) {
17736
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17737
        if (lastComparison != 0) {
17738
          return lastComparison;
17739
        }
17740
      }
17741
      return 0;
17742
    }
17743
 
17744
    public _Fields fieldForId(int fieldId) {
17745
      return _Fields.findByThriftId(fieldId);
17746
    }
17747
 
17748
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17749
      org.apache.thrift.protocol.TField field;
17750
      iprot.readStructBegin();
17751
      while (true)
17752
      {
17753
        field = iprot.readFieldBegin();
17754
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17755
          break;
17756
        }
17757
        switch (field.id) {
17758
          case 1: // EX
17759
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17760
              this.ex = new WarehouseServiceException();
17761
              this.ex.read(iprot);
17762
            } else { 
17763
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17764
            }
17765
            break;
17766
          default:
17767
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17768
        }
17769
        iprot.readFieldEnd();
17770
      }
17771
      iprot.readStructEnd();
17772
      validate();
17773
    }
17774
 
17775
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17776
      oprot.writeStructBegin(STRUCT_DESC);
17777
 
17778
      if (this.isSetEx()) {
17779
        oprot.writeFieldBegin(EX_FIELD_DESC);
17780
        this.ex.write(oprot);
17781
        oprot.writeFieldEnd();
17782
      }
17783
      oprot.writeFieldStop();
17784
      oprot.writeStructEnd();
17785
    }
17786
 
17787
    @Override
17788
    public String toString() {
17789
      StringBuilder sb = new StringBuilder("scanForLostItem_result(");
17790
      boolean first = true;
17791
 
17792
      sb.append("ex:");
17793
      if (this.ex == null) {
17794
        sb.append("null");
17795
      } else {
17796
        sb.append(this.ex);
17797
      }
17798
      first = false;
17799
      sb.append(")");
17800
      return sb.toString();
17801
    }
17802
 
17803
    public void validate() throws org.apache.thrift.TException {
17804
      // check for required fields
17805
    }
17806
 
17807
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17808
      try {
17809
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17810
      } catch (org.apache.thrift.TException te) {
17811
        throw new java.io.IOException(te);
17812
      }
17813
    }
17814
 
17815
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17816
      try {
17817
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17818
      } catch (org.apache.thrift.TException te) {
17819
        throw new java.io.IOException(te);
17820
      }
17821
    }
17822
 
17823
  }
17824
 
17825
  public static class getCurrentSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_args, getCurrentSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
17826
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_args");
17827
 
17828
 
17829
 
17830
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17831
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17832
;
17833
 
17834
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17835
 
17836
      static {
17837
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17838
          byName.put(field.getFieldName(), field);
17839
        }
17840
      }
17841
 
17842
      /**
17843
       * Find the _Fields constant that matches fieldId, or null if its not found.
17844
       */
17845
      public static _Fields findByThriftId(int fieldId) {
17846
        switch(fieldId) {
17847
          default:
17848
            return null;
17849
        }
17850
      }
17851
 
17852
      /**
17853
       * Find the _Fields constant that matches fieldId, throwing an exception
17854
       * if it is not found.
17855
       */
17856
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17857
        _Fields fields = findByThriftId(fieldId);
17858
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17859
        return fields;
17860
      }
17861
 
17862
      /**
17863
       * Find the _Fields constant that matches name, or null if its not found.
17864
       */
17865
      public static _Fields findByName(String name) {
17866
        return byName.get(name);
17867
      }
17868
 
17869
      private final short _thriftId;
17870
      private final String _fieldName;
17871
 
17872
      _Fields(short thriftId, String fieldName) {
17873
        _thriftId = thriftId;
17874
        _fieldName = fieldName;
17875
      }
17876
 
17877
      public short getThriftFieldId() {
17878
        return _thriftId;
17879
      }
17880
 
17881
      public String getFieldName() {
17882
        return _fieldName;
17883
      }
17884
    }
17885
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17886
    static {
17887
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_args.class, metaDataMap);
17890
    }
17891
 
17892
    public getCurrentSerializedInventoryByScans_args() {
17893
    }
17894
 
17895
    /**
17896
     * Performs a deep copy on <i>other</i>.
17897
     */
17898
    public getCurrentSerializedInventoryByScans_args(getCurrentSerializedInventoryByScans_args other) {
17899
    }
17900
 
17901
    public getCurrentSerializedInventoryByScans_args deepCopy() {
17902
      return new getCurrentSerializedInventoryByScans_args(this);
17903
    }
17904
 
17905
    @Override
17906
    public void clear() {
17907
    }
17908
 
17909
    public void setFieldValue(_Fields field, Object value) {
17910
      switch (field) {
17911
      }
17912
    }
17913
 
17914
    public Object getFieldValue(_Fields field) {
17915
      switch (field) {
17916
      }
17917
      throw new IllegalStateException();
17918
    }
17919
 
17920
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17921
    public boolean isSet(_Fields field) {
17922
      if (field == null) {
17923
        throw new IllegalArgumentException();
17924
      }
17925
 
17926
      switch (field) {
17927
      }
17928
      throw new IllegalStateException();
17929
    }
17930
 
17931
    @Override
17932
    public boolean equals(Object that) {
17933
      if (that == null)
17934
        return false;
17935
      if (that instanceof getCurrentSerializedInventoryByScans_args)
17936
        return this.equals((getCurrentSerializedInventoryByScans_args)that);
17937
      return false;
17938
    }
17939
 
17940
    public boolean equals(getCurrentSerializedInventoryByScans_args that) {
17941
      if (that == null)
17942
        return false;
17943
 
17944
      return true;
17945
    }
17946
 
17947
    @Override
17948
    public int hashCode() {
17949
      return 0;
17950
    }
17951
 
17952
    public int compareTo(getCurrentSerializedInventoryByScans_args other) {
17953
      if (!getClass().equals(other.getClass())) {
17954
        return getClass().getName().compareTo(other.getClass().getName());
17955
      }
17956
 
17957
      int lastComparison = 0;
17958
      getCurrentSerializedInventoryByScans_args typedOther = (getCurrentSerializedInventoryByScans_args)other;
17959
 
17960
      return 0;
17961
    }
17962
 
17963
    public _Fields fieldForId(int fieldId) {
17964
      return _Fields.findByThriftId(fieldId);
17965
    }
17966
 
17967
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17968
      org.apache.thrift.protocol.TField field;
17969
      iprot.readStructBegin();
17970
      while (true)
17971
      {
17972
        field = iprot.readFieldBegin();
17973
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17974
          break;
17975
        }
17976
        switch (field.id) {
17977
          default:
17978
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17979
        }
17980
        iprot.readFieldEnd();
17981
      }
17982
      iprot.readStructEnd();
17983
      validate();
17984
    }
17985
 
17986
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17987
      validate();
17988
 
17989
      oprot.writeStructBegin(STRUCT_DESC);
17990
      oprot.writeFieldStop();
17991
      oprot.writeStructEnd();
17992
    }
17993
 
17994
    @Override
17995
    public String toString() {
17996
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_args(");
17997
      boolean first = true;
17998
 
17999
      sb.append(")");
18000
      return sb.toString();
18001
    }
18002
 
18003
    public void validate() throws org.apache.thrift.TException {
18004
      // check for required fields
18005
    }
18006
 
18007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18008
      try {
18009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18010
      } catch (org.apache.thrift.TException te) {
18011
        throw new java.io.IOException(te);
18012
      }
18013
    }
18014
 
18015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18016
      try {
18017
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18018
      } catch (org.apache.thrift.TException te) {
18019
        throw new java.io.IOException(te);
18020
      }
18021
    }
18022
 
18023
  }
18024
 
18025
  public static class getCurrentSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_result, getCurrentSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
18026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_result");
18027
 
18028
    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);
18029
 
18030
    private List<InventoryAvailability> success; // required
18031
 
18032
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18033
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18034
      SUCCESS((short)0, "success");
18035
 
18036
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18037
 
18038
      static {
18039
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18040
          byName.put(field.getFieldName(), field);
18041
        }
18042
      }
18043
 
18044
      /**
18045
       * Find the _Fields constant that matches fieldId, or null if its not found.
18046
       */
18047
      public static _Fields findByThriftId(int fieldId) {
18048
        switch(fieldId) {
18049
          case 0: // SUCCESS
18050
            return SUCCESS;
18051
          default:
18052
            return null;
18053
        }
18054
      }
18055
 
18056
      /**
18057
       * Find the _Fields constant that matches fieldId, throwing an exception
18058
       * if it is not found.
18059
       */
18060
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18061
        _Fields fields = findByThriftId(fieldId);
18062
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18063
        return fields;
18064
      }
18065
 
18066
      /**
18067
       * Find the _Fields constant that matches name, or null if its not found.
18068
       */
18069
      public static _Fields findByName(String name) {
18070
        return byName.get(name);
18071
      }
18072
 
18073
      private final short _thriftId;
18074
      private final String _fieldName;
18075
 
18076
      _Fields(short thriftId, String fieldName) {
18077
        _thriftId = thriftId;
18078
        _fieldName = fieldName;
18079
      }
18080
 
18081
      public short getThriftFieldId() {
18082
        return _thriftId;
18083
      }
18084
 
18085
      public String getFieldName() {
18086
        return _fieldName;
18087
      }
18088
    }
18089
 
18090
    // isset id assignments
18091
 
18092
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18093
    static {
18094
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18095
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18096
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18097
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
18098
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18099
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_result.class, metaDataMap);
18100
    }
18101
 
18102
    public getCurrentSerializedInventoryByScans_result() {
18103
    }
18104
 
18105
    public getCurrentSerializedInventoryByScans_result(
18106
      List<InventoryAvailability> success)
18107
    {
18108
      this();
18109
      this.success = success;
18110
    }
18111
 
18112
    /**
18113
     * Performs a deep copy on <i>other</i>.
18114
     */
18115
    public getCurrentSerializedInventoryByScans_result(getCurrentSerializedInventoryByScans_result other) {
18116
      if (other.isSetSuccess()) {
18117
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
18118
        for (InventoryAvailability other_element : other.success) {
18119
          __this__success.add(new InventoryAvailability(other_element));
18120
        }
18121
        this.success = __this__success;
18122
      }
18123
    }
18124
 
18125
    public getCurrentSerializedInventoryByScans_result deepCopy() {
18126
      return new getCurrentSerializedInventoryByScans_result(this);
18127
    }
18128
 
18129
    @Override
18130
    public void clear() {
18131
      this.success = null;
18132
    }
18133
 
18134
    public int getSuccessSize() {
18135
      return (this.success == null) ? 0 : this.success.size();
18136
    }
18137
 
18138
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
18139
      return (this.success == null) ? null : this.success.iterator();
18140
    }
18141
 
18142
    public void addToSuccess(InventoryAvailability elem) {
18143
      if (this.success == null) {
18144
        this.success = new ArrayList<InventoryAvailability>();
18145
      }
18146
      this.success.add(elem);
18147
    }
18148
 
18149
    public List<InventoryAvailability> getSuccess() {
18150
      return this.success;
18151
    }
18152
 
18153
    public void setSuccess(List<InventoryAvailability> success) {
18154
      this.success = success;
18155
    }
18156
 
18157
    public void unsetSuccess() {
18158
      this.success = null;
18159
    }
18160
 
18161
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18162
    public boolean isSetSuccess() {
18163
      return this.success != null;
18164
    }
18165
 
18166
    public void setSuccessIsSet(boolean value) {
18167
      if (!value) {
18168
        this.success = null;
18169
      }
18170
    }
18171
 
18172
    public void setFieldValue(_Fields field, Object value) {
18173
      switch (field) {
18174
      case SUCCESS:
18175
        if (value == null) {
18176
          unsetSuccess();
18177
        } else {
18178
          setSuccess((List<InventoryAvailability>)value);
18179
        }
18180
        break;
18181
 
18182
      }
18183
    }
18184
 
18185
    public Object getFieldValue(_Fields field) {
18186
      switch (field) {
18187
      case SUCCESS:
18188
        return getSuccess();
18189
 
18190
      }
18191
      throw new IllegalStateException();
18192
    }
18193
 
18194
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18195
    public boolean isSet(_Fields field) {
18196
      if (field == null) {
18197
        throw new IllegalArgumentException();
18198
      }
18199
 
18200
      switch (field) {
18201
      case SUCCESS:
18202
        return isSetSuccess();
18203
      }
18204
      throw new IllegalStateException();
18205
    }
18206
 
18207
    @Override
18208
    public boolean equals(Object that) {
18209
      if (that == null)
18210
        return false;
18211
      if (that instanceof getCurrentSerializedInventoryByScans_result)
18212
        return this.equals((getCurrentSerializedInventoryByScans_result)that);
18213
      return false;
18214
    }
18215
 
18216
    public boolean equals(getCurrentSerializedInventoryByScans_result that) {
18217
      if (that == null)
18218
        return false;
18219
 
18220
      boolean this_present_success = true && this.isSetSuccess();
18221
      boolean that_present_success = true && that.isSetSuccess();
18222
      if (this_present_success || that_present_success) {
18223
        if (!(this_present_success && that_present_success))
18224
          return false;
18225
        if (!this.success.equals(that.success))
18226
          return false;
18227
      }
18228
 
18229
      return true;
18230
    }
18231
 
18232
    @Override
18233
    public int hashCode() {
18234
      return 0;
18235
    }
18236
 
18237
    public int compareTo(getCurrentSerializedInventoryByScans_result other) {
18238
      if (!getClass().equals(other.getClass())) {
18239
        return getClass().getName().compareTo(other.getClass().getName());
18240
      }
18241
 
18242
      int lastComparison = 0;
18243
      getCurrentSerializedInventoryByScans_result typedOther = (getCurrentSerializedInventoryByScans_result)other;
18244
 
18245
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18246
      if (lastComparison != 0) {
18247
        return lastComparison;
18248
      }
18249
      if (isSetSuccess()) {
18250
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18251
        if (lastComparison != 0) {
18252
          return lastComparison;
18253
        }
18254
      }
18255
      return 0;
18256
    }
18257
 
18258
    public _Fields fieldForId(int fieldId) {
18259
      return _Fields.findByThriftId(fieldId);
18260
    }
18261
 
18262
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18263
      org.apache.thrift.protocol.TField field;
18264
      iprot.readStructBegin();
18265
      while (true)
18266
      {
18267
        field = iprot.readFieldBegin();
18268
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18269
          break;
18270
        }
18271
        switch (field.id) {
18272
          case 0: // SUCCESS
18273
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18274
              {
7210 amar.kumar 18275
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
18276
                this.success = new ArrayList<InventoryAvailability>(_list44.size);
18277
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
6548 amar.kumar 18278
                {
7210 amar.kumar 18279
                  InventoryAvailability _elem46; // required
18280
                  _elem46 = new InventoryAvailability();
18281
                  _elem46.read(iprot);
18282
                  this.success.add(_elem46);
6548 amar.kumar 18283
                }
18284
                iprot.readListEnd();
18285
              }
18286
            } else { 
18287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18288
            }
18289
            break;
18290
          default:
18291
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18292
        }
18293
        iprot.readFieldEnd();
18294
      }
18295
      iprot.readStructEnd();
18296
      validate();
18297
    }
18298
 
18299
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18300
      oprot.writeStructBegin(STRUCT_DESC);
18301
 
18302
      if (this.isSetSuccess()) {
18303
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18304
        {
18305
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 18306
          for (InventoryAvailability _iter47 : this.success)
6548 amar.kumar 18307
          {
7210 amar.kumar 18308
            _iter47.write(oprot);
6548 amar.kumar 18309
          }
18310
          oprot.writeListEnd();
18311
        }
18312
        oprot.writeFieldEnd();
18313
      }
18314
      oprot.writeFieldStop();
18315
      oprot.writeStructEnd();
18316
    }
18317
 
18318
    @Override
18319
    public String toString() {
18320
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_result(");
18321
      boolean first = true;
18322
 
18323
      sb.append("success:");
18324
      if (this.success == null) {
18325
        sb.append("null");
18326
      } else {
18327
        sb.append(this.success);
18328
      }
18329
      first = false;
18330
      sb.append(")");
18331
      return sb.toString();
18332
    }
18333
 
18334
    public void validate() throws org.apache.thrift.TException {
18335
      // check for required fields
18336
    }
18337
 
18338
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18339
      try {
18340
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18341
      } catch (org.apache.thrift.TException te) {
18342
        throw new java.io.IOException(te);
18343
      }
18344
    }
18345
 
18346
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18347
      try {
18348
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18349
      } catch (org.apache.thrift.TException te) {
18350
        throw new java.io.IOException(te);
18351
      }
18352
    }
18353
 
18354
  }
18355
 
6630 amar.kumar 18356
  public static class getCurrentNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_args, getCurrentNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
18357
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_args");
18358
 
18359
 
18360
 
18361
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18362
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18363
;
18364
 
18365
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18366
 
18367
      static {
18368
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18369
          byName.put(field.getFieldName(), field);
18370
        }
18371
      }
18372
 
18373
      /**
18374
       * Find the _Fields constant that matches fieldId, or null if its not found.
18375
       */
18376
      public static _Fields findByThriftId(int fieldId) {
18377
        switch(fieldId) {
18378
          default:
18379
            return null;
18380
        }
18381
      }
18382
 
18383
      /**
18384
       * Find the _Fields constant that matches fieldId, throwing an exception
18385
       * if it is not found.
18386
       */
18387
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18388
        _Fields fields = findByThriftId(fieldId);
18389
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18390
        return fields;
18391
      }
18392
 
18393
      /**
18394
       * Find the _Fields constant that matches name, or null if its not found.
18395
       */
18396
      public static _Fields findByName(String name) {
18397
        return byName.get(name);
18398
      }
18399
 
18400
      private final short _thriftId;
18401
      private final String _fieldName;
18402
 
18403
      _Fields(short thriftId, String fieldName) {
18404
        _thriftId = thriftId;
18405
        _fieldName = fieldName;
18406
      }
18407
 
18408
      public short getThriftFieldId() {
18409
        return _thriftId;
18410
      }
18411
 
18412
      public String getFieldName() {
18413
        return _fieldName;
18414
      }
18415
    }
18416
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18417
    static {
18418
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18419
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18420
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_args.class, metaDataMap);
18421
    }
18422
 
18423
    public getCurrentNonSerializedInventoryByScans_args() {
18424
    }
18425
 
18426
    /**
18427
     * Performs a deep copy on <i>other</i>.
18428
     */
18429
    public getCurrentNonSerializedInventoryByScans_args(getCurrentNonSerializedInventoryByScans_args other) {
18430
    }
18431
 
18432
    public getCurrentNonSerializedInventoryByScans_args deepCopy() {
18433
      return new getCurrentNonSerializedInventoryByScans_args(this);
18434
    }
18435
 
18436
    @Override
18437
    public void clear() {
18438
    }
18439
 
18440
    public void setFieldValue(_Fields field, Object value) {
18441
      switch (field) {
18442
      }
18443
    }
18444
 
18445
    public Object getFieldValue(_Fields field) {
18446
      switch (field) {
18447
      }
18448
      throw new IllegalStateException();
18449
    }
18450
 
18451
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18452
    public boolean isSet(_Fields field) {
18453
      if (field == null) {
18454
        throw new IllegalArgumentException();
18455
      }
18456
 
18457
      switch (field) {
18458
      }
18459
      throw new IllegalStateException();
18460
    }
18461
 
18462
    @Override
18463
    public boolean equals(Object that) {
18464
      if (that == null)
18465
        return false;
18466
      if (that instanceof getCurrentNonSerializedInventoryByScans_args)
18467
        return this.equals((getCurrentNonSerializedInventoryByScans_args)that);
18468
      return false;
18469
    }
18470
 
18471
    public boolean equals(getCurrentNonSerializedInventoryByScans_args that) {
18472
      if (that == null)
18473
        return false;
18474
 
18475
      return true;
18476
    }
18477
 
18478
    @Override
18479
    public int hashCode() {
18480
      return 0;
18481
    }
18482
 
18483
    public int compareTo(getCurrentNonSerializedInventoryByScans_args other) {
18484
      if (!getClass().equals(other.getClass())) {
18485
        return getClass().getName().compareTo(other.getClass().getName());
18486
      }
18487
 
18488
      int lastComparison = 0;
18489
      getCurrentNonSerializedInventoryByScans_args typedOther = (getCurrentNonSerializedInventoryByScans_args)other;
18490
 
18491
      return 0;
18492
    }
18493
 
18494
    public _Fields fieldForId(int fieldId) {
18495
      return _Fields.findByThriftId(fieldId);
18496
    }
18497
 
18498
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18499
      org.apache.thrift.protocol.TField field;
18500
      iprot.readStructBegin();
18501
      while (true)
18502
      {
18503
        field = iprot.readFieldBegin();
18504
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18505
          break;
18506
        }
18507
        switch (field.id) {
18508
          default:
18509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18510
        }
18511
        iprot.readFieldEnd();
18512
      }
18513
      iprot.readStructEnd();
18514
      validate();
18515
    }
18516
 
18517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18518
      validate();
18519
 
18520
      oprot.writeStructBegin(STRUCT_DESC);
18521
      oprot.writeFieldStop();
18522
      oprot.writeStructEnd();
18523
    }
18524
 
18525
    @Override
18526
    public String toString() {
18527
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_args(");
18528
      boolean first = true;
18529
 
18530
      sb.append(")");
18531
      return sb.toString();
18532
    }
18533
 
18534
    public void validate() throws org.apache.thrift.TException {
18535
      // check for required fields
18536
    }
18537
 
18538
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18539
      try {
18540
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18541
      } catch (org.apache.thrift.TException te) {
18542
        throw new java.io.IOException(te);
18543
      }
18544
    }
18545
 
18546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18547
      try {
18548
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18549
      } catch (org.apache.thrift.TException te) {
18550
        throw new java.io.IOException(te);
18551
      }
18552
    }
18553
 
18554
  }
18555
 
18556
  public static class getCurrentNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_result, getCurrentNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
18557
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_result");
18558
 
18559
    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);
18560
 
18561
    private List<InventoryAvailability> success; // required
18562
 
18563
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18564
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18565
      SUCCESS((short)0, "success");
18566
 
18567
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18568
 
18569
      static {
18570
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18571
          byName.put(field.getFieldName(), field);
18572
        }
18573
      }
18574
 
18575
      /**
18576
       * Find the _Fields constant that matches fieldId, or null if its not found.
18577
       */
18578
      public static _Fields findByThriftId(int fieldId) {
18579
        switch(fieldId) {
18580
          case 0: // SUCCESS
18581
            return SUCCESS;
18582
          default:
18583
            return null;
18584
        }
18585
      }
18586
 
18587
      /**
18588
       * Find the _Fields constant that matches fieldId, throwing an exception
18589
       * if it is not found.
18590
       */
18591
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18592
        _Fields fields = findByThriftId(fieldId);
18593
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18594
        return fields;
18595
      }
18596
 
18597
      /**
18598
       * Find the _Fields constant that matches name, or null if its not found.
18599
       */
18600
      public static _Fields findByName(String name) {
18601
        return byName.get(name);
18602
      }
18603
 
18604
      private final short _thriftId;
18605
      private final String _fieldName;
18606
 
18607
      _Fields(short thriftId, String fieldName) {
18608
        _thriftId = thriftId;
18609
        _fieldName = fieldName;
18610
      }
18611
 
18612
      public short getThriftFieldId() {
18613
        return _thriftId;
18614
      }
18615
 
18616
      public String getFieldName() {
18617
        return _fieldName;
18618
      }
18619
    }
18620
 
18621
    // isset id assignments
18622
 
18623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18624
    static {
18625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18626
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18627
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18628
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
18629
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18630
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_result.class, metaDataMap);
18631
    }
18632
 
18633
    public getCurrentNonSerializedInventoryByScans_result() {
18634
    }
18635
 
18636
    public getCurrentNonSerializedInventoryByScans_result(
18637
      List<InventoryAvailability> success)
18638
    {
18639
      this();
18640
      this.success = success;
18641
    }
18642
 
18643
    /**
18644
     * Performs a deep copy on <i>other</i>.
18645
     */
18646
    public getCurrentNonSerializedInventoryByScans_result(getCurrentNonSerializedInventoryByScans_result other) {
18647
      if (other.isSetSuccess()) {
18648
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
18649
        for (InventoryAvailability other_element : other.success) {
18650
          __this__success.add(new InventoryAvailability(other_element));
18651
        }
18652
        this.success = __this__success;
18653
      }
18654
    }
18655
 
18656
    public getCurrentNonSerializedInventoryByScans_result deepCopy() {
18657
      return new getCurrentNonSerializedInventoryByScans_result(this);
18658
    }
18659
 
18660
    @Override
18661
    public void clear() {
18662
      this.success = null;
18663
    }
18664
 
18665
    public int getSuccessSize() {
18666
      return (this.success == null) ? 0 : this.success.size();
18667
    }
18668
 
18669
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
18670
      return (this.success == null) ? null : this.success.iterator();
18671
    }
18672
 
18673
    public void addToSuccess(InventoryAvailability elem) {
18674
      if (this.success == null) {
18675
        this.success = new ArrayList<InventoryAvailability>();
18676
      }
18677
      this.success.add(elem);
18678
    }
18679
 
18680
    public List<InventoryAvailability> getSuccess() {
18681
      return this.success;
18682
    }
18683
 
18684
    public void setSuccess(List<InventoryAvailability> success) {
18685
      this.success = success;
18686
    }
18687
 
18688
    public void unsetSuccess() {
18689
      this.success = null;
18690
    }
18691
 
18692
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18693
    public boolean isSetSuccess() {
18694
      return this.success != null;
18695
    }
18696
 
18697
    public void setSuccessIsSet(boolean value) {
18698
      if (!value) {
18699
        this.success = null;
18700
      }
18701
    }
18702
 
18703
    public void setFieldValue(_Fields field, Object value) {
18704
      switch (field) {
18705
      case SUCCESS:
18706
        if (value == null) {
18707
          unsetSuccess();
18708
        } else {
18709
          setSuccess((List<InventoryAvailability>)value);
18710
        }
18711
        break;
18712
 
18713
      }
18714
    }
18715
 
18716
    public Object getFieldValue(_Fields field) {
18717
      switch (field) {
18718
      case SUCCESS:
18719
        return getSuccess();
18720
 
18721
      }
18722
      throw new IllegalStateException();
18723
    }
18724
 
18725
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18726
    public boolean isSet(_Fields field) {
18727
      if (field == null) {
18728
        throw new IllegalArgumentException();
18729
      }
18730
 
18731
      switch (field) {
18732
      case SUCCESS:
18733
        return isSetSuccess();
18734
      }
18735
      throw new IllegalStateException();
18736
    }
18737
 
18738
    @Override
18739
    public boolean equals(Object that) {
18740
      if (that == null)
18741
        return false;
18742
      if (that instanceof getCurrentNonSerializedInventoryByScans_result)
18743
        return this.equals((getCurrentNonSerializedInventoryByScans_result)that);
18744
      return false;
18745
    }
18746
 
18747
    public boolean equals(getCurrentNonSerializedInventoryByScans_result that) {
18748
      if (that == null)
18749
        return false;
18750
 
18751
      boolean this_present_success = true && this.isSetSuccess();
18752
      boolean that_present_success = true && that.isSetSuccess();
18753
      if (this_present_success || that_present_success) {
18754
        if (!(this_present_success && that_present_success))
18755
          return false;
18756
        if (!this.success.equals(that.success))
18757
          return false;
18758
      }
18759
 
18760
      return true;
18761
    }
18762
 
18763
    @Override
18764
    public int hashCode() {
18765
      return 0;
18766
    }
18767
 
18768
    public int compareTo(getCurrentNonSerializedInventoryByScans_result other) {
18769
      if (!getClass().equals(other.getClass())) {
18770
        return getClass().getName().compareTo(other.getClass().getName());
18771
      }
18772
 
18773
      int lastComparison = 0;
18774
      getCurrentNonSerializedInventoryByScans_result typedOther = (getCurrentNonSerializedInventoryByScans_result)other;
18775
 
18776
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18777
      if (lastComparison != 0) {
18778
        return lastComparison;
18779
      }
18780
      if (isSetSuccess()) {
18781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18782
        if (lastComparison != 0) {
18783
          return lastComparison;
18784
        }
18785
      }
18786
      return 0;
18787
    }
18788
 
18789
    public _Fields fieldForId(int fieldId) {
18790
      return _Fields.findByThriftId(fieldId);
18791
    }
18792
 
18793
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18794
      org.apache.thrift.protocol.TField field;
18795
      iprot.readStructBegin();
18796
      while (true)
18797
      {
18798
        field = iprot.readFieldBegin();
18799
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18800
          break;
18801
        }
18802
        switch (field.id) {
18803
          case 0: // SUCCESS
18804
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18805
              {
7210 amar.kumar 18806
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
18807
                this.success = new ArrayList<InventoryAvailability>(_list48.size);
18808
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
6630 amar.kumar 18809
                {
7210 amar.kumar 18810
                  InventoryAvailability _elem50; // required
18811
                  _elem50 = new InventoryAvailability();
18812
                  _elem50.read(iprot);
18813
                  this.success.add(_elem50);
6630 amar.kumar 18814
                }
18815
                iprot.readListEnd();
18816
              }
18817
            } else { 
18818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18819
            }
18820
            break;
18821
          default:
18822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18823
        }
18824
        iprot.readFieldEnd();
18825
      }
18826
      iprot.readStructEnd();
18827
      validate();
18828
    }
18829
 
18830
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18831
      oprot.writeStructBegin(STRUCT_DESC);
18832
 
18833
      if (this.isSetSuccess()) {
18834
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18835
        {
18836
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 18837
          for (InventoryAvailability _iter51 : this.success)
6630 amar.kumar 18838
          {
7210 amar.kumar 18839
            _iter51.write(oprot);
6630 amar.kumar 18840
          }
18841
          oprot.writeListEnd();
18842
        }
18843
        oprot.writeFieldEnd();
18844
      }
18845
      oprot.writeFieldStop();
18846
      oprot.writeStructEnd();
18847
    }
18848
 
18849
    @Override
18850
    public String toString() {
18851
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_result(");
18852
      boolean first = true;
18853
 
18854
      sb.append("success:");
18855
      if (this.success == null) {
18856
        sb.append("null");
18857
      } else {
18858
        sb.append(this.success);
18859
      }
18860
      first = false;
18861
      sb.append(")");
18862
      return sb.toString();
18863
    }
18864
 
18865
    public void validate() throws org.apache.thrift.TException {
18866
      // check for required fields
18867
    }
18868
 
18869
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18870
      try {
18871
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18872
      } catch (org.apache.thrift.TException te) {
18873
        throw new java.io.IOException(te);
18874
      }
18875
    }
18876
 
18877
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18878
      try {
18879
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18880
      } catch (org.apache.thrift.TException te) {
18881
        throw new java.io.IOException(te);
18882
      }
18883
    }
18884
 
18885
  }
18886
 
6762 amar.kumar 18887
  public static class getHistoricSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_args, getHistoricSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
18888
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_args");
18889
 
18890
    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);
18891
 
18892
    private long date; // required
18893
 
18894
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18895
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18896
      DATE((short)1, "date");
18897
 
18898
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18899
 
18900
      static {
18901
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18902
          byName.put(field.getFieldName(), field);
18903
        }
18904
      }
18905
 
18906
      /**
18907
       * Find the _Fields constant that matches fieldId, or null if its not found.
18908
       */
18909
      public static _Fields findByThriftId(int fieldId) {
18910
        switch(fieldId) {
18911
          case 1: // DATE
18912
            return DATE;
18913
          default:
18914
            return null;
18915
        }
18916
      }
18917
 
18918
      /**
18919
       * Find the _Fields constant that matches fieldId, throwing an exception
18920
       * if it is not found.
18921
       */
18922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18923
        _Fields fields = findByThriftId(fieldId);
18924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18925
        return fields;
18926
      }
18927
 
18928
      /**
18929
       * Find the _Fields constant that matches name, or null if its not found.
18930
       */
18931
      public static _Fields findByName(String name) {
18932
        return byName.get(name);
18933
      }
18934
 
18935
      private final short _thriftId;
18936
      private final String _fieldName;
18937
 
18938
      _Fields(short thriftId, String fieldName) {
18939
        _thriftId = thriftId;
18940
        _fieldName = fieldName;
18941
      }
18942
 
18943
      public short getThriftFieldId() {
18944
        return _thriftId;
18945
      }
18946
 
18947
      public String getFieldName() {
18948
        return _fieldName;
18949
      }
18950
    }
18951
 
18952
    // isset id assignments
18953
    private static final int __DATE_ISSET_ID = 0;
18954
    private BitSet __isset_bit_vector = new BitSet(1);
18955
 
18956
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18957
    static {
18958
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18959
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18961
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18962
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_args.class, metaDataMap);
18963
    }
18964
 
18965
    public getHistoricSerializedInventoryByScans_args() {
18966
    }
18967
 
18968
    public getHistoricSerializedInventoryByScans_args(
18969
      long date)
18970
    {
18971
      this();
18972
      this.date = date;
18973
      setDateIsSet(true);
18974
    }
18975
 
18976
    /**
18977
     * Performs a deep copy on <i>other</i>.
18978
     */
18979
    public getHistoricSerializedInventoryByScans_args(getHistoricSerializedInventoryByScans_args other) {
18980
      __isset_bit_vector.clear();
18981
      __isset_bit_vector.or(other.__isset_bit_vector);
18982
      this.date = other.date;
18983
    }
18984
 
18985
    public getHistoricSerializedInventoryByScans_args deepCopy() {
18986
      return new getHistoricSerializedInventoryByScans_args(this);
18987
    }
18988
 
18989
    @Override
18990
    public void clear() {
18991
      setDateIsSet(false);
18992
      this.date = 0;
18993
    }
18994
 
18995
    public long getDate() {
18996
      return this.date;
18997
    }
18998
 
18999
    public void setDate(long date) {
19000
      this.date = date;
19001
      setDateIsSet(true);
19002
    }
19003
 
19004
    public void unsetDate() {
19005
      __isset_bit_vector.clear(__DATE_ISSET_ID);
19006
    }
19007
 
19008
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
19009
    public boolean isSetDate() {
19010
      return __isset_bit_vector.get(__DATE_ISSET_ID);
19011
    }
19012
 
19013
    public void setDateIsSet(boolean value) {
19014
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
19015
    }
19016
 
19017
    public void setFieldValue(_Fields field, Object value) {
19018
      switch (field) {
19019
      case DATE:
19020
        if (value == null) {
19021
          unsetDate();
19022
        } else {
19023
          setDate((Long)value);
19024
        }
19025
        break;
19026
 
19027
      }
19028
    }
19029
 
19030
    public Object getFieldValue(_Fields field) {
19031
      switch (field) {
19032
      case DATE:
19033
        return Long.valueOf(getDate());
19034
 
19035
      }
19036
      throw new IllegalStateException();
19037
    }
19038
 
19039
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19040
    public boolean isSet(_Fields field) {
19041
      if (field == null) {
19042
        throw new IllegalArgumentException();
19043
      }
19044
 
19045
      switch (field) {
19046
      case DATE:
19047
        return isSetDate();
19048
      }
19049
      throw new IllegalStateException();
19050
    }
19051
 
19052
    @Override
19053
    public boolean equals(Object that) {
19054
      if (that == null)
19055
        return false;
19056
      if (that instanceof getHistoricSerializedInventoryByScans_args)
19057
        return this.equals((getHistoricSerializedInventoryByScans_args)that);
19058
      return false;
19059
    }
19060
 
19061
    public boolean equals(getHistoricSerializedInventoryByScans_args that) {
19062
      if (that == null)
19063
        return false;
19064
 
19065
      boolean this_present_date = true;
19066
      boolean that_present_date = true;
19067
      if (this_present_date || that_present_date) {
19068
        if (!(this_present_date && that_present_date))
19069
          return false;
19070
        if (this.date != that.date)
19071
          return false;
19072
      }
19073
 
19074
      return true;
19075
    }
19076
 
19077
    @Override
19078
    public int hashCode() {
19079
      return 0;
19080
    }
19081
 
19082
    public int compareTo(getHistoricSerializedInventoryByScans_args other) {
19083
      if (!getClass().equals(other.getClass())) {
19084
        return getClass().getName().compareTo(other.getClass().getName());
19085
      }
19086
 
19087
      int lastComparison = 0;
19088
      getHistoricSerializedInventoryByScans_args typedOther = (getHistoricSerializedInventoryByScans_args)other;
19089
 
19090
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
19091
      if (lastComparison != 0) {
19092
        return lastComparison;
19093
      }
19094
      if (isSetDate()) {
19095
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
19096
        if (lastComparison != 0) {
19097
          return lastComparison;
19098
        }
19099
      }
19100
      return 0;
19101
    }
19102
 
19103
    public _Fields fieldForId(int fieldId) {
19104
      return _Fields.findByThriftId(fieldId);
19105
    }
19106
 
19107
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19108
      org.apache.thrift.protocol.TField field;
19109
      iprot.readStructBegin();
19110
      while (true)
19111
      {
19112
        field = iprot.readFieldBegin();
19113
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19114
          break;
19115
        }
19116
        switch (field.id) {
19117
          case 1: // DATE
19118
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19119
              this.date = iprot.readI64();
19120
              setDateIsSet(true);
19121
            } else { 
19122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19123
            }
19124
            break;
19125
          default:
19126
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19127
        }
19128
        iprot.readFieldEnd();
19129
      }
19130
      iprot.readStructEnd();
19131
      validate();
19132
    }
19133
 
19134
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19135
      validate();
19136
 
19137
      oprot.writeStructBegin(STRUCT_DESC);
19138
      oprot.writeFieldBegin(DATE_FIELD_DESC);
19139
      oprot.writeI64(this.date);
19140
      oprot.writeFieldEnd();
19141
      oprot.writeFieldStop();
19142
      oprot.writeStructEnd();
19143
    }
19144
 
19145
    @Override
19146
    public String toString() {
19147
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_args(");
19148
      boolean first = true;
19149
 
19150
      sb.append("date:");
19151
      sb.append(this.date);
19152
      first = false;
19153
      sb.append(")");
19154
      return sb.toString();
19155
    }
19156
 
19157
    public void validate() throws org.apache.thrift.TException {
19158
      // check for required fields
19159
    }
19160
 
19161
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19162
      try {
19163
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19164
      } catch (org.apache.thrift.TException te) {
19165
        throw new java.io.IOException(te);
19166
      }
19167
    }
19168
 
19169
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19170
      try {
19171
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19172
      } catch (org.apache.thrift.TException te) {
19173
        throw new java.io.IOException(te);
19174
      }
19175
    }
19176
 
19177
  }
19178
 
19179
  public static class getHistoricSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_result, getHistoricSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
19180
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_result");
19181
 
19182
    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);
19183
 
19184
    private List<InventoryAvailability> success; // required
19185
 
19186
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19187
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19188
      SUCCESS((short)0, "success");
19189
 
19190
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19191
 
19192
      static {
19193
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19194
          byName.put(field.getFieldName(), field);
19195
        }
19196
      }
19197
 
19198
      /**
19199
       * Find the _Fields constant that matches fieldId, or null if its not found.
19200
       */
19201
      public static _Fields findByThriftId(int fieldId) {
19202
        switch(fieldId) {
19203
          case 0: // SUCCESS
19204
            return SUCCESS;
19205
          default:
19206
            return null;
19207
        }
19208
      }
19209
 
19210
      /**
19211
       * Find the _Fields constant that matches fieldId, throwing an exception
19212
       * if it is not found.
19213
       */
19214
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19215
        _Fields fields = findByThriftId(fieldId);
19216
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19217
        return fields;
19218
      }
19219
 
19220
      /**
19221
       * Find the _Fields constant that matches name, or null if its not found.
19222
       */
19223
      public static _Fields findByName(String name) {
19224
        return byName.get(name);
19225
      }
19226
 
19227
      private final short _thriftId;
19228
      private final String _fieldName;
19229
 
19230
      _Fields(short thriftId, String fieldName) {
19231
        _thriftId = thriftId;
19232
        _fieldName = fieldName;
19233
      }
19234
 
19235
      public short getThriftFieldId() {
19236
        return _thriftId;
19237
      }
19238
 
19239
      public String getFieldName() {
19240
        return _fieldName;
19241
      }
19242
    }
19243
 
19244
    // isset id assignments
19245
 
19246
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19247
    static {
19248
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19249
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19250
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19251
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
19252
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19253
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_result.class, metaDataMap);
19254
    }
19255
 
19256
    public getHistoricSerializedInventoryByScans_result() {
19257
    }
19258
 
19259
    public getHistoricSerializedInventoryByScans_result(
19260
      List<InventoryAvailability> success)
19261
    {
19262
      this();
19263
      this.success = success;
19264
    }
19265
 
19266
    /**
19267
     * Performs a deep copy on <i>other</i>.
19268
     */
19269
    public getHistoricSerializedInventoryByScans_result(getHistoricSerializedInventoryByScans_result other) {
19270
      if (other.isSetSuccess()) {
19271
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
19272
        for (InventoryAvailability other_element : other.success) {
19273
          __this__success.add(new InventoryAvailability(other_element));
19274
        }
19275
        this.success = __this__success;
19276
      }
19277
    }
19278
 
19279
    public getHistoricSerializedInventoryByScans_result deepCopy() {
19280
      return new getHistoricSerializedInventoryByScans_result(this);
19281
    }
19282
 
19283
    @Override
19284
    public void clear() {
19285
      this.success = null;
19286
    }
19287
 
19288
    public int getSuccessSize() {
19289
      return (this.success == null) ? 0 : this.success.size();
19290
    }
19291
 
19292
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
19293
      return (this.success == null) ? null : this.success.iterator();
19294
    }
19295
 
19296
    public void addToSuccess(InventoryAvailability elem) {
19297
      if (this.success == null) {
19298
        this.success = new ArrayList<InventoryAvailability>();
19299
      }
19300
      this.success.add(elem);
19301
    }
19302
 
19303
    public List<InventoryAvailability> getSuccess() {
19304
      return this.success;
19305
    }
19306
 
19307
    public void setSuccess(List<InventoryAvailability> success) {
19308
      this.success = success;
19309
    }
19310
 
19311
    public void unsetSuccess() {
19312
      this.success = null;
19313
    }
19314
 
19315
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19316
    public boolean isSetSuccess() {
19317
      return this.success != null;
19318
    }
19319
 
19320
    public void setSuccessIsSet(boolean value) {
19321
      if (!value) {
19322
        this.success = null;
19323
      }
19324
    }
19325
 
19326
    public void setFieldValue(_Fields field, Object value) {
19327
      switch (field) {
19328
      case SUCCESS:
19329
        if (value == null) {
19330
          unsetSuccess();
19331
        } else {
19332
          setSuccess((List<InventoryAvailability>)value);
19333
        }
19334
        break;
19335
 
19336
      }
19337
    }
19338
 
19339
    public Object getFieldValue(_Fields field) {
19340
      switch (field) {
19341
      case SUCCESS:
19342
        return getSuccess();
19343
 
19344
      }
19345
      throw new IllegalStateException();
19346
    }
19347
 
19348
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19349
    public boolean isSet(_Fields field) {
19350
      if (field == null) {
19351
        throw new IllegalArgumentException();
19352
      }
19353
 
19354
      switch (field) {
19355
      case SUCCESS:
19356
        return isSetSuccess();
19357
      }
19358
      throw new IllegalStateException();
19359
    }
19360
 
19361
    @Override
19362
    public boolean equals(Object that) {
19363
      if (that == null)
19364
        return false;
19365
      if (that instanceof getHistoricSerializedInventoryByScans_result)
19366
        return this.equals((getHistoricSerializedInventoryByScans_result)that);
19367
      return false;
19368
    }
19369
 
19370
    public boolean equals(getHistoricSerializedInventoryByScans_result that) {
19371
      if (that == null)
19372
        return false;
19373
 
19374
      boolean this_present_success = true && this.isSetSuccess();
19375
      boolean that_present_success = true && that.isSetSuccess();
19376
      if (this_present_success || that_present_success) {
19377
        if (!(this_present_success && that_present_success))
19378
          return false;
19379
        if (!this.success.equals(that.success))
19380
          return false;
19381
      }
19382
 
19383
      return true;
19384
    }
19385
 
19386
    @Override
19387
    public int hashCode() {
19388
      return 0;
19389
    }
19390
 
19391
    public int compareTo(getHistoricSerializedInventoryByScans_result other) {
19392
      if (!getClass().equals(other.getClass())) {
19393
        return getClass().getName().compareTo(other.getClass().getName());
19394
      }
19395
 
19396
      int lastComparison = 0;
19397
      getHistoricSerializedInventoryByScans_result typedOther = (getHistoricSerializedInventoryByScans_result)other;
19398
 
19399
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19400
      if (lastComparison != 0) {
19401
        return lastComparison;
19402
      }
19403
      if (isSetSuccess()) {
19404
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19405
        if (lastComparison != 0) {
19406
          return lastComparison;
19407
        }
19408
      }
19409
      return 0;
19410
    }
19411
 
19412
    public _Fields fieldForId(int fieldId) {
19413
      return _Fields.findByThriftId(fieldId);
19414
    }
19415
 
19416
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19417
      org.apache.thrift.protocol.TField field;
19418
      iprot.readStructBegin();
19419
      while (true)
19420
      {
19421
        field = iprot.readFieldBegin();
19422
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19423
          break;
19424
        }
19425
        switch (field.id) {
19426
          case 0: // SUCCESS
19427
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19428
              {
7210 amar.kumar 19429
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
19430
                this.success = new ArrayList<InventoryAvailability>(_list52.size);
19431
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
6762 amar.kumar 19432
                {
7210 amar.kumar 19433
                  InventoryAvailability _elem54; // required
19434
                  _elem54 = new InventoryAvailability();
19435
                  _elem54.read(iprot);
19436
                  this.success.add(_elem54);
6762 amar.kumar 19437
                }
19438
                iprot.readListEnd();
19439
              }
19440
            } else { 
19441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19442
            }
19443
            break;
19444
          default:
19445
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19446
        }
19447
        iprot.readFieldEnd();
19448
      }
19449
      iprot.readStructEnd();
19450
      validate();
19451
    }
19452
 
19453
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19454
      oprot.writeStructBegin(STRUCT_DESC);
19455
 
19456
      if (this.isSetSuccess()) {
19457
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19458
        {
19459
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 19460
          for (InventoryAvailability _iter55 : this.success)
6762 amar.kumar 19461
          {
7210 amar.kumar 19462
            _iter55.write(oprot);
6762 amar.kumar 19463
          }
19464
          oprot.writeListEnd();
19465
        }
19466
        oprot.writeFieldEnd();
19467
      }
19468
      oprot.writeFieldStop();
19469
      oprot.writeStructEnd();
19470
    }
19471
 
19472
    @Override
19473
    public String toString() {
19474
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_result(");
19475
      boolean first = true;
19476
 
19477
      sb.append("success:");
19478
      if (this.success == null) {
19479
        sb.append("null");
19480
      } else {
19481
        sb.append(this.success);
19482
      }
19483
      first = false;
19484
      sb.append(")");
19485
      return sb.toString();
19486
    }
19487
 
19488
    public void validate() throws org.apache.thrift.TException {
19489
      // check for required fields
19490
    }
19491
 
19492
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19493
      try {
19494
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19495
      } catch (org.apache.thrift.TException te) {
19496
        throw new java.io.IOException(te);
19497
      }
19498
    }
19499
 
19500
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19501
      try {
19502
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19503
      } catch (org.apache.thrift.TException te) {
19504
        throw new java.io.IOException(te);
19505
      }
19506
    }
19507
 
19508
  }
19509
 
19510
  public static class getHistoricNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_args, getHistoricNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
19511
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_args");
19512
 
19513
    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);
19514
 
19515
    private long date; // required
19516
 
19517
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19518
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19519
      DATE((short)1, "date");
19520
 
19521
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19522
 
19523
      static {
19524
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19525
          byName.put(field.getFieldName(), field);
19526
        }
19527
      }
19528
 
19529
      /**
19530
       * Find the _Fields constant that matches fieldId, or null if its not found.
19531
       */
19532
      public static _Fields findByThriftId(int fieldId) {
19533
        switch(fieldId) {
19534
          case 1: // DATE
19535
            return DATE;
19536
          default:
19537
            return null;
19538
        }
19539
      }
19540
 
19541
      /**
19542
       * Find the _Fields constant that matches fieldId, throwing an exception
19543
       * if it is not found.
19544
       */
19545
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19546
        _Fields fields = findByThriftId(fieldId);
19547
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19548
        return fields;
19549
      }
19550
 
19551
      /**
19552
       * Find the _Fields constant that matches name, or null if its not found.
19553
       */
19554
      public static _Fields findByName(String name) {
19555
        return byName.get(name);
19556
      }
19557
 
19558
      private final short _thriftId;
19559
      private final String _fieldName;
19560
 
19561
      _Fields(short thriftId, String fieldName) {
19562
        _thriftId = thriftId;
19563
        _fieldName = fieldName;
19564
      }
19565
 
19566
      public short getThriftFieldId() {
19567
        return _thriftId;
19568
      }
19569
 
19570
      public String getFieldName() {
19571
        return _fieldName;
19572
      }
19573
    }
19574
 
19575
    // isset id assignments
19576
    private static final int __DATE_ISSET_ID = 0;
19577
    private BitSet __isset_bit_vector = new BitSet(1);
19578
 
19579
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19580
    static {
19581
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19582
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19583
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19584
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19585
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_args.class, metaDataMap);
19586
    }
19587
 
19588
    public getHistoricNonSerializedInventoryByScans_args() {
19589
    }
19590
 
19591
    public getHistoricNonSerializedInventoryByScans_args(
19592
      long date)
19593
    {
19594
      this();
19595
      this.date = date;
19596
      setDateIsSet(true);
19597
    }
19598
 
19599
    /**
19600
     * Performs a deep copy on <i>other</i>.
19601
     */
19602
    public getHistoricNonSerializedInventoryByScans_args(getHistoricNonSerializedInventoryByScans_args other) {
19603
      __isset_bit_vector.clear();
19604
      __isset_bit_vector.or(other.__isset_bit_vector);
19605
      this.date = other.date;
19606
    }
19607
 
19608
    public getHistoricNonSerializedInventoryByScans_args deepCopy() {
19609
      return new getHistoricNonSerializedInventoryByScans_args(this);
19610
    }
19611
 
19612
    @Override
19613
    public void clear() {
19614
      setDateIsSet(false);
19615
      this.date = 0;
19616
    }
19617
 
19618
    public long getDate() {
19619
      return this.date;
19620
    }
19621
 
19622
    public void setDate(long date) {
19623
      this.date = date;
19624
      setDateIsSet(true);
19625
    }
19626
 
19627
    public void unsetDate() {
19628
      __isset_bit_vector.clear(__DATE_ISSET_ID);
19629
    }
19630
 
19631
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
19632
    public boolean isSetDate() {
19633
      return __isset_bit_vector.get(__DATE_ISSET_ID);
19634
    }
19635
 
19636
    public void setDateIsSet(boolean value) {
19637
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
19638
    }
19639
 
19640
    public void setFieldValue(_Fields field, Object value) {
19641
      switch (field) {
19642
      case DATE:
19643
        if (value == null) {
19644
          unsetDate();
19645
        } else {
19646
          setDate((Long)value);
19647
        }
19648
        break;
19649
 
19650
      }
19651
    }
19652
 
19653
    public Object getFieldValue(_Fields field) {
19654
      switch (field) {
19655
      case DATE:
19656
        return Long.valueOf(getDate());
19657
 
19658
      }
19659
      throw new IllegalStateException();
19660
    }
19661
 
19662
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19663
    public boolean isSet(_Fields field) {
19664
      if (field == null) {
19665
        throw new IllegalArgumentException();
19666
      }
19667
 
19668
      switch (field) {
19669
      case DATE:
19670
        return isSetDate();
19671
      }
19672
      throw new IllegalStateException();
19673
    }
19674
 
19675
    @Override
19676
    public boolean equals(Object that) {
19677
      if (that == null)
19678
        return false;
19679
      if (that instanceof getHistoricNonSerializedInventoryByScans_args)
19680
        return this.equals((getHistoricNonSerializedInventoryByScans_args)that);
19681
      return false;
19682
    }
19683
 
19684
    public boolean equals(getHistoricNonSerializedInventoryByScans_args that) {
19685
      if (that == null)
19686
        return false;
19687
 
19688
      boolean this_present_date = true;
19689
      boolean that_present_date = true;
19690
      if (this_present_date || that_present_date) {
19691
        if (!(this_present_date && that_present_date))
19692
          return false;
19693
        if (this.date != that.date)
19694
          return false;
19695
      }
19696
 
19697
      return true;
19698
    }
19699
 
19700
    @Override
19701
    public int hashCode() {
19702
      return 0;
19703
    }
19704
 
19705
    public int compareTo(getHistoricNonSerializedInventoryByScans_args other) {
19706
      if (!getClass().equals(other.getClass())) {
19707
        return getClass().getName().compareTo(other.getClass().getName());
19708
      }
19709
 
19710
      int lastComparison = 0;
19711
      getHistoricNonSerializedInventoryByScans_args typedOther = (getHistoricNonSerializedInventoryByScans_args)other;
19712
 
19713
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
19714
      if (lastComparison != 0) {
19715
        return lastComparison;
19716
      }
19717
      if (isSetDate()) {
19718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
19719
        if (lastComparison != 0) {
19720
          return lastComparison;
19721
        }
19722
      }
19723
      return 0;
19724
    }
19725
 
19726
    public _Fields fieldForId(int fieldId) {
19727
      return _Fields.findByThriftId(fieldId);
19728
    }
19729
 
19730
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19731
      org.apache.thrift.protocol.TField field;
19732
      iprot.readStructBegin();
19733
      while (true)
19734
      {
19735
        field = iprot.readFieldBegin();
19736
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19737
          break;
19738
        }
19739
        switch (field.id) {
19740
          case 1: // DATE
19741
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19742
              this.date = iprot.readI64();
19743
              setDateIsSet(true);
19744
            } else { 
19745
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19746
            }
19747
            break;
19748
          default:
19749
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19750
        }
19751
        iprot.readFieldEnd();
19752
      }
19753
      iprot.readStructEnd();
19754
      validate();
19755
    }
19756
 
19757
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19758
      validate();
19759
 
19760
      oprot.writeStructBegin(STRUCT_DESC);
19761
      oprot.writeFieldBegin(DATE_FIELD_DESC);
19762
      oprot.writeI64(this.date);
19763
      oprot.writeFieldEnd();
19764
      oprot.writeFieldStop();
19765
      oprot.writeStructEnd();
19766
    }
19767
 
19768
    @Override
19769
    public String toString() {
19770
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_args(");
19771
      boolean first = true;
19772
 
19773
      sb.append("date:");
19774
      sb.append(this.date);
19775
      first = false;
19776
      sb.append(")");
19777
      return sb.toString();
19778
    }
19779
 
19780
    public void validate() throws org.apache.thrift.TException {
19781
      // check for required fields
19782
    }
19783
 
19784
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19785
      try {
19786
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19787
      } catch (org.apache.thrift.TException te) {
19788
        throw new java.io.IOException(te);
19789
      }
19790
    }
19791
 
19792
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19793
      try {
19794
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19795
        __isset_bit_vector = new BitSet(1);
19796
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19797
      } catch (org.apache.thrift.TException te) {
19798
        throw new java.io.IOException(te);
19799
      }
19800
    }
19801
 
19802
  }
19803
 
19804
  public static class getHistoricNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_result, getHistoricNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
19805
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_result");
19806
 
19807
    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);
19808
 
19809
    private List<InventoryAvailability> success; // required
19810
 
19811
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19812
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19813
      SUCCESS((short)0, "success");
19814
 
19815
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19816
 
19817
      static {
19818
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19819
          byName.put(field.getFieldName(), field);
19820
        }
19821
      }
19822
 
19823
      /**
19824
       * Find the _Fields constant that matches fieldId, or null if its not found.
19825
       */
19826
      public static _Fields findByThriftId(int fieldId) {
19827
        switch(fieldId) {
19828
          case 0: // SUCCESS
19829
            return SUCCESS;
19830
          default:
19831
            return null;
19832
        }
19833
      }
19834
 
19835
      /**
19836
       * Find the _Fields constant that matches fieldId, throwing an exception
19837
       * if it is not found.
19838
       */
19839
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19840
        _Fields fields = findByThriftId(fieldId);
19841
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19842
        return fields;
19843
      }
19844
 
19845
      /**
19846
       * Find the _Fields constant that matches name, or null if its not found.
19847
       */
19848
      public static _Fields findByName(String name) {
19849
        return byName.get(name);
19850
      }
19851
 
19852
      private final short _thriftId;
19853
      private final String _fieldName;
19854
 
19855
      _Fields(short thriftId, String fieldName) {
19856
        _thriftId = thriftId;
19857
        _fieldName = fieldName;
19858
      }
19859
 
19860
      public short getThriftFieldId() {
19861
        return _thriftId;
19862
      }
19863
 
19864
      public String getFieldName() {
19865
        return _fieldName;
19866
      }
19867
    }
19868
 
19869
    // isset id assignments
19870
 
19871
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19872
    static {
19873
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19874
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19875
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19876
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
19877
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19878
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_result.class, metaDataMap);
19879
    }
19880
 
19881
    public getHistoricNonSerializedInventoryByScans_result() {
19882
    }
19883
 
19884
    public getHistoricNonSerializedInventoryByScans_result(
19885
      List<InventoryAvailability> success)
19886
    {
19887
      this();
19888
      this.success = success;
19889
    }
19890
 
19891
    /**
19892
     * Performs a deep copy on <i>other</i>.
19893
     */
19894
    public getHistoricNonSerializedInventoryByScans_result(getHistoricNonSerializedInventoryByScans_result other) {
19895
      if (other.isSetSuccess()) {
19896
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
19897
        for (InventoryAvailability other_element : other.success) {
19898
          __this__success.add(new InventoryAvailability(other_element));
19899
        }
19900
        this.success = __this__success;
19901
      }
19902
    }
19903
 
19904
    public getHistoricNonSerializedInventoryByScans_result deepCopy() {
19905
      return new getHistoricNonSerializedInventoryByScans_result(this);
19906
    }
19907
 
19908
    @Override
19909
    public void clear() {
19910
      this.success = null;
19911
    }
19912
 
19913
    public int getSuccessSize() {
19914
      return (this.success == null) ? 0 : this.success.size();
19915
    }
19916
 
19917
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
19918
      return (this.success == null) ? null : this.success.iterator();
19919
    }
19920
 
19921
    public void addToSuccess(InventoryAvailability elem) {
19922
      if (this.success == null) {
19923
        this.success = new ArrayList<InventoryAvailability>();
19924
      }
19925
      this.success.add(elem);
19926
    }
19927
 
19928
    public List<InventoryAvailability> getSuccess() {
19929
      return this.success;
19930
    }
19931
 
19932
    public void setSuccess(List<InventoryAvailability> success) {
19933
      this.success = success;
19934
    }
19935
 
19936
    public void unsetSuccess() {
19937
      this.success = null;
19938
    }
19939
 
19940
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19941
    public boolean isSetSuccess() {
19942
      return this.success != null;
19943
    }
19944
 
19945
    public void setSuccessIsSet(boolean value) {
19946
      if (!value) {
19947
        this.success = null;
19948
      }
19949
    }
19950
 
19951
    public void setFieldValue(_Fields field, Object value) {
19952
      switch (field) {
19953
      case SUCCESS:
19954
        if (value == null) {
19955
          unsetSuccess();
19956
        } else {
19957
          setSuccess((List<InventoryAvailability>)value);
19958
        }
19959
        break;
19960
 
19961
      }
19962
    }
19963
 
19964
    public Object getFieldValue(_Fields field) {
19965
      switch (field) {
19966
      case SUCCESS:
19967
        return getSuccess();
19968
 
19969
      }
19970
      throw new IllegalStateException();
19971
    }
19972
 
19973
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19974
    public boolean isSet(_Fields field) {
19975
      if (field == null) {
19976
        throw new IllegalArgumentException();
19977
      }
19978
 
19979
      switch (field) {
19980
      case SUCCESS:
19981
        return isSetSuccess();
19982
      }
19983
      throw new IllegalStateException();
19984
    }
19985
 
19986
    @Override
19987
    public boolean equals(Object that) {
19988
      if (that == null)
19989
        return false;
19990
      if (that instanceof getHistoricNonSerializedInventoryByScans_result)
19991
        return this.equals((getHistoricNonSerializedInventoryByScans_result)that);
19992
      return false;
19993
    }
19994
 
19995
    public boolean equals(getHistoricNonSerializedInventoryByScans_result that) {
19996
      if (that == null)
19997
        return false;
19998
 
19999
      boolean this_present_success = true && this.isSetSuccess();
20000
      boolean that_present_success = true && that.isSetSuccess();
20001
      if (this_present_success || that_present_success) {
20002
        if (!(this_present_success && that_present_success))
20003
          return false;
20004
        if (!this.success.equals(that.success))
20005
          return false;
20006
      }
20007
 
20008
      return true;
20009
    }
20010
 
20011
    @Override
20012
    public int hashCode() {
20013
      return 0;
20014
    }
20015
 
20016
    public int compareTo(getHistoricNonSerializedInventoryByScans_result other) {
20017
      if (!getClass().equals(other.getClass())) {
20018
        return getClass().getName().compareTo(other.getClass().getName());
20019
      }
20020
 
20021
      int lastComparison = 0;
20022
      getHistoricNonSerializedInventoryByScans_result typedOther = (getHistoricNonSerializedInventoryByScans_result)other;
20023
 
20024
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20025
      if (lastComparison != 0) {
20026
        return lastComparison;
20027
      }
20028
      if (isSetSuccess()) {
20029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20030
        if (lastComparison != 0) {
20031
          return lastComparison;
20032
        }
20033
      }
20034
      return 0;
20035
    }
20036
 
20037
    public _Fields fieldForId(int fieldId) {
20038
      return _Fields.findByThriftId(fieldId);
20039
    }
20040
 
20041
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20042
      org.apache.thrift.protocol.TField field;
20043
      iprot.readStructBegin();
20044
      while (true)
20045
      {
20046
        field = iprot.readFieldBegin();
20047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20048
          break;
20049
        }
20050
        switch (field.id) {
20051
          case 0: // SUCCESS
20052
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20053
              {
7210 amar.kumar 20054
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
20055
                this.success = new ArrayList<InventoryAvailability>(_list56.size);
20056
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
6762 amar.kumar 20057
                {
7210 amar.kumar 20058
                  InventoryAvailability _elem58; // required
20059
                  _elem58 = new InventoryAvailability();
20060
                  _elem58.read(iprot);
20061
                  this.success.add(_elem58);
6762 amar.kumar 20062
                }
20063
                iprot.readListEnd();
20064
              }
20065
            } else { 
20066
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20067
            }
20068
            break;
20069
          default:
20070
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20071
        }
20072
        iprot.readFieldEnd();
20073
      }
20074
      iprot.readStructEnd();
20075
      validate();
20076
    }
20077
 
20078
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20079
      oprot.writeStructBegin(STRUCT_DESC);
20080
 
20081
      if (this.isSetSuccess()) {
20082
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20083
        {
20084
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 20085
          for (InventoryAvailability _iter59 : this.success)
6762 amar.kumar 20086
          {
7210 amar.kumar 20087
            _iter59.write(oprot);
6762 amar.kumar 20088
          }
20089
          oprot.writeListEnd();
20090
        }
20091
        oprot.writeFieldEnd();
20092
      }
20093
      oprot.writeFieldStop();
20094
      oprot.writeStructEnd();
20095
    }
20096
 
20097
    @Override
20098
    public String toString() {
20099
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_result(");
20100
      boolean first = true;
20101
 
20102
      sb.append("success:");
20103
      if (this.success == null) {
20104
        sb.append("null");
20105
      } else {
20106
        sb.append(this.success);
20107
      }
20108
      first = false;
20109
      sb.append(")");
20110
      return sb.toString();
20111
    }
20112
 
20113
    public void validate() throws org.apache.thrift.TException {
20114
      // check for required fields
20115
    }
20116
 
20117
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20118
      try {
20119
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20120
      } catch (org.apache.thrift.TException te) {
20121
        throw new java.io.IOException(te);
20122
      }
20123
    }
20124
 
20125
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20126
      try {
20127
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20128
      } catch (org.apache.thrift.TException te) {
20129
        throw new java.io.IOException(te);
20130
      }
20131
    }
20132
 
20133
  }
20134
 
20135
  public static class scanForOursExternalSale_args implements org.apache.thrift.TBase<scanForOursExternalSale_args, scanForOursExternalSale_args._Fields>, java.io.Serializable, Cloneable   {
20136
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_args");
20137
 
20138
    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);
20139
    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);
20140
    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);
20141
    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);
20142
    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);
20143
    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);
20144
    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);
20145
 
20146
    private long itemId; // required
20147
    private String serialNumber; // required
20148
    private String itemNumber; // required
20149
    private String invoiceNumber; // required
20150
    private long warehouseId; // required
20151
    private double unitPrice; // required
20152
    private long orderId; // required
20153
 
20154
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20155
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20156
      ITEM_ID((short)1, "itemId"),
20157
      SERIAL_NUMBER((short)2, "serialNumber"),
20158
      ITEM_NUMBER((short)3, "itemNumber"),
20159
      INVOICE_NUMBER((short)4, "invoiceNumber"),
20160
      WAREHOUSE_ID((short)5, "warehouseId"),
20161
      UNIT_PRICE((short)6, "unitPrice"),
20162
      ORDER_ID((short)7, "orderId");
20163
 
20164
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20165
 
20166
      static {
20167
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20168
          byName.put(field.getFieldName(), field);
20169
        }
20170
      }
20171
 
20172
      /**
20173
       * Find the _Fields constant that matches fieldId, or null if its not found.
20174
       */
20175
      public static _Fields findByThriftId(int fieldId) {
20176
        switch(fieldId) {
20177
          case 1: // ITEM_ID
20178
            return ITEM_ID;
20179
          case 2: // SERIAL_NUMBER
20180
            return SERIAL_NUMBER;
20181
          case 3: // ITEM_NUMBER
20182
            return ITEM_NUMBER;
20183
          case 4: // INVOICE_NUMBER
20184
            return INVOICE_NUMBER;
20185
          case 5: // WAREHOUSE_ID
20186
            return WAREHOUSE_ID;
20187
          case 6: // UNIT_PRICE
20188
            return UNIT_PRICE;
20189
          case 7: // ORDER_ID
20190
            return ORDER_ID;
20191
          default:
20192
            return null;
20193
        }
20194
      }
20195
 
20196
      /**
20197
       * Find the _Fields constant that matches fieldId, throwing an exception
20198
       * if it is not found.
20199
       */
20200
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20201
        _Fields fields = findByThriftId(fieldId);
20202
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20203
        return fields;
20204
      }
20205
 
20206
      /**
20207
       * Find the _Fields constant that matches name, or null if its not found.
20208
       */
20209
      public static _Fields findByName(String name) {
20210
        return byName.get(name);
20211
      }
20212
 
20213
      private final short _thriftId;
20214
      private final String _fieldName;
20215
 
20216
      _Fields(short thriftId, String fieldName) {
20217
        _thriftId = thriftId;
20218
        _fieldName = fieldName;
20219
      }
20220
 
20221
      public short getThriftFieldId() {
20222
        return _thriftId;
20223
      }
20224
 
20225
      public String getFieldName() {
20226
        return _fieldName;
20227
      }
20228
    }
20229
 
20230
    // isset id assignments
20231
    private static final int __ITEMID_ISSET_ID = 0;
20232
    private static final int __WAREHOUSEID_ISSET_ID = 1;
20233
    private static final int __UNITPRICE_ISSET_ID = 2;
20234
    private static final int __ORDERID_ISSET_ID = 3;
20235
    private BitSet __isset_bit_vector = new BitSet(4);
20236
 
20237
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20238
    static {
20239
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20240
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20241
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20242
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20243
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20244
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20246
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20247
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20248
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20250
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20251
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
20252
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20253
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20254
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20255
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_args.class, metaDataMap);
20256
    }
20257
 
20258
    public scanForOursExternalSale_args() {
20259
    }
20260
 
20261
    public scanForOursExternalSale_args(
20262
      long itemId,
20263
      String serialNumber,
20264
      String itemNumber,
20265
      String invoiceNumber,
20266
      long warehouseId,
20267
      double unitPrice,
20268
      long orderId)
20269
    {
20270
      this();
20271
      this.itemId = itemId;
20272
      setItemIdIsSet(true);
20273
      this.serialNumber = serialNumber;
20274
      this.itemNumber = itemNumber;
20275
      this.invoiceNumber = invoiceNumber;
20276
      this.warehouseId = warehouseId;
20277
      setWarehouseIdIsSet(true);
20278
      this.unitPrice = unitPrice;
20279
      setUnitPriceIsSet(true);
20280
      this.orderId = orderId;
20281
      setOrderIdIsSet(true);
20282
    }
20283
 
20284
    /**
20285
     * Performs a deep copy on <i>other</i>.
20286
     */
20287
    public scanForOursExternalSale_args(scanForOursExternalSale_args other) {
20288
      __isset_bit_vector.clear();
20289
      __isset_bit_vector.or(other.__isset_bit_vector);
20290
      this.itemId = other.itemId;
20291
      if (other.isSetSerialNumber()) {
20292
        this.serialNumber = other.serialNumber;
20293
      }
20294
      if (other.isSetItemNumber()) {
20295
        this.itemNumber = other.itemNumber;
20296
      }
20297
      if (other.isSetInvoiceNumber()) {
20298
        this.invoiceNumber = other.invoiceNumber;
20299
      }
20300
      this.warehouseId = other.warehouseId;
20301
      this.unitPrice = other.unitPrice;
20302
      this.orderId = other.orderId;
20303
    }
20304
 
20305
    public scanForOursExternalSale_args deepCopy() {
20306
      return new scanForOursExternalSale_args(this);
20307
    }
20308
 
20309
    @Override
20310
    public void clear() {
20311
      setItemIdIsSet(false);
20312
      this.itemId = 0;
20313
      this.serialNumber = null;
20314
      this.itemNumber = null;
20315
      this.invoiceNumber = null;
20316
      setWarehouseIdIsSet(false);
20317
      this.warehouseId = 0;
20318
      setUnitPriceIsSet(false);
20319
      this.unitPrice = 0.0;
20320
      setOrderIdIsSet(false);
20321
      this.orderId = 0;
20322
    }
20323
 
20324
    public long getItemId() {
20325
      return this.itemId;
20326
    }
20327
 
20328
    public void setItemId(long itemId) {
20329
      this.itemId = itemId;
20330
      setItemIdIsSet(true);
20331
    }
20332
 
20333
    public void unsetItemId() {
20334
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
20335
    }
20336
 
20337
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
20338
    public boolean isSetItemId() {
20339
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
20340
    }
20341
 
20342
    public void setItemIdIsSet(boolean value) {
20343
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
20344
    }
20345
 
20346
    public String getSerialNumber() {
20347
      return this.serialNumber;
20348
    }
20349
 
20350
    public void setSerialNumber(String serialNumber) {
20351
      this.serialNumber = serialNumber;
20352
    }
20353
 
20354
    public void unsetSerialNumber() {
20355
      this.serialNumber = null;
20356
    }
20357
 
20358
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
20359
    public boolean isSetSerialNumber() {
20360
      return this.serialNumber != null;
20361
    }
20362
 
20363
    public void setSerialNumberIsSet(boolean value) {
20364
      if (!value) {
20365
        this.serialNumber = null;
20366
      }
20367
    }
20368
 
20369
    public String getItemNumber() {
20370
      return this.itemNumber;
20371
    }
20372
 
20373
    public void setItemNumber(String itemNumber) {
20374
      this.itemNumber = itemNumber;
20375
    }
20376
 
20377
    public void unsetItemNumber() {
20378
      this.itemNumber = null;
20379
    }
20380
 
20381
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
20382
    public boolean isSetItemNumber() {
20383
      return this.itemNumber != null;
20384
    }
20385
 
20386
    public void setItemNumberIsSet(boolean value) {
20387
      if (!value) {
20388
        this.itemNumber = null;
20389
      }
20390
    }
20391
 
20392
    public String getInvoiceNumber() {
20393
      return this.invoiceNumber;
20394
    }
20395
 
20396
    public void setInvoiceNumber(String invoiceNumber) {
20397
      this.invoiceNumber = invoiceNumber;
20398
    }
20399
 
20400
    public void unsetInvoiceNumber() {
20401
      this.invoiceNumber = null;
20402
    }
20403
 
20404
    /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
20405
    public boolean isSetInvoiceNumber() {
20406
      return this.invoiceNumber != null;
20407
    }
20408
 
20409
    public void setInvoiceNumberIsSet(boolean value) {
20410
      if (!value) {
20411
        this.invoiceNumber = null;
20412
      }
20413
    }
20414
 
20415
    public long getWarehouseId() {
20416
      return this.warehouseId;
20417
    }
20418
 
20419
    public void setWarehouseId(long warehouseId) {
20420
      this.warehouseId = warehouseId;
20421
      setWarehouseIdIsSet(true);
20422
    }
20423
 
20424
    public void unsetWarehouseId() {
20425
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
20426
    }
20427
 
20428
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
20429
    public boolean isSetWarehouseId() {
20430
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
20431
    }
20432
 
20433
    public void setWarehouseIdIsSet(boolean value) {
20434
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
20435
    }
20436
 
20437
    public double getUnitPrice() {
20438
      return this.unitPrice;
20439
    }
20440
 
20441
    public void setUnitPrice(double unitPrice) {
20442
      this.unitPrice = unitPrice;
20443
      setUnitPriceIsSet(true);
20444
    }
20445
 
20446
    public void unsetUnitPrice() {
20447
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
20448
    }
20449
 
20450
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
20451
    public boolean isSetUnitPrice() {
20452
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
20453
    }
20454
 
20455
    public void setUnitPriceIsSet(boolean value) {
20456
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
20457
    }
20458
 
20459
    public long getOrderId() {
20460
      return this.orderId;
20461
    }
20462
 
20463
    public void setOrderId(long orderId) {
20464
      this.orderId = orderId;
20465
      setOrderIdIsSet(true);
20466
    }
20467
 
20468
    public void unsetOrderId() {
20469
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
20470
    }
20471
 
20472
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
20473
    public boolean isSetOrderId() {
20474
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
20475
    }
20476
 
20477
    public void setOrderIdIsSet(boolean value) {
20478
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
20479
    }
20480
 
20481
    public void setFieldValue(_Fields field, Object value) {
20482
      switch (field) {
20483
      case ITEM_ID:
20484
        if (value == null) {
20485
          unsetItemId();
20486
        } else {
20487
          setItemId((Long)value);
20488
        }
20489
        break;
20490
 
20491
      case SERIAL_NUMBER:
20492
        if (value == null) {
20493
          unsetSerialNumber();
20494
        } else {
20495
          setSerialNumber((String)value);
20496
        }
20497
        break;
20498
 
20499
      case ITEM_NUMBER:
20500
        if (value == null) {
20501
          unsetItemNumber();
20502
        } else {
20503
          setItemNumber((String)value);
20504
        }
20505
        break;
20506
 
20507
      case INVOICE_NUMBER:
20508
        if (value == null) {
20509
          unsetInvoiceNumber();
20510
        } else {
20511
          setInvoiceNumber((String)value);
20512
        }
20513
        break;
20514
 
20515
      case WAREHOUSE_ID:
20516
        if (value == null) {
20517
          unsetWarehouseId();
20518
        } else {
20519
          setWarehouseId((Long)value);
20520
        }
20521
        break;
20522
 
20523
      case UNIT_PRICE:
20524
        if (value == null) {
20525
          unsetUnitPrice();
20526
        } else {
20527
          setUnitPrice((Double)value);
20528
        }
20529
        break;
20530
 
20531
      case ORDER_ID:
20532
        if (value == null) {
20533
          unsetOrderId();
20534
        } else {
20535
          setOrderId((Long)value);
20536
        }
20537
        break;
20538
 
20539
      }
20540
    }
20541
 
20542
    public Object getFieldValue(_Fields field) {
20543
      switch (field) {
20544
      case ITEM_ID:
20545
        return Long.valueOf(getItemId());
20546
 
20547
      case SERIAL_NUMBER:
20548
        return getSerialNumber();
20549
 
20550
      case ITEM_NUMBER:
20551
        return getItemNumber();
20552
 
20553
      case INVOICE_NUMBER:
20554
        return getInvoiceNumber();
20555
 
20556
      case WAREHOUSE_ID:
20557
        return Long.valueOf(getWarehouseId());
20558
 
20559
      case UNIT_PRICE:
20560
        return Double.valueOf(getUnitPrice());
20561
 
20562
      case ORDER_ID:
20563
        return Long.valueOf(getOrderId());
20564
 
20565
      }
20566
      throw new IllegalStateException();
20567
    }
20568
 
20569
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20570
    public boolean isSet(_Fields field) {
20571
      if (field == null) {
20572
        throw new IllegalArgumentException();
20573
      }
20574
 
20575
      switch (field) {
20576
      case ITEM_ID:
20577
        return isSetItemId();
20578
      case SERIAL_NUMBER:
20579
        return isSetSerialNumber();
20580
      case ITEM_NUMBER:
20581
        return isSetItemNumber();
20582
      case INVOICE_NUMBER:
20583
        return isSetInvoiceNumber();
20584
      case WAREHOUSE_ID:
20585
        return isSetWarehouseId();
20586
      case UNIT_PRICE:
20587
        return isSetUnitPrice();
20588
      case ORDER_ID:
20589
        return isSetOrderId();
20590
      }
20591
      throw new IllegalStateException();
20592
    }
20593
 
20594
    @Override
20595
    public boolean equals(Object that) {
20596
      if (that == null)
20597
        return false;
20598
      if (that instanceof scanForOursExternalSale_args)
20599
        return this.equals((scanForOursExternalSale_args)that);
20600
      return false;
20601
    }
20602
 
20603
    public boolean equals(scanForOursExternalSale_args that) {
20604
      if (that == null)
20605
        return false;
20606
 
20607
      boolean this_present_itemId = true;
20608
      boolean that_present_itemId = true;
20609
      if (this_present_itemId || that_present_itemId) {
20610
        if (!(this_present_itemId && that_present_itemId))
20611
          return false;
20612
        if (this.itemId != that.itemId)
20613
          return false;
20614
      }
20615
 
20616
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
20617
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
20618
      if (this_present_serialNumber || that_present_serialNumber) {
20619
        if (!(this_present_serialNumber && that_present_serialNumber))
20620
          return false;
20621
        if (!this.serialNumber.equals(that.serialNumber))
20622
          return false;
20623
      }
20624
 
20625
      boolean this_present_itemNumber = true && this.isSetItemNumber();
20626
      boolean that_present_itemNumber = true && that.isSetItemNumber();
20627
      if (this_present_itemNumber || that_present_itemNumber) {
20628
        if (!(this_present_itemNumber && that_present_itemNumber))
20629
          return false;
20630
        if (!this.itemNumber.equals(that.itemNumber))
20631
          return false;
20632
      }
20633
 
20634
      boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
20635
      boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
20636
      if (this_present_invoiceNumber || that_present_invoiceNumber) {
20637
        if (!(this_present_invoiceNumber && that_present_invoiceNumber))
20638
          return false;
20639
        if (!this.invoiceNumber.equals(that.invoiceNumber))
20640
          return false;
20641
      }
20642
 
20643
      boolean this_present_warehouseId = true;
20644
      boolean that_present_warehouseId = true;
20645
      if (this_present_warehouseId || that_present_warehouseId) {
20646
        if (!(this_present_warehouseId && that_present_warehouseId))
20647
          return false;
20648
        if (this.warehouseId != that.warehouseId)
20649
          return false;
20650
      }
20651
 
20652
      boolean this_present_unitPrice = true;
20653
      boolean that_present_unitPrice = true;
20654
      if (this_present_unitPrice || that_present_unitPrice) {
20655
        if (!(this_present_unitPrice && that_present_unitPrice))
20656
          return false;
20657
        if (this.unitPrice != that.unitPrice)
20658
          return false;
20659
      }
20660
 
20661
      boolean this_present_orderId = true;
20662
      boolean that_present_orderId = true;
20663
      if (this_present_orderId || that_present_orderId) {
20664
        if (!(this_present_orderId && that_present_orderId))
20665
          return false;
20666
        if (this.orderId != that.orderId)
20667
          return false;
20668
      }
20669
 
20670
      return true;
20671
    }
20672
 
20673
    @Override
20674
    public int hashCode() {
20675
      return 0;
20676
    }
20677
 
20678
    public int compareTo(scanForOursExternalSale_args other) {
20679
      if (!getClass().equals(other.getClass())) {
20680
        return getClass().getName().compareTo(other.getClass().getName());
20681
      }
20682
 
20683
      int lastComparison = 0;
20684
      scanForOursExternalSale_args typedOther = (scanForOursExternalSale_args)other;
20685
 
20686
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
20687
      if (lastComparison != 0) {
20688
        return lastComparison;
20689
      }
20690
      if (isSetItemId()) {
20691
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
20692
        if (lastComparison != 0) {
20693
          return lastComparison;
20694
        }
20695
      }
20696
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
20697
      if (lastComparison != 0) {
20698
        return lastComparison;
20699
      }
20700
      if (isSetSerialNumber()) {
20701
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
20702
        if (lastComparison != 0) {
20703
          return lastComparison;
20704
        }
20705
      }
20706
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
20707
      if (lastComparison != 0) {
20708
        return lastComparison;
20709
      }
20710
      if (isSetItemNumber()) {
20711
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
20712
        if (lastComparison != 0) {
20713
          return lastComparison;
20714
        }
20715
      }
20716
      lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
20717
      if (lastComparison != 0) {
20718
        return lastComparison;
20719
      }
20720
      if (isSetInvoiceNumber()) {
20721
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
20722
        if (lastComparison != 0) {
20723
          return lastComparison;
20724
        }
20725
      }
20726
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
20727
      if (lastComparison != 0) {
20728
        return lastComparison;
20729
      }
20730
      if (isSetWarehouseId()) {
20731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
20732
        if (lastComparison != 0) {
20733
          return lastComparison;
20734
        }
20735
      }
20736
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
20737
      if (lastComparison != 0) {
20738
        return lastComparison;
20739
      }
20740
      if (isSetUnitPrice()) {
20741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
20742
        if (lastComparison != 0) {
20743
          return lastComparison;
20744
        }
20745
      }
20746
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
20747
      if (lastComparison != 0) {
20748
        return lastComparison;
20749
      }
20750
      if (isSetOrderId()) {
20751
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
20752
        if (lastComparison != 0) {
20753
          return lastComparison;
20754
        }
20755
      }
20756
      return 0;
20757
    }
20758
 
20759
    public _Fields fieldForId(int fieldId) {
20760
      return _Fields.findByThriftId(fieldId);
20761
    }
20762
 
20763
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20764
      org.apache.thrift.protocol.TField field;
20765
      iprot.readStructBegin();
20766
      while (true)
20767
      {
20768
        field = iprot.readFieldBegin();
20769
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20770
          break;
20771
        }
20772
        switch (field.id) {
20773
          case 1: // ITEM_ID
20774
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20775
              this.itemId = iprot.readI64();
20776
              setItemIdIsSet(true);
20777
            } else { 
20778
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20779
            }
20780
            break;
20781
          case 2: // SERIAL_NUMBER
20782
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20783
              this.serialNumber = iprot.readString();
20784
            } else { 
20785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20786
            }
20787
            break;
20788
          case 3: // ITEM_NUMBER
20789
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20790
              this.itemNumber = iprot.readString();
20791
            } else { 
20792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20793
            }
20794
            break;
20795
          case 4: // INVOICE_NUMBER
20796
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20797
              this.invoiceNumber = iprot.readString();
20798
            } else { 
20799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20800
            }
20801
            break;
20802
          case 5: // WAREHOUSE_ID
20803
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20804
              this.warehouseId = iprot.readI64();
20805
              setWarehouseIdIsSet(true);
20806
            } else { 
20807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20808
            }
20809
            break;
20810
          case 6: // UNIT_PRICE
20811
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
20812
              this.unitPrice = iprot.readDouble();
20813
              setUnitPriceIsSet(true);
20814
            } else { 
20815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20816
            }
20817
            break;
20818
          case 7: // ORDER_ID
20819
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20820
              this.orderId = iprot.readI64();
20821
              setOrderIdIsSet(true);
20822
            } else { 
20823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20824
            }
20825
            break;
20826
          default:
20827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20828
        }
20829
        iprot.readFieldEnd();
20830
      }
20831
      iprot.readStructEnd();
20832
      validate();
20833
    }
20834
 
20835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20836
      validate();
20837
 
20838
      oprot.writeStructBegin(STRUCT_DESC);
20839
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
20840
      oprot.writeI64(this.itemId);
20841
      oprot.writeFieldEnd();
20842
      if (this.serialNumber != null) {
20843
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
20844
        oprot.writeString(this.serialNumber);
20845
        oprot.writeFieldEnd();
20846
      }
20847
      if (this.itemNumber != null) {
20848
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
20849
        oprot.writeString(this.itemNumber);
20850
        oprot.writeFieldEnd();
20851
      }
20852
      if (this.invoiceNumber != null) {
20853
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
20854
        oprot.writeString(this.invoiceNumber);
20855
        oprot.writeFieldEnd();
20856
      }
20857
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
20858
      oprot.writeI64(this.warehouseId);
20859
      oprot.writeFieldEnd();
20860
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
20861
      oprot.writeDouble(this.unitPrice);
20862
      oprot.writeFieldEnd();
20863
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
20864
      oprot.writeI64(this.orderId);
20865
      oprot.writeFieldEnd();
20866
      oprot.writeFieldStop();
20867
      oprot.writeStructEnd();
20868
    }
20869
 
20870
    @Override
20871
    public String toString() {
20872
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_args(");
20873
      boolean first = true;
20874
 
20875
      sb.append("itemId:");
20876
      sb.append(this.itemId);
20877
      first = false;
20878
      if (!first) sb.append(", ");
20879
      sb.append("serialNumber:");
20880
      if (this.serialNumber == null) {
20881
        sb.append("null");
20882
      } else {
20883
        sb.append(this.serialNumber);
20884
      }
20885
      first = false;
20886
      if (!first) sb.append(", ");
20887
      sb.append("itemNumber:");
20888
      if (this.itemNumber == null) {
20889
        sb.append("null");
20890
      } else {
20891
        sb.append(this.itemNumber);
20892
      }
20893
      first = false;
20894
      if (!first) sb.append(", ");
20895
      sb.append("invoiceNumber:");
20896
      if (this.invoiceNumber == null) {
20897
        sb.append("null");
20898
      } else {
20899
        sb.append(this.invoiceNumber);
20900
      }
20901
      first = false;
20902
      if (!first) sb.append(", ");
20903
      sb.append("warehouseId:");
20904
      sb.append(this.warehouseId);
20905
      first = false;
20906
      if (!first) sb.append(", ");
20907
      sb.append("unitPrice:");
20908
      sb.append(this.unitPrice);
20909
      first = false;
20910
      if (!first) sb.append(", ");
20911
      sb.append("orderId:");
20912
      sb.append(this.orderId);
20913
      first = false;
20914
      sb.append(")");
20915
      return sb.toString();
20916
    }
20917
 
20918
    public void validate() throws org.apache.thrift.TException {
20919
      // check for required fields
20920
    }
20921
 
20922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20923
      try {
20924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20925
      } catch (org.apache.thrift.TException te) {
20926
        throw new java.io.IOException(te);
20927
      }
20928
    }
20929
 
20930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20931
      try {
20932
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20933
        __isset_bit_vector = new BitSet(1);
20934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20935
      } catch (org.apache.thrift.TException te) {
20936
        throw new java.io.IOException(te);
20937
      }
20938
    }
20939
 
20940
  }
20941
 
20942
  public static class scanForOursExternalSale_result implements org.apache.thrift.TBase<scanForOursExternalSale_result, scanForOursExternalSale_result._Fields>, java.io.Serializable, Cloneable   {
20943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_result");
20944
 
20945
    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);
20946
    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);
20947
 
20948
    private InventoryItem success; // required
20949
    private WarehouseServiceException ex; // required
20950
 
20951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20953
      SUCCESS((short)0, "success"),
20954
      EX((short)1, "ex");
20955
 
20956
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20957
 
20958
      static {
20959
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20960
          byName.put(field.getFieldName(), field);
20961
        }
20962
      }
20963
 
20964
      /**
20965
       * Find the _Fields constant that matches fieldId, or null if its not found.
20966
       */
20967
      public static _Fields findByThriftId(int fieldId) {
20968
        switch(fieldId) {
20969
          case 0: // SUCCESS
20970
            return SUCCESS;
20971
          case 1: // EX
20972
            return EX;
20973
          default:
20974
            return null;
20975
        }
20976
      }
20977
 
20978
      /**
20979
       * Find the _Fields constant that matches fieldId, throwing an exception
20980
       * if it is not found.
20981
       */
20982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20983
        _Fields fields = findByThriftId(fieldId);
20984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20985
        return fields;
20986
      }
20987
 
20988
      /**
20989
       * Find the _Fields constant that matches name, or null if its not found.
20990
       */
20991
      public static _Fields findByName(String name) {
20992
        return byName.get(name);
20993
      }
20994
 
20995
      private final short _thriftId;
20996
      private final String _fieldName;
20997
 
20998
      _Fields(short thriftId, String fieldName) {
20999
        _thriftId = thriftId;
21000
        _fieldName = fieldName;
21001
      }
21002
 
21003
      public short getThriftFieldId() {
21004
        return _thriftId;
21005
      }
21006
 
21007
      public String getFieldName() {
21008
        return _fieldName;
21009
      }
21010
    }
21011
 
21012
    // isset id assignments
21013
 
21014
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21015
    static {
21016
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21017
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21018
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
21019
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21020
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21021
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21022
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_result.class, metaDataMap);
21023
    }
21024
 
21025
    public scanForOursExternalSale_result() {
21026
    }
21027
 
21028
    public scanForOursExternalSale_result(
21029
      InventoryItem success,
21030
      WarehouseServiceException ex)
21031
    {
21032
      this();
21033
      this.success = success;
21034
      this.ex = ex;
21035
    }
21036
 
21037
    /**
21038
     * Performs a deep copy on <i>other</i>.
21039
     */
21040
    public scanForOursExternalSale_result(scanForOursExternalSale_result other) {
21041
      if (other.isSetSuccess()) {
21042
        this.success = new InventoryItem(other.success);
21043
      }
21044
      if (other.isSetEx()) {
21045
        this.ex = new WarehouseServiceException(other.ex);
21046
      }
21047
    }
21048
 
21049
    public scanForOursExternalSale_result deepCopy() {
21050
      return new scanForOursExternalSale_result(this);
21051
    }
21052
 
21053
    @Override
21054
    public void clear() {
21055
      this.success = null;
21056
      this.ex = null;
21057
    }
21058
 
21059
    public InventoryItem getSuccess() {
21060
      return this.success;
21061
    }
21062
 
21063
    public void setSuccess(InventoryItem success) {
21064
      this.success = success;
21065
    }
21066
 
21067
    public void unsetSuccess() {
21068
      this.success = null;
21069
    }
21070
 
21071
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21072
    public boolean isSetSuccess() {
21073
      return this.success != null;
21074
    }
21075
 
21076
    public void setSuccessIsSet(boolean value) {
21077
      if (!value) {
21078
        this.success = null;
21079
      }
21080
    }
21081
 
21082
    public WarehouseServiceException getEx() {
21083
      return this.ex;
21084
    }
21085
 
21086
    public void setEx(WarehouseServiceException ex) {
21087
      this.ex = ex;
21088
    }
21089
 
21090
    public void unsetEx() {
21091
      this.ex = null;
21092
    }
21093
 
21094
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
21095
    public boolean isSetEx() {
21096
      return this.ex != null;
21097
    }
21098
 
21099
    public void setExIsSet(boolean value) {
21100
      if (!value) {
21101
        this.ex = null;
21102
      }
21103
    }
21104
 
21105
    public void setFieldValue(_Fields field, Object value) {
21106
      switch (field) {
21107
      case SUCCESS:
21108
        if (value == null) {
21109
          unsetSuccess();
21110
        } else {
21111
          setSuccess((InventoryItem)value);
21112
        }
21113
        break;
21114
 
21115
      case EX:
21116
        if (value == null) {
21117
          unsetEx();
21118
        } else {
21119
          setEx((WarehouseServiceException)value);
21120
        }
21121
        break;
21122
 
21123
      }
21124
    }
21125
 
21126
    public Object getFieldValue(_Fields field) {
21127
      switch (field) {
21128
      case SUCCESS:
21129
        return getSuccess();
21130
 
21131
      case EX:
21132
        return getEx();
21133
 
21134
      }
21135
      throw new IllegalStateException();
21136
    }
21137
 
21138
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21139
    public boolean isSet(_Fields field) {
21140
      if (field == null) {
21141
        throw new IllegalArgumentException();
21142
      }
21143
 
21144
      switch (field) {
21145
      case SUCCESS:
21146
        return isSetSuccess();
21147
      case EX:
21148
        return isSetEx();
21149
      }
21150
      throw new IllegalStateException();
21151
    }
21152
 
21153
    @Override
21154
    public boolean equals(Object that) {
21155
      if (that == null)
21156
        return false;
21157
      if (that instanceof scanForOursExternalSale_result)
21158
        return this.equals((scanForOursExternalSale_result)that);
21159
      return false;
21160
    }
21161
 
21162
    public boolean equals(scanForOursExternalSale_result that) {
21163
      if (that == null)
21164
        return false;
21165
 
21166
      boolean this_present_success = true && this.isSetSuccess();
21167
      boolean that_present_success = true && that.isSetSuccess();
21168
      if (this_present_success || that_present_success) {
21169
        if (!(this_present_success && that_present_success))
21170
          return false;
21171
        if (!this.success.equals(that.success))
21172
          return false;
21173
      }
21174
 
21175
      boolean this_present_ex = true && this.isSetEx();
21176
      boolean that_present_ex = true && that.isSetEx();
21177
      if (this_present_ex || that_present_ex) {
21178
        if (!(this_present_ex && that_present_ex))
21179
          return false;
21180
        if (!this.ex.equals(that.ex))
21181
          return false;
21182
      }
21183
 
21184
      return true;
21185
    }
21186
 
21187
    @Override
21188
    public int hashCode() {
21189
      return 0;
21190
    }
21191
 
21192
    public int compareTo(scanForOursExternalSale_result other) {
21193
      if (!getClass().equals(other.getClass())) {
21194
        return getClass().getName().compareTo(other.getClass().getName());
21195
      }
21196
 
21197
      int lastComparison = 0;
21198
      scanForOursExternalSale_result typedOther = (scanForOursExternalSale_result)other;
21199
 
21200
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21201
      if (lastComparison != 0) {
21202
        return lastComparison;
21203
      }
21204
      if (isSetSuccess()) {
21205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21206
        if (lastComparison != 0) {
21207
          return lastComparison;
21208
        }
21209
      }
21210
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
21211
      if (lastComparison != 0) {
21212
        return lastComparison;
21213
      }
21214
      if (isSetEx()) {
21215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21216
        if (lastComparison != 0) {
21217
          return lastComparison;
21218
        }
21219
      }
21220
      return 0;
21221
    }
21222
 
21223
    public _Fields fieldForId(int fieldId) {
21224
      return _Fields.findByThriftId(fieldId);
21225
    }
21226
 
21227
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21228
      org.apache.thrift.protocol.TField field;
21229
      iprot.readStructBegin();
21230
      while (true)
21231
      {
21232
        field = iprot.readFieldBegin();
21233
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21234
          break;
21235
        }
21236
        switch (field.id) {
21237
          case 0: // SUCCESS
21238
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21239
              this.success = new InventoryItem();
21240
              this.success.read(iprot);
21241
            } else { 
21242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21243
            }
21244
            break;
21245
          case 1: // EX
21246
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21247
              this.ex = new WarehouseServiceException();
21248
              this.ex.read(iprot);
21249
            } else { 
21250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21251
            }
21252
            break;
21253
          default:
21254
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21255
        }
21256
        iprot.readFieldEnd();
21257
      }
21258
      iprot.readStructEnd();
21259
      validate();
21260
    }
21261
 
21262
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21263
      oprot.writeStructBegin(STRUCT_DESC);
21264
 
21265
      if (this.isSetSuccess()) {
21266
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21267
        this.success.write(oprot);
21268
        oprot.writeFieldEnd();
21269
      } else if (this.isSetEx()) {
21270
        oprot.writeFieldBegin(EX_FIELD_DESC);
21271
        this.ex.write(oprot);
21272
        oprot.writeFieldEnd();
21273
      }
21274
      oprot.writeFieldStop();
21275
      oprot.writeStructEnd();
21276
    }
21277
 
21278
    @Override
21279
    public String toString() {
21280
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_result(");
21281
      boolean first = true;
21282
 
21283
      sb.append("success:");
21284
      if (this.success == null) {
21285
        sb.append("null");
21286
      } else {
21287
        sb.append(this.success);
21288
      }
21289
      first = false;
21290
      if (!first) sb.append(", ");
21291
      sb.append("ex:");
21292
      if (this.ex == null) {
21293
        sb.append("null");
21294
      } else {
21295
        sb.append(this.ex);
21296
      }
21297
      first = false;
21298
      sb.append(")");
21299
      return sb.toString();
21300
    }
21301
 
21302
    public void validate() throws org.apache.thrift.TException {
21303
      // check for required fields
21304
    }
21305
 
21306
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21307
      try {
21308
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21309
      } catch (org.apache.thrift.TException te) {
21310
        throw new java.io.IOException(te);
21311
      }
21312
    }
21313
 
21314
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21315
      try {
21316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21317
      } catch (org.apache.thrift.TException te) {
21318
        throw new java.io.IOException(te);
21319
      }
21320
    }
21321
 
21322
  }
21323
 
21324
  public static class scanForOursExternalSaleReturn_args implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_args, scanForOursExternalSaleReturn_args._Fields>, java.io.Serializable, Cloneable   {
21325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_args");
21326
 
21327
    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);
21328
    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);
21329
 
21330
    private long orderId; // required
21331
    private double unitPrice; // required
21332
 
21333
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21334
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21335
      ORDER_ID((short)1, "orderId"),
21336
      UNIT_PRICE((short)2, "unitPrice");
21337
 
21338
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21339
 
21340
      static {
21341
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21342
          byName.put(field.getFieldName(), field);
21343
        }
21344
      }
21345
 
21346
      /**
21347
       * Find the _Fields constant that matches fieldId, or null if its not found.
21348
       */
21349
      public static _Fields findByThriftId(int fieldId) {
21350
        switch(fieldId) {
21351
          case 1: // ORDER_ID
21352
            return ORDER_ID;
21353
          case 2: // UNIT_PRICE
21354
            return UNIT_PRICE;
21355
          default:
21356
            return null;
21357
        }
21358
      }
21359
 
21360
      /**
21361
       * Find the _Fields constant that matches fieldId, throwing an exception
21362
       * if it is not found.
21363
       */
21364
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21365
        _Fields fields = findByThriftId(fieldId);
21366
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21367
        return fields;
21368
      }
21369
 
21370
      /**
21371
       * Find the _Fields constant that matches name, or null if its not found.
21372
       */
21373
      public static _Fields findByName(String name) {
21374
        return byName.get(name);
21375
      }
21376
 
21377
      private final short _thriftId;
21378
      private final String _fieldName;
21379
 
21380
      _Fields(short thriftId, String fieldName) {
21381
        _thriftId = thriftId;
21382
        _fieldName = fieldName;
21383
      }
21384
 
21385
      public short getThriftFieldId() {
21386
        return _thriftId;
21387
      }
21388
 
21389
      public String getFieldName() {
21390
        return _fieldName;
21391
      }
21392
    }
21393
 
21394
    // isset id assignments
21395
    private static final int __ORDERID_ISSET_ID = 0;
21396
    private static final int __UNITPRICE_ISSET_ID = 1;
21397
    private BitSet __isset_bit_vector = new BitSet(2);
21398
 
21399
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21400
    static {
21401
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21402
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21403
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21404
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21405
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_args.class, metaDataMap);
21408
    }
21409
 
21410
    public scanForOursExternalSaleReturn_args() {
21411
    }
21412
 
21413
    public scanForOursExternalSaleReturn_args(
21414
      long orderId,
21415
      double unitPrice)
21416
    {
21417
      this();
21418
      this.orderId = orderId;
21419
      setOrderIdIsSet(true);
21420
      this.unitPrice = unitPrice;
21421
      setUnitPriceIsSet(true);
21422
    }
21423
 
21424
    /**
21425
     * Performs a deep copy on <i>other</i>.
21426
     */
21427
    public scanForOursExternalSaleReturn_args(scanForOursExternalSaleReturn_args other) {
21428
      __isset_bit_vector.clear();
21429
      __isset_bit_vector.or(other.__isset_bit_vector);
21430
      this.orderId = other.orderId;
21431
      this.unitPrice = other.unitPrice;
21432
    }
21433
 
21434
    public scanForOursExternalSaleReturn_args deepCopy() {
21435
      return new scanForOursExternalSaleReturn_args(this);
21436
    }
21437
 
21438
    @Override
21439
    public void clear() {
21440
      setOrderIdIsSet(false);
21441
      this.orderId = 0;
21442
      setUnitPriceIsSet(false);
21443
      this.unitPrice = 0.0;
21444
    }
21445
 
21446
    public long getOrderId() {
21447
      return this.orderId;
21448
    }
21449
 
21450
    public void setOrderId(long orderId) {
21451
      this.orderId = orderId;
21452
      setOrderIdIsSet(true);
21453
    }
21454
 
21455
    public void unsetOrderId() {
21456
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
21457
    }
21458
 
21459
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
21460
    public boolean isSetOrderId() {
21461
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
21462
    }
21463
 
21464
    public void setOrderIdIsSet(boolean value) {
21465
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
21466
    }
21467
 
21468
    public double getUnitPrice() {
21469
      return this.unitPrice;
21470
    }
21471
 
21472
    public void setUnitPrice(double unitPrice) {
21473
      this.unitPrice = unitPrice;
21474
      setUnitPriceIsSet(true);
21475
    }
21476
 
21477
    public void unsetUnitPrice() {
21478
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
21479
    }
21480
 
21481
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
21482
    public boolean isSetUnitPrice() {
21483
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
21484
    }
21485
 
21486
    public void setUnitPriceIsSet(boolean value) {
21487
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
21488
    }
21489
 
21490
    public void setFieldValue(_Fields field, Object value) {
21491
      switch (field) {
21492
      case ORDER_ID:
21493
        if (value == null) {
21494
          unsetOrderId();
21495
        } else {
21496
          setOrderId((Long)value);
21497
        }
21498
        break;
21499
 
21500
      case UNIT_PRICE:
21501
        if (value == null) {
21502
          unsetUnitPrice();
21503
        } else {
21504
          setUnitPrice((Double)value);
21505
        }
21506
        break;
21507
 
21508
      }
21509
    }
21510
 
21511
    public Object getFieldValue(_Fields field) {
21512
      switch (field) {
21513
      case ORDER_ID:
21514
        return Long.valueOf(getOrderId());
21515
 
21516
      case UNIT_PRICE:
21517
        return Double.valueOf(getUnitPrice());
21518
 
21519
      }
21520
      throw new IllegalStateException();
21521
    }
21522
 
21523
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21524
    public boolean isSet(_Fields field) {
21525
      if (field == null) {
21526
        throw new IllegalArgumentException();
21527
      }
21528
 
21529
      switch (field) {
21530
      case ORDER_ID:
21531
        return isSetOrderId();
21532
      case UNIT_PRICE:
21533
        return isSetUnitPrice();
21534
      }
21535
      throw new IllegalStateException();
21536
    }
21537
 
21538
    @Override
21539
    public boolean equals(Object that) {
21540
      if (that == null)
21541
        return false;
21542
      if (that instanceof scanForOursExternalSaleReturn_args)
21543
        return this.equals((scanForOursExternalSaleReturn_args)that);
21544
      return false;
21545
    }
21546
 
21547
    public boolean equals(scanForOursExternalSaleReturn_args that) {
21548
      if (that == null)
21549
        return false;
21550
 
21551
      boolean this_present_orderId = true;
21552
      boolean that_present_orderId = true;
21553
      if (this_present_orderId || that_present_orderId) {
21554
        if (!(this_present_orderId && that_present_orderId))
21555
          return false;
21556
        if (this.orderId != that.orderId)
21557
          return false;
21558
      }
21559
 
21560
      boolean this_present_unitPrice = true;
21561
      boolean that_present_unitPrice = true;
21562
      if (this_present_unitPrice || that_present_unitPrice) {
21563
        if (!(this_present_unitPrice && that_present_unitPrice))
21564
          return false;
21565
        if (this.unitPrice != that.unitPrice)
21566
          return false;
21567
      }
21568
 
21569
      return true;
21570
    }
21571
 
21572
    @Override
21573
    public int hashCode() {
21574
      return 0;
21575
    }
21576
 
21577
    public int compareTo(scanForOursExternalSaleReturn_args other) {
21578
      if (!getClass().equals(other.getClass())) {
21579
        return getClass().getName().compareTo(other.getClass().getName());
21580
      }
21581
 
21582
      int lastComparison = 0;
21583
      scanForOursExternalSaleReturn_args typedOther = (scanForOursExternalSaleReturn_args)other;
21584
 
21585
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
21586
      if (lastComparison != 0) {
21587
        return lastComparison;
21588
      }
21589
      if (isSetOrderId()) {
21590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21591
        if (lastComparison != 0) {
21592
          return lastComparison;
21593
        }
21594
      }
21595
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
21596
      if (lastComparison != 0) {
21597
        return lastComparison;
21598
      }
21599
      if (isSetUnitPrice()) {
21600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
21601
        if (lastComparison != 0) {
21602
          return lastComparison;
21603
        }
21604
      }
21605
      return 0;
21606
    }
21607
 
21608
    public _Fields fieldForId(int fieldId) {
21609
      return _Fields.findByThriftId(fieldId);
21610
    }
21611
 
21612
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21613
      org.apache.thrift.protocol.TField field;
21614
      iprot.readStructBegin();
21615
      while (true)
21616
      {
21617
        field = iprot.readFieldBegin();
21618
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21619
          break;
21620
        }
21621
        switch (field.id) {
21622
          case 1: // ORDER_ID
21623
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21624
              this.orderId = iprot.readI64();
21625
              setOrderIdIsSet(true);
21626
            } else { 
21627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21628
            }
21629
            break;
21630
          case 2: // UNIT_PRICE
21631
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21632
              this.unitPrice = iprot.readDouble();
21633
              setUnitPriceIsSet(true);
21634
            } else { 
21635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21636
            }
21637
            break;
21638
          default:
21639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21640
        }
21641
        iprot.readFieldEnd();
21642
      }
21643
      iprot.readStructEnd();
21644
      validate();
21645
    }
21646
 
21647
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21648
      validate();
21649
 
21650
      oprot.writeStructBegin(STRUCT_DESC);
21651
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21652
      oprot.writeI64(this.orderId);
21653
      oprot.writeFieldEnd();
21654
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
21655
      oprot.writeDouble(this.unitPrice);
21656
      oprot.writeFieldEnd();
21657
      oprot.writeFieldStop();
21658
      oprot.writeStructEnd();
21659
    }
21660
 
21661
    @Override
21662
    public String toString() {
21663
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_args(");
21664
      boolean first = true;
21665
 
21666
      sb.append("orderId:");
21667
      sb.append(this.orderId);
21668
      first = false;
21669
      if (!first) sb.append(", ");
21670
      sb.append("unitPrice:");
21671
      sb.append(this.unitPrice);
21672
      first = false;
21673
      sb.append(")");
21674
      return sb.toString();
21675
    }
21676
 
21677
    public void validate() throws org.apache.thrift.TException {
21678
      // check for required fields
21679
    }
21680
 
21681
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21682
      try {
21683
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21684
      } catch (org.apache.thrift.TException te) {
21685
        throw new java.io.IOException(te);
21686
      }
21687
    }
21688
 
21689
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21690
      try {
21691
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21692
      } catch (org.apache.thrift.TException te) {
21693
        throw new java.io.IOException(te);
21694
      }
21695
    }
21696
 
21697
  }
21698
 
21699
  public static class scanForOursExternalSaleReturn_result implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_result, scanForOursExternalSaleReturn_result._Fields>, java.io.Serializable, Cloneable   {
21700
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_result");
21701
 
7410 amar.kumar 21702
    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 21703
 
7410 amar.kumar 21704
    private WarehouseServiceException ex; // required
6762 amar.kumar 21705
 
21706
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21707
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7410 amar.kumar 21708
      EX((short)1, "ex");
6762 amar.kumar 21709
 
21710
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21711
 
21712
      static {
21713
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21714
          byName.put(field.getFieldName(), field);
21715
        }
21716
      }
21717
 
21718
      /**
21719
       * Find the _Fields constant that matches fieldId, or null if its not found.
21720
       */
21721
      public static _Fields findByThriftId(int fieldId) {
21722
        switch(fieldId) {
7410 amar.kumar 21723
          case 1: // EX
21724
            return EX;
6762 amar.kumar 21725
          default:
21726
            return null;
21727
        }
21728
      }
21729
 
21730
      /**
21731
       * Find the _Fields constant that matches fieldId, throwing an exception
21732
       * if it is not found.
21733
       */
21734
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21735
        _Fields fields = findByThriftId(fieldId);
21736
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21737
        return fields;
21738
      }
21739
 
21740
      /**
21741
       * Find the _Fields constant that matches name, or null if its not found.
21742
       */
21743
      public static _Fields findByName(String name) {
21744
        return byName.get(name);
21745
      }
21746
 
21747
      private final short _thriftId;
21748
      private final String _fieldName;
21749
 
21750
      _Fields(short thriftId, String fieldName) {
21751
        _thriftId = thriftId;
21752
        _fieldName = fieldName;
21753
      }
21754
 
21755
      public short getThriftFieldId() {
21756
        return _thriftId;
21757
      }
21758
 
21759
      public String getFieldName() {
21760
        return _fieldName;
21761
      }
21762
    }
7410 amar.kumar 21763
 
21764
    // isset id assignments
21765
 
6762 amar.kumar 21766
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21767
    static {
21768
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7410 amar.kumar 21769
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21770
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6762 amar.kumar 21771
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21772
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_result.class, metaDataMap);
21773
    }
21774
 
21775
    public scanForOursExternalSaleReturn_result() {
21776
    }
21777
 
7410 amar.kumar 21778
    public scanForOursExternalSaleReturn_result(
21779
      WarehouseServiceException ex)
21780
    {
21781
      this();
21782
      this.ex = ex;
21783
    }
21784
 
6762 amar.kumar 21785
    /**
21786
     * Performs a deep copy on <i>other</i>.
21787
     */
21788
    public scanForOursExternalSaleReturn_result(scanForOursExternalSaleReturn_result other) {
7410 amar.kumar 21789
      if (other.isSetEx()) {
21790
        this.ex = new WarehouseServiceException(other.ex);
21791
      }
6762 amar.kumar 21792
    }
21793
 
21794
    public scanForOursExternalSaleReturn_result deepCopy() {
21795
      return new scanForOursExternalSaleReturn_result(this);
21796
    }
21797
 
21798
    @Override
21799
    public void clear() {
7410 amar.kumar 21800
      this.ex = null;
6762 amar.kumar 21801
    }
21802
 
7410 amar.kumar 21803
    public WarehouseServiceException getEx() {
21804
      return this.ex;
21805
    }
21806
 
21807
    public void setEx(WarehouseServiceException ex) {
21808
      this.ex = ex;
21809
    }
21810
 
21811
    public void unsetEx() {
21812
      this.ex = null;
21813
    }
21814
 
21815
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
21816
    public boolean isSetEx() {
21817
      return this.ex != null;
21818
    }
21819
 
21820
    public void setExIsSet(boolean value) {
21821
      if (!value) {
21822
        this.ex = null;
21823
      }
21824
    }
21825
 
6762 amar.kumar 21826
    public void setFieldValue(_Fields field, Object value) {
21827
      switch (field) {
7410 amar.kumar 21828
      case EX:
21829
        if (value == null) {
21830
          unsetEx();
21831
        } else {
21832
          setEx((WarehouseServiceException)value);
21833
        }
21834
        break;
21835
 
6762 amar.kumar 21836
      }
21837
    }
21838
 
21839
    public Object getFieldValue(_Fields field) {
21840
      switch (field) {
7410 amar.kumar 21841
      case EX:
21842
        return getEx();
21843
 
6762 amar.kumar 21844
      }
21845
      throw new IllegalStateException();
21846
    }
21847
 
21848
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21849
    public boolean isSet(_Fields field) {
21850
      if (field == null) {
21851
        throw new IllegalArgumentException();
21852
      }
21853
 
21854
      switch (field) {
7410 amar.kumar 21855
      case EX:
21856
        return isSetEx();
6762 amar.kumar 21857
      }
21858
      throw new IllegalStateException();
21859
    }
21860
 
21861
    @Override
21862
    public boolean equals(Object that) {
21863
      if (that == null)
21864
        return false;
21865
      if (that instanceof scanForOursExternalSaleReturn_result)
21866
        return this.equals((scanForOursExternalSaleReturn_result)that);
21867
      return false;
21868
    }
21869
 
21870
    public boolean equals(scanForOursExternalSaleReturn_result that) {
21871
      if (that == null)
21872
        return false;
21873
 
7410 amar.kumar 21874
      boolean this_present_ex = true && this.isSetEx();
21875
      boolean that_present_ex = true && that.isSetEx();
21876
      if (this_present_ex || that_present_ex) {
21877
        if (!(this_present_ex && that_present_ex))
21878
          return false;
21879
        if (!this.ex.equals(that.ex))
21880
          return false;
21881
      }
21882
 
6762 amar.kumar 21883
      return true;
21884
    }
21885
 
21886
    @Override
21887
    public int hashCode() {
21888
      return 0;
21889
    }
21890
 
21891
    public int compareTo(scanForOursExternalSaleReturn_result other) {
21892
      if (!getClass().equals(other.getClass())) {
21893
        return getClass().getName().compareTo(other.getClass().getName());
21894
      }
21895
 
21896
      int lastComparison = 0;
21897
      scanForOursExternalSaleReturn_result typedOther = (scanForOursExternalSaleReturn_result)other;
21898
 
7410 amar.kumar 21899
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
21900
      if (lastComparison != 0) {
21901
        return lastComparison;
21902
      }
21903
      if (isSetEx()) {
21904
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21905
        if (lastComparison != 0) {
21906
          return lastComparison;
21907
        }
21908
      }
6762 amar.kumar 21909
      return 0;
21910
    }
21911
 
21912
    public _Fields fieldForId(int fieldId) {
21913
      return _Fields.findByThriftId(fieldId);
21914
    }
21915
 
21916
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21917
      org.apache.thrift.protocol.TField field;
21918
      iprot.readStructBegin();
21919
      while (true)
21920
      {
21921
        field = iprot.readFieldBegin();
21922
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21923
          break;
21924
        }
21925
        switch (field.id) {
7410 amar.kumar 21926
          case 1: // EX
21927
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21928
              this.ex = new WarehouseServiceException();
21929
              this.ex.read(iprot);
21930
            } else { 
21931
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21932
            }
21933
            break;
6762 amar.kumar 21934
          default:
21935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21936
        }
21937
        iprot.readFieldEnd();
21938
      }
21939
      iprot.readStructEnd();
21940
      validate();
21941
    }
21942
 
21943
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21944
      oprot.writeStructBegin(STRUCT_DESC);
21945
 
7410 amar.kumar 21946
      if (this.isSetEx()) {
21947
        oprot.writeFieldBegin(EX_FIELD_DESC);
21948
        this.ex.write(oprot);
21949
        oprot.writeFieldEnd();
21950
      }
6762 amar.kumar 21951
      oprot.writeFieldStop();
21952
      oprot.writeStructEnd();
21953
    }
21954
 
21955
    @Override
21956
    public String toString() {
21957
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_result(");
21958
      boolean first = true;
21959
 
7410 amar.kumar 21960
      sb.append("ex:");
21961
      if (this.ex == null) {
21962
        sb.append("null");
21963
      } else {
21964
        sb.append(this.ex);
21965
      }
21966
      first = false;
6762 amar.kumar 21967
      sb.append(")");
21968
      return sb.toString();
21969
    }
21970
 
21971
    public void validate() throws org.apache.thrift.TException {
21972
      // check for required fields
21973
    }
21974
 
21975
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21976
      try {
21977
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21978
      } catch (org.apache.thrift.TException te) {
21979
        throw new java.io.IOException(te);
21980
      }
21981
    }
21982
 
21983
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21984
      try {
21985
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21986
      } catch (org.apache.thrift.TException te) {
21987
        throw new java.io.IOException(te);
21988
      }
21989
    }
21990
 
21991
  }
21992
 
6880 amar.kumar 21993
  public static class getMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_args, getMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
21994
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_args");
21995
 
21996
    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);
21997
    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);
21998
 
21999
    private long startDate; // required
22000
    private long endDate; // required
22001
 
22002
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22003
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22004
      START_DATE((short)1, "startDate"),
22005
      END_DATE((short)2, "endDate");
22006
 
22007
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22008
 
22009
      static {
22010
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22011
          byName.put(field.getFieldName(), field);
22012
        }
22013
      }
22014
 
22015
      /**
22016
       * Find the _Fields constant that matches fieldId, or null if its not found.
22017
       */
22018
      public static _Fields findByThriftId(int fieldId) {
22019
        switch(fieldId) {
22020
          case 1: // START_DATE
22021
            return START_DATE;
22022
          case 2: // END_DATE
22023
            return END_DATE;
22024
          default:
22025
            return null;
22026
        }
22027
      }
22028
 
22029
      /**
22030
       * Find the _Fields constant that matches fieldId, throwing an exception
22031
       * if it is not found.
22032
       */
22033
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22034
        _Fields fields = findByThriftId(fieldId);
22035
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22036
        return fields;
22037
      }
22038
 
22039
      /**
22040
       * Find the _Fields constant that matches name, or null if its not found.
22041
       */
22042
      public static _Fields findByName(String name) {
22043
        return byName.get(name);
22044
      }
22045
 
22046
      private final short _thriftId;
22047
      private final String _fieldName;
22048
 
22049
      _Fields(short thriftId, String fieldName) {
22050
        _thriftId = thriftId;
22051
        _fieldName = fieldName;
22052
      }
22053
 
22054
      public short getThriftFieldId() {
22055
        return _thriftId;
22056
      }
22057
 
22058
      public String getFieldName() {
22059
        return _fieldName;
22060
      }
22061
    }
22062
 
22063
    // isset id assignments
22064
    private static final int __STARTDATE_ISSET_ID = 0;
22065
    private static final int __ENDDATE_ISSET_ID = 1;
22066
    private BitSet __isset_bit_vector = new BitSet(2);
22067
 
22068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22069
    static {
22070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22071
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22073
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_args.class, metaDataMap);
22077
    }
22078
 
22079
    public getMovementNonSerializedInventoryByScans_args() {
22080
    }
22081
 
22082
    public getMovementNonSerializedInventoryByScans_args(
22083
      long startDate,
22084
      long endDate)
22085
    {
22086
      this();
22087
      this.startDate = startDate;
22088
      setStartDateIsSet(true);
22089
      this.endDate = endDate;
22090
      setEndDateIsSet(true);
22091
    }
22092
 
22093
    /**
22094
     * Performs a deep copy on <i>other</i>.
22095
     */
22096
    public getMovementNonSerializedInventoryByScans_args(getMovementNonSerializedInventoryByScans_args other) {
22097
      __isset_bit_vector.clear();
22098
      __isset_bit_vector.or(other.__isset_bit_vector);
22099
      this.startDate = other.startDate;
22100
      this.endDate = other.endDate;
22101
    }
22102
 
22103
    public getMovementNonSerializedInventoryByScans_args deepCopy() {
22104
      return new getMovementNonSerializedInventoryByScans_args(this);
22105
    }
22106
 
22107
    @Override
22108
    public void clear() {
22109
      setStartDateIsSet(false);
22110
      this.startDate = 0;
22111
      setEndDateIsSet(false);
22112
      this.endDate = 0;
22113
    }
22114
 
22115
    public long getStartDate() {
22116
      return this.startDate;
22117
    }
22118
 
22119
    public void setStartDate(long startDate) {
22120
      this.startDate = startDate;
22121
      setStartDateIsSet(true);
22122
    }
22123
 
22124
    public void unsetStartDate() {
22125
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
22126
    }
22127
 
22128
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
22129
    public boolean isSetStartDate() {
22130
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
22131
    }
22132
 
22133
    public void setStartDateIsSet(boolean value) {
22134
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
22135
    }
22136
 
22137
    public long getEndDate() {
22138
      return this.endDate;
22139
    }
22140
 
22141
    public void setEndDate(long endDate) {
22142
      this.endDate = endDate;
22143
      setEndDateIsSet(true);
22144
    }
22145
 
22146
    public void unsetEndDate() {
22147
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
22148
    }
22149
 
22150
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
22151
    public boolean isSetEndDate() {
22152
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
22153
    }
22154
 
22155
    public void setEndDateIsSet(boolean value) {
22156
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
22157
    }
22158
 
22159
    public void setFieldValue(_Fields field, Object value) {
22160
      switch (field) {
22161
      case START_DATE:
22162
        if (value == null) {
22163
          unsetStartDate();
22164
        } else {
22165
          setStartDate((Long)value);
22166
        }
22167
        break;
22168
 
22169
      case END_DATE:
22170
        if (value == null) {
22171
          unsetEndDate();
22172
        } else {
22173
          setEndDate((Long)value);
22174
        }
22175
        break;
22176
 
22177
      }
22178
    }
22179
 
22180
    public Object getFieldValue(_Fields field) {
22181
      switch (field) {
22182
      case START_DATE:
22183
        return Long.valueOf(getStartDate());
22184
 
22185
      case END_DATE:
22186
        return Long.valueOf(getEndDate());
22187
 
22188
      }
22189
      throw new IllegalStateException();
22190
    }
22191
 
22192
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22193
    public boolean isSet(_Fields field) {
22194
      if (field == null) {
22195
        throw new IllegalArgumentException();
22196
      }
22197
 
22198
      switch (field) {
22199
      case START_DATE:
22200
        return isSetStartDate();
22201
      case END_DATE:
22202
        return isSetEndDate();
22203
      }
22204
      throw new IllegalStateException();
22205
    }
22206
 
22207
    @Override
22208
    public boolean equals(Object that) {
22209
      if (that == null)
22210
        return false;
22211
      if (that instanceof getMovementNonSerializedInventoryByScans_args)
22212
        return this.equals((getMovementNonSerializedInventoryByScans_args)that);
22213
      return false;
22214
    }
22215
 
22216
    public boolean equals(getMovementNonSerializedInventoryByScans_args that) {
22217
      if (that == null)
22218
        return false;
22219
 
22220
      boolean this_present_startDate = true;
22221
      boolean that_present_startDate = true;
22222
      if (this_present_startDate || that_present_startDate) {
22223
        if (!(this_present_startDate && that_present_startDate))
22224
          return false;
22225
        if (this.startDate != that.startDate)
22226
          return false;
22227
      }
22228
 
22229
      boolean this_present_endDate = true;
22230
      boolean that_present_endDate = true;
22231
      if (this_present_endDate || that_present_endDate) {
22232
        if (!(this_present_endDate && that_present_endDate))
22233
          return false;
22234
        if (this.endDate != that.endDate)
22235
          return false;
22236
      }
22237
 
22238
      return true;
22239
    }
22240
 
22241
    @Override
22242
    public int hashCode() {
22243
      return 0;
22244
    }
22245
 
22246
    public int compareTo(getMovementNonSerializedInventoryByScans_args other) {
22247
      if (!getClass().equals(other.getClass())) {
22248
        return getClass().getName().compareTo(other.getClass().getName());
22249
      }
22250
 
22251
      int lastComparison = 0;
22252
      getMovementNonSerializedInventoryByScans_args typedOther = (getMovementNonSerializedInventoryByScans_args)other;
22253
 
22254
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
22255
      if (lastComparison != 0) {
22256
        return lastComparison;
22257
      }
22258
      if (isSetStartDate()) {
22259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
22260
        if (lastComparison != 0) {
22261
          return lastComparison;
22262
        }
22263
      }
22264
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
22265
      if (lastComparison != 0) {
22266
        return lastComparison;
22267
      }
22268
      if (isSetEndDate()) {
22269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
22270
        if (lastComparison != 0) {
22271
          return lastComparison;
22272
        }
22273
      }
22274
      return 0;
22275
    }
22276
 
22277
    public _Fields fieldForId(int fieldId) {
22278
      return _Fields.findByThriftId(fieldId);
22279
    }
22280
 
22281
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22282
      org.apache.thrift.protocol.TField field;
22283
      iprot.readStructBegin();
22284
      while (true)
22285
      {
22286
        field = iprot.readFieldBegin();
22287
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22288
          break;
22289
        }
22290
        switch (field.id) {
22291
          case 1: // START_DATE
22292
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22293
              this.startDate = iprot.readI64();
22294
              setStartDateIsSet(true);
22295
            } else { 
22296
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22297
            }
22298
            break;
22299
          case 2: // END_DATE
22300
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22301
              this.endDate = iprot.readI64();
22302
              setEndDateIsSet(true);
22303
            } else { 
22304
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22305
            }
22306
            break;
22307
          default:
22308
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22309
        }
22310
        iprot.readFieldEnd();
22311
      }
22312
      iprot.readStructEnd();
22313
      validate();
22314
    }
22315
 
22316
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22317
      validate();
22318
 
22319
      oprot.writeStructBegin(STRUCT_DESC);
22320
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
22321
      oprot.writeI64(this.startDate);
22322
      oprot.writeFieldEnd();
22323
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
22324
      oprot.writeI64(this.endDate);
22325
      oprot.writeFieldEnd();
22326
      oprot.writeFieldStop();
22327
      oprot.writeStructEnd();
22328
    }
22329
 
22330
    @Override
22331
    public String toString() {
22332
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_args(");
22333
      boolean first = true;
22334
 
22335
      sb.append("startDate:");
22336
      sb.append(this.startDate);
22337
      first = false;
22338
      if (!first) sb.append(", ");
22339
      sb.append("endDate:");
22340
      sb.append(this.endDate);
22341
      first = false;
22342
      sb.append(")");
22343
      return sb.toString();
22344
    }
22345
 
22346
    public void validate() throws org.apache.thrift.TException {
22347
      // check for required fields
22348
    }
22349
 
22350
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22351
      try {
22352
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22353
      } catch (org.apache.thrift.TException te) {
22354
        throw new java.io.IOException(te);
22355
      }
22356
    }
22357
 
22358
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22359
      try {
22360
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22361
        __isset_bit_vector = new BitSet(1);
22362
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22363
      } catch (org.apache.thrift.TException te) {
22364
        throw new java.io.IOException(te);
22365
      }
22366
    }
22367
 
22368
  }
22369
 
22370
  public static class getMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_result, getMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
22371
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_result");
22372
 
22373
    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);
22374
 
22375
    private List<InventoryMovement> success; // required
22376
 
22377
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22378
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22379
      SUCCESS((short)0, "success");
22380
 
22381
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22382
 
22383
      static {
22384
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22385
          byName.put(field.getFieldName(), field);
22386
        }
22387
      }
22388
 
22389
      /**
22390
       * Find the _Fields constant that matches fieldId, or null if its not found.
22391
       */
22392
      public static _Fields findByThriftId(int fieldId) {
22393
        switch(fieldId) {
22394
          case 0: // SUCCESS
22395
            return SUCCESS;
22396
          default:
22397
            return null;
22398
        }
22399
      }
22400
 
22401
      /**
22402
       * Find the _Fields constant that matches fieldId, throwing an exception
22403
       * if it is not found.
22404
       */
22405
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22406
        _Fields fields = findByThriftId(fieldId);
22407
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22408
        return fields;
22409
      }
22410
 
22411
      /**
22412
       * Find the _Fields constant that matches name, or null if its not found.
22413
       */
22414
      public static _Fields findByName(String name) {
22415
        return byName.get(name);
22416
      }
22417
 
22418
      private final short _thriftId;
22419
      private final String _fieldName;
22420
 
22421
      _Fields(short thriftId, String fieldName) {
22422
        _thriftId = thriftId;
22423
        _fieldName = fieldName;
22424
      }
22425
 
22426
      public short getThriftFieldId() {
22427
        return _thriftId;
22428
      }
22429
 
22430
      public String getFieldName() {
22431
        return _fieldName;
22432
      }
22433
    }
22434
 
22435
    // isset id assignments
22436
 
22437
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22438
    static {
22439
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22440
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22441
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22442
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
22443
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22444
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_result.class, metaDataMap);
22445
    }
22446
 
22447
    public getMovementNonSerializedInventoryByScans_result() {
22448
    }
22449
 
22450
    public getMovementNonSerializedInventoryByScans_result(
22451
      List<InventoryMovement> success)
22452
    {
22453
      this();
22454
      this.success = success;
22455
    }
22456
 
22457
    /**
22458
     * Performs a deep copy on <i>other</i>.
22459
     */
22460
    public getMovementNonSerializedInventoryByScans_result(getMovementNonSerializedInventoryByScans_result other) {
22461
      if (other.isSetSuccess()) {
22462
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
22463
        for (InventoryMovement other_element : other.success) {
22464
          __this__success.add(new InventoryMovement(other_element));
22465
        }
22466
        this.success = __this__success;
22467
      }
22468
    }
22469
 
22470
    public getMovementNonSerializedInventoryByScans_result deepCopy() {
22471
      return new getMovementNonSerializedInventoryByScans_result(this);
22472
    }
22473
 
22474
    @Override
22475
    public void clear() {
22476
      this.success = null;
22477
    }
22478
 
22479
    public int getSuccessSize() {
22480
      return (this.success == null) ? 0 : this.success.size();
22481
    }
22482
 
22483
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
22484
      return (this.success == null) ? null : this.success.iterator();
22485
    }
22486
 
22487
    public void addToSuccess(InventoryMovement elem) {
22488
      if (this.success == null) {
22489
        this.success = new ArrayList<InventoryMovement>();
22490
      }
22491
      this.success.add(elem);
22492
    }
22493
 
22494
    public List<InventoryMovement> getSuccess() {
22495
      return this.success;
22496
    }
22497
 
22498
    public void setSuccess(List<InventoryMovement> success) {
22499
      this.success = success;
22500
    }
22501
 
22502
    public void unsetSuccess() {
22503
      this.success = null;
22504
    }
22505
 
22506
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22507
    public boolean isSetSuccess() {
22508
      return this.success != null;
22509
    }
22510
 
22511
    public void setSuccessIsSet(boolean value) {
22512
      if (!value) {
22513
        this.success = null;
22514
      }
22515
    }
22516
 
22517
    public void setFieldValue(_Fields field, Object value) {
22518
      switch (field) {
22519
      case SUCCESS:
22520
        if (value == null) {
22521
          unsetSuccess();
22522
        } else {
22523
          setSuccess((List<InventoryMovement>)value);
22524
        }
22525
        break;
22526
 
22527
      }
22528
    }
22529
 
22530
    public Object getFieldValue(_Fields field) {
22531
      switch (field) {
22532
      case SUCCESS:
22533
        return getSuccess();
22534
 
22535
      }
22536
      throw new IllegalStateException();
22537
    }
22538
 
22539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22540
    public boolean isSet(_Fields field) {
22541
      if (field == null) {
22542
        throw new IllegalArgumentException();
22543
      }
22544
 
22545
      switch (field) {
22546
      case SUCCESS:
22547
        return isSetSuccess();
22548
      }
22549
      throw new IllegalStateException();
22550
    }
22551
 
22552
    @Override
22553
    public boolean equals(Object that) {
22554
      if (that == null)
22555
        return false;
22556
      if (that instanceof getMovementNonSerializedInventoryByScans_result)
22557
        return this.equals((getMovementNonSerializedInventoryByScans_result)that);
22558
      return false;
22559
    }
22560
 
22561
    public boolean equals(getMovementNonSerializedInventoryByScans_result that) {
22562
      if (that == null)
22563
        return false;
22564
 
22565
      boolean this_present_success = true && this.isSetSuccess();
22566
      boolean that_present_success = true && that.isSetSuccess();
22567
      if (this_present_success || that_present_success) {
22568
        if (!(this_present_success && that_present_success))
22569
          return false;
22570
        if (!this.success.equals(that.success))
22571
          return false;
22572
      }
22573
 
22574
      return true;
22575
    }
22576
 
22577
    @Override
22578
    public int hashCode() {
22579
      return 0;
22580
    }
22581
 
22582
    public int compareTo(getMovementNonSerializedInventoryByScans_result other) {
22583
      if (!getClass().equals(other.getClass())) {
22584
        return getClass().getName().compareTo(other.getClass().getName());
22585
      }
22586
 
22587
      int lastComparison = 0;
22588
      getMovementNonSerializedInventoryByScans_result typedOther = (getMovementNonSerializedInventoryByScans_result)other;
22589
 
22590
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22591
      if (lastComparison != 0) {
22592
        return lastComparison;
22593
      }
22594
      if (isSetSuccess()) {
22595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22596
        if (lastComparison != 0) {
22597
          return lastComparison;
22598
        }
22599
      }
22600
      return 0;
22601
    }
22602
 
22603
    public _Fields fieldForId(int fieldId) {
22604
      return _Fields.findByThriftId(fieldId);
22605
    }
22606
 
22607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22608
      org.apache.thrift.protocol.TField field;
22609
      iprot.readStructBegin();
22610
      while (true)
22611
      {
22612
        field = iprot.readFieldBegin();
22613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22614
          break;
22615
        }
22616
        switch (field.id) {
22617
          case 0: // SUCCESS
22618
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22619
              {
7210 amar.kumar 22620
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
22621
                this.success = new ArrayList<InventoryMovement>(_list60.size);
22622
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
6880 amar.kumar 22623
                {
7210 amar.kumar 22624
                  InventoryMovement _elem62; // required
22625
                  _elem62 = new InventoryMovement();
22626
                  _elem62.read(iprot);
22627
                  this.success.add(_elem62);
6880 amar.kumar 22628
                }
22629
                iprot.readListEnd();
22630
              }
22631
            } else { 
22632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22633
            }
22634
            break;
22635
          default:
22636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22637
        }
22638
        iprot.readFieldEnd();
22639
      }
22640
      iprot.readStructEnd();
22641
      validate();
22642
    }
22643
 
22644
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22645
      oprot.writeStructBegin(STRUCT_DESC);
22646
 
22647
      if (this.isSetSuccess()) {
22648
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22649
        {
22650
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 22651
          for (InventoryMovement _iter63 : this.success)
6880 amar.kumar 22652
          {
7210 amar.kumar 22653
            _iter63.write(oprot);
6880 amar.kumar 22654
          }
22655
          oprot.writeListEnd();
22656
        }
22657
        oprot.writeFieldEnd();
22658
      }
22659
      oprot.writeFieldStop();
22660
      oprot.writeStructEnd();
22661
    }
22662
 
22663
    @Override
22664
    public String toString() {
22665
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_result(");
22666
      boolean first = true;
22667
 
22668
      sb.append("success:");
22669
      if (this.success == null) {
22670
        sb.append("null");
22671
      } else {
22672
        sb.append(this.success);
22673
      }
22674
      first = false;
22675
      sb.append(")");
22676
      return sb.toString();
22677
    }
22678
 
22679
    public void validate() throws org.apache.thrift.TException {
22680
      // check for required fields
22681
    }
22682
 
22683
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22684
      try {
22685
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22686
      } catch (org.apache.thrift.TException te) {
22687
        throw new java.io.IOException(te);
22688
      }
22689
    }
22690
 
22691
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22692
      try {
22693
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22694
      } catch (org.apache.thrift.TException te) {
22695
        throw new java.io.IOException(te);
22696
      }
22697
    }
22698
 
22699
  }
22700
 
22701
  public static class getMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_args, getMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
22702
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_args");
22703
 
22704
    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);
22705
    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);
22706
 
22707
    private long startDate; // required
22708
    private long endDate; // required
22709
 
22710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22712
      START_DATE((short)1, "startDate"),
22713
      END_DATE((short)2, "endDate");
22714
 
22715
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22716
 
22717
      static {
22718
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22719
          byName.put(field.getFieldName(), field);
22720
        }
22721
      }
22722
 
22723
      /**
22724
       * Find the _Fields constant that matches fieldId, or null if its not found.
22725
       */
22726
      public static _Fields findByThriftId(int fieldId) {
22727
        switch(fieldId) {
22728
          case 1: // START_DATE
22729
            return START_DATE;
22730
          case 2: // END_DATE
22731
            return END_DATE;
22732
          default:
22733
            return null;
22734
        }
22735
      }
22736
 
22737
      /**
22738
       * Find the _Fields constant that matches fieldId, throwing an exception
22739
       * if it is not found.
22740
       */
22741
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22742
        _Fields fields = findByThriftId(fieldId);
22743
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22744
        return fields;
22745
      }
22746
 
22747
      /**
22748
       * Find the _Fields constant that matches name, or null if its not found.
22749
       */
22750
      public static _Fields findByName(String name) {
22751
        return byName.get(name);
22752
      }
22753
 
22754
      private final short _thriftId;
22755
      private final String _fieldName;
22756
 
22757
      _Fields(short thriftId, String fieldName) {
22758
        _thriftId = thriftId;
22759
        _fieldName = fieldName;
22760
      }
22761
 
22762
      public short getThriftFieldId() {
22763
        return _thriftId;
22764
      }
22765
 
22766
      public String getFieldName() {
22767
        return _fieldName;
22768
      }
22769
    }
22770
 
22771
    // isset id assignments
22772
    private static final int __STARTDATE_ISSET_ID = 0;
22773
    private static final int __ENDDATE_ISSET_ID = 1;
22774
    private BitSet __isset_bit_vector = new BitSet(2);
22775
 
22776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22777
    static {
22778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22779
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22781
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22782
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22783
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22784
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_args.class, metaDataMap);
22785
    }
22786
 
22787
    public getMovementSerializedInventoryByScans_args() {
22788
    }
22789
 
22790
    public getMovementSerializedInventoryByScans_args(
22791
      long startDate,
22792
      long endDate)
22793
    {
22794
      this();
22795
      this.startDate = startDate;
22796
      setStartDateIsSet(true);
22797
      this.endDate = endDate;
22798
      setEndDateIsSet(true);
22799
    }
22800
 
22801
    /**
22802
     * Performs a deep copy on <i>other</i>.
22803
     */
22804
    public getMovementSerializedInventoryByScans_args(getMovementSerializedInventoryByScans_args other) {
22805
      __isset_bit_vector.clear();
22806
      __isset_bit_vector.or(other.__isset_bit_vector);
22807
      this.startDate = other.startDate;
22808
      this.endDate = other.endDate;
22809
    }
22810
 
22811
    public getMovementSerializedInventoryByScans_args deepCopy() {
22812
      return new getMovementSerializedInventoryByScans_args(this);
22813
    }
22814
 
22815
    @Override
22816
    public void clear() {
22817
      setStartDateIsSet(false);
22818
      this.startDate = 0;
22819
      setEndDateIsSet(false);
22820
      this.endDate = 0;
22821
    }
22822
 
22823
    public long getStartDate() {
22824
      return this.startDate;
22825
    }
22826
 
22827
    public void setStartDate(long startDate) {
22828
      this.startDate = startDate;
22829
      setStartDateIsSet(true);
22830
    }
22831
 
22832
    public void unsetStartDate() {
22833
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
22834
    }
22835
 
22836
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
22837
    public boolean isSetStartDate() {
22838
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
22839
    }
22840
 
22841
    public void setStartDateIsSet(boolean value) {
22842
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
22843
    }
22844
 
22845
    public long getEndDate() {
22846
      return this.endDate;
22847
    }
22848
 
22849
    public void setEndDate(long endDate) {
22850
      this.endDate = endDate;
22851
      setEndDateIsSet(true);
22852
    }
22853
 
22854
    public void unsetEndDate() {
22855
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
22856
    }
22857
 
22858
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
22859
    public boolean isSetEndDate() {
22860
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
22861
    }
22862
 
22863
    public void setEndDateIsSet(boolean value) {
22864
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
22865
    }
22866
 
22867
    public void setFieldValue(_Fields field, Object value) {
22868
      switch (field) {
22869
      case START_DATE:
22870
        if (value == null) {
22871
          unsetStartDate();
22872
        } else {
22873
          setStartDate((Long)value);
22874
        }
22875
        break;
22876
 
22877
      case END_DATE:
22878
        if (value == null) {
22879
          unsetEndDate();
22880
        } else {
22881
          setEndDate((Long)value);
22882
        }
22883
        break;
22884
 
22885
      }
22886
    }
22887
 
22888
    public Object getFieldValue(_Fields field) {
22889
      switch (field) {
22890
      case START_DATE:
22891
        return Long.valueOf(getStartDate());
22892
 
22893
      case END_DATE:
22894
        return Long.valueOf(getEndDate());
22895
 
22896
      }
22897
      throw new IllegalStateException();
22898
    }
22899
 
22900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22901
    public boolean isSet(_Fields field) {
22902
      if (field == null) {
22903
        throw new IllegalArgumentException();
22904
      }
22905
 
22906
      switch (field) {
22907
      case START_DATE:
22908
        return isSetStartDate();
22909
      case END_DATE:
22910
        return isSetEndDate();
22911
      }
22912
      throw new IllegalStateException();
22913
    }
22914
 
22915
    @Override
22916
    public boolean equals(Object that) {
22917
      if (that == null)
22918
        return false;
22919
      if (that instanceof getMovementSerializedInventoryByScans_args)
22920
        return this.equals((getMovementSerializedInventoryByScans_args)that);
22921
      return false;
22922
    }
22923
 
22924
    public boolean equals(getMovementSerializedInventoryByScans_args that) {
22925
      if (that == null)
22926
        return false;
22927
 
22928
      boolean this_present_startDate = true;
22929
      boolean that_present_startDate = true;
22930
      if (this_present_startDate || that_present_startDate) {
22931
        if (!(this_present_startDate && that_present_startDate))
22932
          return false;
22933
        if (this.startDate != that.startDate)
22934
          return false;
22935
      }
22936
 
22937
      boolean this_present_endDate = true;
22938
      boolean that_present_endDate = true;
22939
      if (this_present_endDate || that_present_endDate) {
22940
        if (!(this_present_endDate && that_present_endDate))
22941
          return false;
22942
        if (this.endDate != that.endDate)
22943
          return false;
22944
      }
22945
 
22946
      return true;
22947
    }
22948
 
22949
    @Override
22950
    public int hashCode() {
22951
      return 0;
22952
    }
22953
 
22954
    public int compareTo(getMovementSerializedInventoryByScans_args other) {
22955
      if (!getClass().equals(other.getClass())) {
22956
        return getClass().getName().compareTo(other.getClass().getName());
22957
      }
22958
 
22959
      int lastComparison = 0;
22960
      getMovementSerializedInventoryByScans_args typedOther = (getMovementSerializedInventoryByScans_args)other;
22961
 
22962
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
22963
      if (lastComparison != 0) {
22964
        return lastComparison;
22965
      }
22966
      if (isSetStartDate()) {
22967
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
22968
        if (lastComparison != 0) {
22969
          return lastComparison;
22970
        }
22971
      }
22972
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
22973
      if (lastComparison != 0) {
22974
        return lastComparison;
22975
      }
22976
      if (isSetEndDate()) {
22977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
22978
        if (lastComparison != 0) {
22979
          return lastComparison;
22980
        }
22981
      }
22982
      return 0;
22983
    }
22984
 
22985
    public _Fields fieldForId(int fieldId) {
22986
      return _Fields.findByThriftId(fieldId);
22987
    }
22988
 
22989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22990
      org.apache.thrift.protocol.TField field;
22991
      iprot.readStructBegin();
22992
      while (true)
22993
      {
22994
        field = iprot.readFieldBegin();
22995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22996
          break;
22997
        }
22998
        switch (field.id) {
22999
          case 1: // START_DATE
23000
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23001
              this.startDate = iprot.readI64();
23002
              setStartDateIsSet(true);
23003
            } else { 
23004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23005
            }
23006
            break;
23007
          case 2: // END_DATE
23008
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23009
              this.endDate = iprot.readI64();
23010
              setEndDateIsSet(true);
23011
            } else { 
23012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23013
            }
23014
            break;
23015
          default:
23016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23017
        }
23018
        iprot.readFieldEnd();
23019
      }
23020
      iprot.readStructEnd();
23021
      validate();
23022
    }
23023
 
23024
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23025
      validate();
23026
 
23027
      oprot.writeStructBegin(STRUCT_DESC);
23028
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
23029
      oprot.writeI64(this.startDate);
23030
      oprot.writeFieldEnd();
23031
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
23032
      oprot.writeI64(this.endDate);
23033
      oprot.writeFieldEnd();
23034
      oprot.writeFieldStop();
23035
      oprot.writeStructEnd();
23036
    }
23037
 
23038
    @Override
23039
    public String toString() {
23040
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_args(");
23041
      boolean first = true;
23042
 
23043
      sb.append("startDate:");
23044
      sb.append(this.startDate);
23045
      first = false;
23046
      if (!first) sb.append(", ");
23047
      sb.append("endDate:");
23048
      sb.append(this.endDate);
23049
      first = false;
23050
      sb.append(")");
23051
      return sb.toString();
23052
    }
23053
 
23054
    public void validate() throws org.apache.thrift.TException {
23055
      // check for required fields
23056
    }
23057
 
23058
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23059
      try {
23060
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23061
      } catch (org.apache.thrift.TException te) {
23062
        throw new java.io.IOException(te);
23063
      }
23064
    }
23065
 
23066
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23067
      try {
23068
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23069
        __isset_bit_vector = new BitSet(1);
23070
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23071
      } catch (org.apache.thrift.TException te) {
23072
        throw new java.io.IOException(te);
23073
      }
23074
    }
23075
 
23076
  }
23077
 
23078
  public static class getMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_result, getMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
23079
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_result");
23080
 
23081
    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);
23082
 
23083
    private List<InventoryMovement> success; // required
23084
 
23085
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23086
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23087
      SUCCESS((short)0, "success");
23088
 
23089
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23090
 
23091
      static {
23092
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23093
          byName.put(field.getFieldName(), field);
23094
        }
23095
      }
23096
 
23097
      /**
23098
       * Find the _Fields constant that matches fieldId, or null if its not found.
23099
       */
23100
      public static _Fields findByThriftId(int fieldId) {
23101
        switch(fieldId) {
23102
          case 0: // SUCCESS
23103
            return SUCCESS;
23104
          default:
23105
            return null;
23106
        }
23107
      }
23108
 
23109
      /**
23110
       * Find the _Fields constant that matches fieldId, throwing an exception
23111
       * if it is not found.
23112
       */
23113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23114
        _Fields fields = findByThriftId(fieldId);
23115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23116
        return fields;
23117
      }
23118
 
23119
      /**
23120
       * Find the _Fields constant that matches name, or null if its not found.
23121
       */
23122
      public static _Fields findByName(String name) {
23123
        return byName.get(name);
23124
      }
23125
 
23126
      private final short _thriftId;
23127
      private final String _fieldName;
23128
 
23129
      _Fields(short thriftId, String fieldName) {
23130
        _thriftId = thriftId;
23131
        _fieldName = fieldName;
23132
      }
23133
 
23134
      public short getThriftFieldId() {
23135
        return _thriftId;
23136
      }
23137
 
23138
      public String getFieldName() {
23139
        return _fieldName;
23140
      }
23141
    }
23142
 
23143
    // isset id assignments
23144
 
23145
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23146
    static {
23147
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23148
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23149
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23150
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
23151
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23152
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_result.class, metaDataMap);
23153
    }
23154
 
23155
    public getMovementSerializedInventoryByScans_result() {
23156
    }
23157
 
23158
    public getMovementSerializedInventoryByScans_result(
23159
      List<InventoryMovement> success)
23160
    {
23161
      this();
23162
      this.success = success;
23163
    }
23164
 
23165
    /**
23166
     * Performs a deep copy on <i>other</i>.
23167
     */
23168
    public getMovementSerializedInventoryByScans_result(getMovementSerializedInventoryByScans_result other) {
23169
      if (other.isSetSuccess()) {
23170
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
23171
        for (InventoryMovement other_element : other.success) {
23172
          __this__success.add(new InventoryMovement(other_element));
23173
        }
23174
        this.success = __this__success;
23175
      }
23176
    }
23177
 
23178
    public getMovementSerializedInventoryByScans_result deepCopy() {
23179
      return new getMovementSerializedInventoryByScans_result(this);
23180
    }
23181
 
23182
    @Override
23183
    public void clear() {
23184
      this.success = null;
23185
    }
23186
 
23187
    public int getSuccessSize() {
23188
      return (this.success == null) ? 0 : this.success.size();
23189
    }
23190
 
23191
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
23192
      return (this.success == null) ? null : this.success.iterator();
23193
    }
23194
 
23195
    public void addToSuccess(InventoryMovement elem) {
23196
      if (this.success == null) {
23197
        this.success = new ArrayList<InventoryMovement>();
23198
      }
23199
      this.success.add(elem);
23200
    }
23201
 
23202
    public List<InventoryMovement> getSuccess() {
23203
      return this.success;
23204
    }
23205
 
23206
    public void setSuccess(List<InventoryMovement> success) {
23207
      this.success = success;
23208
    }
23209
 
23210
    public void unsetSuccess() {
23211
      this.success = null;
23212
    }
23213
 
23214
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23215
    public boolean isSetSuccess() {
23216
      return this.success != null;
23217
    }
23218
 
23219
    public void setSuccessIsSet(boolean value) {
23220
      if (!value) {
23221
        this.success = null;
23222
      }
23223
    }
23224
 
23225
    public void setFieldValue(_Fields field, Object value) {
23226
      switch (field) {
23227
      case SUCCESS:
23228
        if (value == null) {
23229
          unsetSuccess();
23230
        } else {
23231
          setSuccess((List<InventoryMovement>)value);
23232
        }
23233
        break;
23234
 
23235
      }
23236
    }
23237
 
23238
    public Object getFieldValue(_Fields field) {
23239
      switch (field) {
23240
      case SUCCESS:
23241
        return getSuccess();
23242
 
23243
      }
23244
      throw new IllegalStateException();
23245
    }
23246
 
23247
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23248
    public boolean isSet(_Fields field) {
23249
      if (field == null) {
23250
        throw new IllegalArgumentException();
23251
      }
23252
 
23253
      switch (field) {
23254
      case SUCCESS:
23255
        return isSetSuccess();
23256
      }
23257
      throw new IllegalStateException();
23258
    }
23259
 
23260
    @Override
23261
    public boolean equals(Object that) {
23262
      if (that == null)
23263
        return false;
23264
      if (that instanceof getMovementSerializedInventoryByScans_result)
23265
        return this.equals((getMovementSerializedInventoryByScans_result)that);
23266
      return false;
23267
    }
23268
 
23269
    public boolean equals(getMovementSerializedInventoryByScans_result that) {
23270
      if (that == null)
23271
        return false;
23272
 
23273
      boolean this_present_success = true && this.isSetSuccess();
23274
      boolean that_present_success = true && that.isSetSuccess();
23275
      if (this_present_success || that_present_success) {
23276
        if (!(this_present_success && that_present_success))
23277
          return false;
23278
        if (!this.success.equals(that.success))
23279
          return false;
23280
      }
23281
 
23282
      return true;
23283
    }
23284
 
23285
    @Override
23286
    public int hashCode() {
23287
      return 0;
23288
    }
23289
 
23290
    public int compareTo(getMovementSerializedInventoryByScans_result other) {
23291
      if (!getClass().equals(other.getClass())) {
23292
        return getClass().getName().compareTo(other.getClass().getName());
23293
      }
23294
 
23295
      int lastComparison = 0;
23296
      getMovementSerializedInventoryByScans_result typedOther = (getMovementSerializedInventoryByScans_result)other;
23297
 
23298
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23299
      if (lastComparison != 0) {
23300
        return lastComparison;
23301
      }
23302
      if (isSetSuccess()) {
23303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23304
        if (lastComparison != 0) {
23305
          return lastComparison;
23306
        }
23307
      }
23308
      return 0;
23309
    }
23310
 
23311
    public _Fields fieldForId(int fieldId) {
23312
      return _Fields.findByThriftId(fieldId);
23313
    }
23314
 
23315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23316
      org.apache.thrift.protocol.TField field;
23317
      iprot.readStructBegin();
23318
      while (true)
23319
      {
23320
        field = iprot.readFieldBegin();
23321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23322
          break;
23323
        }
23324
        switch (field.id) {
23325
          case 0: // SUCCESS
23326
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23327
              {
7210 amar.kumar 23328
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
23329
                this.success = new ArrayList<InventoryMovement>(_list64.size);
23330
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
6880 amar.kumar 23331
                {
7210 amar.kumar 23332
                  InventoryMovement _elem66; // required
23333
                  _elem66 = new InventoryMovement();
23334
                  _elem66.read(iprot);
23335
                  this.success.add(_elem66);
6880 amar.kumar 23336
                }
23337
                iprot.readListEnd();
23338
              }
23339
            } else { 
23340
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23341
            }
23342
            break;
23343
          default:
23344
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23345
        }
23346
        iprot.readFieldEnd();
23347
      }
23348
      iprot.readStructEnd();
23349
      validate();
23350
    }
23351
 
23352
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23353
      oprot.writeStructBegin(STRUCT_DESC);
23354
 
23355
      if (this.isSetSuccess()) {
23356
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23357
        {
23358
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 23359
          for (InventoryMovement _iter67 : this.success)
6880 amar.kumar 23360
          {
7210 amar.kumar 23361
            _iter67.write(oprot);
6880 amar.kumar 23362
          }
23363
          oprot.writeListEnd();
23364
        }
23365
        oprot.writeFieldEnd();
23366
      }
23367
      oprot.writeFieldStop();
23368
      oprot.writeStructEnd();
23369
    }
23370
 
23371
    @Override
23372
    public String toString() {
23373
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_result(");
23374
      boolean first = true;
23375
 
23376
      sb.append("success:");
23377
      if (this.success == null) {
23378
        sb.append("null");
23379
      } else {
23380
        sb.append(this.success);
23381
      }
23382
      first = false;
23383
      sb.append(")");
23384
      return sb.toString();
23385
    }
23386
 
23387
    public void validate() throws org.apache.thrift.TException {
23388
      // check for required fields
23389
    }
23390
 
23391
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23392
      try {
23393
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23394
      } catch (org.apache.thrift.TException te) {
23395
        throw new java.io.IOException(te);
23396
      }
23397
    }
23398
 
23399
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23400
      try {
23401
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23402
      } catch (org.apache.thrift.TException te) {
23403
        throw new java.io.IOException(te);
23404
      }
23405
    }
23406
 
23407
  }
23408
 
7216 amar.kumar 23409
  public static class getCompleteMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_args, getCompleteMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
23410
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_args");
23411
 
23412
    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);
23413
    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);
23414
 
23415
    private long startDate; // required
23416
    private long endDate; // required
23417
 
23418
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23419
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23420
      START_DATE((short)1, "startDate"),
23421
      END_DATE((short)2, "endDate");
23422
 
23423
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23424
 
23425
      static {
23426
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23427
          byName.put(field.getFieldName(), field);
23428
        }
23429
      }
23430
 
23431
      /**
23432
       * Find the _Fields constant that matches fieldId, or null if its not found.
23433
       */
23434
      public static _Fields findByThriftId(int fieldId) {
23435
        switch(fieldId) {
23436
          case 1: // START_DATE
23437
            return START_DATE;
23438
          case 2: // END_DATE
23439
            return END_DATE;
23440
          default:
23441
            return null;
23442
        }
23443
      }
23444
 
23445
      /**
23446
       * Find the _Fields constant that matches fieldId, throwing an exception
23447
       * if it is not found.
23448
       */
23449
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23450
        _Fields fields = findByThriftId(fieldId);
23451
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23452
        return fields;
23453
      }
23454
 
23455
      /**
23456
       * Find the _Fields constant that matches name, or null if its not found.
23457
       */
23458
      public static _Fields findByName(String name) {
23459
        return byName.get(name);
23460
      }
23461
 
23462
      private final short _thriftId;
23463
      private final String _fieldName;
23464
 
23465
      _Fields(short thriftId, String fieldName) {
23466
        _thriftId = thriftId;
23467
        _fieldName = fieldName;
23468
      }
23469
 
23470
      public short getThriftFieldId() {
23471
        return _thriftId;
23472
      }
23473
 
23474
      public String getFieldName() {
23475
        return _fieldName;
23476
      }
23477
    }
23478
 
23479
    // isset id assignments
23480
    private static final int __STARTDATE_ISSET_ID = 0;
23481
    private static final int __ENDDATE_ISSET_ID = 1;
23482
    private BitSet __isset_bit_vector = new BitSet(2);
23483
 
23484
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23485
    static {
23486
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23487
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23488
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23489
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23490
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23491
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23492
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_args.class, metaDataMap);
23493
    }
23494
 
23495
    public getCompleteMovementSerializedInventoryByScans_args() {
23496
    }
23497
 
23498
    public getCompleteMovementSerializedInventoryByScans_args(
23499
      long startDate,
23500
      long endDate)
23501
    {
23502
      this();
23503
      this.startDate = startDate;
23504
      setStartDateIsSet(true);
23505
      this.endDate = endDate;
23506
      setEndDateIsSet(true);
23507
    }
23508
 
23509
    /**
23510
     * Performs a deep copy on <i>other</i>.
23511
     */
23512
    public getCompleteMovementSerializedInventoryByScans_args(getCompleteMovementSerializedInventoryByScans_args other) {
23513
      __isset_bit_vector.clear();
23514
      __isset_bit_vector.or(other.__isset_bit_vector);
23515
      this.startDate = other.startDate;
23516
      this.endDate = other.endDate;
23517
    }
23518
 
23519
    public getCompleteMovementSerializedInventoryByScans_args deepCopy() {
23520
      return new getCompleteMovementSerializedInventoryByScans_args(this);
23521
    }
23522
 
23523
    @Override
23524
    public void clear() {
23525
      setStartDateIsSet(false);
23526
      this.startDate = 0;
23527
      setEndDateIsSet(false);
23528
      this.endDate = 0;
23529
    }
23530
 
23531
    public long getStartDate() {
23532
      return this.startDate;
23533
    }
23534
 
23535
    public void setStartDate(long startDate) {
23536
      this.startDate = startDate;
23537
      setStartDateIsSet(true);
23538
    }
23539
 
23540
    public void unsetStartDate() {
23541
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
23542
    }
23543
 
23544
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
23545
    public boolean isSetStartDate() {
23546
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
23547
    }
23548
 
23549
    public void setStartDateIsSet(boolean value) {
23550
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
23551
    }
23552
 
23553
    public long getEndDate() {
23554
      return this.endDate;
23555
    }
23556
 
23557
    public void setEndDate(long endDate) {
23558
      this.endDate = endDate;
23559
      setEndDateIsSet(true);
23560
    }
23561
 
23562
    public void unsetEndDate() {
23563
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
23564
    }
23565
 
23566
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
23567
    public boolean isSetEndDate() {
23568
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
23569
    }
23570
 
23571
    public void setEndDateIsSet(boolean value) {
23572
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
23573
    }
23574
 
23575
    public void setFieldValue(_Fields field, Object value) {
23576
      switch (field) {
23577
      case START_DATE:
23578
        if (value == null) {
23579
          unsetStartDate();
23580
        } else {
23581
          setStartDate((Long)value);
23582
        }
23583
        break;
23584
 
23585
      case END_DATE:
23586
        if (value == null) {
23587
          unsetEndDate();
23588
        } else {
23589
          setEndDate((Long)value);
23590
        }
23591
        break;
23592
 
23593
      }
23594
    }
23595
 
23596
    public Object getFieldValue(_Fields field) {
23597
      switch (field) {
23598
      case START_DATE:
23599
        return Long.valueOf(getStartDate());
23600
 
23601
      case END_DATE:
23602
        return Long.valueOf(getEndDate());
23603
 
23604
      }
23605
      throw new IllegalStateException();
23606
    }
23607
 
23608
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23609
    public boolean isSet(_Fields field) {
23610
      if (field == null) {
23611
        throw new IllegalArgumentException();
23612
      }
23613
 
23614
      switch (field) {
23615
      case START_DATE:
23616
        return isSetStartDate();
23617
      case END_DATE:
23618
        return isSetEndDate();
23619
      }
23620
      throw new IllegalStateException();
23621
    }
23622
 
23623
    @Override
23624
    public boolean equals(Object that) {
23625
      if (that == null)
23626
        return false;
23627
      if (that instanceof getCompleteMovementSerializedInventoryByScans_args)
23628
        return this.equals((getCompleteMovementSerializedInventoryByScans_args)that);
23629
      return false;
23630
    }
23631
 
23632
    public boolean equals(getCompleteMovementSerializedInventoryByScans_args that) {
23633
      if (that == null)
23634
        return false;
23635
 
23636
      boolean this_present_startDate = true;
23637
      boolean that_present_startDate = true;
23638
      if (this_present_startDate || that_present_startDate) {
23639
        if (!(this_present_startDate && that_present_startDate))
23640
          return false;
23641
        if (this.startDate != that.startDate)
23642
          return false;
23643
      }
23644
 
23645
      boolean this_present_endDate = true;
23646
      boolean that_present_endDate = true;
23647
      if (this_present_endDate || that_present_endDate) {
23648
        if (!(this_present_endDate && that_present_endDate))
23649
          return false;
23650
        if (this.endDate != that.endDate)
23651
          return false;
23652
      }
23653
 
23654
      return true;
23655
    }
23656
 
23657
    @Override
23658
    public int hashCode() {
23659
      return 0;
23660
    }
23661
 
23662
    public int compareTo(getCompleteMovementSerializedInventoryByScans_args other) {
23663
      if (!getClass().equals(other.getClass())) {
23664
        return getClass().getName().compareTo(other.getClass().getName());
23665
      }
23666
 
23667
      int lastComparison = 0;
23668
      getCompleteMovementSerializedInventoryByScans_args typedOther = (getCompleteMovementSerializedInventoryByScans_args)other;
23669
 
23670
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
23671
      if (lastComparison != 0) {
23672
        return lastComparison;
23673
      }
23674
      if (isSetStartDate()) {
23675
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
23676
        if (lastComparison != 0) {
23677
          return lastComparison;
23678
        }
23679
      }
23680
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
23681
      if (lastComparison != 0) {
23682
        return lastComparison;
23683
      }
23684
      if (isSetEndDate()) {
23685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
23686
        if (lastComparison != 0) {
23687
          return lastComparison;
23688
        }
23689
      }
23690
      return 0;
23691
    }
23692
 
23693
    public _Fields fieldForId(int fieldId) {
23694
      return _Fields.findByThriftId(fieldId);
23695
    }
23696
 
23697
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23698
      org.apache.thrift.protocol.TField field;
23699
      iprot.readStructBegin();
23700
      while (true)
23701
      {
23702
        field = iprot.readFieldBegin();
23703
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23704
          break;
23705
        }
23706
        switch (field.id) {
23707
          case 1: // START_DATE
23708
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23709
              this.startDate = iprot.readI64();
23710
              setStartDateIsSet(true);
23711
            } else { 
23712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23713
            }
23714
            break;
23715
          case 2: // END_DATE
23716
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23717
              this.endDate = iprot.readI64();
23718
              setEndDateIsSet(true);
23719
            } else { 
23720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23721
            }
23722
            break;
23723
          default:
23724
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23725
        }
23726
        iprot.readFieldEnd();
23727
      }
23728
      iprot.readStructEnd();
23729
      validate();
23730
    }
23731
 
23732
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23733
      validate();
23734
 
23735
      oprot.writeStructBegin(STRUCT_DESC);
23736
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
23737
      oprot.writeI64(this.startDate);
23738
      oprot.writeFieldEnd();
23739
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
23740
      oprot.writeI64(this.endDate);
23741
      oprot.writeFieldEnd();
23742
      oprot.writeFieldStop();
23743
      oprot.writeStructEnd();
23744
    }
23745
 
23746
    @Override
23747
    public String toString() {
23748
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_args(");
23749
      boolean first = true;
23750
 
23751
      sb.append("startDate:");
23752
      sb.append(this.startDate);
23753
      first = false;
23754
      if (!first) sb.append(", ");
23755
      sb.append("endDate:");
23756
      sb.append(this.endDate);
23757
      first = false;
23758
      sb.append(")");
23759
      return sb.toString();
23760
    }
23761
 
23762
    public void validate() throws org.apache.thrift.TException {
23763
      // check for required fields
23764
    }
23765
 
23766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23767
      try {
23768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23769
      } catch (org.apache.thrift.TException te) {
23770
        throw new java.io.IOException(te);
23771
      }
23772
    }
23773
 
23774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23775
      try {
23776
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23777
        __isset_bit_vector = new BitSet(1);
23778
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23779
      } catch (org.apache.thrift.TException te) {
23780
        throw new java.io.IOException(te);
23781
      }
23782
    }
23783
 
23784
  }
23785
 
23786
  public static class getCompleteMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_result, getCompleteMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
23787
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_result");
23788
 
23789
    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);
23790
 
23791
    private List<InventoryMovement> success; // required
23792
 
23793
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23794
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23795
      SUCCESS((short)0, "success");
23796
 
23797
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23798
 
23799
      static {
23800
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23801
          byName.put(field.getFieldName(), field);
23802
        }
23803
      }
23804
 
23805
      /**
23806
       * Find the _Fields constant that matches fieldId, or null if its not found.
23807
       */
23808
      public static _Fields findByThriftId(int fieldId) {
23809
        switch(fieldId) {
23810
          case 0: // SUCCESS
23811
            return SUCCESS;
23812
          default:
23813
            return null;
23814
        }
23815
      }
23816
 
23817
      /**
23818
       * Find the _Fields constant that matches fieldId, throwing an exception
23819
       * if it is not found.
23820
       */
23821
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23822
        _Fields fields = findByThriftId(fieldId);
23823
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23824
        return fields;
23825
      }
23826
 
23827
      /**
23828
       * Find the _Fields constant that matches name, or null if its not found.
23829
       */
23830
      public static _Fields findByName(String name) {
23831
        return byName.get(name);
23832
      }
23833
 
23834
      private final short _thriftId;
23835
      private final String _fieldName;
23836
 
23837
      _Fields(short thriftId, String fieldName) {
23838
        _thriftId = thriftId;
23839
        _fieldName = fieldName;
23840
      }
23841
 
23842
      public short getThriftFieldId() {
23843
        return _thriftId;
23844
      }
23845
 
23846
      public String getFieldName() {
23847
        return _fieldName;
23848
      }
23849
    }
23850
 
23851
    // isset id assignments
23852
 
23853
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23854
    static {
23855
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23856
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23857
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23858
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
23859
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23860
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_result.class, metaDataMap);
23861
    }
23862
 
23863
    public getCompleteMovementSerializedInventoryByScans_result() {
23864
    }
23865
 
23866
    public getCompleteMovementSerializedInventoryByScans_result(
23867
      List<InventoryMovement> success)
23868
    {
23869
      this();
23870
      this.success = success;
23871
    }
23872
 
23873
    /**
23874
     * Performs a deep copy on <i>other</i>.
23875
     */
23876
    public getCompleteMovementSerializedInventoryByScans_result(getCompleteMovementSerializedInventoryByScans_result other) {
23877
      if (other.isSetSuccess()) {
23878
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
23879
        for (InventoryMovement other_element : other.success) {
23880
          __this__success.add(new InventoryMovement(other_element));
23881
        }
23882
        this.success = __this__success;
23883
      }
23884
    }
23885
 
23886
    public getCompleteMovementSerializedInventoryByScans_result deepCopy() {
23887
      return new getCompleteMovementSerializedInventoryByScans_result(this);
23888
    }
23889
 
23890
    @Override
23891
    public void clear() {
23892
      this.success = null;
23893
    }
23894
 
23895
    public int getSuccessSize() {
23896
      return (this.success == null) ? 0 : this.success.size();
23897
    }
23898
 
23899
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
23900
      return (this.success == null) ? null : this.success.iterator();
23901
    }
23902
 
23903
    public void addToSuccess(InventoryMovement elem) {
23904
      if (this.success == null) {
23905
        this.success = new ArrayList<InventoryMovement>();
23906
      }
23907
      this.success.add(elem);
23908
    }
23909
 
23910
    public List<InventoryMovement> getSuccess() {
23911
      return this.success;
23912
    }
23913
 
23914
    public void setSuccess(List<InventoryMovement> success) {
23915
      this.success = success;
23916
    }
23917
 
23918
    public void unsetSuccess() {
23919
      this.success = null;
23920
    }
23921
 
23922
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23923
    public boolean isSetSuccess() {
23924
      return this.success != null;
23925
    }
23926
 
23927
    public void setSuccessIsSet(boolean value) {
23928
      if (!value) {
23929
        this.success = null;
23930
      }
23931
    }
23932
 
23933
    public void setFieldValue(_Fields field, Object value) {
23934
      switch (field) {
23935
      case SUCCESS:
23936
        if (value == null) {
23937
          unsetSuccess();
23938
        } else {
23939
          setSuccess((List<InventoryMovement>)value);
23940
        }
23941
        break;
23942
 
23943
      }
23944
    }
23945
 
23946
    public Object getFieldValue(_Fields field) {
23947
      switch (field) {
23948
      case SUCCESS:
23949
        return getSuccess();
23950
 
23951
      }
23952
      throw new IllegalStateException();
23953
    }
23954
 
23955
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23956
    public boolean isSet(_Fields field) {
23957
      if (field == null) {
23958
        throw new IllegalArgumentException();
23959
      }
23960
 
23961
      switch (field) {
23962
      case SUCCESS:
23963
        return isSetSuccess();
23964
      }
23965
      throw new IllegalStateException();
23966
    }
23967
 
23968
    @Override
23969
    public boolean equals(Object that) {
23970
      if (that == null)
23971
        return false;
23972
      if (that instanceof getCompleteMovementSerializedInventoryByScans_result)
23973
        return this.equals((getCompleteMovementSerializedInventoryByScans_result)that);
23974
      return false;
23975
    }
23976
 
23977
    public boolean equals(getCompleteMovementSerializedInventoryByScans_result that) {
23978
      if (that == null)
23979
        return false;
23980
 
23981
      boolean this_present_success = true && this.isSetSuccess();
23982
      boolean that_present_success = true && that.isSetSuccess();
23983
      if (this_present_success || that_present_success) {
23984
        if (!(this_present_success && that_present_success))
23985
          return false;
23986
        if (!this.success.equals(that.success))
23987
          return false;
23988
      }
23989
 
23990
      return true;
23991
    }
23992
 
23993
    @Override
23994
    public int hashCode() {
23995
      return 0;
23996
    }
23997
 
23998
    public int compareTo(getCompleteMovementSerializedInventoryByScans_result other) {
23999
      if (!getClass().equals(other.getClass())) {
24000
        return getClass().getName().compareTo(other.getClass().getName());
24001
      }
24002
 
24003
      int lastComparison = 0;
24004
      getCompleteMovementSerializedInventoryByScans_result typedOther = (getCompleteMovementSerializedInventoryByScans_result)other;
24005
 
24006
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24007
      if (lastComparison != 0) {
24008
        return lastComparison;
24009
      }
24010
      if (isSetSuccess()) {
24011
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24012
        if (lastComparison != 0) {
24013
          return lastComparison;
24014
        }
24015
      }
24016
      return 0;
24017
    }
24018
 
24019
    public _Fields fieldForId(int fieldId) {
24020
      return _Fields.findByThriftId(fieldId);
24021
    }
24022
 
24023
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24024
      org.apache.thrift.protocol.TField field;
24025
      iprot.readStructBegin();
24026
      while (true)
24027
      {
24028
        field = iprot.readFieldBegin();
24029
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24030
          break;
24031
        }
24032
        switch (field.id) {
24033
          case 0: // SUCCESS
24034
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24035
              {
24036
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
24037
                this.success = new ArrayList<InventoryMovement>(_list68.size);
24038
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
24039
                {
24040
                  InventoryMovement _elem70; // required
24041
                  _elem70 = new InventoryMovement();
24042
                  _elem70.read(iprot);
24043
                  this.success.add(_elem70);
24044
                }
24045
                iprot.readListEnd();
24046
              }
24047
            } else { 
24048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24049
            }
24050
            break;
24051
          default:
24052
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24053
        }
24054
        iprot.readFieldEnd();
24055
      }
24056
      iprot.readStructEnd();
24057
      validate();
24058
    }
24059
 
24060
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24061
      oprot.writeStructBegin(STRUCT_DESC);
24062
 
24063
      if (this.isSetSuccess()) {
24064
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24065
        {
24066
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24067
          for (InventoryMovement _iter71 : this.success)
24068
          {
24069
            _iter71.write(oprot);
24070
          }
24071
          oprot.writeListEnd();
24072
        }
24073
        oprot.writeFieldEnd();
24074
      }
24075
      oprot.writeFieldStop();
24076
      oprot.writeStructEnd();
24077
    }
24078
 
24079
    @Override
24080
    public String toString() {
24081
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_result(");
24082
      boolean first = true;
24083
 
24084
      sb.append("success:");
24085
      if (this.success == null) {
24086
        sb.append("null");
24087
      } else {
24088
        sb.append(this.success);
24089
      }
24090
      first = false;
24091
      sb.append(")");
24092
      return sb.toString();
24093
    }
24094
 
24095
    public void validate() throws org.apache.thrift.TException {
24096
      // check for required fields
24097
    }
24098
 
24099
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24100
      try {
24101
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24102
      } catch (org.apache.thrift.TException te) {
24103
        throw new java.io.IOException(te);
24104
      }
24105
    }
24106
 
24107
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24108
      try {
24109
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24110
      } catch (org.apache.thrift.TException te) {
24111
        throw new java.io.IOException(te);
24112
      }
24113
    }
24114
 
24115
  }
24116
 
24117
  public static class getCompleteMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_args, getCompleteMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
24118
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_args");
24119
 
24120
    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);
24121
    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);
24122
 
24123
    private long startDate; // required
24124
    private long endDate; // required
24125
 
24126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24128
      START_DATE((short)1, "startDate"),
24129
      END_DATE((short)2, "endDate");
24130
 
24131
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24132
 
24133
      static {
24134
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24135
          byName.put(field.getFieldName(), field);
24136
        }
24137
      }
24138
 
24139
      /**
24140
       * Find the _Fields constant that matches fieldId, or null if its not found.
24141
       */
24142
      public static _Fields findByThriftId(int fieldId) {
24143
        switch(fieldId) {
24144
          case 1: // START_DATE
24145
            return START_DATE;
24146
          case 2: // END_DATE
24147
            return END_DATE;
24148
          default:
24149
            return null;
24150
        }
24151
      }
24152
 
24153
      /**
24154
       * Find the _Fields constant that matches fieldId, throwing an exception
24155
       * if it is not found.
24156
       */
24157
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24158
        _Fields fields = findByThriftId(fieldId);
24159
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24160
        return fields;
24161
      }
24162
 
24163
      /**
24164
       * Find the _Fields constant that matches name, or null if its not found.
24165
       */
24166
      public static _Fields findByName(String name) {
24167
        return byName.get(name);
24168
      }
24169
 
24170
      private final short _thriftId;
24171
      private final String _fieldName;
24172
 
24173
      _Fields(short thriftId, String fieldName) {
24174
        _thriftId = thriftId;
24175
        _fieldName = fieldName;
24176
      }
24177
 
24178
      public short getThriftFieldId() {
24179
        return _thriftId;
24180
      }
24181
 
24182
      public String getFieldName() {
24183
        return _fieldName;
24184
      }
24185
    }
24186
 
24187
    // isset id assignments
24188
    private static final int __STARTDATE_ISSET_ID = 0;
24189
    private static final int __ENDDATE_ISSET_ID = 1;
24190
    private BitSet __isset_bit_vector = new BitSet(2);
24191
 
24192
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24193
    static {
24194
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24195
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24196
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24197
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24198
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24199
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24200
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_args.class, metaDataMap);
24201
    }
24202
 
24203
    public getCompleteMovementNonSerializedInventoryByScans_args() {
24204
    }
24205
 
24206
    public getCompleteMovementNonSerializedInventoryByScans_args(
24207
      long startDate,
24208
      long endDate)
24209
    {
24210
      this();
24211
      this.startDate = startDate;
24212
      setStartDateIsSet(true);
24213
      this.endDate = endDate;
24214
      setEndDateIsSet(true);
24215
    }
24216
 
24217
    /**
24218
     * Performs a deep copy on <i>other</i>.
24219
     */
24220
    public getCompleteMovementNonSerializedInventoryByScans_args(getCompleteMovementNonSerializedInventoryByScans_args other) {
24221
      __isset_bit_vector.clear();
24222
      __isset_bit_vector.or(other.__isset_bit_vector);
24223
      this.startDate = other.startDate;
24224
      this.endDate = other.endDate;
24225
    }
24226
 
24227
    public getCompleteMovementNonSerializedInventoryByScans_args deepCopy() {
24228
      return new getCompleteMovementNonSerializedInventoryByScans_args(this);
24229
    }
24230
 
24231
    @Override
24232
    public void clear() {
24233
      setStartDateIsSet(false);
24234
      this.startDate = 0;
24235
      setEndDateIsSet(false);
24236
      this.endDate = 0;
24237
    }
24238
 
24239
    public long getStartDate() {
24240
      return this.startDate;
24241
    }
24242
 
24243
    public void setStartDate(long startDate) {
24244
      this.startDate = startDate;
24245
      setStartDateIsSet(true);
24246
    }
24247
 
24248
    public void unsetStartDate() {
24249
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
24250
    }
24251
 
24252
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
24253
    public boolean isSetStartDate() {
24254
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
24255
    }
24256
 
24257
    public void setStartDateIsSet(boolean value) {
24258
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
24259
    }
24260
 
24261
    public long getEndDate() {
24262
      return this.endDate;
24263
    }
24264
 
24265
    public void setEndDate(long endDate) {
24266
      this.endDate = endDate;
24267
      setEndDateIsSet(true);
24268
    }
24269
 
24270
    public void unsetEndDate() {
24271
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
24272
    }
24273
 
24274
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
24275
    public boolean isSetEndDate() {
24276
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
24277
    }
24278
 
24279
    public void setEndDateIsSet(boolean value) {
24280
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
24281
    }
24282
 
24283
    public void setFieldValue(_Fields field, Object value) {
24284
      switch (field) {
24285
      case START_DATE:
24286
        if (value == null) {
24287
          unsetStartDate();
24288
        } else {
24289
          setStartDate((Long)value);
24290
        }
24291
        break;
24292
 
24293
      case END_DATE:
24294
        if (value == null) {
24295
          unsetEndDate();
24296
        } else {
24297
          setEndDate((Long)value);
24298
        }
24299
        break;
24300
 
24301
      }
24302
    }
24303
 
24304
    public Object getFieldValue(_Fields field) {
24305
      switch (field) {
24306
      case START_DATE:
24307
        return Long.valueOf(getStartDate());
24308
 
24309
      case END_DATE:
24310
        return Long.valueOf(getEndDate());
24311
 
24312
      }
24313
      throw new IllegalStateException();
24314
    }
24315
 
24316
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24317
    public boolean isSet(_Fields field) {
24318
      if (field == null) {
24319
        throw new IllegalArgumentException();
24320
      }
24321
 
24322
      switch (field) {
24323
      case START_DATE:
24324
        return isSetStartDate();
24325
      case END_DATE:
24326
        return isSetEndDate();
24327
      }
24328
      throw new IllegalStateException();
24329
    }
24330
 
24331
    @Override
24332
    public boolean equals(Object that) {
24333
      if (that == null)
24334
        return false;
24335
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_args)
24336
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_args)that);
24337
      return false;
24338
    }
24339
 
24340
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_args that) {
24341
      if (that == null)
24342
        return false;
24343
 
24344
      boolean this_present_startDate = true;
24345
      boolean that_present_startDate = true;
24346
      if (this_present_startDate || that_present_startDate) {
24347
        if (!(this_present_startDate && that_present_startDate))
24348
          return false;
24349
        if (this.startDate != that.startDate)
24350
          return false;
24351
      }
24352
 
24353
      boolean this_present_endDate = true;
24354
      boolean that_present_endDate = true;
24355
      if (this_present_endDate || that_present_endDate) {
24356
        if (!(this_present_endDate && that_present_endDate))
24357
          return false;
24358
        if (this.endDate != that.endDate)
24359
          return false;
24360
      }
24361
 
24362
      return true;
24363
    }
24364
 
24365
    @Override
24366
    public int hashCode() {
24367
      return 0;
24368
    }
24369
 
24370
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_args other) {
24371
      if (!getClass().equals(other.getClass())) {
24372
        return getClass().getName().compareTo(other.getClass().getName());
24373
      }
24374
 
24375
      int lastComparison = 0;
24376
      getCompleteMovementNonSerializedInventoryByScans_args typedOther = (getCompleteMovementNonSerializedInventoryByScans_args)other;
24377
 
24378
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
24379
      if (lastComparison != 0) {
24380
        return lastComparison;
24381
      }
24382
      if (isSetStartDate()) {
24383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
24384
        if (lastComparison != 0) {
24385
          return lastComparison;
24386
        }
24387
      }
24388
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
24389
      if (lastComparison != 0) {
24390
        return lastComparison;
24391
      }
24392
      if (isSetEndDate()) {
24393
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
24394
        if (lastComparison != 0) {
24395
          return lastComparison;
24396
        }
24397
      }
24398
      return 0;
24399
    }
24400
 
24401
    public _Fields fieldForId(int fieldId) {
24402
      return _Fields.findByThriftId(fieldId);
24403
    }
24404
 
24405
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24406
      org.apache.thrift.protocol.TField field;
24407
      iprot.readStructBegin();
24408
      while (true)
24409
      {
24410
        field = iprot.readFieldBegin();
24411
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24412
          break;
24413
        }
24414
        switch (field.id) {
24415
          case 1: // START_DATE
24416
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24417
              this.startDate = iprot.readI64();
24418
              setStartDateIsSet(true);
24419
            } else { 
24420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24421
            }
24422
            break;
24423
          case 2: // END_DATE
24424
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24425
              this.endDate = iprot.readI64();
24426
              setEndDateIsSet(true);
24427
            } else { 
24428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24429
            }
24430
            break;
24431
          default:
24432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24433
        }
24434
        iprot.readFieldEnd();
24435
      }
24436
      iprot.readStructEnd();
24437
      validate();
24438
    }
24439
 
24440
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24441
      validate();
24442
 
24443
      oprot.writeStructBegin(STRUCT_DESC);
24444
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
24445
      oprot.writeI64(this.startDate);
24446
      oprot.writeFieldEnd();
24447
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
24448
      oprot.writeI64(this.endDate);
24449
      oprot.writeFieldEnd();
24450
      oprot.writeFieldStop();
24451
      oprot.writeStructEnd();
24452
    }
24453
 
24454
    @Override
24455
    public String toString() {
24456
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_args(");
24457
      boolean first = true;
24458
 
24459
      sb.append("startDate:");
24460
      sb.append(this.startDate);
24461
      first = false;
24462
      if (!first) sb.append(", ");
24463
      sb.append("endDate:");
24464
      sb.append(this.endDate);
24465
      first = false;
24466
      sb.append(")");
24467
      return sb.toString();
24468
    }
24469
 
24470
    public void validate() throws org.apache.thrift.TException {
24471
      // check for required fields
24472
    }
24473
 
24474
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24475
      try {
24476
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24477
      } catch (org.apache.thrift.TException te) {
24478
        throw new java.io.IOException(te);
24479
      }
24480
    }
24481
 
24482
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24483
      try {
24484
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24485
        __isset_bit_vector = new BitSet(1);
24486
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24487
      } catch (org.apache.thrift.TException te) {
24488
        throw new java.io.IOException(te);
24489
      }
24490
    }
24491
 
24492
  }
24493
 
24494
  public static class getCompleteMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_result, getCompleteMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
24495
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_result");
24496
 
24497
    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);
24498
 
24499
    private List<InventoryMovement> success; // required
24500
 
24501
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24502
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24503
      SUCCESS((short)0, "success");
24504
 
24505
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24506
 
24507
      static {
24508
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24509
          byName.put(field.getFieldName(), field);
24510
        }
24511
      }
24512
 
24513
      /**
24514
       * Find the _Fields constant that matches fieldId, or null if its not found.
24515
       */
24516
      public static _Fields findByThriftId(int fieldId) {
24517
        switch(fieldId) {
24518
          case 0: // SUCCESS
24519
            return SUCCESS;
24520
          default:
24521
            return null;
24522
        }
24523
      }
24524
 
24525
      /**
24526
       * Find the _Fields constant that matches fieldId, throwing an exception
24527
       * if it is not found.
24528
       */
24529
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24530
        _Fields fields = findByThriftId(fieldId);
24531
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24532
        return fields;
24533
      }
24534
 
24535
      /**
24536
       * Find the _Fields constant that matches name, or null if its not found.
24537
       */
24538
      public static _Fields findByName(String name) {
24539
        return byName.get(name);
24540
      }
24541
 
24542
      private final short _thriftId;
24543
      private final String _fieldName;
24544
 
24545
      _Fields(short thriftId, String fieldName) {
24546
        _thriftId = thriftId;
24547
        _fieldName = fieldName;
24548
      }
24549
 
24550
      public short getThriftFieldId() {
24551
        return _thriftId;
24552
      }
24553
 
24554
      public String getFieldName() {
24555
        return _fieldName;
24556
      }
24557
    }
24558
 
24559
    // isset id assignments
24560
 
24561
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24562
    static {
24563
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24564
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24565
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24566
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
24567
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24568
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_result.class, metaDataMap);
24569
    }
24570
 
24571
    public getCompleteMovementNonSerializedInventoryByScans_result() {
24572
    }
24573
 
24574
    public getCompleteMovementNonSerializedInventoryByScans_result(
24575
      List<InventoryMovement> success)
24576
    {
24577
      this();
24578
      this.success = success;
24579
    }
24580
 
24581
    /**
24582
     * Performs a deep copy on <i>other</i>.
24583
     */
24584
    public getCompleteMovementNonSerializedInventoryByScans_result(getCompleteMovementNonSerializedInventoryByScans_result other) {
24585
      if (other.isSetSuccess()) {
24586
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
24587
        for (InventoryMovement other_element : other.success) {
24588
          __this__success.add(new InventoryMovement(other_element));
24589
        }
24590
        this.success = __this__success;
24591
      }
24592
    }
24593
 
24594
    public getCompleteMovementNonSerializedInventoryByScans_result deepCopy() {
24595
      return new getCompleteMovementNonSerializedInventoryByScans_result(this);
24596
    }
24597
 
24598
    @Override
24599
    public void clear() {
24600
      this.success = null;
24601
    }
24602
 
24603
    public int getSuccessSize() {
24604
      return (this.success == null) ? 0 : this.success.size();
24605
    }
24606
 
24607
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
24608
      return (this.success == null) ? null : this.success.iterator();
24609
    }
24610
 
24611
    public void addToSuccess(InventoryMovement elem) {
24612
      if (this.success == null) {
24613
        this.success = new ArrayList<InventoryMovement>();
24614
      }
24615
      this.success.add(elem);
24616
    }
24617
 
24618
    public List<InventoryMovement> getSuccess() {
24619
      return this.success;
24620
    }
24621
 
24622
    public void setSuccess(List<InventoryMovement> success) {
24623
      this.success = success;
24624
    }
24625
 
24626
    public void unsetSuccess() {
24627
      this.success = null;
24628
    }
24629
 
24630
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24631
    public boolean isSetSuccess() {
24632
      return this.success != null;
24633
    }
24634
 
24635
    public void setSuccessIsSet(boolean value) {
24636
      if (!value) {
24637
        this.success = null;
24638
      }
24639
    }
24640
 
24641
    public void setFieldValue(_Fields field, Object value) {
24642
      switch (field) {
24643
      case SUCCESS:
24644
        if (value == null) {
24645
          unsetSuccess();
24646
        } else {
24647
          setSuccess((List<InventoryMovement>)value);
24648
        }
24649
        break;
24650
 
24651
      }
24652
    }
24653
 
24654
    public Object getFieldValue(_Fields field) {
24655
      switch (field) {
24656
      case SUCCESS:
24657
        return getSuccess();
24658
 
24659
      }
24660
      throw new IllegalStateException();
24661
    }
24662
 
24663
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24664
    public boolean isSet(_Fields field) {
24665
      if (field == null) {
24666
        throw new IllegalArgumentException();
24667
      }
24668
 
24669
      switch (field) {
24670
      case SUCCESS:
24671
        return isSetSuccess();
24672
      }
24673
      throw new IllegalStateException();
24674
    }
24675
 
24676
    @Override
24677
    public boolean equals(Object that) {
24678
      if (that == null)
24679
        return false;
24680
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_result)
24681
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_result)that);
24682
      return false;
24683
    }
24684
 
24685
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_result that) {
24686
      if (that == null)
24687
        return false;
24688
 
24689
      boolean this_present_success = true && this.isSetSuccess();
24690
      boolean that_present_success = true && that.isSetSuccess();
24691
      if (this_present_success || that_present_success) {
24692
        if (!(this_present_success && that_present_success))
24693
          return false;
24694
        if (!this.success.equals(that.success))
24695
          return false;
24696
      }
24697
 
24698
      return true;
24699
    }
24700
 
24701
    @Override
24702
    public int hashCode() {
24703
      return 0;
24704
    }
24705
 
24706
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_result other) {
24707
      if (!getClass().equals(other.getClass())) {
24708
        return getClass().getName().compareTo(other.getClass().getName());
24709
      }
24710
 
24711
      int lastComparison = 0;
24712
      getCompleteMovementNonSerializedInventoryByScans_result typedOther = (getCompleteMovementNonSerializedInventoryByScans_result)other;
24713
 
24714
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24715
      if (lastComparison != 0) {
24716
        return lastComparison;
24717
      }
24718
      if (isSetSuccess()) {
24719
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24720
        if (lastComparison != 0) {
24721
          return lastComparison;
24722
        }
24723
      }
24724
      return 0;
24725
    }
24726
 
24727
    public _Fields fieldForId(int fieldId) {
24728
      return _Fields.findByThriftId(fieldId);
24729
    }
24730
 
24731
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24732
      org.apache.thrift.protocol.TField field;
24733
      iprot.readStructBegin();
24734
      while (true)
24735
      {
24736
        field = iprot.readFieldBegin();
24737
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24738
          break;
24739
        }
24740
        switch (field.id) {
24741
          case 0: // SUCCESS
24742
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24743
              {
24744
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
24745
                this.success = new ArrayList<InventoryMovement>(_list72.size);
24746
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
24747
                {
24748
                  InventoryMovement _elem74; // required
24749
                  _elem74 = new InventoryMovement();
24750
                  _elem74.read(iprot);
24751
                  this.success.add(_elem74);
24752
                }
24753
                iprot.readListEnd();
24754
              }
24755
            } else { 
24756
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24757
            }
24758
            break;
24759
          default:
24760
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24761
        }
24762
        iprot.readFieldEnd();
24763
      }
24764
      iprot.readStructEnd();
24765
      validate();
24766
    }
24767
 
24768
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24769
      oprot.writeStructBegin(STRUCT_DESC);
24770
 
24771
      if (this.isSetSuccess()) {
24772
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24773
        {
24774
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24775
          for (InventoryMovement _iter75 : this.success)
24776
          {
24777
            _iter75.write(oprot);
24778
          }
24779
          oprot.writeListEnd();
24780
        }
24781
        oprot.writeFieldEnd();
24782
      }
24783
      oprot.writeFieldStop();
24784
      oprot.writeStructEnd();
24785
    }
24786
 
24787
    @Override
24788
    public String toString() {
24789
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_result(");
24790
      boolean first = true;
24791
 
24792
      sb.append("success:");
24793
      if (this.success == null) {
24794
        sb.append("null");
24795
      } else {
24796
        sb.append(this.success);
24797
      }
24798
      first = false;
24799
      sb.append(")");
24800
      return sb.toString();
24801
    }
24802
 
24803
    public void validate() throws org.apache.thrift.TException {
24804
      // check for required fields
24805
    }
24806
 
24807
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24808
      try {
24809
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24810
      } catch (org.apache.thrift.TException te) {
24811
        throw new java.io.IOException(te);
24812
      }
24813
    }
24814
 
24815
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24816
      try {
24817
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24818
      } catch (org.apache.thrift.TException te) {
24819
        throw new java.io.IOException(te);
24820
      }
24821
    }
24822
 
24823
  }
24824
 
7190 amar.kumar 24825
  public static class scanfreebie_args implements org.apache.thrift.TBase<scanfreebie_args, scanfreebie_args._Fields>, java.io.Serializable, Cloneable   {
24826
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_args");
24827
 
24828
    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);
24829
    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);
24830
    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);
24831
    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);
24832
 
24833
    private long orderId; // required
24834
    private long freebieItemId; // required
24835
    private long freebieWarehouseId; // required
24836
    private ScanType scanType; // required
24837
 
24838
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24839
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24840
      ORDER_ID((short)1, "orderId"),
24841
      FREEBIE_ITEM_ID((short)2, "freebieItemId"),
24842
      FREEBIE_WAREHOUSE_ID((short)3, "freebieWarehouseId"),
24843
      /**
24844
       * 
24845
       * @see ScanType
24846
       */
24847
      SCAN_TYPE((short)4, "scanType");
24848
 
24849
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24850
 
24851
      static {
24852
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24853
          byName.put(field.getFieldName(), field);
24854
        }
24855
      }
24856
 
24857
      /**
24858
       * Find the _Fields constant that matches fieldId, or null if its not found.
24859
       */
24860
      public static _Fields findByThriftId(int fieldId) {
24861
        switch(fieldId) {
24862
          case 1: // ORDER_ID
24863
            return ORDER_ID;
24864
          case 2: // FREEBIE_ITEM_ID
24865
            return FREEBIE_ITEM_ID;
24866
          case 3: // FREEBIE_WAREHOUSE_ID
24867
            return FREEBIE_WAREHOUSE_ID;
24868
          case 4: // SCAN_TYPE
24869
            return SCAN_TYPE;
24870
          default:
24871
            return null;
24872
        }
24873
      }
24874
 
24875
      /**
24876
       * Find the _Fields constant that matches fieldId, throwing an exception
24877
       * if it is not found.
24878
       */
24879
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24880
        _Fields fields = findByThriftId(fieldId);
24881
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24882
        return fields;
24883
      }
24884
 
24885
      /**
24886
       * Find the _Fields constant that matches name, or null if its not found.
24887
       */
24888
      public static _Fields findByName(String name) {
24889
        return byName.get(name);
24890
      }
24891
 
24892
      private final short _thriftId;
24893
      private final String _fieldName;
24894
 
24895
      _Fields(short thriftId, String fieldName) {
24896
        _thriftId = thriftId;
24897
        _fieldName = fieldName;
24898
      }
24899
 
24900
      public short getThriftFieldId() {
24901
        return _thriftId;
24902
      }
24903
 
24904
      public String getFieldName() {
24905
        return _fieldName;
24906
      }
24907
    }
24908
 
24909
    // isset id assignments
24910
    private static final int __ORDERID_ISSET_ID = 0;
24911
    private static final int __FREEBIEITEMID_ISSET_ID = 1;
24912
    private static final int __FREEBIEWAREHOUSEID_ISSET_ID = 2;
24913
    private BitSet __isset_bit_vector = new BitSet(3);
24914
 
24915
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24916
    static {
24917
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24918
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24919
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24920
      tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24922
      tmpMap.put(_Fields.FREEBIE_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24924
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24925
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
24926
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24927
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_args.class, metaDataMap);
24928
    }
24929
 
24930
    public scanfreebie_args() {
24931
    }
24932
 
24933
    public scanfreebie_args(
24934
      long orderId,
24935
      long freebieItemId,
24936
      long freebieWarehouseId,
24937
      ScanType scanType)
24938
    {
24939
      this();
24940
      this.orderId = orderId;
24941
      setOrderIdIsSet(true);
24942
      this.freebieItemId = freebieItemId;
24943
      setFreebieItemIdIsSet(true);
24944
      this.freebieWarehouseId = freebieWarehouseId;
24945
      setFreebieWarehouseIdIsSet(true);
24946
      this.scanType = scanType;
24947
    }
24948
 
24949
    /**
24950
     * Performs a deep copy on <i>other</i>.
24951
     */
24952
    public scanfreebie_args(scanfreebie_args other) {
24953
      __isset_bit_vector.clear();
24954
      __isset_bit_vector.or(other.__isset_bit_vector);
24955
      this.orderId = other.orderId;
24956
      this.freebieItemId = other.freebieItemId;
24957
      this.freebieWarehouseId = other.freebieWarehouseId;
24958
      if (other.isSetScanType()) {
24959
        this.scanType = other.scanType;
24960
      }
24961
    }
24962
 
24963
    public scanfreebie_args deepCopy() {
24964
      return new scanfreebie_args(this);
24965
    }
24966
 
24967
    @Override
24968
    public void clear() {
24969
      setOrderIdIsSet(false);
24970
      this.orderId = 0;
24971
      setFreebieItemIdIsSet(false);
24972
      this.freebieItemId = 0;
24973
      setFreebieWarehouseIdIsSet(false);
24974
      this.freebieWarehouseId = 0;
24975
      this.scanType = null;
24976
    }
24977
 
24978
    public long getOrderId() {
24979
      return this.orderId;
24980
    }
24981
 
24982
    public void setOrderId(long orderId) {
24983
      this.orderId = orderId;
24984
      setOrderIdIsSet(true);
24985
    }
24986
 
24987
    public void unsetOrderId() {
24988
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
24989
    }
24990
 
24991
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
24992
    public boolean isSetOrderId() {
24993
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
24994
    }
24995
 
24996
    public void setOrderIdIsSet(boolean value) {
24997
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
24998
    }
24999
 
25000
    public long getFreebieItemId() {
25001
      return this.freebieItemId;
25002
    }
25003
 
25004
    public void setFreebieItemId(long freebieItemId) {
25005
      this.freebieItemId = freebieItemId;
25006
      setFreebieItemIdIsSet(true);
25007
    }
25008
 
25009
    public void unsetFreebieItemId() {
25010
      __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
25011
    }
25012
 
25013
    /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
25014
    public boolean isSetFreebieItemId() {
25015
      return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
25016
    }
25017
 
25018
    public void setFreebieItemIdIsSet(boolean value) {
25019
      __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
25020
    }
25021
 
25022
    public long getFreebieWarehouseId() {
25023
      return this.freebieWarehouseId;
25024
    }
25025
 
25026
    public void setFreebieWarehouseId(long freebieWarehouseId) {
25027
      this.freebieWarehouseId = freebieWarehouseId;
25028
      setFreebieWarehouseIdIsSet(true);
25029
    }
25030
 
25031
    public void unsetFreebieWarehouseId() {
25032
      __isset_bit_vector.clear(__FREEBIEWAREHOUSEID_ISSET_ID);
25033
    }
25034
 
25035
    /** Returns true if field freebieWarehouseId is set (has been assigned a value) and false otherwise */
25036
    public boolean isSetFreebieWarehouseId() {
25037
      return __isset_bit_vector.get(__FREEBIEWAREHOUSEID_ISSET_ID);
25038
    }
25039
 
25040
    public void setFreebieWarehouseIdIsSet(boolean value) {
25041
      __isset_bit_vector.set(__FREEBIEWAREHOUSEID_ISSET_ID, value);
25042
    }
25043
 
25044
    /**
25045
     * 
25046
     * @see ScanType
25047
     */
25048
    public ScanType getScanType() {
25049
      return this.scanType;
25050
    }
25051
 
25052
    /**
25053
     * 
25054
     * @see ScanType
25055
     */
25056
    public void setScanType(ScanType scanType) {
25057
      this.scanType = scanType;
25058
    }
25059
 
25060
    public void unsetScanType() {
25061
      this.scanType = null;
25062
    }
25063
 
25064
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
25065
    public boolean isSetScanType() {
25066
      return this.scanType != null;
25067
    }
25068
 
25069
    public void setScanTypeIsSet(boolean value) {
25070
      if (!value) {
25071
        this.scanType = null;
25072
      }
25073
    }
25074
 
25075
    public void setFieldValue(_Fields field, Object value) {
25076
      switch (field) {
25077
      case ORDER_ID:
25078
        if (value == null) {
25079
          unsetOrderId();
25080
        } else {
25081
          setOrderId((Long)value);
25082
        }
25083
        break;
25084
 
25085
      case FREEBIE_ITEM_ID:
25086
        if (value == null) {
25087
          unsetFreebieItemId();
25088
        } else {
25089
          setFreebieItemId((Long)value);
25090
        }
25091
        break;
25092
 
25093
      case FREEBIE_WAREHOUSE_ID:
25094
        if (value == null) {
25095
          unsetFreebieWarehouseId();
25096
        } else {
25097
          setFreebieWarehouseId((Long)value);
25098
        }
25099
        break;
25100
 
25101
      case SCAN_TYPE:
25102
        if (value == null) {
25103
          unsetScanType();
25104
        } else {
25105
          setScanType((ScanType)value);
25106
        }
25107
        break;
25108
 
25109
      }
25110
    }
25111
 
25112
    public Object getFieldValue(_Fields field) {
25113
      switch (field) {
25114
      case ORDER_ID:
25115
        return Long.valueOf(getOrderId());
25116
 
25117
      case FREEBIE_ITEM_ID:
25118
        return Long.valueOf(getFreebieItemId());
25119
 
25120
      case FREEBIE_WAREHOUSE_ID:
25121
        return Long.valueOf(getFreebieWarehouseId());
25122
 
25123
      case SCAN_TYPE:
25124
        return getScanType();
25125
 
25126
      }
25127
      throw new IllegalStateException();
25128
    }
25129
 
25130
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25131
    public boolean isSet(_Fields field) {
25132
      if (field == null) {
25133
        throw new IllegalArgumentException();
25134
      }
25135
 
25136
      switch (field) {
25137
      case ORDER_ID:
25138
        return isSetOrderId();
25139
      case FREEBIE_ITEM_ID:
25140
        return isSetFreebieItemId();
25141
      case FREEBIE_WAREHOUSE_ID:
25142
        return isSetFreebieWarehouseId();
25143
      case SCAN_TYPE:
25144
        return isSetScanType();
25145
      }
25146
      throw new IllegalStateException();
25147
    }
25148
 
25149
    @Override
25150
    public boolean equals(Object that) {
25151
      if (that == null)
25152
        return false;
25153
      if (that instanceof scanfreebie_args)
25154
        return this.equals((scanfreebie_args)that);
25155
      return false;
25156
    }
25157
 
25158
    public boolean equals(scanfreebie_args that) {
25159
      if (that == null)
25160
        return false;
25161
 
25162
      boolean this_present_orderId = true;
25163
      boolean that_present_orderId = true;
25164
      if (this_present_orderId || that_present_orderId) {
25165
        if (!(this_present_orderId && that_present_orderId))
25166
          return false;
25167
        if (this.orderId != that.orderId)
25168
          return false;
25169
      }
25170
 
25171
      boolean this_present_freebieItemId = true;
25172
      boolean that_present_freebieItemId = true;
25173
      if (this_present_freebieItemId || that_present_freebieItemId) {
25174
        if (!(this_present_freebieItemId && that_present_freebieItemId))
25175
          return false;
25176
        if (this.freebieItemId != that.freebieItemId)
25177
          return false;
25178
      }
25179
 
25180
      boolean this_present_freebieWarehouseId = true;
25181
      boolean that_present_freebieWarehouseId = true;
25182
      if (this_present_freebieWarehouseId || that_present_freebieWarehouseId) {
25183
        if (!(this_present_freebieWarehouseId && that_present_freebieWarehouseId))
25184
          return false;
25185
        if (this.freebieWarehouseId != that.freebieWarehouseId)
25186
          return false;
25187
      }
25188
 
25189
      boolean this_present_scanType = true && this.isSetScanType();
25190
      boolean that_present_scanType = true && that.isSetScanType();
25191
      if (this_present_scanType || that_present_scanType) {
25192
        if (!(this_present_scanType && that_present_scanType))
25193
          return false;
25194
        if (!this.scanType.equals(that.scanType))
25195
          return false;
25196
      }
25197
 
25198
      return true;
25199
    }
25200
 
25201
    @Override
25202
    public int hashCode() {
25203
      return 0;
25204
    }
25205
 
25206
    public int compareTo(scanfreebie_args other) {
25207
      if (!getClass().equals(other.getClass())) {
25208
        return getClass().getName().compareTo(other.getClass().getName());
25209
      }
25210
 
25211
      int lastComparison = 0;
25212
      scanfreebie_args typedOther = (scanfreebie_args)other;
25213
 
25214
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
25215
      if (lastComparison != 0) {
25216
        return lastComparison;
25217
      }
25218
      if (isSetOrderId()) {
25219
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
25220
        if (lastComparison != 0) {
25221
          return lastComparison;
25222
        }
25223
      }
25224
      lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
25225
      if (lastComparison != 0) {
25226
        return lastComparison;
25227
      }
25228
      if (isSetFreebieItemId()) {
25229
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
25230
        if (lastComparison != 0) {
25231
          return lastComparison;
25232
        }
25233
      }
25234
      lastComparison = Boolean.valueOf(isSetFreebieWarehouseId()).compareTo(typedOther.isSetFreebieWarehouseId());
25235
      if (lastComparison != 0) {
25236
        return lastComparison;
25237
      }
25238
      if (isSetFreebieWarehouseId()) {
25239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieWarehouseId, typedOther.freebieWarehouseId);
25240
        if (lastComparison != 0) {
25241
          return lastComparison;
25242
        }
25243
      }
25244
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
25245
      if (lastComparison != 0) {
25246
        return lastComparison;
25247
      }
25248
      if (isSetScanType()) {
25249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
25250
        if (lastComparison != 0) {
25251
          return lastComparison;
25252
        }
25253
      }
25254
      return 0;
25255
    }
25256
 
25257
    public _Fields fieldForId(int fieldId) {
25258
      return _Fields.findByThriftId(fieldId);
25259
    }
25260
 
25261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25262
      org.apache.thrift.protocol.TField field;
25263
      iprot.readStructBegin();
25264
      while (true)
25265
      {
25266
        field = iprot.readFieldBegin();
25267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25268
          break;
25269
        }
25270
        switch (field.id) {
25271
          case 1: // ORDER_ID
25272
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25273
              this.orderId = iprot.readI64();
25274
              setOrderIdIsSet(true);
25275
            } else { 
25276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25277
            }
25278
            break;
25279
          case 2: // FREEBIE_ITEM_ID
25280
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25281
              this.freebieItemId = iprot.readI64();
25282
              setFreebieItemIdIsSet(true);
25283
            } else { 
25284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25285
            }
25286
            break;
25287
          case 3: // FREEBIE_WAREHOUSE_ID
25288
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25289
              this.freebieWarehouseId = iprot.readI64();
25290
              setFreebieWarehouseIdIsSet(true);
25291
            } else { 
25292
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25293
            }
25294
            break;
25295
          case 4: // SCAN_TYPE
25296
            if (field.type == org.apache.thrift.protocol.TType.I32) {
25297
              this.scanType = ScanType.findByValue(iprot.readI32());
25298
            } else { 
25299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25300
            }
25301
            break;
25302
          default:
25303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25304
        }
25305
        iprot.readFieldEnd();
25306
      }
25307
      iprot.readStructEnd();
25308
      validate();
25309
    }
25310
 
25311
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25312
      validate();
25313
 
25314
      oprot.writeStructBegin(STRUCT_DESC);
25315
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
25316
      oprot.writeI64(this.orderId);
25317
      oprot.writeFieldEnd();
25318
      oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
25319
      oprot.writeI64(this.freebieItemId);
25320
      oprot.writeFieldEnd();
25321
      oprot.writeFieldBegin(FREEBIE_WAREHOUSE_ID_FIELD_DESC);
25322
      oprot.writeI64(this.freebieWarehouseId);
25323
      oprot.writeFieldEnd();
25324
      if (this.scanType != null) {
25325
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
25326
        oprot.writeI32(this.scanType.getValue());
25327
        oprot.writeFieldEnd();
25328
      }
25329
      oprot.writeFieldStop();
25330
      oprot.writeStructEnd();
25331
    }
25332
 
25333
    @Override
25334
    public String toString() {
25335
      StringBuilder sb = new StringBuilder("scanfreebie_args(");
25336
      boolean first = true;
25337
 
25338
      sb.append("orderId:");
25339
      sb.append(this.orderId);
25340
      first = false;
25341
      if (!first) sb.append(", ");
25342
      sb.append("freebieItemId:");
25343
      sb.append(this.freebieItemId);
25344
      first = false;
25345
      if (!first) sb.append(", ");
25346
      sb.append("freebieWarehouseId:");
25347
      sb.append(this.freebieWarehouseId);
25348
      first = false;
25349
      if (!first) sb.append(", ");
25350
      sb.append("scanType:");
25351
      if (this.scanType == null) {
25352
        sb.append("null");
25353
      } else {
25354
        sb.append(this.scanType);
25355
      }
25356
      first = false;
25357
      sb.append(")");
25358
      return sb.toString();
25359
    }
25360
 
25361
    public void validate() throws org.apache.thrift.TException {
25362
      // check for required fields
25363
    }
25364
 
25365
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25366
      try {
25367
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25368
      } catch (org.apache.thrift.TException te) {
25369
        throw new java.io.IOException(te);
25370
      }
25371
    }
25372
 
25373
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25374
      try {
25375
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25376
        __isset_bit_vector = new BitSet(1);
25377
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25378
      } catch (org.apache.thrift.TException te) {
25379
        throw new java.io.IOException(te);
25380
      }
25381
    }
25382
 
25383
  }
25384
 
25385
  public static class scanfreebie_result implements org.apache.thrift.TBase<scanfreebie_result, scanfreebie_result._Fields>, java.io.Serializable, Cloneable   {
25386
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_result");
25387
 
25388
    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);
25389
    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);
25390
 
25391
    private InventoryItem success; // required
25392
    private WarehouseServiceException wex; // required
25393
 
25394
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25395
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25396
      SUCCESS((short)0, "success"),
25397
      WEX((short)1, "wex");
25398
 
25399
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25400
 
25401
      static {
25402
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25403
          byName.put(field.getFieldName(), field);
25404
        }
25405
      }
25406
 
25407
      /**
25408
       * Find the _Fields constant that matches fieldId, or null if its not found.
25409
       */
25410
      public static _Fields findByThriftId(int fieldId) {
25411
        switch(fieldId) {
25412
          case 0: // SUCCESS
25413
            return SUCCESS;
25414
          case 1: // WEX
25415
            return WEX;
25416
          default:
25417
            return null;
25418
        }
25419
      }
25420
 
25421
      /**
25422
       * Find the _Fields constant that matches fieldId, throwing an exception
25423
       * if it is not found.
25424
       */
25425
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25426
        _Fields fields = findByThriftId(fieldId);
25427
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25428
        return fields;
25429
      }
25430
 
25431
      /**
25432
       * Find the _Fields constant that matches name, or null if its not found.
25433
       */
25434
      public static _Fields findByName(String name) {
25435
        return byName.get(name);
25436
      }
25437
 
25438
      private final short _thriftId;
25439
      private final String _fieldName;
25440
 
25441
      _Fields(short thriftId, String fieldName) {
25442
        _thriftId = thriftId;
25443
        _fieldName = fieldName;
25444
      }
25445
 
25446
      public short getThriftFieldId() {
25447
        return _thriftId;
25448
      }
25449
 
25450
      public String getFieldName() {
25451
        return _fieldName;
25452
      }
25453
    }
25454
 
25455
    // isset id assignments
25456
 
25457
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25458
    static {
25459
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25460
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25461
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
25462
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25463
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25464
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25465
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_result.class, metaDataMap);
25466
    }
25467
 
25468
    public scanfreebie_result() {
25469
    }
25470
 
25471
    public scanfreebie_result(
25472
      InventoryItem success,
25473
      WarehouseServiceException wex)
25474
    {
25475
      this();
25476
      this.success = success;
25477
      this.wex = wex;
25478
    }
25479
 
25480
    /**
25481
     * Performs a deep copy on <i>other</i>.
25482
     */
25483
    public scanfreebie_result(scanfreebie_result other) {
25484
      if (other.isSetSuccess()) {
25485
        this.success = new InventoryItem(other.success);
25486
      }
25487
      if (other.isSetWex()) {
25488
        this.wex = new WarehouseServiceException(other.wex);
25489
      }
25490
    }
25491
 
25492
    public scanfreebie_result deepCopy() {
25493
      return new scanfreebie_result(this);
25494
    }
25495
 
25496
    @Override
25497
    public void clear() {
25498
      this.success = null;
25499
      this.wex = null;
25500
    }
25501
 
25502
    public InventoryItem getSuccess() {
25503
      return this.success;
25504
    }
25505
 
25506
    public void setSuccess(InventoryItem success) {
25507
      this.success = success;
25508
    }
25509
 
25510
    public void unsetSuccess() {
25511
      this.success = null;
25512
    }
25513
 
25514
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25515
    public boolean isSetSuccess() {
25516
      return this.success != null;
25517
    }
25518
 
25519
    public void setSuccessIsSet(boolean value) {
25520
      if (!value) {
25521
        this.success = null;
25522
      }
25523
    }
25524
 
25525
    public WarehouseServiceException getWex() {
25526
      return this.wex;
25527
    }
25528
 
25529
    public void setWex(WarehouseServiceException wex) {
25530
      this.wex = wex;
25531
    }
25532
 
25533
    public void unsetWex() {
25534
      this.wex = null;
25535
    }
25536
 
25537
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
25538
    public boolean isSetWex() {
25539
      return this.wex != null;
25540
    }
25541
 
25542
    public void setWexIsSet(boolean value) {
25543
      if (!value) {
25544
        this.wex = null;
25545
      }
25546
    }
25547
 
25548
    public void setFieldValue(_Fields field, Object value) {
25549
      switch (field) {
25550
      case SUCCESS:
25551
        if (value == null) {
25552
          unsetSuccess();
25553
        } else {
25554
          setSuccess((InventoryItem)value);
25555
        }
25556
        break;
25557
 
25558
      case WEX:
25559
        if (value == null) {
25560
          unsetWex();
25561
        } else {
25562
          setWex((WarehouseServiceException)value);
25563
        }
25564
        break;
25565
 
25566
      }
25567
    }
25568
 
25569
    public Object getFieldValue(_Fields field) {
25570
      switch (field) {
25571
      case SUCCESS:
25572
        return getSuccess();
25573
 
25574
      case WEX:
25575
        return getWex();
25576
 
25577
      }
25578
      throw new IllegalStateException();
25579
    }
25580
 
25581
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25582
    public boolean isSet(_Fields field) {
25583
      if (field == null) {
25584
        throw new IllegalArgumentException();
25585
      }
25586
 
25587
      switch (field) {
25588
      case SUCCESS:
25589
        return isSetSuccess();
25590
      case WEX:
25591
        return isSetWex();
25592
      }
25593
      throw new IllegalStateException();
25594
    }
25595
 
25596
    @Override
25597
    public boolean equals(Object that) {
25598
      if (that == null)
25599
        return false;
25600
      if (that instanceof scanfreebie_result)
25601
        return this.equals((scanfreebie_result)that);
25602
      return false;
25603
    }
25604
 
25605
    public boolean equals(scanfreebie_result that) {
25606
      if (that == null)
25607
        return false;
25608
 
25609
      boolean this_present_success = true && this.isSetSuccess();
25610
      boolean that_present_success = true && that.isSetSuccess();
25611
      if (this_present_success || that_present_success) {
25612
        if (!(this_present_success && that_present_success))
25613
          return false;
25614
        if (!this.success.equals(that.success))
25615
          return false;
25616
      }
25617
 
25618
      boolean this_present_wex = true && this.isSetWex();
25619
      boolean that_present_wex = true && that.isSetWex();
25620
      if (this_present_wex || that_present_wex) {
25621
        if (!(this_present_wex && that_present_wex))
25622
          return false;
25623
        if (!this.wex.equals(that.wex))
25624
          return false;
25625
      }
25626
 
25627
      return true;
25628
    }
25629
 
25630
    @Override
25631
    public int hashCode() {
25632
      return 0;
25633
    }
25634
 
25635
    public int compareTo(scanfreebie_result other) {
25636
      if (!getClass().equals(other.getClass())) {
25637
        return getClass().getName().compareTo(other.getClass().getName());
25638
      }
25639
 
25640
      int lastComparison = 0;
25641
      scanfreebie_result typedOther = (scanfreebie_result)other;
25642
 
25643
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25644
      if (lastComparison != 0) {
25645
        return lastComparison;
25646
      }
25647
      if (isSetSuccess()) {
25648
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25649
        if (lastComparison != 0) {
25650
          return lastComparison;
25651
        }
25652
      }
25653
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
25654
      if (lastComparison != 0) {
25655
        return lastComparison;
25656
      }
25657
      if (isSetWex()) {
25658
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
25659
        if (lastComparison != 0) {
25660
          return lastComparison;
25661
        }
25662
      }
25663
      return 0;
25664
    }
25665
 
25666
    public _Fields fieldForId(int fieldId) {
25667
      return _Fields.findByThriftId(fieldId);
25668
    }
25669
 
25670
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25671
      org.apache.thrift.protocol.TField field;
25672
      iprot.readStructBegin();
25673
      while (true)
25674
      {
25675
        field = iprot.readFieldBegin();
25676
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25677
          break;
25678
        }
25679
        switch (field.id) {
25680
          case 0: // SUCCESS
25681
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25682
              this.success = new InventoryItem();
25683
              this.success.read(iprot);
25684
            } else { 
25685
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25686
            }
25687
            break;
25688
          case 1: // WEX
25689
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25690
              this.wex = new WarehouseServiceException();
25691
              this.wex.read(iprot);
25692
            } else { 
25693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25694
            }
25695
            break;
25696
          default:
25697
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25698
        }
25699
        iprot.readFieldEnd();
25700
      }
25701
      iprot.readStructEnd();
25702
      validate();
25703
    }
25704
 
25705
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25706
      oprot.writeStructBegin(STRUCT_DESC);
25707
 
25708
      if (this.isSetSuccess()) {
25709
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25710
        this.success.write(oprot);
25711
        oprot.writeFieldEnd();
25712
      } else if (this.isSetWex()) {
25713
        oprot.writeFieldBegin(WEX_FIELD_DESC);
25714
        this.wex.write(oprot);
25715
        oprot.writeFieldEnd();
25716
      }
25717
      oprot.writeFieldStop();
25718
      oprot.writeStructEnd();
25719
    }
25720
 
25721
    @Override
25722
    public String toString() {
25723
      StringBuilder sb = new StringBuilder("scanfreebie_result(");
25724
      boolean first = true;
25725
 
25726
      sb.append("success:");
25727
      if (this.success == null) {
25728
        sb.append("null");
25729
      } else {
25730
        sb.append(this.success);
25731
      }
25732
      first = false;
25733
      if (!first) sb.append(", ");
25734
      sb.append("wex:");
25735
      if (this.wex == null) {
25736
        sb.append("null");
25737
      } else {
25738
        sb.append(this.wex);
25739
      }
25740
      first = false;
25741
      sb.append(")");
25742
      return sb.toString();
25743
    }
25744
 
25745
    public void validate() throws org.apache.thrift.TException {
25746
      // check for required fields
25747
    }
25748
 
25749
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25750
      try {
25751
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25752
      } catch (org.apache.thrift.TException te) {
25753
        throw new java.io.IOException(te);
25754
      }
25755
    }
25756
 
25757
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25758
      try {
25759
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25760
      } catch (org.apache.thrift.TException te) {
25761
        throw new java.io.IOException(te);
25762
      }
25763
    }
25764
 
25765
  }
25766
 
7199 amar.kumar 25767
  public static class reshipfreebie_args implements org.apache.thrift.TBase<reshipfreebie_args, reshipfreebie_args._Fields>, java.io.Serializable, Cloneable   {
25768
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_args");
25769
 
25770
    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);
25771
    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);
25772
    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);
25773
    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);
25774
 
25775
    private long oldOrderId; // required
25776
    private long newOrderId; // required
25777
    private long freebieItemId; // required
25778
    private ScanType scanType; // required
25779
 
25780
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25781
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25782
      OLD_ORDER_ID((short)1, "oldOrderId"),
25783
      NEW_ORDER_ID((short)2, "newOrderId"),
25784
      FREEBIE_ITEM_ID((short)3, "freebieItemId"),
25785
      /**
25786
       * 
25787
       * @see ScanType
25788
       */
25789
      SCAN_TYPE((short)4, "scanType");
25790
 
25791
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25792
 
25793
      static {
25794
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25795
          byName.put(field.getFieldName(), field);
25796
        }
25797
      }
25798
 
25799
      /**
25800
       * Find the _Fields constant that matches fieldId, or null if its not found.
25801
       */
25802
      public static _Fields findByThriftId(int fieldId) {
25803
        switch(fieldId) {
25804
          case 1: // OLD_ORDER_ID
25805
            return OLD_ORDER_ID;
25806
          case 2: // NEW_ORDER_ID
25807
            return NEW_ORDER_ID;
25808
          case 3: // FREEBIE_ITEM_ID
25809
            return FREEBIE_ITEM_ID;
25810
          case 4: // SCAN_TYPE
25811
            return SCAN_TYPE;
25812
          default:
25813
            return null;
25814
        }
25815
      }
25816
 
25817
      /**
25818
       * Find the _Fields constant that matches fieldId, throwing an exception
25819
       * if it is not found.
25820
       */
25821
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25822
        _Fields fields = findByThriftId(fieldId);
25823
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25824
        return fields;
25825
      }
25826
 
25827
      /**
25828
       * Find the _Fields constant that matches name, or null if its not found.
25829
       */
25830
      public static _Fields findByName(String name) {
25831
        return byName.get(name);
25832
      }
25833
 
25834
      private final short _thriftId;
25835
      private final String _fieldName;
25836
 
25837
      _Fields(short thriftId, String fieldName) {
25838
        _thriftId = thriftId;
25839
        _fieldName = fieldName;
25840
      }
25841
 
25842
      public short getThriftFieldId() {
25843
        return _thriftId;
25844
      }
25845
 
25846
      public String getFieldName() {
25847
        return _fieldName;
25848
      }
25849
    }
25850
 
25851
    // isset id assignments
25852
    private static final int __OLDORDERID_ISSET_ID = 0;
25853
    private static final int __NEWORDERID_ISSET_ID = 1;
25854
    private static final int __FREEBIEITEMID_ISSET_ID = 2;
25855
    private BitSet __isset_bit_vector = new BitSet(3);
25856
 
25857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25858
    static {
25859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25860
      tmpMap.put(_Fields.OLD_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("oldOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25862
      tmpMap.put(_Fields.NEW_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25863
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25864
      tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25865
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25866
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25867
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
25868
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25869
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_args.class, metaDataMap);
25870
    }
25871
 
25872
    public reshipfreebie_args() {
25873
    }
25874
 
25875
    public reshipfreebie_args(
25876
      long oldOrderId,
25877
      long newOrderId,
25878
      long freebieItemId,
25879
      ScanType scanType)
25880
    {
25881
      this();
25882
      this.oldOrderId = oldOrderId;
25883
      setOldOrderIdIsSet(true);
25884
      this.newOrderId = newOrderId;
25885
      setNewOrderIdIsSet(true);
25886
      this.freebieItemId = freebieItemId;
25887
      setFreebieItemIdIsSet(true);
25888
      this.scanType = scanType;
25889
    }
25890
 
25891
    /**
25892
     * Performs a deep copy on <i>other</i>.
25893
     */
25894
    public reshipfreebie_args(reshipfreebie_args other) {
25895
      __isset_bit_vector.clear();
25896
      __isset_bit_vector.or(other.__isset_bit_vector);
25897
      this.oldOrderId = other.oldOrderId;
25898
      this.newOrderId = other.newOrderId;
25899
      this.freebieItemId = other.freebieItemId;
25900
      if (other.isSetScanType()) {
25901
        this.scanType = other.scanType;
25902
      }
25903
    }
25904
 
25905
    public reshipfreebie_args deepCopy() {
25906
      return new reshipfreebie_args(this);
25907
    }
25908
 
25909
    @Override
25910
    public void clear() {
25911
      setOldOrderIdIsSet(false);
25912
      this.oldOrderId = 0;
25913
      setNewOrderIdIsSet(false);
25914
      this.newOrderId = 0;
25915
      setFreebieItemIdIsSet(false);
25916
      this.freebieItemId = 0;
25917
      this.scanType = null;
25918
    }
25919
 
25920
    public long getOldOrderId() {
25921
      return this.oldOrderId;
25922
    }
25923
 
25924
    public void setOldOrderId(long oldOrderId) {
25925
      this.oldOrderId = oldOrderId;
25926
      setOldOrderIdIsSet(true);
25927
    }
25928
 
25929
    public void unsetOldOrderId() {
25930
      __isset_bit_vector.clear(__OLDORDERID_ISSET_ID);
25931
    }
25932
 
25933
    /** Returns true if field oldOrderId is set (has been assigned a value) and false otherwise */
25934
    public boolean isSetOldOrderId() {
25935
      return __isset_bit_vector.get(__OLDORDERID_ISSET_ID);
25936
    }
25937
 
25938
    public void setOldOrderIdIsSet(boolean value) {
25939
      __isset_bit_vector.set(__OLDORDERID_ISSET_ID, value);
25940
    }
25941
 
25942
    public long getNewOrderId() {
25943
      return this.newOrderId;
25944
    }
25945
 
25946
    public void setNewOrderId(long newOrderId) {
25947
      this.newOrderId = newOrderId;
25948
      setNewOrderIdIsSet(true);
25949
    }
25950
 
25951
    public void unsetNewOrderId() {
25952
      __isset_bit_vector.clear(__NEWORDERID_ISSET_ID);
25953
    }
25954
 
25955
    /** Returns true if field newOrderId is set (has been assigned a value) and false otherwise */
25956
    public boolean isSetNewOrderId() {
25957
      return __isset_bit_vector.get(__NEWORDERID_ISSET_ID);
25958
    }
25959
 
25960
    public void setNewOrderIdIsSet(boolean value) {
25961
      __isset_bit_vector.set(__NEWORDERID_ISSET_ID, value);
25962
    }
25963
 
25964
    public long getFreebieItemId() {
25965
      return this.freebieItemId;
25966
    }
25967
 
25968
    public void setFreebieItemId(long freebieItemId) {
25969
      this.freebieItemId = freebieItemId;
25970
      setFreebieItemIdIsSet(true);
25971
    }
25972
 
25973
    public void unsetFreebieItemId() {
25974
      __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
25975
    }
25976
 
25977
    /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
25978
    public boolean isSetFreebieItemId() {
25979
      return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
25980
    }
25981
 
25982
    public void setFreebieItemIdIsSet(boolean value) {
25983
      __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
25984
    }
25985
 
25986
    /**
25987
     * 
25988
     * @see ScanType
25989
     */
25990
    public ScanType getScanType() {
25991
      return this.scanType;
25992
    }
25993
 
25994
    /**
25995
     * 
25996
     * @see ScanType
25997
     */
25998
    public void setScanType(ScanType scanType) {
25999
      this.scanType = scanType;
26000
    }
26001
 
26002
    public void unsetScanType() {
26003
      this.scanType = null;
26004
    }
26005
 
26006
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
26007
    public boolean isSetScanType() {
26008
      return this.scanType != null;
26009
    }
26010
 
26011
    public void setScanTypeIsSet(boolean value) {
26012
      if (!value) {
26013
        this.scanType = null;
26014
      }
26015
    }
26016
 
26017
    public void setFieldValue(_Fields field, Object value) {
26018
      switch (field) {
26019
      case OLD_ORDER_ID:
26020
        if (value == null) {
26021
          unsetOldOrderId();
26022
        } else {
26023
          setOldOrderId((Long)value);
26024
        }
26025
        break;
26026
 
26027
      case NEW_ORDER_ID:
26028
        if (value == null) {
26029
          unsetNewOrderId();
26030
        } else {
26031
          setNewOrderId((Long)value);
26032
        }
26033
        break;
26034
 
26035
      case FREEBIE_ITEM_ID:
26036
        if (value == null) {
26037
          unsetFreebieItemId();
26038
        } else {
26039
          setFreebieItemId((Long)value);
26040
        }
26041
        break;
26042
 
26043
      case SCAN_TYPE:
26044
        if (value == null) {
26045
          unsetScanType();
26046
        } else {
26047
          setScanType((ScanType)value);
26048
        }
26049
        break;
26050
 
26051
      }
26052
    }
26053
 
26054
    public Object getFieldValue(_Fields field) {
26055
      switch (field) {
26056
      case OLD_ORDER_ID:
26057
        return Long.valueOf(getOldOrderId());
26058
 
26059
      case NEW_ORDER_ID:
26060
        return Long.valueOf(getNewOrderId());
26061
 
26062
      case FREEBIE_ITEM_ID:
26063
        return Long.valueOf(getFreebieItemId());
26064
 
26065
      case SCAN_TYPE:
26066
        return getScanType();
26067
 
26068
      }
26069
      throw new IllegalStateException();
26070
    }
26071
 
26072
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26073
    public boolean isSet(_Fields field) {
26074
      if (field == null) {
26075
        throw new IllegalArgumentException();
26076
      }
26077
 
26078
      switch (field) {
26079
      case OLD_ORDER_ID:
26080
        return isSetOldOrderId();
26081
      case NEW_ORDER_ID:
26082
        return isSetNewOrderId();
26083
      case FREEBIE_ITEM_ID:
26084
        return isSetFreebieItemId();
26085
      case SCAN_TYPE:
26086
        return isSetScanType();
26087
      }
26088
      throw new IllegalStateException();
26089
    }
26090
 
26091
    @Override
26092
    public boolean equals(Object that) {
26093
      if (that == null)
26094
        return false;
26095
      if (that instanceof reshipfreebie_args)
26096
        return this.equals((reshipfreebie_args)that);
26097
      return false;
26098
    }
26099
 
26100
    public boolean equals(reshipfreebie_args that) {
26101
      if (that == null)
26102
        return false;
26103
 
26104
      boolean this_present_oldOrderId = true;
26105
      boolean that_present_oldOrderId = true;
26106
      if (this_present_oldOrderId || that_present_oldOrderId) {
26107
        if (!(this_present_oldOrderId && that_present_oldOrderId))
26108
          return false;
26109
        if (this.oldOrderId != that.oldOrderId)
26110
          return false;
26111
      }
26112
 
26113
      boolean this_present_newOrderId = true;
26114
      boolean that_present_newOrderId = true;
26115
      if (this_present_newOrderId || that_present_newOrderId) {
26116
        if (!(this_present_newOrderId && that_present_newOrderId))
26117
          return false;
26118
        if (this.newOrderId != that.newOrderId)
26119
          return false;
26120
      }
26121
 
26122
      boolean this_present_freebieItemId = true;
26123
      boolean that_present_freebieItemId = true;
26124
      if (this_present_freebieItemId || that_present_freebieItemId) {
26125
        if (!(this_present_freebieItemId && that_present_freebieItemId))
26126
          return false;
26127
        if (this.freebieItemId != that.freebieItemId)
26128
          return false;
26129
      }
26130
 
26131
      boolean this_present_scanType = true && this.isSetScanType();
26132
      boolean that_present_scanType = true && that.isSetScanType();
26133
      if (this_present_scanType || that_present_scanType) {
26134
        if (!(this_present_scanType && that_present_scanType))
26135
          return false;
26136
        if (!this.scanType.equals(that.scanType))
26137
          return false;
26138
      }
26139
 
26140
      return true;
26141
    }
26142
 
26143
    @Override
26144
    public int hashCode() {
26145
      return 0;
26146
    }
26147
 
26148
    public int compareTo(reshipfreebie_args other) {
26149
      if (!getClass().equals(other.getClass())) {
26150
        return getClass().getName().compareTo(other.getClass().getName());
26151
      }
26152
 
26153
      int lastComparison = 0;
26154
      reshipfreebie_args typedOther = (reshipfreebie_args)other;
26155
 
26156
      lastComparison = Boolean.valueOf(isSetOldOrderId()).compareTo(typedOther.isSetOldOrderId());
26157
      if (lastComparison != 0) {
26158
        return lastComparison;
26159
      }
26160
      if (isSetOldOrderId()) {
26161
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldOrderId, typedOther.oldOrderId);
26162
        if (lastComparison != 0) {
26163
          return lastComparison;
26164
        }
26165
      }
26166
      lastComparison = Boolean.valueOf(isSetNewOrderId()).compareTo(typedOther.isSetNewOrderId());
26167
      if (lastComparison != 0) {
26168
        return lastComparison;
26169
      }
26170
      if (isSetNewOrderId()) {
26171
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOrderId, typedOther.newOrderId);
26172
        if (lastComparison != 0) {
26173
          return lastComparison;
26174
        }
26175
      }
26176
      lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
26177
      if (lastComparison != 0) {
26178
        return lastComparison;
26179
      }
26180
      if (isSetFreebieItemId()) {
26181
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
26182
        if (lastComparison != 0) {
26183
          return lastComparison;
26184
        }
26185
      }
26186
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
26187
      if (lastComparison != 0) {
26188
        return lastComparison;
26189
      }
26190
      if (isSetScanType()) {
26191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
26192
        if (lastComparison != 0) {
26193
          return lastComparison;
26194
        }
26195
      }
26196
      return 0;
26197
    }
26198
 
26199
    public _Fields fieldForId(int fieldId) {
26200
      return _Fields.findByThriftId(fieldId);
26201
    }
26202
 
26203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26204
      org.apache.thrift.protocol.TField field;
26205
      iprot.readStructBegin();
26206
      while (true)
26207
      {
26208
        field = iprot.readFieldBegin();
26209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26210
          break;
26211
        }
26212
        switch (field.id) {
26213
          case 1: // OLD_ORDER_ID
26214
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26215
              this.oldOrderId = iprot.readI64();
26216
              setOldOrderIdIsSet(true);
26217
            } else { 
26218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26219
            }
26220
            break;
26221
          case 2: // NEW_ORDER_ID
26222
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26223
              this.newOrderId = iprot.readI64();
26224
              setNewOrderIdIsSet(true);
26225
            } else { 
26226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26227
            }
26228
            break;
26229
          case 3: // FREEBIE_ITEM_ID
26230
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26231
              this.freebieItemId = iprot.readI64();
26232
              setFreebieItemIdIsSet(true);
26233
            } else { 
26234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26235
            }
26236
            break;
26237
          case 4: // SCAN_TYPE
26238
            if (field.type == org.apache.thrift.protocol.TType.I32) {
26239
              this.scanType = ScanType.findByValue(iprot.readI32());
26240
            } else { 
26241
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26242
            }
26243
            break;
26244
          default:
26245
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26246
        }
26247
        iprot.readFieldEnd();
26248
      }
26249
      iprot.readStructEnd();
26250
      validate();
26251
    }
26252
 
26253
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26254
      validate();
26255
 
26256
      oprot.writeStructBegin(STRUCT_DESC);
26257
      oprot.writeFieldBegin(OLD_ORDER_ID_FIELD_DESC);
26258
      oprot.writeI64(this.oldOrderId);
26259
      oprot.writeFieldEnd();
26260
      oprot.writeFieldBegin(NEW_ORDER_ID_FIELD_DESC);
26261
      oprot.writeI64(this.newOrderId);
26262
      oprot.writeFieldEnd();
26263
      oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
26264
      oprot.writeI64(this.freebieItemId);
26265
      oprot.writeFieldEnd();
26266
      if (this.scanType != null) {
26267
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
26268
        oprot.writeI32(this.scanType.getValue());
26269
        oprot.writeFieldEnd();
26270
      }
26271
      oprot.writeFieldStop();
26272
      oprot.writeStructEnd();
26273
    }
26274
 
26275
    @Override
26276
    public String toString() {
26277
      StringBuilder sb = new StringBuilder("reshipfreebie_args(");
26278
      boolean first = true;
26279
 
26280
      sb.append("oldOrderId:");
26281
      sb.append(this.oldOrderId);
26282
      first = false;
26283
      if (!first) sb.append(", ");
26284
      sb.append("newOrderId:");
26285
      sb.append(this.newOrderId);
26286
      first = false;
26287
      if (!first) sb.append(", ");
26288
      sb.append("freebieItemId:");
26289
      sb.append(this.freebieItemId);
26290
      first = false;
26291
      if (!first) sb.append(", ");
26292
      sb.append("scanType:");
26293
      if (this.scanType == null) {
26294
        sb.append("null");
26295
      } else {
26296
        sb.append(this.scanType);
26297
      }
26298
      first = false;
26299
      sb.append(")");
26300
      return sb.toString();
26301
    }
26302
 
26303
    public void validate() throws org.apache.thrift.TException {
26304
      // check for required fields
26305
    }
26306
 
26307
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26308
      try {
26309
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26310
      } catch (org.apache.thrift.TException te) {
26311
        throw new java.io.IOException(te);
26312
      }
26313
    }
26314
 
26315
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26316
      try {
26317
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26318
        __isset_bit_vector = new BitSet(1);
26319
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26320
      } catch (org.apache.thrift.TException te) {
26321
        throw new java.io.IOException(te);
26322
      }
26323
    }
26324
 
26325
  }
26326
 
26327
  public static class reshipfreebie_result implements org.apache.thrift.TBase<reshipfreebie_result, reshipfreebie_result._Fields>, java.io.Serializable, Cloneable   {
26328
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_result");
26329
 
26330
    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);
26331
 
26332
    private WarehouseServiceException wex; // required
26333
 
26334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26335
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26336
      WEX((short)1, "wex");
26337
 
26338
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26339
 
26340
      static {
26341
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26342
          byName.put(field.getFieldName(), field);
26343
        }
26344
      }
26345
 
26346
      /**
26347
       * Find the _Fields constant that matches fieldId, or null if its not found.
26348
       */
26349
      public static _Fields findByThriftId(int fieldId) {
26350
        switch(fieldId) {
26351
          case 1: // WEX
26352
            return WEX;
26353
          default:
26354
            return null;
26355
        }
26356
      }
26357
 
26358
      /**
26359
       * Find the _Fields constant that matches fieldId, throwing an exception
26360
       * if it is not found.
26361
       */
26362
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26363
        _Fields fields = findByThriftId(fieldId);
26364
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26365
        return fields;
26366
      }
26367
 
26368
      /**
26369
       * Find the _Fields constant that matches name, or null if its not found.
26370
       */
26371
      public static _Fields findByName(String name) {
26372
        return byName.get(name);
26373
      }
26374
 
26375
      private final short _thriftId;
26376
      private final String _fieldName;
26377
 
26378
      _Fields(short thriftId, String fieldName) {
26379
        _thriftId = thriftId;
26380
        _fieldName = fieldName;
26381
      }
26382
 
26383
      public short getThriftFieldId() {
26384
        return _thriftId;
26385
      }
26386
 
26387
      public String getFieldName() {
26388
        return _fieldName;
26389
      }
26390
    }
26391
 
26392
    // isset id assignments
26393
 
26394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26395
    static {
26396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26397
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26398
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26399
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26400
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_result.class, metaDataMap);
26401
    }
26402
 
26403
    public reshipfreebie_result() {
26404
    }
26405
 
26406
    public reshipfreebie_result(
26407
      WarehouseServiceException wex)
26408
    {
26409
      this();
26410
      this.wex = wex;
26411
    }
26412
 
26413
    /**
26414
     * Performs a deep copy on <i>other</i>.
26415
     */
26416
    public reshipfreebie_result(reshipfreebie_result other) {
26417
      if (other.isSetWex()) {
26418
        this.wex = new WarehouseServiceException(other.wex);
26419
      }
26420
    }
26421
 
26422
    public reshipfreebie_result deepCopy() {
26423
      return new reshipfreebie_result(this);
26424
    }
26425
 
26426
    @Override
26427
    public void clear() {
26428
      this.wex = null;
26429
    }
26430
 
26431
    public WarehouseServiceException getWex() {
26432
      return this.wex;
26433
    }
26434
 
26435
    public void setWex(WarehouseServiceException wex) {
26436
      this.wex = wex;
26437
    }
26438
 
26439
    public void unsetWex() {
26440
      this.wex = null;
26441
    }
26442
 
26443
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
26444
    public boolean isSetWex() {
26445
      return this.wex != null;
26446
    }
26447
 
26448
    public void setWexIsSet(boolean value) {
26449
      if (!value) {
26450
        this.wex = null;
26451
      }
26452
    }
26453
 
26454
    public void setFieldValue(_Fields field, Object value) {
26455
      switch (field) {
26456
      case WEX:
26457
        if (value == null) {
26458
          unsetWex();
26459
        } else {
26460
          setWex((WarehouseServiceException)value);
26461
        }
26462
        break;
26463
 
26464
      }
26465
    }
26466
 
26467
    public Object getFieldValue(_Fields field) {
26468
      switch (field) {
26469
      case WEX:
26470
        return getWex();
26471
 
26472
      }
26473
      throw new IllegalStateException();
26474
    }
26475
 
26476
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26477
    public boolean isSet(_Fields field) {
26478
      if (field == null) {
26479
        throw new IllegalArgumentException();
26480
      }
26481
 
26482
      switch (field) {
26483
      case WEX:
26484
        return isSetWex();
26485
      }
26486
      throw new IllegalStateException();
26487
    }
26488
 
26489
    @Override
26490
    public boolean equals(Object that) {
26491
      if (that == null)
26492
        return false;
26493
      if (that instanceof reshipfreebie_result)
26494
        return this.equals((reshipfreebie_result)that);
26495
      return false;
26496
    }
26497
 
26498
    public boolean equals(reshipfreebie_result that) {
26499
      if (that == null)
26500
        return false;
26501
 
26502
      boolean this_present_wex = true && this.isSetWex();
26503
      boolean that_present_wex = true && that.isSetWex();
26504
      if (this_present_wex || that_present_wex) {
26505
        if (!(this_present_wex && that_present_wex))
26506
          return false;
26507
        if (!this.wex.equals(that.wex))
26508
          return false;
26509
      }
26510
 
26511
      return true;
26512
    }
26513
 
26514
    @Override
26515
    public int hashCode() {
26516
      return 0;
26517
    }
26518
 
26519
    public int compareTo(reshipfreebie_result other) {
26520
      if (!getClass().equals(other.getClass())) {
26521
        return getClass().getName().compareTo(other.getClass().getName());
26522
      }
26523
 
26524
      int lastComparison = 0;
26525
      reshipfreebie_result typedOther = (reshipfreebie_result)other;
26526
 
26527
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
26528
      if (lastComparison != 0) {
26529
        return lastComparison;
26530
      }
26531
      if (isSetWex()) {
26532
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
26533
        if (lastComparison != 0) {
26534
          return lastComparison;
26535
        }
26536
      }
26537
      return 0;
26538
    }
26539
 
26540
    public _Fields fieldForId(int fieldId) {
26541
      return _Fields.findByThriftId(fieldId);
26542
    }
26543
 
26544
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26545
      org.apache.thrift.protocol.TField field;
26546
      iprot.readStructBegin();
26547
      while (true)
26548
      {
26549
        field = iprot.readFieldBegin();
26550
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26551
          break;
26552
        }
26553
        switch (field.id) {
26554
          case 1: // WEX
26555
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26556
              this.wex = new WarehouseServiceException();
26557
              this.wex.read(iprot);
26558
            } else { 
26559
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26560
            }
26561
            break;
26562
          default:
26563
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26564
        }
26565
        iprot.readFieldEnd();
26566
      }
26567
      iprot.readStructEnd();
26568
      validate();
26569
    }
26570
 
26571
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26572
      oprot.writeStructBegin(STRUCT_DESC);
26573
 
26574
      if (this.isSetWex()) {
26575
        oprot.writeFieldBegin(WEX_FIELD_DESC);
26576
        this.wex.write(oprot);
26577
        oprot.writeFieldEnd();
26578
      }
26579
      oprot.writeFieldStop();
26580
      oprot.writeStructEnd();
26581
    }
26582
 
26583
    @Override
26584
    public String toString() {
26585
      StringBuilder sb = new StringBuilder("reshipfreebie_result(");
26586
      boolean first = true;
26587
 
26588
      sb.append("wex:");
26589
      if (this.wex == null) {
26590
        sb.append("null");
26591
      } else {
26592
        sb.append(this.wex);
26593
      }
26594
      first = false;
26595
      sb.append(")");
26596
      return sb.toString();
26597
    }
26598
 
26599
    public void validate() throws org.apache.thrift.TException {
26600
      // check for required fields
26601
    }
26602
 
26603
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26604
      try {
26605
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26606
      } catch (org.apache.thrift.TException te) {
26607
        throw new java.io.IOException(te);
26608
      }
26609
    }
26610
 
26611
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26612
      try {
26613
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26614
      } catch (org.apache.thrift.TException te) {
26615
        throw new java.io.IOException(te);
26616
      }
26617
    }
26618
 
26619
  }
26620
 
7410 amar.kumar 26621
  public static class isItemTransferAllowed_args implements org.apache.thrift.TBase<isItemTransferAllowed_args, isItemTransferAllowed_args._Fields>, java.io.Serializable, Cloneable   {
26622
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_args");
26623
 
26624
    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);
26625
    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);
26626
 
26627
    private long warehouseId; // required
26628
    private long transferWarehouseId; // required
26629
 
26630
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26631
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26632
      WAREHOUSE_ID((short)1, "warehouseId"),
26633
      TRANSFER_WAREHOUSE_ID((short)2, "transferWarehouseId");
26634
 
26635
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26636
 
26637
      static {
26638
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26639
          byName.put(field.getFieldName(), field);
26640
        }
26641
      }
26642
 
26643
      /**
26644
       * Find the _Fields constant that matches fieldId, or null if its not found.
26645
       */
26646
      public static _Fields findByThriftId(int fieldId) {
26647
        switch(fieldId) {
26648
          case 1: // WAREHOUSE_ID
26649
            return WAREHOUSE_ID;
26650
          case 2: // TRANSFER_WAREHOUSE_ID
26651
            return TRANSFER_WAREHOUSE_ID;
26652
          default:
26653
            return null;
26654
        }
26655
      }
26656
 
26657
      /**
26658
       * Find the _Fields constant that matches fieldId, throwing an exception
26659
       * if it is not found.
26660
       */
26661
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26662
        _Fields fields = findByThriftId(fieldId);
26663
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26664
        return fields;
26665
      }
26666
 
26667
      /**
26668
       * Find the _Fields constant that matches name, or null if its not found.
26669
       */
26670
      public static _Fields findByName(String name) {
26671
        return byName.get(name);
26672
      }
26673
 
26674
      private final short _thriftId;
26675
      private final String _fieldName;
26676
 
26677
      _Fields(short thriftId, String fieldName) {
26678
        _thriftId = thriftId;
26679
        _fieldName = fieldName;
26680
      }
26681
 
26682
      public short getThriftFieldId() {
26683
        return _thriftId;
26684
      }
26685
 
26686
      public String getFieldName() {
26687
        return _fieldName;
26688
      }
26689
    }
26690
 
26691
    // isset id assignments
26692
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26693
    private static final int __TRANSFERWAREHOUSEID_ISSET_ID = 1;
26694
    private BitSet __isset_bit_vector = new BitSet(2);
26695
 
26696
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26697
    static {
26698
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26699
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26700
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26701
      tmpMap.put(_Fields.TRANSFER_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("transferWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26702
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26703
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26704
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_args.class, metaDataMap);
26705
    }
26706
 
26707
    public isItemTransferAllowed_args() {
26708
    }
26709
 
26710
    public isItemTransferAllowed_args(
26711
      long warehouseId,
26712
      long transferWarehouseId)
26713
    {
26714
      this();
26715
      this.warehouseId = warehouseId;
26716
      setWarehouseIdIsSet(true);
26717
      this.transferWarehouseId = transferWarehouseId;
26718
      setTransferWarehouseIdIsSet(true);
26719
    }
26720
 
26721
    /**
26722
     * Performs a deep copy on <i>other</i>.
26723
     */
26724
    public isItemTransferAllowed_args(isItemTransferAllowed_args other) {
26725
      __isset_bit_vector.clear();
26726
      __isset_bit_vector.or(other.__isset_bit_vector);
26727
      this.warehouseId = other.warehouseId;
26728
      this.transferWarehouseId = other.transferWarehouseId;
26729
    }
26730
 
26731
    public isItemTransferAllowed_args deepCopy() {
26732
      return new isItemTransferAllowed_args(this);
26733
    }
26734
 
26735
    @Override
26736
    public void clear() {
26737
      setWarehouseIdIsSet(false);
26738
      this.warehouseId = 0;
26739
      setTransferWarehouseIdIsSet(false);
26740
      this.transferWarehouseId = 0;
26741
    }
26742
 
26743
    public long getWarehouseId() {
26744
      return this.warehouseId;
26745
    }
26746
 
26747
    public void setWarehouseId(long warehouseId) {
26748
      this.warehouseId = warehouseId;
26749
      setWarehouseIdIsSet(true);
26750
    }
26751
 
26752
    public void unsetWarehouseId() {
26753
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26754
    }
26755
 
26756
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26757
    public boolean isSetWarehouseId() {
26758
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26759
    }
26760
 
26761
    public void setWarehouseIdIsSet(boolean value) {
26762
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26763
    }
26764
 
26765
    public long getTransferWarehouseId() {
26766
      return this.transferWarehouseId;
26767
    }
26768
 
26769
    public void setTransferWarehouseId(long transferWarehouseId) {
26770
      this.transferWarehouseId = transferWarehouseId;
26771
      setTransferWarehouseIdIsSet(true);
26772
    }
26773
 
26774
    public void unsetTransferWarehouseId() {
26775
      __isset_bit_vector.clear(__TRANSFERWAREHOUSEID_ISSET_ID);
26776
    }
26777
 
26778
    /** Returns true if field transferWarehouseId is set (has been assigned a value) and false otherwise */
26779
    public boolean isSetTransferWarehouseId() {
26780
      return __isset_bit_vector.get(__TRANSFERWAREHOUSEID_ISSET_ID);
26781
    }
26782
 
26783
    public void setTransferWarehouseIdIsSet(boolean value) {
26784
      __isset_bit_vector.set(__TRANSFERWAREHOUSEID_ISSET_ID, value);
26785
    }
26786
 
26787
    public void setFieldValue(_Fields field, Object value) {
26788
      switch (field) {
26789
      case WAREHOUSE_ID:
26790
        if (value == null) {
26791
          unsetWarehouseId();
26792
        } else {
26793
          setWarehouseId((Long)value);
26794
        }
26795
        break;
26796
 
26797
      case TRANSFER_WAREHOUSE_ID:
26798
        if (value == null) {
26799
          unsetTransferWarehouseId();
26800
        } else {
26801
          setTransferWarehouseId((Long)value);
26802
        }
26803
        break;
26804
 
26805
      }
26806
    }
26807
 
26808
    public Object getFieldValue(_Fields field) {
26809
      switch (field) {
26810
      case WAREHOUSE_ID:
26811
        return Long.valueOf(getWarehouseId());
26812
 
26813
      case TRANSFER_WAREHOUSE_ID:
26814
        return Long.valueOf(getTransferWarehouseId());
26815
 
26816
      }
26817
      throw new IllegalStateException();
26818
    }
26819
 
26820
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26821
    public boolean isSet(_Fields field) {
26822
      if (field == null) {
26823
        throw new IllegalArgumentException();
26824
      }
26825
 
26826
      switch (field) {
26827
      case WAREHOUSE_ID:
26828
        return isSetWarehouseId();
26829
      case TRANSFER_WAREHOUSE_ID:
26830
        return isSetTransferWarehouseId();
26831
      }
26832
      throw new IllegalStateException();
26833
    }
26834
 
26835
    @Override
26836
    public boolean equals(Object that) {
26837
      if (that == null)
26838
        return false;
26839
      if (that instanceof isItemTransferAllowed_args)
26840
        return this.equals((isItemTransferAllowed_args)that);
26841
      return false;
26842
    }
26843
 
26844
    public boolean equals(isItemTransferAllowed_args that) {
26845
      if (that == null)
26846
        return false;
26847
 
26848
      boolean this_present_warehouseId = true;
26849
      boolean that_present_warehouseId = true;
26850
      if (this_present_warehouseId || that_present_warehouseId) {
26851
        if (!(this_present_warehouseId && that_present_warehouseId))
26852
          return false;
26853
        if (this.warehouseId != that.warehouseId)
26854
          return false;
26855
      }
26856
 
26857
      boolean this_present_transferWarehouseId = true;
26858
      boolean that_present_transferWarehouseId = true;
26859
      if (this_present_transferWarehouseId || that_present_transferWarehouseId) {
26860
        if (!(this_present_transferWarehouseId && that_present_transferWarehouseId))
26861
          return false;
26862
        if (this.transferWarehouseId != that.transferWarehouseId)
26863
          return false;
26864
      }
26865
 
26866
      return true;
26867
    }
26868
 
26869
    @Override
26870
    public int hashCode() {
26871
      return 0;
26872
    }
26873
 
26874
    public int compareTo(isItemTransferAllowed_args other) {
26875
      if (!getClass().equals(other.getClass())) {
26876
        return getClass().getName().compareTo(other.getClass().getName());
26877
      }
26878
 
26879
      int lastComparison = 0;
26880
      isItemTransferAllowed_args typedOther = (isItemTransferAllowed_args)other;
26881
 
26882
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26883
      if (lastComparison != 0) {
26884
        return lastComparison;
26885
      }
26886
      if (isSetWarehouseId()) {
26887
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26888
        if (lastComparison != 0) {
26889
          return lastComparison;
26890
        }
26891
      }
26892
      lastComparison = Boolean.valueOf(isSetTransferWarehouseId()).compareTo(typedOther.isSetTransferWarehouseId());
26893
      if (lastComparison != 0) {
26894
        return lastComparison;
26895
      }
26896
      if (isSetTransferWarehouseId()) {
26897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferWarehouseId, typedOther.transferWarehouseId);
26898
        if (lastComparison != 0) {
26899
          return lastComparison;
26900
        }
26901
      }
26902
      return 0;
26903
    }
26904
 
26905
    public _Fields fieldForId(int fieldId) {
26906
      return _Fields.findByThriftId(fieldId);
26907
    }
26908
 
26909
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26910
      org.apache.thrift.protocol.TField field;
26911
      iprot.readStructBegin();
26912
      while (true)
26913
      {
26914
        field = iprot.readFieldBegin();
26915
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26916
          break;
26917
        }
26918
        switch (field.id) {
26919
          case 1: // WAREHOUSE_ID
26920
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26921
              this.warehouseId = iprot.readI64();
26922
              setWarehouseIdIsSet(true);
26923
            } else { 
26924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26925
            }
26926
            break;
26927
          case 2: // TRANSFER_WAREHOUSE_ID
26928
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26929
              this.transferWarehouseId = iprot.readI64();
26930
              setTransferWarehouseIdIsSet(true);
26931
            } else { 
26932
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26933
            }
26934
            break;
26935
          default:
26936
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26937
        }
26938
        iprot.readFieldEnd();
26939
      }
26940
      iprot.readStructEnd();
26941
      validate();
26942
    }
26943
 
26944
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26945
      validate();
26946
 
26947
      oprot.writeStructBegin(STRUCT_DESC);
26948
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26949
      oprot.writeI64(this.warehouseId);
26950
      oprot.writeFieldEnd();
26951
      oprot.writeFieldBegin(TRANSFER_WAREHOUSE_ID_FIELD_DESC);
26952
      oprot.writeI64(this.transferWarehouseId);
26953
      oprot.writeFieldEnd();
26954
      oprot.writeFieldStop();
26955
      oprot.writeStructEnd();
26956
    }
26957
 
26958
    @Override
26959
    public String toString() {
26960
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_args(");
26961
      boolean first = true;
26962
 
26963
      sb.append("warehouseId:");
26964
      sb.append(this.warehouseId);
26965
      first = false;
26966
      if (!first) sb.append(", ");
26967
      sb.append("transferWarehouseId:");
26968
      sb.append(this.transferWarehouseId);
26969
      first = false;
26970
      sb.append(")");
26971
      return sb.toString();
26972
    }
26973
 
26974
    public void validate() throws org.apache.thrift.TException {
26975
      // check for required fields
26976
    }
26977
 
26978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26979
      try {
26980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26981
      } catch (org.apache.thrift.TException te) {
26982
        throw new java.io.IOException(te);
26983
      }
26984
    }
26985
 
26986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26987
      try {
26988
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26989
        __isset_bit_vector = new BitSet(1);
26990
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26991
      } catch (org.apache.thrift.TException te) {
26992
        throw new java.io.IOException(te);
26993
      }
26994
    }
26995
 
26996
  }
26997
 
26998
  public static class isItemTransferAllowed_result implements org.apache.thrift.TBase<isItemTransferAllowed_result, isItemTransferAllowed_result._Fields>, java.io.Serializable, Cloneable   {
26999
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_result");
27000
 
27001
    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);
27002
 
27003
    private boolean success; // required
27004
 
27005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27007
      SUCCESS((short)0, "success");
27008
 
27009
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27010
 
27011
      static {
27012
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27013
          byName.put(field.getFieldName(), field);
27014
        }
27015
      }
27016
 
27017
      /**
27018
       * Find the _Fields constant that matches fieldId, or null if its not found.
27019
       */
27020
      public static _Fields findByThriftId(int fieldId) {
27021
        switch(fieldId) {
27022
          case 0: // SUCCESS
27023
            return SUCCESS;
27024
          default:
27025
            return null;
27026
        }
27027
      }
27028
 
27029
      /**
27030
       * Find the _Fields constant that matches fieldId, throwing an exception
27031
       * if it is not found.
27032
       */
27033
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27034
        _Fields fields = findByThriftId(fieldId);
27035
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27036
        return fields;
27037
      }
27038
 
27039
      /**
27040
       * Find the _Fields constant that matches name, or null if its not found.
27041
       */
27042
      public static _Fields findByName(String name) {
27043
        return byName.get(name);
27044
      }
27045
 
27046
      private final short _thriftId;
27047
      private final String _fieldName;
27048
 
27049
      _Fields(short thriftId, String fieldName) {
27050
        _thriftId = thriftId;
27051
        _fieldName = fieldName;
27052
      }
27053
 
27054
      public short getThriftFieldId() {
27055
        return _thriftId;
27056
      }
27057
 
27058
      public String getFieldName() {
27059
        return _fieldName;
27060
      }
27061
    }
27062
 
27063
    // isset id assignments
27064
    private static final int __SUCCESS_ISSET_ID = 0;
27065
    private BitSet __isset_bit_vector = new BitSet(1);
27066
 
27067
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27068
    static {
27069
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27070
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27071
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
27072
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27073
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_result.class, metaDataMap);
27074
    }
27075
 
27076
    public isItemTransferAllowed_result() {
27077
    }
27078
 
27079
    public isItemTransferAllowed_result(
27080
      boolean success)
27081
    {
27082
      this();
27083
      this.success = success;
27084
      setSuccessIsSet(true);
27085
    }
27086
 
27087
    /**
27088
     * Performs a deep copy on <i>other</i>.
27089
     */
27090
    public isItemTransferAllowed_result(isItemTransferAllowed_result other) {
27091
      __isset_bit_vector.clear();
27092
      __isset_bit_vector.or(other.__isset_bit_vector);
27093
      this.success = other.success;
27094
    }
27095
 
27096
    public isItemTransferAllowed_result deepCopy() {
27097
      return new isItemTransferAllowed_result(this);
27098
    }
27099
 
27100
    @Override
27101
    public void clear() {
27102
      setSuccessIsSet(false);
27103
      this.success = false;
27104
    }
27105
 
27106
    public boolean isSuccess() {
27107
      return this.success;
27108
    }
27109
 
27110
    public void setSuccess(boolean success) {
27111
      this.success = success;
27112
      setSuccessIsSet(true);
27113
    }
27114
 
27115
    public void unsetSuccess() {
27116
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27117
    }
27118
 
27119
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27120
    public boolean isSetSuccess() {
27121
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27122
    }
27123
 
27124
    public void setSuccessIsSet(boolean value) {
27125
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27126
    }
27127
 
27128
    public void setFieldValue(_Fields field, Object value) {
27129
      switch (field) {
27130
      case SUCCESS:
27131
        if (value == null) {
27132
          unsetSuccess();
27133
        } else {
27134
          setSuccess((Boolean)value);
27135
        }
27136
        break;
27137
 
27138
      }
27139
    }
27140
 
27141
    public Object getFieldValue(_Fields field) {
27142
      switch (field) {
27143
      case SUCCESS:
27144
        return Boolean.valueOf(isSuccess());
27145
 
27146
      }
27147
      throw new IllegalStateException();
27148
    }
27149
 
27150
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27151
    public boolean isSet(_Fields field) {
27152
      if (field == null) {
27153
        throw new IllegalArgumentException();
27154
      }
27155
 
27156
      switch (field) {
27157
      case SUCCESS:
27158
        return isSetSuccess();
27159
      }
27160
      throw new IllegalStateException();
27161
    }
27162
 
27163
    @Override
27164
    public boolean equals(Object that) {
27165
      if (that == null)
27166
        return false;
27167
      if (that instanceof isItemTransferAllowed_result)
27168
        return this.equals((isItemTransferAllowed_result)that);
27169
      return false;
27170
    }
27171
 
27172
    public boolean equals(isItemTransferAllowed_result that) {
27173
      if (that == null)
27174
        return false;
27175
 
27176
      boolean this_present_success = true;
27177
      boolean that_present_success = true;
27178
      if (this_present_success || that_present_success) {
27179
        if (!(this_present_success && that_present_success))
27180
          return false;
27181
        if (this.success != that.success)
27182
          return false;
27183
      }
27184
 
27185
      return true;
27186
    }
27187
 
27188
    @Override
27189
    public int hashCode() {
27190
      return 0;
27191
    }
27192
 
27193
    public int compareTo(isItemTransferAllowed_result other) {
27194
      if (!getClass().equals(other.getClass())) {
27195
        return getClass().getName().compareTo(other.getClass().getName());
27196
      }
27197
 
27198
      int lastComparison = 0;
27199
      isItemTransferAllowed_result typedOther = (isItemTransferAllowed_result)other;
27200
 
27201
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27202
      if (lastComparison != 0) {
27203
        return lastComparison;
27204
      }
27205
      if (isSetSuccess()) {
27206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27207
        if (lastComparison != 0) {
27208
          return lastComparison;
27209
        }
27210
      }
27211
      return 0;
27212
    }
27213
 
27214
    public _Fields fieldForId(int fieldId) {
27215
      return _Fields.findByThriftId(fieldId);
27216
    }
27217
 
27218
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27219
      org.apache.thrift.protocol.TField field;
27220
      iprot.readStructBegin();
27221
      while (true)
27222
      {
27223
        field = iprot.readFieldBegin();
27224
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27225
          break;
27226
        }
27227
        switch (field.id) {
27228
          case 0: // SUCCESS
27229
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
27230
              this.success = iprot.readBool();
27231
              setSuccessIsSet(true);
27232
            } else { 
27233
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27234
            }
27235
            break;
27236
          default:
27237
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27238
        }
27239
        iprot.readFieldEnd();
27240
      }
27241
      iprot.readStructEnd();
27242
      validate();
27243
    }
27244
 
27245
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27246
      oprot.writeStructBegin(STRUCT_DESC);
27247
 
27248
      if (this.isSetSuccess()) {
27249
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27250
        oprot.writeBool(this.success);
27251
        oprot.writeFieldEnd();
27252
      }
27253
      oprot.writeFieldStop();
27254
      oprot.writeStructEnd();
27255
    }
27256
 
27257
    @Override
27258
    public String toString() {
27259
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_result(");
27260
      boolean first = true;
27261
 
27262
      sb.append("success:");
27263
      sb.append(this.success);
27264
      first = false;
27265
      sb.append(")");
27266
      return sb.toString();
27267
    }
27268
 
27269
    public void validate() throws org.apache.thrift.TException {
27270
      // check for required fields
27271
    }
27272
 
27273
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27274
      try {
27275
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27276
      } catch (org.apache.thrift.TException te) {
27277
        throw new java.io.IOException(te);
27278
      }
27279
    }
27280
 
27281
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27282
      try {
27283
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27284
      } catch (org.apache.thrift.TException te) {
27285
        throw new java.io.IOException(te);
27286
      }
27287
    }
27288
 
27289
  }
27290
 
27291
  public static class createTransferLot_args implements org.apache.thrift.TBase<createTransferLot_args, createTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
27292
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_args");
27293
 
27294
    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);
27295
    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);
27296
 
27297
    private long originWarehouseId; // required
27298
    private long destWarehouseId; // required
27299
 
27300
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27301
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27302
      ORIGIN_WAREHOUSE_ID((short)1, "originWarehouseId"),
27303
      DEST_WAREHOUSE_ID((short)2, "destWarehouseId");
27304
 
27305
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27306
 
27307
      static {
27308
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27309
          byName.put(field.getFieldName(), field);
27310
        }
27311
      }
27312
 
27313
      /**
27314
       * Find the _Fields constant that matches fieldId, or null if its not found.
27315
       */
27316
      public static _Fields findByThriftId(int fieldId) {
27317
        switch(fieldId) {
27318
          case 1: // ORIGIN_WAREHOUSE_ID
27319
            return ORIGIN_WAREHOUSE_ID;
27320
          case 2: // DEST_WAREHOUSE_ID
27321
            return DEST_WAREHOUSE_ID;
27322
          default:
27323
            return null;
27324
        }
27325
      }
27326
 
27327
      /**
27328
       * Find the _Fields constant that matches fieldId, throwing an exception
27329
       * if it is not found.
27330
       */
27331
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27332
        _Fields fields = findByThriftId(fieldId);
27333
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27334
        return fields;
27335
      }
27336
 
27337
      /**
27338
       * Find the _Fields constant that matches name, or null if its not found.
27339
       */
27340
      public static _Fields findByName(String name) {
27341
        return byName.get(name);
27342
      }
27343
 
27344
      private final short _thriftId;
27345
      private final String _fieldName;
27346
 
27347
      _Fields(short thriftId, String fieldName) {
27348
        _thriftId = thriftId;
27349
        _fieldName = fieldName;
27350
      }
27351
 
27352
      public short getThriftFieldId() {
27353
        return _thriftId;
27354
      }
27355
 
27356
      public String getFieldName() {
27357
        return _fieldName;
27358
      }
27359
    }
27360
 
27361
    // isset id assignments
27362
    private static final int __ORIGINWAREHOUSEID_ISSET_ID = 0;
27363
    private static final int __DESTWAREHOUSEID_ISSET_ID = 1;
27364
    private BitSet __isset_bit_vector = new BitSet(2);
27365
 
27366
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27367
    static {
27368
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27369
      tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27370
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27371
      tmpMap.put(_Fields.DEST_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27372
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27373
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27374
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_args.class, metaDataMap);
27375
    }
27376
 
27377
    public createTransferLot_args() {
27378
    }
27379
 
27380
    public createTransferLot_args(
27381
      long originWarehouseId,
27382
      long destWarehouseId)
27383
    {
27384
      this();
27385
      this.originWarehouseId = originWarehouseId;
27386
      setOriginWarehouseIdIsSet(true);
27387
      this.destWarehouseId = destWarehouseId;
27388
      setDestWarehouseIdIsSet(true);
27389
    }
27390
 
27391
    /**
27392
     * Performs a deep copy on <i>other</i>.
27393
     */
27394
    public createTransferLot_args(createTransferLot_args other) {
27395
      __isset_bit_vector.clear();
27396
      __isset_bit_vector.or(other.__isset_bit_vector);
27397
      this.originWarehouseId = other.originWarehouseId;
27398
      this.destWarehouseId = other.destWarehouseId;
27399
    }
27400
 
27401
    public createTransferLot_args deepCopy() {
27402
      return new createTransferLot_args(this);
27403
    }
27404
 
27405
    @Override
27406
    public void clear() {
27407
      setOriginWarehouseIdIsSet(false);
27408
      this.originWarehouseId = 0;
27409
      setDestWarehouseIdIsSet(false);
27410
      this.destWarehouseId = 0;
27411
    }
27412
 
27413
    public long getOriginWarehouseId() {
27414
      return this.originWarehouseId;
27415
    }
27416
 
27417
    public void setOriginWarehouseId(long originWarehouseId) {
27418
      this.originWarehouseId = originWarehouseId;
27419
      setOriginWarehouseIdIsSet(true);
27420
    }
27421
 
27422
    public void unsetOriginWarehouseId() {
27423
      __isset_bit_vector.clear(__ORIGINWAREHOUSEID_ISSET_ID);
27424
    }
27425
 
27426
    /** Returns true if field originWarehouseId is set (has been assigned a value) and false otherwise */
27427
    public boolean isSetOriginWarehouseId() {
27428
      return __isset_bit_vector.get(__ORIGINWAREHOUSEID_ISSET_ID);
27429
    }
27430
 
27431
    public void setOriginWarehouseIdIsSet(boolean value) {
27432
      __isset_bit_vector.set(__ORIGINWAREHOUSEID_ISSET_ID, value);
27433
    }
27434
 
27435
    public long getDestWarehouseId() {
27436
      return this.destWarehouseId;
27437
    }
27438
 
27439
    public void setDestWarehouseId(long destWarehouseId) {
27440
      this.destWarehouseId = destWarehouseId;
27441
      setDestWarehouseIdIsSet(true);
27442
    }
27443
 
27444
    public void unsetDestWarehouseId() {
27445
      __isset_bit_vector.clear(__DESTWAREHOUSEID_ISSET_ID);
27446
    }
27447
 
27448
    /** Returns true if field destWarehouseId is set (has been assigned a value) and false otherwise */
27449
    public boolean isSetDestWarehouseId() {
27450
      return __isset_bit_vector.get(__DESTWAREHOUSEID_ISSET_ID);
27451
    }
27452
 
27453
    public void setDestWarehouseIdIsSet(boolean value) {
27454
      __isset_bit_vector.set(__DESTWAREHOUSEID_ISSET_ID, value);
27455
    }
27456
 
27457
    public void setFieldValue(_Fields field, Object value) {
27458
      switch (field) {
27459
      case ORIGIN_WAREHOUSE_ID:
27460
        if (value == null) {
27461
          unsetOriginWarehouseId();
27462
        } else {
27463
          setOriginWarehouseId((Long)value);
27464
        }
27465
        break;
27466
 
27467
      case DEST_WAREHOUSE_ID:
27468
        if (value == null) {
27469
          unsetDestWarehouseId();
27470
        } else {
27471
          setDestWarehouseId((Long)value);
27472
        }
27473
        break;
27474
 
27475
      }
27476
    }
27477
 
27478
    public Object getFieldValue(_Fields field) {
27479
      switch (field) {
27480
      case ORIGIN_WAREHOUSE_ID:
27481
        return Long.valueOf(getOriginWarehouseId());
27482
 
27483
      case DEST_WAREHOUSE_ID:
27484
        return Long.valueOf(getDestWarehouseId());
27485
 
27486
      }
27487
      throw new IllegalStateException();
27488
    }
27489
 
27490
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27491
    public boolean isSet(_Fields field) {
27492
      if (field == null) {
27493
        throw new IllegalArgumentException();
27494
      }
27495
 
27496
      switch (field) {
27497
      case ORIGIN_WAREHOUSE_ID:
27498
        return isSetOriginWarehouseId();
27499
      case DEST_WAREHOUSE_ID:
27500
        return isSetDestWarehouseId();
27501
      }
27502
      throw new IllegalStateException();
27503
    }
27504
 
27505
    @Override
27506
    public boolean equals(Object that) {
27507
      if (that == null)
27508
        return false;
27509
      if (that instanceof createTransferLot_args)
27510
        return this.equals((createTransferLot_args)that);
27511
      return false;
27512
    }
27513
 
27514
    public boolean equals(createTransferLot_args that) {
27515
      if (that == null)
27516
        return false;
27517
 
27518
      boolean this_present_originWarehouseId = true;
27519
      boolean that_present_originWarehouseId = true;
27520
      if (this_present_originWarehouseId || that_present_originWarehouseId) {
27521
        if (!(this_present_originWarehouseId && that_present_originWarehouseId))
27522
          return false;
27523
        if (this.originWarehouseId != that.originWarehouseId)
27524
          return false;
27525
      }
27526
 
27527
      boolean this_present_destWarehouseId = true;
27528
      boolean that_present_destWarehouseId = true;
27529
      if (this_present_destWarehouseId || that_present_destWarehouseId) {
27530
        if (!(this_present_destWarehouseId && that_present_destWarehouseId))
27531
          return false;
27532
        if (this.destWarehouseId != that.destWarehouseId)
27533
          return false;
27534
      }
27535
 
27536
      return true;
27537
    }
27538
 
27539
    @Override
27540
    public int hashCode() {
27541
      return 0;
27542
    }
27543
 
27544
    public int compareTo(createTransferLot_args other) {
27545
      if (!getClass().equals(other.getClass())) {
27546
        return getClass().getName().compareTo(other.getClass().getName());
27547
      }
27548
 
27549
      int lastComparison = 0;
27550
      createTransferLot_args typedOther = (createTransferLot_args)other;
27551
 
27552
      lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
27553
      if (lastComparison != 0) {
27554
        return lastComparison;
27555
      }
27556
      if (isSetOriginWarehouseId()) {
27557
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originWarehouseId, typedOther.originWarehouseId);
27558
        if (lastComparison != 0) {
27559
          return lastComparison;
27560
        }
27561
      }
27562
      lastComparison = Boolean.valueOf(isSetDestWarehouseId()).compareTo(typedOther.isSetDestWarehouseId());
27563
      if (lastComparison != 0) {
27564
        return lastComparison;
27565
      }
27566
      if (isSetDestWarehouseId()) {
27567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destWarehouseId, typedOther.destWarehouseId);
27568
        if (lastComparison != 0) {
27569
          return lastComparison;
27570
        }
27571
      }
27572
      return 0;
27573
    }
27574
 
27575
    public _Fields fieldForId(int fieldId) {
27576
      return _Fields.findByThriftId(fieldId);
27577
    }
27578
 
27579
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27580
      org.apache.thrift.protocol.TField field;
27581
      iprot.readStructBegin();
27582
      while (true)
27583
      {
27584
        field = iprot.readFieldBegin();
27585
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27586
          break;
27587
        }
27588
        switch (field.id) {
27589
          case 1: // ORIGIN_WAREHOUSE_ID
27590
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27591
              this.originWarehouseId = iprot.readI64();
27592
              setOriginWarehouseIdIsSet(true);
27593
            } else { 
27594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27595
            }
27596
            break;
27597
          case 2: // DEST_WAREHOUSE_ID
27598
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27599
              this.destWarehouseId = iprot.readI64();
27600
              setDestWarehouseIdIsSet(true);
27601
            } else { 
27602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27603
            }
27604
            break;
27605
          default:
27606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27607
        }
27608
        iprot.readFieldEnd();
27609
      }
27610
      iprot.readStructEnd();
27611
      validate();
27612
    }
27613
 
27614
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27615
      validate();
27616
 
27617
      oprot.writeStructBegin(STRUCT_DESC);
27618
      oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
27619
      oprot.writeI64(this.originWarehouseId);
27620
      oprot.writeFieldEnd();
27621
      oprot.writeFieldBegin(DEST_WAREHOUSE_ID_FIELD_DESC);
27622
      oprot.writeI64(this.destWarehouseId);
27623
      oprot.writeFieldEnd();
27624
      oprot.writeFieldStop();
27625
      oprot.writeStructEnd();
27626
    }
27627
 
27628
    @Override
27629
    public String toString() {
27630
      StringBuilder sb = new StringBuilder("createTransferLot_args(");
27631
      boolean first = true;
27632
 
27633
      sb.append("originWarehouseId:");
27634
      sb.append(this.originWarehouseId);
27635
      first = false;
27636
      if (!first) sb.append(", ");
27637
      sb.append("destWarehouseId:");
27638
      sb.append(this.destWarehouseId);
27639
      first = false;
27640
      sb.append(")");
27641
      return sb.toString();
27642
    }
27643
 
27644
    public void validate() throws org.apache.thrift.TException {
27645
      // check for required fields
27646
    }
27647
 
27648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27649
      try {
27650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27651
      } catch (org.apache.thrift.TException te) {
27652
        throw new java.io.IOException(te);
27653
      }
27654
    }
27655
 
27656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27657
      try {
27658
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27659
        __isset_bit_vector = new BitSet(1);
27660
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27661
      } catch (org.apache.thrift.TException te) {
27662
        throw new java.io.IOException(te);
27663
      }
27664
    }
27665
 
27666
  }
27667
 
27668
  public static class createTransferLot_result implements org.apache.thrift.TBase<createTransferLot_result, createTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
27669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_result");
27670
 
27671
    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);
27672
    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);
27673
 
27674
    private long success; // required
27675
    private WarehouseServiceException wex; // required
27676
 
27677
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27678
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27679
      SUCCESS((short)0, "success"),
27680
      WEX((short)1, "wex");
27681
 
27682
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27683
 
27684
      static {
27685
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27686
          byName.put(field.getFieldName(), field);
27687
        }
27688
      }
27689
 
27690
      /**
27691
       * Find the _Fields constant that matches fieldId, or null if its not found.
27692
       */
27693
      public static _Fields findByThriftId(int fieldId) {
27694
        switch(fieldId) {
27695
          case 0: // SUCCESS
27696
            return SUCCESS;
27697
          case 1: // WEX
27698
            return WEX;
27699
          default:
27700
            return null;
27701
        }
27702
      }
27703
 
27704
      /**
27705
       * Find the _Fields constant that matches fieldId, throwing an exception
27706
       * if it is not found.
27707
       */
27708
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27709
        _Fields fields = findByThriftId(fieldId);
27710
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27711
        return fields;
27712
      }
27713
 
27714
      /**
27715
       * Find the _Fields constant that matches name, or null if its not found.
27716
       */
27717
      public static _Fields findByName(String name) {
27718
        return byName.get(name);
27719
      }
27720
 
27721
      private final short _thriftId;
27722
      private final String _fieldName;
27723
 
27724
      _Fields(short thriftId, String fieldName) {
27725
        _thriftId = thriftId;
27726
        _fieldName = fieldName;
27727
      }
27728
 
27729
      public short getThriftFieldId() {
27730
        return _thriftId;
27731
      }
27732
 
27733
      public String getFieldName() {
27734
        return _fieldName;
27735
      }
27736
    }
27737
 
27738
    // isset id assignments
27739
    private static final int __SUCCESS_ISSET_ID = 0;
27740
    private BitSet __isset_bit_vector = new BitSet(1);
27741
 
27742
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27743
    static {
27744
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27745
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27746
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27747
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27749
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27750
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_result.class, metaDataMap);
27751
    }
27752
 
27753
    public createTransferLot_result() {
27754
    }
27755
 
27756
    public createTransferLot_result(
27757
      long success,
27758
      WarehouseServiceException wex)
27759
    {
27760
      this();
27761
      this.success = success;
27762
      setSuccessIsSet(true);
27763
      this.wex = wex;
27764
    }
27765
 
27766
    /**
27767
     * Performs a deep copy on <i>other</i>.
27768
     */
27769
    public createTransferLot_result(createTransferLot_result other) {
27770
      __isset_bit_vector.clear();
27771
      __isset_bit_vector.or(other.__isset_bit_vector);
27772
      this.success = other.success;
27773
      if (other.isSetWex()) {
27774
        this.wex = new WarehouseServiceException(other.wex);
27775
      }
27776
    }
27777
 
27778
    public createTransferLot_result deepCopy() {
27779
      return new createTransferLot_result(this);
27780
    }
27781
 
27782
    @Override
27783
    public void clear() {
27784
      setSuccessIsSet(false);
27785
      this.success = 0;
27786
      this.wex = null;
27787
    }
27788
 
27789
    public long getSuccess() {
27790
      return this.success;
27791
    }
27792
 
27793
    public void setSuccess(long success) {
27794
      this.success = success;
27795
      setSuccessIsSet(true);
27796
    }
27797
 
27798
    public void unsetSuccess() {
27799
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27800
    }
27801
 
27802
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27803
    public boolean isSetSuccess() {
27804
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27805
    }
27806
 
27807
    public void setSuccessIsSet(boolean value) {
27808
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27809
    }
27810
 
27811
    public WarehouseServiceException getWex() {
27812
      return this.wex;
27813
    }
27814
 
27815
    public void setWex(WarehouseServiceException wex) {
27816
      this.wex = wex;
27817
    }
27818
 
27819
    public void unsetWex() {
27820
      this.wex = null;
27821
    }
27822
 
27823
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
27824
    public boolean isSetWex() {
27825
      return this.wex != null;
27826
    }
27827
 
27828
    public void setWexIsSet(boolean value) {
27829
      if (!value) {
27830
        this.wex = null;
27831
      }
27832
    }
27833
 
27834
    public void setFieldValue(_Fields field, Object value) {
27835
      switch (field) {
27836
      case SUCCESS:
27837
        if (value == null) {
27838
          unsetSuccess();
27839
        } else {
27840
          setSuccess((Long)value);
27841
        }
27842
        break;
27843
 
27844
      case WEX:
27845
        if (value == null) {
27846
          unsetWex();
27847
        } else {
27848
          setWex((WarehouseServiceException)value);
27849
        }
27850
        break;
27851
 
27852
      }
27853
    }
27854
 
27855
    public Object getFieldValue(_Fields field) {
27856
      switch (field) {
27857
      case SUCCESS:
27858
        return Long.valueOf(getSuccess());
27859
 
27860
      case WEX:
27861
        return getWex();
27862
 
27863
      }
27864
      throw new IllegalStateException();
27865
    }
27866
 
27867
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27868
    public boolean isSet(_Fields field) {
27869
      if (field == null) {
27870
        throw new IllegalArgumentException();
27871
      }
27872
 
27873
      switch (field) {
27874
      case SUCCESS:
27875
        return isSetSuccess();
27876
      case WEX:
27877
        return isSetWex();
27878
      }
27879
      throw new IllegalStateException();
27880
    }
27881
 
27882
    @Override
27883
    public boolean equals(Object that) {
27884
      if (that == null)
27885
        return false;
27886
      if (that instanceof createTransferLot_result)
27887
        return this.equals((createTransferLot_result)that);
27888
      return false;
27889
    }
27890
 
27891
    public boolean equals(createTransferLot_result that) {
27892
      if (that == null)
27893
        return false;
27894
 
27895
      boolean this_present_success = true;
27896
      boolean that_present_success = true;
27897
      if (this_present_success || that_present_success) {
27898
        if (!(this_present_success && that_present_success))
27899
          return false;
27900
        if (this.success != that.success)
27901
          return false;
27902
      }
27903
 
27904
      boolean this_present_wex = true && this.isSetWex();
27905
      boolean that_present_wex = true && that.isSetWex();
27906
      if (this_present_wex || that_present_wex) {
27907
        if (!(this_present_wex && that_present_wex))
27908
          return false;
27909
        if (!this.wex.equals(that.wex))
27910
          return false;
27911
      }
27912
 
27913
      return true;
27914
    }
27915
 
27916
    @Override
27917
    public int hashCode() {
27918
      return 0;
27919
    }
27920
 
27921
    public int compareTo(createTransferLot_result other) {
27922
      if (!getClass().equals(other.getClass())) {
27923
        return getClass().getName().compareTo(other.getClass().getName());
27924
      }
27925
 
27926
      int lastComparison = 0;
27927
      createTransferLot_result typedOther = (createTransferLot_result)other;
27928
 
27929
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27930
      if (lastComparison != 0) {
27931
        return lastComparison;
27932
      }
27933
      if (isSetSuccess()) {
27934
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27935
        if (lastComparison != 0) {
27936
          return lastComparison;
27937
        }
27938
      }
27939
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
27940
      if (lastComparison != 0) {
27941
        return lastComparison;
27942
      }
27943
      if (isSetWex()) {
27944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
27945
        if (lastComparison != 0) {
27946
          return lastComparison;
27947
        }
27948
      }
27949
      return 0;
27950
    }
27951
 
27952
    public _Fields fieldForId(int fieldId) {
27953
      return _Fields.findByThriftId(fieldId);
27954
    }
27955
 
27956
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27957
      org.apache.thrift.protocol.TField field;
27958
      iprot.readStructBegin();
27959
      while (true)
27960
      {
27961
        field = iprot.readFieldBegin();
27962
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27963
          break;
27964
        }
27965
        switch (field.id) {
27966
          case 0: // SUCCESS
27967
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27968
              this.success = iprot.readI64();
27969
              setSuccessIsSet(true);
27970
            } else { 
27971
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27972
            }
27973
            break;
27974
          case 1: // WEX
27975
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27976
              this.wex = new WarehouseServiceException();
27977
              this.wex.read(iprot);
27978
            } else { 
27979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27980
            }
27981
            break;
27982
          default:
27983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27984
        }
27985
        iprot.readFieldEnd();
27986
      }
27987
      iprot.readStructEnd();
27988
      validate();
27989
    }
27990
 
27991
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27992
      oprot.writeStructBegin(STRUCT_DESC);
27993
 
27994
      if (this.isSetSuccess()) {
27995
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27996
        oprot.writeI64(this.success);
27997
        oprot.writeFieldEnd();
27998
      } else if (this.isSetWex()) {
27999
        oprot.writeFieldBegin(WEX_FIELD_DESC);
28000
        this.wex.write(oprot);
28001
        oprot.writeFieldEnd();
28002
      }
28003
      oprot.writeFieldStop();
28004
      oprot.writeStructEnd();
28005
    }
28006
 
28007
    @Override
28008
    public String toString() {
28009
      StringBuilder sb = new StringBuilder("createTransferLot_result(");
28010
      boolean first = true;
28011
 
28012
      sb.append("success:");
28013
      sb.append(this.success);
28014
      first = false;
28015
      if (!first) sb.append(", ");
28016
      sb.append("wex:");
28017
      if (this.wex == null) {
28018
        sb.append("null");
28019
      } else {
28020
        sb.append(this.wex);
28021
      }
28022
      first = false;
28023
      sb.append(")");
28024
      return sb.toString();
28025
    }
28026
 
28027
    public void validate() throws org.apache.thrift.TException {
28028
      // check for required fields
28029
    }
28030
 
28031
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28032
      try {
28033
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28034
      } catch (org.apache.thrift.TException te) {
28035
        throw new java.io.IOException(te);
28036
      }
28037
    }
28038
 
28039
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28040
      try {
28041
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28042
      } catch (org.apache.thrift.TException te) {
28043
        throw new java.io.IOException(te);
28044
      }
28045
    }
28046
 
28047
  }
28048
 
28049
  public static class getTransferLot_args implements org.apache.thrift.TBase<getTransferLot_args, getTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
28050
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_args");
28051
 
28052
    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);
28053
 
28054
    private long transferLotId; // required
28055
 
28056
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28057
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28058
      TRANSFER_LOT_ID((short)1, "transferLotId");
28059
 
28060
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28061
 
28062
      static {
28063
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28064
          byName.put(field.getFieldName(), field);
28065
        }
28066
      }
28067
 
28068
      /**
28069
       * Find the _Fields constant that matches fieldId, or null if its not found.
28070
       */
28071
      public static _Fields findByThriftId(int fieldId) {
28072
        switch(fieldId) {
28073
          case 1: // TRANSFER_LOT_ID
28074
            return TRANSFER_LOT_ID;
28075
          default:
28076
            return null;
28077
        }
28078
      }
28079
 
28080
      /**
28081
       * Find the _Fields constant that matches fieldId, throwing an exception
28082
       * if it is not found.
28083
       */
28084
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28085
        _Fields fields = findByThriftId(fieldId);
28086
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28087
        return fields;
28088
      }
28089
 
28090
      /**
28091
       * Find the _Fields constant that matches name, or null if its not found.
28092
       */
28093
      public static _Fields findByName(String name) {
28094
        return byName.get(name);
28095
      }
28096
 
28097
      private final short _thriftId;
28098
      private final String _fieldName;
28099
 
28100
      _Fields(short thriftId, String fieldName) {
28101
        _thriftId = thriftId;
28102
        _fieldName = fieldName;
28103
      }
28104
 
28105
      public short getThriftFieldId() {
28106
        return _thriftId;
28107
      }
28108
 
28109
      public String getFieldName() {
28110
        return _fieldName;
28111
      }
28112
    }
28113
 
28114
    // isset id assignments
28115
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
28116
    private BitSet __isset_bit_vector = new BitSet(1);
28117
 
28118
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28119
    static {
28120
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28121
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28123
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28124
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_args.class, metaDataMap);
28125
    }
28126
 
28127
    public getTransferLot_args() {
28128
    }
28129
 
28130
    public getTransferLot_args(
28131
      long transferLotId)
28132
    {
28133
      this();
28134
      this.transferLotId = transferLotId;
28135
      setTransferLotIdIsSet(true);
28136
    }
28137
 
28138
    /**
28139
     * Performs a deep copy on <i>other</i>.
28140
     */
28141
    public getTransferLot_args(getTransferLot_args other) {
28142
      __isset_bit_vector.clear();
28143
      __isset_bit_vector.or(other.__isset_bit_vector);
28144
      this.transferLotId = other.transferLotId;
28145
    }
28146
 
28147
    public getTransferLot_args deepCopy() {
28148
      return new getTransferLot_args(this);
28149
    }
28150
 
28151
    @Override
28152
    public void clear() {
28153
      setTransferLotIdIsSet(false);
28154
      this.transferLotId = 0;
28155
    }
28156
 
28157
    public long getTransferLotId() {
28158
      return this.transferLotId;
28159
    }
28160
 
28161
    public void setTransferLotId(long transferLotId) {
28162
      this.transferLotId = transferLotId;
28163
      setTransferLotIdIsSet(true);
28164
    }
28165
 
28166
    public void unsetTransferLotId() {
28167
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
28168
    }
28169
 
28170
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
28171
    public boolean isSetTransferLotId() {
28172
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
28173
    }
28174
 
28175
    public void setTransferLotIdIsSet(boolean value) {
28176
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
28177
    }
28178
 
28179
    public void setFieldValue(_Fields field, Object value) {
28180
      switch (field) {
28181
      case TRANSFER_LOT_ID:
28182
        if (value == null) {
28183
          unsetTransferLotId();
28184
        } else {
28185
          setTransferLotId((Long)value);
28186
        }
28187
        break;
28188
 
28189
      }
28190
    }
28191
 
28192
    public Object getFieldValue(_Fields field) {
28193
      switch (field) {
28194
      case TRANSFER_LOT_ID:
28195
        return Long.valueOf(getTransferLotId());
28196
 
28197
      }
28198
      throw new IllegalStateException();
28199
    }
28200
 
28201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28202
    public boolean isSet(_Fields field) {
28203
      if (field == null) {
28204
        throw new IllegalArgumentException();
28205
      }
28206
 
28207
      switch (field) {
28208
      case TRANSFER_LOT_ID:
28209
        return isSetTransferLotId();
28210
      }
28211
      throw new IllegalStateException();
28212
    }
28213
 
28214
    @Override
28215
    public boolean equals(Object that) {
28216
      if (that == null)
28217
        return false;
28218
      if (that instanceof getTransferLot_args)
28219
        return this.equals((getTransferLot_args)that);
28220
      return false;
28221
    }
28222
 
28223
    public boolean equals(getTransferLot_args that) {
28224
      if (that == null)
28225
        return false;
28226
 
28227
      boolean this_present_transferLotId = true;
28228
      boolean that_present_transferLotId = true;
28229
      if (this_present_transferLotId || that_present_transferLotId) {
28230
        if (!(this_present_transferLotId && that_present_transferLotId))
28231
          return false;
28232
        if (this.transferLotId != that.transferLotId)
28233
          return false;
28234
      }
28235
 
28236
      return true;
28237
    }
28238
 
28239
    @Override
28240
    public int hashCode() {
28241
      return 0;
28242
    }
28243
 
28244
    public int compareTo(getTransferLot_args other) {
28245
      if (!getClass().equals(other.getClass())) {
28246
        return getClass().getName().compareTo(other.getClass().getName());
28247
      }
28248
 
28249
      int lastComparison = 0;
28250
      getTransferLot_args typedOther = (getTransferLot_args)other;
28251
 
28252
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
28253
      if (lastComparison != 0) {
28254
        return lastComparison;
28255
      }
28256
      if (isSetTransferLotId()) {
28257
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
28258
        if (lastComparison != 0) {
28259
          return lastComparison;
28260
        }
28261
      }
28262
      return 0;
28263
    }
28264
 
28265
    public _Fields fieldForId(int fieldId) {
28266
      return _Fields.findByThriftId(fieldId);
28267
    }
28268
 
28269
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28270
      org.apache.thrift.protocol.TField field;
28271
      iprot.readStructBegin();
28272
      while (true)
28273
      {
28274
        field = iprot.readFieldBegin();
28275
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28276
          break;
28277
        }
28278
        switch (field.id) {
28279
          case 1: // TRANSFER_LOT_ID
28280
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28281
              this.transferLotId = iprot.readI64();
28282
              setTransferLotIdIsSet(true);
28283
            } else { 
28284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28285
            }
28286
            break;
28287
          default:
28288
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28289
        }
28290
        iprot.readFieldEnd();
28291
      }
28292
      iprot.readStructEnd();
28293
      validate();
28294
    }
28295
 
28296
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28297
      validate();
28298
 
28299
      oprot.writeStructBegin(STRUCT_DESC);
28300
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
28301
      oprot.writeI64(this.transferLotId);
28302
      oprot.writeFieldEnd();
28303
      oprot.writeFieldStop();
28304
      oprot.writeStructEnd();
28305
    }
28306
 
28307
    @Override
28308
    public String toString() {
28309
      StringBuilder sb = new StringBuilder("getTransferLot_args(");
28310
      boolean first = true;
28311
 
28312
      sb.append("transferLotId:");
28313
      sb.append(this.transferLotId);
28314
      first = false;
28315
      sb.append(")");
28316
      return sb.toString();
28317
    }
28318
 
28319
    public void validate() throws org.apache.thrift.TException {
28320
      // check for required fields
28321
    }
28322
 
28323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28324
      try {
28325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28326
      } catch (org.apache.thrift.TException te) {
28327
        throw new java.io.IOException(te);
28328
      }
28329
    }
28330
 
28331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28332
      try {
28333
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28334
        __isset_bit_vector = new BitSet(1);
28335
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28336
      } catch (org.apache.thrift.TException te) {
28337
        throw new java.io.IOException(te);
28338
      }
28339
    }
28340
 
28341
  }
28342
 
28343
  public static class getTransferLot_result implements org.apache.thrift.TBase<getTransferLot_result, getTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
28344
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_result");
28345
 
28346
    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);
28347
    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);
28348
 
28349
    private TransferLot success; // required
28350
    private WarehouseServiceException wex; // required
28351
 
28352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28353
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28354
      SUCCESS((short)0, "success"),
28355
      WEX((short)1, "wex");
28356
 
28357
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28358
 
28359
      static {
28360
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28361
          byName.put(field.getFieldName(), field);
28362
        }
28363
      }
28364
 
28365
      /**
28366
       * Find the _Fields constant that matches fieldId, or null if its not found.
28367
       */
28368
      public static _Fields findByThriftId(int fieldId) {
28369
        switch(fieldId) {
28370
          case 0: // SUCCESS
28371
            return SUCCESS;
28372
          case 1: // WEX
28373
            return WEX;
28374
          default:
28375
            return null;
28376
        }
28377
      }
28378
 
28379
      /**
28380
       * Find the _Fields constant that matches fieldId, throwing an exception
28381
       * if it is not found.
28382
       */
28383
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28384
        _Fields fields = findByThriftId(fieldId);
28385
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28386
        return fields;
28387
      }
28388
 
28389
      /**
28390
       * Find the _Fields constant that matches name, or null if its not found.
28391
       */
28392
      public static _Fields findByName(String name) {
28393
        return byName.get(name);
28394
      }
28395
 
28396
      private final short _thriftId;
28397
      private final String _fieldName;
28398
 
28399
      _Fields(short thriftId, String fieldName) {
28400
        _thriftId = thriftId;
28401
        _fieldName = fieldName;
28402
      }
28403
 
28404
      public short getThriftFieldId() {
28405
        return _thriftId;
28406
      }
28407
 
28408
      public String getFieldName() {
28409
        return _fieldName;
28410
      }
28411
    }
28412
 
28413
    // isset id assignments
28414
 
28415
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28416
    static {
28417
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28418
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28419
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class)));
28420
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28421
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28422
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28423
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_result.class, metaDataMap);
28424
    }
28425
 
28426
    public getTransferLot_result() {
28427
    }
28428
 
28429
    public getTransferLot_result(
28430
      TransferLot success,
28431
      WarehouseServiceException wex)
28432
    {
28433
      this();
28434
      this.success = success;
28435
      this.wex = wex;
28436
    }
28437
 
28438
    /**
28439
     * Performs a deep copy on <i>other</i>.
28440
     */
28441
    public getTransferLot_result(getTransferLot_result other) {
28442
      if (other.isSetSuccess()) {
28443
        this.success = new TransferLot(other.success);
28444
      }
28445
      if (other.isSetWex()) {
28446
        this.wex = new WarehouseServiceException(other.wex);
28447
      }
28448
    }
28449
 
28450
    public getTransferLot_result deepCopy() {
28451
      return new getTransferLot_result(this);
28452
    }
28453
 
28454
    @Override
28455
    public void clear() {
28456
      this.success = null;
28457
      this.wex = null;
28458
    }
28459
 
28460
    public TransferLot getSuccess() {
28461
      return this.success;
28462
    }
28463
 
28464
    public void setSuccess(TransferLot success) {
28465
      this.success = success;
28466
    }
28467
 
28468
    public void unsetSuccess() {
28469
      this.success = null;
28470
    }
28471
 
28472
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28473
    public boolean isSetSuccess() {
28474
      return this.success != null;
28475
    }
28476
 
28477
    public void setSuccessIsSet(boolean value) {
28478
      if (!value) {
28479
        this.success = null;
28480
      }
28481
    }
28482
 
28483
    public WarehouseServiceException getWex() {
28484
      return this.wex;
28485
    }
28486
 
28487
    public void setWex(WarehouseServiceException wex) {
28488
      this.wex = wex;
28489
    }
28490
 
28491
    public void unsetWex() {
28492
      this.wex = null;
28493
    }
28494
 
28495
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
28496
    public boolean isSetWex() {
28497
      return this.wex != null;
28498
    }
28499
 
28500
    public void setWexIsSet(boolean value) {
28501
      if (!value) {
28502
        this.wex = null;
28503
      }
28504
    }
28505
 
28506
    public void setFieldValue(_Fields field, Object value) {
28507
      switch (field) {
28508
      case SUCCESS:
28509
        if (value == null) {
28510
          unsetSuccess();
28511
        } else {
28512
          setSuccess((TransferLot)value);
28513
        }
28514
        break;
28515
 
28516
      case WEX:
28517
        if (value == null) {
28518
          unsetWex();
28519
        } else {
28520
          setWex((WarehouseServiceException)value);
28521
        }
28522
        break;
28523
 
28524
      }
28525
    }
28526
 
28527
    public Object getFieldValue(_Fields field) {
28528
      switch (field) {
28529
      case SUCCESS:
28530
        return getSuccess();
28531
 
28532
      case WEX:
28533
        return getWex();
28534
 
28535
      }
28536
      throw new IllegalStateException();
28537
    }
28538
 
28539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28540
    public boolean isSet(_Fields field) {
28541
      if (field == null) {
28542
        throw new IllegalArgumentException();
28543
      }
28544
 
28545
      switch (field) {
28546
      case SUCCESS:
28547
        return isSetSuccess();
28548
      case WEX:
28549
        return isSetWex();
28550
      }
28551
      throw new IllegalStateException();
28552
    }
28553
 
28554
    @Override
28555
    public boolean equals(Object that) {
28556
      if (that == null)
28557
        return false;
28558
      if (that instanceof getTransferLot_result)
28559
        return this.equals((getTransferLot_result)that);
28560
      return false;
28561
    }
28562
 
28563
    public boolean equals(getTransferLot_result that) {
28564
      if (that == null)
28565
        return false;
28566
 
28567
      boolean this_present_success = true && this.isSetSuccess();
28568
      boolean that_present_success = true && that.isSetSuccess();
28569
      if (this_present_success || that_present_success) {
28570
        if (!(this_present_success && that_present_success))
28571
          return false;
28572
        if (!this.success.equals(that.success))
28573
          return false;
28574
      }
28575
 
28576
      boolean this_present_wex = true && this.isSetWex();
28577
      boolean that_present_wex = true && that.isSetWex();
28578
      if (this_present_wex || that_present_wex) {
28579
        if (!(this_present_wex && that_present_wex))
28580
          return false;
28581
        if (!this.wex.equals(that.wex))
28582
          return false;
28583
      }
28584
 
28585
      return true;
28586
    }
28587
 
28588
    @Override
28589
    public int hashCode() {
28590
      return 0;
28591
    }
28592
 
28593
    public int compareTo(getTransferLot_result other) {
28594
      if (!getClass().equals(other.getClass())) {
28595
        return getClass().getName().compareTo(other.getClass().getName());
28596
      }
28597
 
28598
      int lastComparison = 0;
28599
      getTransferLot_result typedOther = (getTransferLot_result)other;
28600
 
28601
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28602
      if (lastComparison != 0) {
28603
        return lastComparison;
28604
      }
28605
      if (isSetSuccess()) {
28606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28607
        if (lastComparison != 0) {
28608
          return lastComparison;
28609
        }
28610
      }
28611
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
28612
      if (lastComparison != 0) {
28613
        return lastComparison;
28614
      }
28615
      if (isSetWex()) {
28616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
28617
        if (lastComparison != 0) {
28618
          return lastComparison;
28619
        }
28620
      }
28621
      return 0;
28622
    }
28623
 
28624
    public _Fields fieldForId(int fieldId) {
28625
      return _Fields.findByThriftId(fieldId);
28626
    }
28627
 
28628
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28629
      org.apache.thrift.protocol.TField field;
28630
      iprot.readStructBegin();
28631
      while (true)
28632
      {
28633
        field = iprot.readFieldBegin();
28634
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28635
          break;
28636
        }
28637
        switch (field.id) {
28638
          case 0: // SUCCESS
28639
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28640
              this.success = new TransferLot();
28641
              this.success.read(iprot);
28642
            } else { 
28643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28644
            }
28645
            break;
28646
          case 1: // WEX
28647
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28648
              this.wex = new WarehouseServiceException();
28649
              this.wex.read(iprot);
28650
            } else { 
28651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28652
            }
28653
            break;
28654
          default:
28655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28656
        }
28657
        iprot.readFieldEnd();
28658
      }
28659
      iprot.readStructEnd();
28660
      validate();
28661
    }
28662
 
28663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28664
      oprot.writeStructBegin(STRUCT_DESC);
28665
 
28666
      if (this.isSetSuccess()) {
28667
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28668
        this.success.write(oprot);
28669
        oprot.writeFieldEnd();
28670
      } else if (this.isSetWex()) {
28671
        oprot.writeFieldBegin(WEX_FIELD_DESC);
28672
        this.wex.write(oprot);
28673
        oprot.writeFieldEnd();
28674
      }
28675
      oprot.writeFieldStop();
28676
      oprot.writeStructEnd();
28677
    }
28678
 
28679
    @Override
28680
    public String toString() {
28681
      StringBuilder sb = new StringBuilder("getTransferLot_result(");
28682
      boolean first = true;
28683
 
28684
      sb.append("success:");
28685
      if (this.success == null) {
28686
        sb.append("null");
28687
      } else {
28688
        sb.append(this.success);
28689
      }
28690
      first = false;
28691
      if (!first) sb.append(", ");
28692
      sb.append("wex:");
28693
      if (this.wex == null) {
28694
        sb.append("null");
28695
      } else {
28696
        sb.append(this.wex);
28697
      }
28698
      first = false;
28699
      sb.append(")");
28700
      return sb.toString();
28701
    }
28702
 
28703
    public void validate() throws org.apache.thrift.TException {
28704
      // check for required fields
28705
    }
28706
 
28707
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28708
      try {
28709
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28710
      } catch (org.apache.thrift.TException te) {
28711
        throw new java.io.IOException(te);
28712
      }
28713
    }
28714
 
28715
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28716
      try {
28717
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28718
      } catch (org.apache.thrift.TException te) {
28719
        throw new java.io.IOException(te);
28720
      }
28721
    }
28722
 
28723
  }
28724
 
28725
  public static class markTransferLotAsReceived_args implements org.apache.thrift.TBase<markTransferLotAsReceived_args, markTransferLotAsReceived_args._Fields>, java.io.Serializable, Cloneable   {
28726
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_args");
28727
 
28728
    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);
28729
    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);
28730
 
28731
    private long id; // required
28732
    private String remoteTransferRefNumber; // required
28733
 
28734
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28735
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28736
      ID((short)1, "id"),
28737
      REMOTE_TRANSFER_REF_NUMBER((short)2, "remoteTransferRefNumber");
28738
 
28739
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28740
 
28741
      static {
28742
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28743
          byName.put(field.getFieldName(), field);
28744
        }
28745
      }
28746
 
28747
      /**
28748
       * Find the _Fields constant that matches fieldId, or null if its not found.
28749
       */
28750
      public static _Fields findByThriftId(int fieldId) {
28751
        switch(fieldId) {
28752
          case 1: // ID
28753
            return ID;
28754
          case 2: // REMOTE_TRANSFER_REF_NUMBER
28755
            return REMOTE_TRANSFER_REF_NUMBER;
28756
          default:
28757
            return null;
28758
        }
28759
      }
28760
 
28761
      /**
28762
       * Find the _Fields constant that matches fieldId, throwing an exception
28763
       * if it is not found.
28764
       */
28765
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28766
        _Fields fields = findByThriftId(fieldId);
28767
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28768
        return fields;
28769
      }
28770
 
28771
      /**
28772
       * Find the _Fields constant that matches name, or null if its not found.
28773
       */
28774
      public static _Fields findByName(String name) {
28775
        return byName.get(name);
28776
      }
28777
 
28778
      private final short _thriftId;
28779
      private final String _fieldName;
28780
 
28781
      _Fields(short thriftId, String fieldName) {
28782
        _thriftId = thriftId;
28783
        _fieldName = fieldName;
28784
      }
28785
 
28786
      public short getThriftFieldId() {
28787
        return _thriftId;
28788
      }
28789
 
28790
      public String getFieldName() {
28791
        return _fieldName;
28792
      }
28793
    }
28794
 
28795
    // isset id assignments
28796
    private static final int __ID_ISSET_ID = 0;
28797
    private BitSet __isset_bit_vector = new BitSet(1);
28798
 
28799
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28800
    static {
28801
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28802
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28803
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28804
      tmpMap.put(_Fields.REMOTE_TRANSFER_REF_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("remoteTransferRefNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28806
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28807
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_args.class, metaDataMap);
28808
    }
28809
 
28810
    public markTransferLotAsReceived_args() {
28811
    }
28812
 
28813
    public markTransferLotAsReceived_args(
28814
      long id,
28815
      String remoteTransferRefNumber)
28816
    {
28817
      this();
28818
      this.id = id;
28819
      setIdIsSet(true);
28820
      this.remoteTransferRefNumber = remoteTransferRefNumber;
28821
    }
28822
 
28823
    /**
28824
     * Performs a deep copy on <i>other</i>.
28825
     */
28826
    public markTransferLotAsReceived_args(markTransferLotAsReceived_args other) {
28827
      __isset_bit_vector.clear();
28828
      __isset_bit_vector.or(other.__isset_bit_vector);
28829
      this.id = other.id;
28830
      if (other.isSetRemoteTransferRefNumber()) {
28831
        this.remoteTransferRefNumber = other.remoteTransferRefNumber;
28832
      }
28833
    }
28834
 
28835
    public markTransferLotAsReceived_args deepCopy() {
28836
      return new markTransferLotAsReceived_args(this);
28837
    }
28838
 
28839
    @Override
28840
    public void clear() {
28841
      setIdIsSet(false);
28842
      this.id = 0;
28843
      this.remoteTransferRefNumber = null;
28844
    }
28845
 
28846
    public long getId() {
28847
      return this.id;
28848
    }
28849
 
28850
    public void setId(long id) {
28851
      this.id = id;
28852
      setIdIsSet(true);
28853
    }
28854
 
28855
    public void unsetId() {
28856
      __isset_bit_vector.clear(__ID_ISSET_ID);
28857
    }
28858
 
28859
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
28860
    public boolean isSetId() {
28861
      return __isset_bit_vector.get(__ID_ISSET_ID);
28862
    }
28863
 
28864
    public void setIdIsSet(boolean value) {
28865
      __isset_bit_vector.set(__ID_ISSET_ID, value);
28866
    }
28867
 
28868
    public String getRemoteTransferRefNumber() {
28869
      return this.remoteTransferRefNumber;
28870
    }
28871
 
28872
    public void setRemoteTransferRefNumber(String remoteTransferRefNumber) {
28873
      this.remoteTransferRefNumber = remoteTransferRefNumber;
28874
    }
28875
 
28876
    public void unsetRemoteTransferRefNumber() {
28877
      this.remoteTransferRefNumber = null;
28878
    }
28879
 
28880
    /** Returns true if field remoteTransferRefNumber is set (has been assigned a value) and false otherwise */
28881
    public boolean isSetRemoteTransferRefNumber() {
28882
      return this.remoteTransferRefNumber != null;
28883
    }
28884
 
28885
    public void setRemoteTransferRefNumberIsSet(boolean value) {
28886
      if (!value) {
28887
        this.remoteTransferRefNumber = null;
28888
      }
28889
    }
28890
 
28891
    public void setFieldValue(_Fields field, Object value) {
28892
      switch (field) {
28893
      case ID:
28894
        if (value == null) {
28895
          unsetId();
28896
        } else {
28897
          setId((Long)value);
28898
        }
28899
        break;
28900
 
28901
      case REMOTE_TRANSFER_REF_NUMBER:
28902
        if (value == null) {
28903
          unsetRemoteTransferRefNumber();
28904
        } else {
28905
          setRemoteTransferRefNumber((String)value);
28906
        }
28907
        break;
28908
 
28909
      }
28910
    }
28911
 
28912
    public Object getFieldValue(_Fields field) {
28913
      switch (field) {
28914
      case ID:
28915
        return Long.valueOf(getId());
28916
 
28917
      case REMOTE_TRANSFER_REF_NUMBER:
28918
        return getRemoteTransferRefNumber();
28919
 
28920
      }
28921
      throw new IllegalStateException();
28922
    }
28923
 
28924
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28925
    public boolean isSet(_Fields field) {
28926
      if (field == null) {
28927
        throw new IllegalArgumentException();
28928
      }
28929
 
28930
      switch (field) {
28931
      case ID:
28932
        return isSetId();
28933
      case REMOTE_TRANSFER_REF_NUMBER:
28934
        return isSetRemoteTransferRefNumber();
28935
      }
28936
      throw new IllegalStateException();
28937
    }
28938
 
28939
    @Override
28940
    public boolean equals(Object that) {
28941
      if (that == null)
28942
        return false;
28943
      if (that instanceof markTransferLotAsReceived_args)
28944
        return this.equals((markTransferLotAsReceived_args)that);
28945
      return false;
28946
    }
28947
 
28948
    public boolean equals(markTransferLotAsReceived_args that) {
28949
      if (that == null)
28950
        return false;
28951
 
28952
      boolean this_present_id = true;
28953
      boolean that_present_id = true;
28954
      if (this_present_id || that_present_id) {
28955
        if (!(this_present_id && that_present_id))
28956
          return false;
28957
        if (this.id != that.id)
28958
          return false;
28959
      }
28960
 
28961
      boolean this_present_remoteTransferRefNumber = true && this.isSetRemoteTransferRefNumber();
28962
      boolean that_present_remoteTransferRefNumber = true && that.isSetRemoteTransferRefNumber();
28963
      if (this_present_remoteTransferRefNumber || that_present_remoteTransferRefNumber) {
28964
        if (!(this_present_remoteTransferRefNumber && that_present_remoteTransferRefNumber))
28965
          return false;
28966
        if (!this.remoteTransferRefNumber.equals(that.remoteTransferRefNumber))
28967
          return false;
28968
      }
28969
 
28970
      return true;
28971
    }
28972
 
28973
    @Override
28974
    public int hashCode() {
28975
      return 0;
28976
    }
28977
 
28978
    public int compareTo(markTransferLotAsReceived_args other) {
28979
      if (!getClass().equals(other.getClass())) {
28980
        return getClass().getName().compareTo(other.getClass().getName());
28981
      }
28982
 
28983
      int lastComparison = 0;
28984
      markTransferLotAsReceived_args typedOther = (markTransferLotAsReceived_args)other;
28985
 
28986
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
28987
      if (lastComparison != 0) {
28988
        return lastComparison;
28989
      }
28990
      if (isSetId()) {
28991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
28992
        if (lastComparison != 0) {
28993
          return lastComparison;
28994
        }
28995
      }
28996
      lastComparison = Boolean.valueOf(isSetRemoteTransferRefNumber()).compareTo(typedOther.isSetRemoteTransferRefNumber());
28997
      if (lastComparison != 0) {
28998
        return lastComparison;
28999
      }
29000
      if (isSetRemoteTransferRefNumber()) {
29001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remoteTransferRefNumber, typedOther.remoteTransferRefNumber);
29002
        if (lastComparison != 0) {
29003
          return lastComparison;
29004
        }
29005
      }
29006
      return 0;
29007
    }
29008
 
29009
    public _Fields fieldForId(int fieldId) {
29010
      return _Fields.findByThriftId(fieldId);
29011
    }
29012
 
29013
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29014
      org.apache.thrift.protocol.TField field;
29015
      iprot.readStructBegin();
29016
      while (true)
29017
      {
29018
        field = iprot.readFieldBegin();
29019
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29020
          break;
29021
        }
29022
        switch (field.id) {
29023
          case 1: // ID
29024
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29025
              this.id = iprot.readI64();
29026
              setIdIsSet(true);
29027
            } else { 
29028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29029
            }
29030
            break;
29031
          case 2: // REMOTE_TRANSFER_REF_NUMBER
29032
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
29033
              this.remoteTransferRefNumber = iprot.readString();
29034
            } else { 
29035
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29036
            }
29037
            break;
29038
          default:
29039
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29040
        }
29041
        iprot.readFieldEnd();
29042
      }
29043
      iprot.readStructEnd();
29044
      validate();
29045
    }
29046
 
29047
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29048
      validate();
29049
 
29050
      oprot.writeStructBegin(STRUCT_DESC);
29051
      oprot.writeFieldBegin(ID_FIELD_DESC);
29052
      oprot.writeI64(this.id);
29053
      oprot.writeFieldEnd();
29054
      if (this.remoteTransferRefNumber != null) {
29055
        oprot.writeFieldBegin(REMOTE_TRANSFER_REF_NUMBER_FIELD_DESC);
29056
        oprot.writeString(this.remoteTransferRefNumber);
29057
        oprot.writeFieldEnd();
29058
      }
29059
      oprot.writeFieldStop();
29060
      oprot.writeStructEnd();
29061
    }
29062
 
29063
    @Override
29064
    public String toString() {
29065
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_args(");
29066
      boolean first = true;
29067
 
29068
      sb.append("id:");
29069
      sb.append(this.id);
29070
      first = false;
29071
      if (!first) sb.append(", ");
29072
      sb.append("remoteTransferRefNumber:");
29073
      if (this.remoteTransferRefNumber == null) {
29074
        sb.append("null");
29075
      } else {
29076
        sb.append(this.remoteTransferRefNumber);
29077
      }
29078
      first = false;
29079
      sb.append(")");
29080
      return sb.toString();
29081
    }
29082
 
29083
    public void validate() throws org.apache.thrift.TException {
29084
      // check for required fields
29085
    }
29086
 
29087
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29088
      try {
29089
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29090
      } catch (org.apache.thrift.TException te) {
29091
        throw new java.io.IOException(te);
29092
      }
29093
    }
29094
 
29095
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29096
      try {
29097
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29098
        __isset_bit_vector = new BitSet(1);
29099
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29100
      } catch (org.apache.thrift.TException te) {
29101
        throw new java.io.IOException(te);
29102
      }
29103
    }
29104
 
29105
  }
29106
 
29107
  public static class markTransferLotAsReceived_result implements org.apache.thrift.TBase<markTransferLotAsReceived_result, markTransferLotAsReceived_result._Fields>, java.io.Serializable, Cloneable   {
29108
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_result");
29109
 
29110
    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);
29111
 
29112
    private WarehouseServiceException wex; // required
29113
 
29114
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29115
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29116
      WEX((short)1, "wex");
29117
 
29118
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29119
 
29120
      static {
29121
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29122
          byName.put(field.getFieldName(), field);
29123
        }
29124
      }
29125
 
29126
      /**
29127
       * Find the _Fields constant that matches fieldId, or null if its not found.
29128
       */
29129
      public static _Fields findByThriftId(int fieldId) {
29130
        switch(fieldId) {
29131
          case 1: // WEX
29132
            return WEX;
29133
          default:
29134
            return null;
29135
        }
29136
      }
29137
 
29138
      /**
29139
       * Find the _Fields constant that matches fieldId, throwing an exception
29140
       * if it is not found.
29141
       */
29142
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29143
        _Fields fields = findByThriftId(fieldId);
29144
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29145
        return fields;
29146
      }
29147
 
29148
      /**
29149
       * Find the _Fields constant that matches name, or null if its not found.
29150
       */
29151
      public static _Fields findByName(String name) {
29152
        return byName.get(name);
29153
      }
29154
 
29155
      private final short _thriftId;
29156
      private final String _fieldName;
29157
 
29158
      _Fields(short thriftId, String fieldName) {
29159
        _thriftId = thriftId;
29160
        _fieldName = fieldName;
29161
      }
29162
 
29163
      public short getThriftFieldId() {
29164
        return _thriftId;
29165
      }
29166
 
29167
      public String getFieldName() {
29168
        return _fieldName;
29169
      }
29170
    }
29171
 
29172
    // isset id assignments
29173
 
29174
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29175
    static {
29176
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29177
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29178
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29179
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29180
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_result.class, metaDataMap);
29181
    }
29182
 
29183
    public markTransferLotAsReceived_result() {
29184
    }
29185
 
29186
    public markTransferLotAsReceived_result(
29187
      WarehouseServiceException wex)
29188
    {
29189
      this();
29190
      this.wex = wex;
29191
    }
29192
 
29193
    /**
29194
     * Performs a deep copy on <i>other</i>.
29195
     */
29196
    public markTransferLotAsReceived_result(markTransferLotAsReceived_result other) {
29197
      if (other.isSetWex()) {
29198
        this.wex = new WarehouseServiceException(other.wex);
29199
      }
29200
    }
29201
 
29202
    public markTransferLotAsReceived_result deepCopy() {
29203
      return new markTransferLotAsReceived_result(this);
29204
    }
29205
 
29206
    @Override
29207
    public void clear() {
29208
      this.wex = null;
29209
    }
29210
 
29211
    public WarehouseServiceException getWex() {
29212
      return this.wex;
29213
    }
29214
 
29215
    public void setWex(WarehouseServiceException wex) {
29216
      this.wex = wex;
29217
    }
29218
 
29219
    public void unsetWex() {
29220
      this.wex = null;
29221
    }
29222
 
29223
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
29224
    public boolean isSetWex() {
29225
      return this.wex != null;
29226
    }
29227
 
29228
    public void setWexIsSet(boolean value) {
29229
      if (!value) {
29230
        this.wex = null;
29231
      }
29232
    }
29233
 
29234
    public void setFieldValue(_Fields field, Object value) {
29235
      switch (field) {
29236
      case WEX:
29237
        if (value == null) {
29238
          unsetWex();
29239
        } else {
29240
          setWex((WarehouseServiceException)value);
29241
        }
29242
        break;
29243
 
29244
      }
29245
    }
29246
 
29247
    public Object getFieldValue(_Fields field) {
29248
      switch (field) {
29249
      case WEX:
29250
        return getWex();
29251
 
29252
      }
29253
      throw new IllegalStateException();
29254
    }
29255
 
29256
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29257
    public boolean isSet(_Fields field) {
29258
      if (field == null) {
29259
        throw new IllegalArgumentException();
29260
      }
29261
 
29262
      switch (field) {
29263
      case WEX:
29264
        return isSetWex();
29265
      }
29266
      throw new IllegalStateException();
29267
    }
29268
 
29269
    @Override
29270
    public boolean equals(Object that) {
29271
      if (that == null)
29272
        return false;
29273
      if (that instanceof markTransferLotAsReceived_result)
29274
        return this.equals((markTransferLotAsReceived_result)that);
29275
      return false;
29276
    }
29277
 
29278
    public boolean equals(markTransferLotAsReceived_result that) {
29279
      if (that == null)
29280
        return false;
29281
 
29282
      boolean this_present_wex = true && this.isSetWex();
29283
      boolean that_present_wex = true && that.isSetWex();
29284
      if (this_present_wex || that_present_wex) {
29285
        if (!(this_present_wex && that_present_wex))
29286
          return false;
29287
        if (!this.wex.equals(that.wex))
29288
          return false;
29289
      }
29290
 
29291
      return true;
29292
    }
29293
 
29294
    @Override
29295
    public int hashCode() {
29296
      return 0;
29297
    }
29298
 
29299
    public int compareTo(markTransferLotAsReceived_result other) {
29300
      if (!getClass().equals(other.getClass())) {
29301
        return getClass().getName().compareTo(other.getClass().getName());
29302
      }
29303
 
29304
      int lastComparison = 0;
29305
      markTransferLotAsReceived_result typedOther = (markTransferLotAsReceived_result)other;
29306
 
29307
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
29308
      if (lastComparison != 0) {
29309
        return lastComparison;
29310
      }
29311
      if (isSetWex()) {
29312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
29313
        if (lastComparison != 0) {
29314
          return lastComparison;
29315
        }
29316
      }
29317
      return 0;
29318
    }
29319
 
29320
    public _Fields fieldForId(int fieldId) {
29321
      return _Fields.findByThriftId(fieldId);
29322
    }
29323
 
29324
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29325
      org.apache.thrift.protocol.TField field;
29326
      iprot.readStructBegin();
29327
      while (true)
29328
      {
29329
        field = iprot.readFieldBegin();
29330
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29331
          break;
29332
        }
29333
        switch (field.id) {
29334
          case 1: // WEX
29335
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29336
              this.wex = new WarehouseServiceException();
29337
              this.wex.read(iprot);
29338
            } else { 
29339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29340
            }
29341
            break;
29342
          default:
29343
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29344
        }
29345
        iprot.readFieldEnd();
29346
      }
29347
      iprot.readStructEnd();
29348
      validate();
29349
    }
29350
 
29351
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29352
      oprot.writeStructBegin(STRUCT_DESC);
29353
 
29354
      if (this.isSetWex()) {
29355
        oprot.writeFieldBegin(WEX_FIELD_DESC);
29356
        this.wex.write(oprot);
29357
        oprot.writeFieldEnd();
29358
      }
29359
      oprot.writeFieldStop();
29360
      oprot.writeStructEnd();
29361
    }
29362
 
29363
    @Override
29364
    public String toString() {
29365
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_result(");
29366
      boolean first = true;
29367
 
29368
      sb.append("wex:");
29369
      if (this.wex == null) {
29370
        sb.append("null");
29371
      } else {
29372
        sb.append(this.wex);
29373
      }
29374
      first = false;
29375
      sb.append(")");
29376
      return sb.toString();
29377
    }
29378
 
29379
    public void validate() throws org.apache.thrift.TException {
29380
      // check for required fields
29381
    }
29382
 
29383
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29384
      try {
29385
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29386
      } catch (org.apache.thrift.TException te) {
29387
        throw new java.io.IOException(te);
29388
      }
29389
    }
29390
 
29391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29392
      try {
29393
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29394
      } catch (org.apache.thrift.TException te) {
29395
        throw new java.io.IOException(te);
29396
      }
29397
    }
29398
 
29399
  }
29400
 
29401
  public static class getTransferLotsByDate_args implements org.apache.thrift.TBase<getTransferLotsByDate_args, getTransferLotsByDate_args._Fields>, java.io.Serializable, Cloneable   {
29402
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_args");
29403
 
29404
    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);
29405
    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);
29406
 
29407
    private long fromDate; // required
29408
    private long toDate; // required
29409
 
29410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29412
      FROM_DATE((short)1, "fromDate"),
29413
      TO_DATE((short)2, "toDate");
29414
 
29415
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29416
 
29417
      static {
29418
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29419
          byName.put(field.getFieldName(), field);
29420
        }
29421
      }
29422
 
29423
      /**
29424
       * Find the _Fields constant that matches fieldId, or null if its not found.
29425
       */
29426
      public static _Fields findByThriftId(int fieldId) {
29427
        switch(fieldId) {
29428
          case 1: // FROM_DATE
29429
            return FROM_DATE;
29430
          case 2: // TO_DATE
29431
            return TO_DATE;
29432
          default:
29433
            return null;
29434
        }
29435
      }
29436
 
29437
      /**
29438
       * Find the _Fields constant that matches fieldId, throwing an exception
29439
       * if it is not found.
29440
       */
29441
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29442
        _Fields fields = findByThriftId(fieldId);
29443
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29444
        return fields;
29445
      }
29446
 
29447
      /**
29448
       * Find the _Fields constant that matches name, or null if its not found.
29449
       */
29450
      public static _Fields findByName(String name) {
29451
        return byName.get(name);
29452
      }
29453
 
29454
      private final short _thriftId;
29455
      private final String _fieldName;
29456
 
29457
      _Fields(short thriftId, String fieldName) {
29458
        _thriftId = thriftId;
29459
        _fieldName = fieldName;
29460
      }
29461
 
29462
      public short getThriftFieldId() {
29463
        return _thriftId;
29464
      }
29465
 
29466
      public String getFieldName() {
29467
        return _fieldName;
29468
      }
29469
    }
29470
 
29471
    // isset id assignments
29472
    private static final int __FROMDATE_ISSET_ID = 0;
29473
    private static final int __TODATE_ISSET_ID = 1;
29474
    private BitSet __isset_bit_vector = new BitSet(2);
29475
 
29476
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29477
    static {
29478
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29479
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29480
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29481
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29482
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29483
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29484
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_args.class, metaDataMap);
29485
    }
29486
 
29487
    public getTransferLotsByDate_args() {
29488
    }
29489
 
29490
    public getTransferLotsByDate_args(
29491
      long fromDate,
29492
      long toDate)
29493
    {
29494
      this();
29495
      this.fromDate = fromDate;
29496
      setFromDateIsSet(true);
29497
      this.toDate = toDate;
29498
      setToDateIsSet(true);
29499
    }
29500
 
29501
    /**
29502
     * Performs a deep copy on <i>other</i>.
29503
     */
29504
    public getTransferLotsByDate_args(getTransferLotsByDate_args other) {
29505
      __isset_bit_vector.clear();
29506
      __isset_bit_vector.or(other.__isset_bit_vector);
29507
      this.fromDate = other.fromDate;
29508
      this.toDate = other.toDate;
29509
    }
29510
 
29511
    public getTransferLotsByDate_args deepCopy() {
29512
      return new getTransferLotsByDate_args(this);
29513
    }
29514
 
29515
    @Override
29516
    public void clear() {
29517
      setFromDateIsSet(false);
29518
      this.fromDate = 0;
29519
      setToDateIsSet(false);
29520
      this.toDate = 0;
29521
    }
29522
 
29523
    public long getFromDate() {
29524
      return this.fromDate;
29525
    }
29526
 
29527
    public void setFromDate(long fromDate) {
29528
      this.fromDate = fromDate;
29529
      setFromDateIsSet(true);
29530
    }
29531
 
29532
    public void unsetFromDate() {
29533
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
29534
    }
29535
 
29536
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
29537
    public boolean isSetFromDate() {
29538
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
29539
    }
29540
 
29541
    public void setFromDateIsSet(boolean value) {
29542
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
29543
    }
29544
 
29545
    public long getToDate() {
29546
      return this.toDate;
29547
    }
29548
 
29549
    public void setToDate(long toDate) {
29550
      this.toDate = toDate;
29551
      setToDateIsSet(true);
29552
    }
29553
 
29554
    public void unsetToDate() {
29555
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
29556
    }
29557
 
29558
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
29559
    public boolean isSetToDate() {
29560
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
29561
    }
29562
 
29563
    public void setToDateIsSet(boolean value) {
29564
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
29565
    }
29566
 
29567
    public void setFieldValue(_Fields field, Object value) {
29568
      switch (field) {
29569
      case FROM_DATE:
29570
        if (value == null) {
29571
          unsetFromDate();
29572
        } else {
29573
          setFromDate((Long)value);
29574
        }
29575
        break;
29576
 
29577
      case TO_DATE:
29578
        if (value == null) {
29579
          unsetToDate();
29580
        } else {
29581
          setToDate((Long)value);
29582
        }
29583
        break;
29584
 
29585
      }
29586
    }
29587
 
29588
    public Object getFieldValue(_Fields field) {
29589
      switch (field) {
29590
      case FROM_DATE:
29591
        return Long.valueOf(getFromDate());
29592
 
29593
      case TO_DATE:
29594
        return Long.valueOf(getToDate());
29595
 
29596
      }
29597
      throw new IllegalStateException();
29598
    }
29599
 
29600
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29601
    public boolean isSet(_Fields field) {
29602
      if (field == null) {
29603
        throw new IllegalArgumentException();
29604
      }
29605
 
29606
      switch (field) {
29607
      case FROM_DATE:
29608
        return isSetFromDate();
29609
      case TO_DATE:
29610
        return isSetToDate();
29611
      }
29612
      throw new IllegalStateException();
29613
    }
29614
 
29615
    @Override
29616
    public boolean equals(Object that) {
29617
      if (that == null)
29618
        return false;
29619
      if (that instanceof getTransferLotsByDate_args)
29620
        return this.equals((getTransferLotsByDate_args)that);
29621
      return false;
29622
    }
29623
 
29624
    public boolean equals(getTransferLotsByDate_args that) {
29625
      if (that == null)
29626
        return false;
29627
 
29628
      boolean this_present_fromDate = true;
29629
      boolean that_present_fromDate = true;
29630
      if (this_present_fromDate || that_present_fromDate) {
29631
        if (!(this_present_fromDate && that_present_fromDate))
29632
          return false;
29633
        if (this.fromDate != that.fromDate)
29634
          return false;
29635
      }
29636
 
29637
      boolean this_present_toDate = true;
29638
      boolean that_present_toDate = true;
29639
      if (this_present_toDate || that_present_toDate) {
29640
        if (!(this_present_toDate && that_present_toDate))
29641
          return false;
29642
        if (this.toDate != that.toDate)
29643
          return false;
29644
      }
29645
 
29646
      return true;
29647
    }
29648
 
29649
    @Override
29650
    public int hashCode() {
29651
      return 0;
29652
    }
29653
 
29654
    public int compareTo(getTransferLotsByDate_args other) {
29655
      if (!getClass().equals(other.getClass())) {
29656
        return getClass().getName().compareTo(other.getClass().getName());
29657
      }
29658
 
29659
      int lastComparison = 0;
29660
      getTransferLotsByDate_args typedOther = (getTransferLotsByDate_args)other;
29661
 
29662
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
29663
      if (lastComparison != 0) {
29664
        return lastComparison;
29665
      }
29666
      if (isSetFromDate()) {
29667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
29668
        if (lastComparison != 0) {
29669
          return lastComparison;
29670
        }
29671
      }
29672
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
29673
      if (lastComparison != 0) {
29674
        return lastComparison;
29675
      }
29676
      if (isSetToDate()) {
29677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
29678
        if (lastComparison != 0) {
29679
          return lastComparison;
29680
        }
29681
      }
29682
      return 0;
29683
    }
29684
 
29685
    public _Fields fieldForId(int fieldId) {
29686
      return _Fields.findByThriftId(fieldId);
29687
    }
29688
 
29689
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29690
      org.apache.thrift.protocol.TField field;
29691
      iprot.readStructBegin();
29692
      while (true)
29693
      {
29694
        field = iprot.readFieldBegin();
29695
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29696
          break;
29697
        }
29698
        switch (field.id) {
29699
          case 1: // FROM_DATE
29700
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29701
              this.fromDate = iprot.readI64();
29702
              setFromDateIsSet(true);
29703
            } else { 
29704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29705
            }
29706
            break;
29707
          case 2: // TO_DATE
29708
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29709
              this.toDate = iprot.readI64();
29710
              setToDateIsSet(true);
29711
            } else { 
29712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29713
            }
29714
            break;
29715
          default:
29716
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29717
        }
29718
        iprot.readFieldEnd();
29719
      }
29720
      iprot.readStructEnd();
29721
      validate();
29722
    }
29723
 
29724
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29725
      validate();
29726
 
29727
      oprot.writeStructBegin(STRUCT_DESC);
29728
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
29729
      oprot.writeI64(this.fromDate);
29730
      oprot.writeFieldEnd();
29731
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
29732
      oprot.writeI64(this.toDate);
29733
      oprot.writeFieldEnd();
29734
      oprot.writeFieldStop();
29735
      oprot.writeStructEnd();
29736
    }
29737
 
29738
    @Override
29739
    public String toString() {
29740
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_args(");
29741
      boolean first = true;
29742
 
29743
      sb.append("fromDate:");
29744
      sb.append(this.fromDate);
29745
      first = false;
29746
      if (!first) sb.append(", ");
29747
      sb.append("toDate:");
29748
      sb.append(this.toDate);
29749
      first = false;
29750
      sb.append(")");
29751
      return sb.toString();
29752
    }
29753
 
29754
    public void validate() throws org.apache.thrift.TException {
29755
      // check for required fields
29756
    }
29757
 
29758
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29759
      try {
29760
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29761
      } catch (org.apache.thrift.TException te) {
29762
        throw new java.io.IOException(te);
29763
      }
29764
    }
29765
 
29766
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29767
      try {
29768
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29769
        __isset_bit_vector = new BitSet(1);
29770
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29771
      } catch (org.apache.thrift.TException te) {
29772
        throw new java.io.IOException(te);
29773
      }
29774
    }
29775
 
29776
  }
29777
 
29778
  public static class getTransferLotsByDate_result implements org.apache.thrift.TBase<getTransferLotsByDate_result, getTransferLotsByDate_result._Fields>, java.io.Serializable, Cloneable   {
29779
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_result");
29780
 
29781
    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);
29782
    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);
29783
 
29784
    private List<TransferLot> success; // required
29785
    private WarehouseServiceException wex; // required
29786
 
29787
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29788
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29789
      SUCCESS((short)0, "success"),
29790
      WEX((short)1, "wex");
29791
 
29792
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29793
 
29794
      static {
29795
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29796
          byName.put(field.getFieldName(), field);
29797
        }
29798
      }
29799
 
29800
      /**
29801
       * Find the _Fields constant that matches fieldId, or null if its not found.
29802
       */
29803
      public static _Fields findByThriftId(int fieldId) {
29804
        switch(fieldId) {
29805
          case 0: // SUCCESS
29806
            return SUCCESS;
29807
          case 1: // WEX
29808
            return WEX;
29809
          default:
29810
            return null;
29811
        }
29812
      }
29813
 
29814
      /**
29815
       * Find the _Fields constant that matches fieldId, throwing an exception
29816
       * if it is not found.
29817
       */
29818
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29819
        _Fields fields = findByThriftId(fieldId);
29820
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29821
        return fields;
29822
      }
29823
 
29824
      /**
29825
       * Find the _Fields constant that matches name, or null if its not found.
29826
       */
29827
      public static _Fields findByName(String name) {
29828
        return byName.get(name);
29829
      }
29830
 
29831
      private final short _thriftId;
29832
      private final String _fieldName;
29833
 
29834
      _Fields(short thriftId, String fieldName) {
29835
        _thriftId = thriftId;
29836
        _fieldName = fieldName;
29837
      }
29838
 
29839
      public short getThriftFieldId() {
29840
        return _thriftId;
29841
      }
29842
 
29843
      public String getFieldName() {
29844
        return _fieldName;
29845
      }
29846
    }
29847
 
29848
    // isset id assignments
29849
 
29850
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29851
    static {
29852
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29853
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29854
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29855
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class))));
29856
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29858
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29859
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_result.class, metaDataMap);
29860
    }
29861
 
29862
    public getTransferLotsByDate_result() {
29863
    }
29864
 
29865
    public getTransferLotsByDate_result(
29866
      List<TransferLot> success,
29867
      WarehouseServiceException wex)
29868
    {
29869
      this();
29870
      this.success = success;
29871
      this.wex = wex;
29872
    }
29873
 
29874
    /**
29875
     * Performs a deep copy on <i>other</i>.
29876
     */
29877
    public getTransferLotsByDate_result(getTransferLotsByDate_result other) {
29878
      if (other.isSetSuccess()) {
29879
        List<TransferLot> __this__success = new ArrayList<TransferLot>();
29880
        for (TransferLot other_element : other.success) {
29881
          __this__success.add(new TransferLot(other_element));
29882
        }
29883
        this.success = __this__success;
29884
      }
29885
      if (other.isSetWex()) {
29886
        this.wex = new WarehouseServiceException(other.wex);
29887
      }
29888
    }
29889
 
29890
    public getTransferLotsByDate_result deepCopy() {
29891
      return new getTransferLotsByDate_result(this);
29892
    }
29893
 
29894
    @Override
29895
    public void clear() {
29896
      this.success = null;
29897
      this.wex = null;
29898
    }
29899
 
29900
    public int getSuccessSize() {
29901
      return (this.success == null) ? 0 : this.success.size();
29902
    }
29903
 
29904
    public java.util.Iterator<TransferLot> getSuccessIterator() {
29905
      return (this.success == null) ? null : this.success.iterator();
29906
    }
29907
 
29908
    public void addToSuccess(TransferLot elem) {
29909
      if (this.success == null) {
29910
        this.success = new ArrayList<TransferLot>();
29911
      }
29912
      this.success.add(elem);
29913
    }
29914
 
29915
    public List<TransferLot> getSuccess() {
29916
      return this.success;
29917
    }
29918
 
29919
    public void setSuccess(List<TransferLot> success) {
29920
      this.success = success;
29921
    }
29922
 
29923
    public void unsetSuccess() {
29924
      this.success = null;
29925
    }
29926
 
29927
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29928
    public boolean isSetSuccess() {
29929
      return this.success != null;
29930
    }
29931
 
29932
    public void setSuccessIsSet(boolean value) {
29933
      if (!value) {
29934
        this.success = null;
29935
      }
29936
    }
29937
 
29938
    public WarehouseServiceException getWex() {
29939
      return this.wex;
29940
    }
29941
 
29942
    public void setWex(WarehouseServiceException wex) {
29943
      this.wex = wex;
29944
    }
29945
 
29946
    public void unsetWex() {
29947
      this.wex = null;
29948
    }
29949
 
29950
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
29951
    public boolean isSetWex() {
29952
      return this.wex != null;
29953
    }
29954
 
29955
    public void setWexIsSet(boolean value) {
29956
      if (!value) {
29957
        this.wex = null;
29958
      }
29959
    }
29960
 
29961
    public void setFieldValue(_Fields field, Object value) {
29962
      switch (field) {
29963
      case SUCCESS:
29964
        if (value == null) {
29965
          unsetSuccess();
29966
        } else {
29967
          setSuccess((List<TransferLot>)value);
29968
        }
29969
        break;
29970
 
29971
      case WEX:
29972
        if (value == null) {
29973
          unsetWex();
29974
        } else {
29975
          setWex((WarehouseServiceException)value);
29976
        }
29977
        break;
29978
 
29979
      }
29980
    }
29981
 
29982
    public Object getFieldValue(_Fields field) {
29983
      switch (field) {
29984
      case SUCCESS:
29985
        return getSuccess();
29986
 
29987
      case WEX:
29988
        return getWex();
29989
 
29990
      }
29991
      throw new IllegalStateException();
29992
    }
29993
 
29994
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29995
    public boolean isSet(_Fields field) {
29996
      if (field == null) {
29997
        throw new IllegalArgumentException();
29998
      }
29999
 
30000
      switch (field) {
30001
      case SUCCESS:
30002
        return isSetSuccess();
30003
      case WEX:
30004
        return isSetWex();
30005
      }
30006
      throw new IllegalStateException();
30007
    }
30008
 
30009
    @Override
30010
    public boolean equals(Object that) {
30011
      if (that == null)
30012
        return false;
30013
      if (that instanceof getTransferLotsByDate_result)
30014
        return this.equals((getTransferLotsByDate_result)that);
30015
      return false;
30016
    }
30017
 
30018
    public boolean equals(getTransferLotsByDate_result that) {
30019
      if (that == null)
30020
        return false;
30021
 
30022
      boolean this_present_success = true && this.isSetSuccess();
30023
      boolean that_present_success = true && that.isSetSuccess();
30024
      if (this_present_success || that_present_success) {
30025
        if (!(this_present_success && that_present_success))
30026
          return false;
30027
        if (!this.success.equals(that.success))
30028
          return false;
30029
      }
30030
 
30031
      boolean this_present_wex = true && this.isSetWex();
30032
      boolean that_present_wex = true && that.isSetWex();
30033
      if (this_present_wex || that_present_wex) {
30034
        if (!(this_present_wex && that_present_wex))
30035
          return false;
30036
        if (!this.wex.equals(that.wex))
30037
          return false;
30038
      }
30039
 
30040
      return true;
30041
    }
30042
 
30043
    @Override
30044
    public int hashCode() {
30045
      return 0;
30046
    }
30047
 
30048
    public int compareTo(getTransferLotsByDate_result other) {
30049
      if (!getClass().equals(other.getClass())) {
30050
        return getClass().getName().compareTo(other.getClass().getName());
30051
      }
30052
 
30053
      int lastComparison = 0;
30054
      getTransferLotsByDate_result typedOther = (getTransferLotsByDate_result)other;
30055
 
30056
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30057
      if (lastComparison != 0) {
30058
        return lastComparison;
30059
      }
30060
      if (isSetSuccess()) {
30061
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30062
        if (lastComparison != 0) {
30063
          return lastComparison;
30064
        }
30065
      }
30066
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
30067
      if (lastComparison != 0) {
30068
        return lastComparison;
30069
      }
30070
      if (isSetWex()) {
30071
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
30072
        if (lastComparison != 0) {
30073
          return lastComparison;
30074
        }
30075
      }
30076
      return 0;
30077
    }
30078
 
30079
    public _Fields fieldForId(int fieldId) {
30080
      return _Fields.findByThriftId(fieldId);
30081
    }
30082
 
30083
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30084
      org.apache.thrift.protocol.TField field;
30085
      iprot.readStructBegin();
30086
      while (true)
30087
      {
30088
        field = iprot.readFieldBegin();
30089
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30090
          break;
30091
        }
30092
        switch (field.id) {
30093
          case 0: // SUCCESS
30094
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30095
              {
30096
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
30097
                this.success = new ArrayList<TransferLot>(_list76.size);
30098
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
30099
                {
30100
                  TransferLot _elem78; // required
30101
                  _elem78 = new TransferLot();
30102
                  _elem78.read(iprot);
30103
                  this.success.add(_elem78);
30104
                }
30105
                iprot.readListEnd();
30106
              }
30107
            } else { 
30108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30109
            }
30110
            break;
30111
          case 1: // WEX
30112
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30113
              this.wex = new WarehouseServiceException();
30114
              this.wex.read(iprot);
30115
            } else { 
30116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30117
            }
30118
            break;
30119
          default:
30120
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30121
        }
30122
        iprot.readFieldEnd();
30123
      }
30124
      iprot.readStructEnd();
30125
      validate();
30126
    }
30127
 
30128
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30129
      oprot.writeStructBegin(STRUCT_DESC);
30130
 
30131
      if (this.isSetSuccess()) {
30132
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30133
        {
30134
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30135
          for (TransferLot _iter79 : this.success)
30136
          {
30137
            _iter79.write(oprot);
30138
          }
30139
          oprot.writeListEnd();
30140
        }
30141
        oprot.writeFieldEnd();
30142
      } else if (this.isSetWex()) {
30143
        oprot.writeFieldBegin(WEX_FIELD_DESC);
30144
        this.wex.write(oprot);
30145
        oprot.writeFieldEnd();
30146
      }
30147
      oprot.writeFieldStop();
30148
      oprot.writeStructEnd();
30149
    }
30150
 
30151
    @Override
30152
    public String toString() {
30153
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_result(");
30154
      boolean first = true;
30155
 
30156
      sb.append("success:");
30157
      if (this.success == null) {
30158
        sb.append("null");
30159
      } else {
30160
        sb.append(this.success);
30161
      }
30162
      first = false;
30163
      if (!first) sb.append(", ");
30164
      sb.append("wex:");
30165
      if (this.wex == null) {
30166
        sb.append("null");
30167
      } else {
30168
        sb.append(this.wex);
30169
      }
30170
      first = false;
30171
      sb.append(")");
30172
      return sb.toString();
30173
    }
30174
 
30175
    public void validate() throws org.apache.thrift.TException {
30176
      // check for required fields
30177
    }
30178
 
30179
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30180
      try {
30181
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30182
      } catch (org.apache.thrift.TException te) {
30183
        throw new java.io.IOException(te);
30184
      }
30185
    }
30186
 
30187
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30188
      try {
30189
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30190
      } catch (org.apache.thrift.TException te) {
30191
        throw new java.io.IOException(te);
30192
      }
30193
    }
30194
 
30195
  }
30196
 
30197
  public static class getAllowedDestinationWarehousesForTransfer_args implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_args, getAllowedDestinationWarehousesForTransfer_args._Fields>, java.io.Serializable, Cloneable   {
30198
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_args");
30199
 
30200
    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);
30201
 
30202
    private long warehouseId; // required
30203
 
30204
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30205
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30206
      WAREHOUSE_ID((short)1, "warehouseId");
30207
 
30208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30209
 
30210
      static {
30211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30212
          byName.put(field.getFieldName(), field);
30213
        }
30214
      }
30215
 
30216
      /**
30217
       * Find the _Fields constant that matches fieldId, or null if its not found.
30218
       */
30219
      public static _Fields findByThriftId(int fieldId) {
30220
        switch(fieldId) {
30221
          case 1: // WAREHOUSE_ID
30222
            return WAREHOUSE_ID;
30223
          default:
30224
            return null;
30225
        }
30226
      }
30227
 
30228
      /**
30229
       * Find the _Fields constant that matches fieldId, throwing an exception
30230
       * if it is not found.
30231
       */
30232
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30233
        _Fields fields = findByThriftId(fieldId);
30234
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30235
        return fields;
30236
      }
30237
 
30238
      /**
30239
       * Find the _Fields constant that matches name, or null if its not found.
30240
       */
30241
      public static _Fields findByName(String name) {
30242
        return byName.get(name);
30243
      }
30244
 
30245
      private final short _thriftId;
30246
      private final String _fieldName;
30247
 
30248
      _Fields(short thriftId, String fieldName) {
30249
        _thriftId = thriftId;
30250
        _fieldName = fieldName;
30251
      }
30252
 
30253
      public short getThriftFieldId() {
30254
        return _thriftId;
30255
      }
30256
 
30257
      public String getFieldName() {
30258
        return _fieldName;
30259
      }
30260
    }
30261
 
30262
    // isset id assignments
30263
    private static final int __WAREHOUSEID_ISSET_ID = 0;
30264
    private BitSet __isset_bit_vector = new BitSet(1);
30265
 
30266
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30267
    static {
30268
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30269
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30270
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30271
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30272
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_args.class, metaDataMap);
30273
    }
30274
 
30275
    public getAllowedDestinationWarehousesForTransfer_args() {
30276
    }
30277
 
30278
    public getAllowedDestinationWarehousesForTransfer_args(
30279
      long warehouseId)
30280
    {
30281
      this();
30282
      this.warehouseId = warehouseId;
30283
      setWarehouseIdIsSet(true);
30284
    }
30285
 
30286
    /**
30287
     * Performs a deep copy on <i>other</i>.
30288
     */
30289
    public getAllowedDestinationWarehousesForTransfer_args(getAllowedDestinationWarehousesForTransfer_args other) {
30290
      __isset_bit_vector.clear();
30291
      __isset_bit_vector.or(other.__isset_bit_vector);
30292
      this.warehouseId = other.warehouseId;
30293
    }
30294
 
30295
    public getAllowedDestinationWarehousesForTransfer_args deepCopy() {
30296
      return new getAllowedDestinationWarehousesForTransfer_args(this);
30297
    }
30298
 
30299
    @Override
30300
    public void clear() {
30301
      setWarehouseIdIsSet(false);
30302
      this.warehouseId = 0;
30303
    }
30304
 
30305
    public long getWarehouseId() {
30306
      return this.warehouseId;
30307
    }
30308
 
30309
    public void setWarehouseId(long warehouseId) {
30310
      this.warehouseId = warehouseId;
30311
      setWarehouseIdIsSet(true);
30312
    }
30313
 
30314
    public void unsetWarehouseId() {
30315
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
30316
    }
30317
 
30318
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
30319
    public boolean isSetWarehouseId() {
30320
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
30321
    }
30322
 
30323
    public void setWarehouseIdIsSet(boolean value) {
30324
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
30325
    }
30326
 
30327
    public void setFieldValue(_Fields field, Object value) {
30328
      switch (field) {
30329
      case WAREHOUSE_ID:
30330
        if (value == null) {
30331
          unsetWarehouseId();
30332
        } else {
30333
          setWarehouseId((Long)value);
30334
        }
30335
        break;
30336
 
30337
      }
30338
    }
30339
 
30340
    public Object getFieldValue(_Fields field) {
30341
      switch (field) {
30342
      case WAREHOUSE_ID:
30343
        return Long.valueOf(getWarehouseId());
30344
 
30345
      }
30346
      throw new IllegalStateException();
30347
    }
30348
 
30349
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30350
    public boolean isSet(_Fields field) {
30351
      if (field == null) {
30352
        throw new IllegalArgumentException();
30353
      }
30354
 
30355
      switch (field) {
30356
      case WAREHOUSE_ID:
30357
        return isSetWarehouseId();
30358
      }
30359
      throw new IllegalStateException();
30360
    }
30361
 
30362
    @Override
30363
    public boolean equals(Object that) {
30364
      if (that == null)
30365
        return false;
30366
      if (that instanceof getAllowedDestinationWarehousesForTransfer_args)
30367
        return this.equals((getAllowedDestinationWarehousesForTransfer_args)that);
30368
      return false;
30369
    }
30370
 
30371
    public boolean equals(getAllowedDestinationWarehousesForTransfer_args that) {
30372
      if (that == null)
30373
        return false;
30374
 
30375
      boolean this_present_warehouseId = true;
30376
      boolean that_present_warehouseId = true;
30377
      if (this_present_warehouseId || that_present_warehouseId) {
30378
        if (!(this_present_warehouseId && that_present_warehouseId))
30379
          return false;
30380
        if (this.warehouseId != that.warehouseId)
30381
          return false;
30382
      }
30383
 
30384
      return true;
30385
    }
30386
 
30387
    @Override
30388
    public int hashCode() {
30389
      return 0;
30390
    }
30391
 
30392
    public int compareTo(getAllowedDestinationWarehousesForTransfer_args other) {
30393
      if (!getClass().equals(other.getClass())) {
30394
        return getClass().getName().compareTo(other.getClass().getName());
30395
      }
30396
 
30397
      int lastComparison = 0;
30398
      getAllowedDestinationWarehousesForTransfer_args typedOther = (getAllowedDestinationWarehousesForTransfer_args)other;
30399
 
30400
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
30401
      if (lastComparison != 0) {
30402
        return lastComparison;
30403
      }
30404
      if (isSetWarehouseId()) {
30405
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
30406
        if (lastComparison != 0) {
30407
          return lastComparison;
30408
        }
30409
      }
30410
      return 0;
30411
    }
30412
 
30413
    public _Fields fieldForId(int fieldId) {
30414
      return _Fields.findByThriftId(fieldId);
30415
    }
30416
 
30417
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30418
      org.apache.thrift.protocol.TField field;
30419
      iprot.readStructBegin();
30420
      while (true)
30421
      {
30422
        field = iprot.readFieldBegin();
30423
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30424
          break;
30425
        }
30426
        switch (field.id) {
30427
          case 1: // WAREHOUSE_ID
30428
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30429
              this.warehouseId = iprot.readI64();
30430
              setWarehouseIdIsSet(true);
30431
            } else { 
30432
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30433
            }
30434
            break;
30435
          default:
30436
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30437
        }
30438
        iprot.readFieldEnd();
30439
      }
30440
      iprot.readStructEnd();
30441
      validate();
30442
    }
30443
 
30444
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30445
      validate();
30446
 
30447
      oprot.writeStructBegin(STRUCT_DESC);
30448
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
30449
      oprot.writeI64(this.warehouseId);
30450
      oprot.writeFieldEnd();
30451
      oprot.writeFieldStop();
30452
      oprot.writeStructEnd();
30453
    }
30454
 
30455
    @Override
30456
    public String toString() {
30457
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_args(");
30458
      boolean first = true;
30459
 
30460
      sb.append("warehouseId:");
30461
      sb.append(this.warehouseId);
30462
      first = false;
30463
      sb.append(")");
30464
      return sb.toString();
30465
    }
30466
 
30467
    public void validate() throws org.apache.thrift.TException {
30468
      // check for required fields
30469
    }
30470
 
30471
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30472
      try {
30473
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30474
      } catch (org.apache.thrift.TException te) {
30475
        throw new java.io.IOException(te);
30476
      }
30477
    }
30478
 
30479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30480
      try {
30481
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30482
        __isset_bit_vector = new BitSet(1);
30483
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30484
      } catch (org.apache.thrift.TException te) {
30485
        throw new java.io.IOException(te);
30486
      }
30487
    }
30488
 
30489
  }
30490
 
30491
  public static class getAllowedDestinationWarehousesForTransfer_result implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_result, getAllowedDestinationWarehousesForTransfer_result._Fields>, java.io.Serializable, Cloneable   {
30492
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_result");
30493
 
30494
    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);
30495
 
30496
    private List<Long> success; // required
30497
 
30498
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30499
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30500
      SUCCESS((short)0, "success");
30501
 
30502
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30503
 
30504
      static {
30505
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30506
          byName.put(field.getFieldName(), field);
30507
        }
30508
      }
30509
 
30510
      /**
30511
       * Find the _Fields constant that matches fieldId, or null if its not found.
30512
       */
30513
      public static _Fields findByThriftId(int fieldId) {
30514
        switch(fieldId) {
30515
          case 0: // SUCCESS
30516
            return SUCCESS;
30517
          default:
30518
            return null;
30519
        }
30520
      }
30521
 
30522
      /**
30523
       * Find the _Fields constant that matches fieldId, throwing an exception
30524
       * if it is not found.
30525
       */
30526
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30527
        _Fields fields = findByThriftId(fieldId);
30528
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30529
        return fields;
30530
      }
30531
 
30532
      /**
30533
       * Find the _Fields constant that matches name, or null if its not found.
30534
       */
30535
      public static _Fields findByName(String name) {
30536
        return byName.get(name);
30537
      }
30538
 
30539
      private final short _thriftId;
30540
      private final String _fieldName;
30541
 
30542
      _Fields(short thriftId, String fieldName) {
30543
        _thriftId = thriftId;
30544
        _fieldName = fieldName;
30545
      }
30546
 
30547
      public short getThriftFieldId() {
30548
        return _thriftId;
30549
      }
30550
 
30551
      public String getFieldName() {
30552
        return _fieldName;
30553
      }
30554
    }
30555
 
30556
    // isset id assignments
30557
 
30558
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30559
    static {
30560
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30561
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30562
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30563
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30564
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30565
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_result.class, metaDataMap);
30566
    }
30567
 
30568
    public getAllowedDestinationWarehousesForTransfer_result() {
30569
    }
30570
 
30571
    public getAllowedDestinationWarehousesForTransfer_result(
30572
      List<Long> success)
30573
    {
30574
      this();
30575
      this.success = success;
30576
    }
30577
 
30578
    /**
30579
     * Performs a deep copy on <i>other</i>.
30580
     */
30581
    public getAllowedDestinationWarehousesForTransfer_result(getAllowedDestinationWarehousesForTransfer_result other) {
30582
      if (other.isSetSuccess()) {
30583
        List<Long> __this__success = new ArrayList<Long>();
30584
        for (Long other_element : other.success) {
30585
          __this__success.add(other_element);
30586
        }
30587
        this.success = __this__success;
30588
      }
30589
    }
30590
 
30591
    public getAllowedDestinationWarehousesForTransfer_result deepCopy() {
30592
      return new getAllowedDestinationWarehousesForTransfer_result(this);
30593
    }
30594
 
30595
    @Override
30596
    public void clear() {
30597
      this.success = null;
30598
    }
30599
 
30600
    public int getSuccessSize() {
30601
      return (this.success == null) ? 0 : this.success.size();
30602
    }
30603
 
30604
    public java.util.Iterator<Long> getSuccessIterator() {
30605
      return (this.success == null) ? null : this.success.iterator();
30606
    }
30607
 
30608
    public void addToSuccess(long elem) {
30609
      if (this.success == null) {
30610
        this.success = new ArrayList<Long>();
30611
      }
30612
      this.success.add(elem);
30613
    }
30614
 
30615
    public List<Long> getSuccess() {
30616
      return this.success;
30617
    }
30618
 
30619
    public void setSuccess(List<Long> success) {
30620
      this.success = success;
30621
    }
30622
 
30623
    public void unsetSuccess() {
30624
      this.success = null;
30625
    }
30626
 
30627
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30628
    public boolean isSetSuccess() {
30629
      return this.success != null;
30630
    }
30631
 
30632
    public void setSuccessIsSet(boolean value) {
30633
      if (!value) {
30634
        this.success = null;
30635
      }
30636
    }
30637
 
30638
    public void setFieldValue(_Fields field, Object value) {
30639
      switch (field) {
30640
      case SUCCESS:
30641
        if (value == null) {
30642
          unsetSuccess();
30643
        } else {
30644
          setSuccess((List<Long>)value);
30645
        }
30646
        break;
30647
 
30648
      }
30649
    }
30650
 
30651
    public Object getFieldValue(_Fields field) {
30652
      switch (field) {
30653
      case SUCCESS:
30654
        return getSuccess();
30655
 
30656
      }
30657
      throw new IllegalStateException();
30658
    }
30659
 
30660
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30661
    public boolean isSet(_Fields field) {
30662
      if (field == null) {
30663
        throw new IllegalArgumentException();
30664
      }
30665
 
30666
      switch (field) {
30667
      case SUCCESS:
30668
        return isSetSuccess();
30669
      }
30670
      throw new IllegalStateException();
30671
    }
30672
 
30673
    @Override
30674
    public boolean equals(Object that) {
30675
      if (that == null)
30676
        return false;
30677
      if (that instanceof getAllowedDestinationWarehousesForTransfer_result)
30678
        return this.equals((getAllowedDestinationWarehousesForTransfer_result)that);
30679
      return false;
30680
    }
30681
 
30682
    public boolean equals(getAllowedDestinationWarehousesForTransfer_result that) {
30683
      if (that == null)
30684
        return false;
30685
 
30686
      boolean this_present_success = true && this.isSetSuccess();
30687
      boolean that_present_success = true && that.isSetSuccess();
30688
      if (this_present_success || that_present_success) {
30689
        if (!(this_present_success && that_present_success))
30690
          return false;
30691
        if (!this.success.equals(that.success))
30692
          return false;
30693
      }
30694
 
30695
      return true;
30696
    }
30697
 
30698
    @Override
30699
    public int hashCode() {
30700
      return 0;
30701
    }
30702
 
30703
    public int compareTo(getAllowedDestinationWarehousesForTransfer_result other) {
30704
      if (!getClass().equals(other.getClass())) {
30705
        return getClass().getName().compareTo(other.getClass().getName());
30706
      }
30707
 
30708
      int lastComparison = 0;
30709
      getAllowedDestinationWarehousesForTransfer_result typedOther = (getAllowedDestinationWarehousesForTransfer_result)other;
30710
 
30711
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30712
      if (lastComparison != 0) {
30713
        return lastComparison;
30714
      }
30715
      if (isSetSuccess()) {
30716
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30717
        if (lastComparison != 0) {
30718
          return lastComparison;
30719
        }
30720
      }
30721
      return 0;
30722
    }
30723
 
30724
    public _Fields fieldForId(int fieldId) {
30725
      return _Fields.findByThriftId(fieldId);
30726
    }
30727
 
30728
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30729
      org.apache.thrift.protocol.TField field;
30730
      iprot.readStructBegin();
30731
      while (true)
30732
      {
30733
        field = iprot.readFieldBegin();
30734
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30735
          break;
30736
        }
30737
        switch (field.id) {
30738
          case 0: // SUCCESS
30739
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30740
              {
30741
                org.apache.thrift.protocol.TList _list80 = iprot.readListBegin();
30742
                this.success = new ArrayList<Long>(_list80.size);
30743
                for (int _i81 = 0; _i81 < _list80.size; ++_i81)
30744
                {
30745
                  long _elem82; // required
30746
                  _elem82 = iprot.readI64();
30747
                  this.success.add(_elem82);
30748
                }
30749
                iprot.readListEnd();
30750
              }
30751
            } else { 
30752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30753
            }
30754
            break;
30755
          default:
30756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30757
        }
30758
        iprot.readFieldEnd();
30759
      }
30760
      iprot.readStructEnd();
30761
      validate();
30762
    }
30763
 
30764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30765
      oprot.writeStructBegin(STRUCT_DESC);
30766
 
30767
      if (this.isSetSuccess()) {
30768
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30769
        {
30770
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
30771
          for (long _iter83 : this.success)
30772
          {
30773
            oprot.writeI64(_iter83);
30774
          }
30775
          oprot.writeListEnd();
30776
        }
30777
        oprot.writeFieldEnd();
30778
      }
30779
      oprot.writeFieldStop();
30780
      oprot.writeStructEnd();
30781
    }
30782
 
30783
    @Override
30784
    public String toString() {
30785
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_result(");
30786
      boolean first = true;
30787
 
30788
      sb.append("success:");
30789
      if (this.success == null) {
30790
        sb.append("null");
30791
      } else {
30792
        sb.append(this.success);
30793
      }
30794
      first = false;
30795
      sb.append(")");
30796
      return sb.toString();
30797
    }
30798
 
30799
    public void validate() throws org.apache.thrift.TException {
30800
      // check for required fields
30801
    }
30802
 
30803
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30804
      try {
30805
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30806
      } catch (org.apache.thrift.TException te) {
30807
        throw new java.io.IOException(te);
30808
      }
30809
    }
30810
 
30811
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30812
      try {
30813
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30814
      } catch (org.apache.thrift.TException te) {
30815
        throw new java.io.IOException(te);
30816
      }
30817
    }
30818
 
30819
  }
30820
 
30821
  public static class getItemsInTransferLot_args implements org.apache.thrift.TBase<getItemsInTransferLot_args, getItemsInTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
30822
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_args");
30823
 
30824
    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);
30825
 
30826
    private long transferLotId; // required
30827
 
30828
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30829
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30830
      TRANSFER_LOT_ID((short)1, "transferLotId");
30831
 
30832
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30833
 
30834
      static {
30835
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30836
          byName.put(field.getFieldName(), field);
30837
        }
30838
      }
30839
 
30840
      /**
30841
       * Find the _Fields constant that matches fieldId, or null if its not found.
30842
       */
30843
      public static _Fields findByThriftId(int fieldId) {
30844
        switch(fieldId) {
30845
          case 1: // TRANSFER_LOT_ID
30846
            return TRANSFER_LOT_ID;
30847
          default:
30848
            return null;
30849
        }
30850
      }
30851
 
30852
      /**
30853
       * Find the _Fields constant that matches fieldId, throwing an exception
30854
       * if it is not found.
30855
       */
30856
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30857
        _Fields fields = findByThriftId(fieldId);
30858
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30859
        return fields;
30860
      }
30861
 
30862
      /**
30863
       * Find the _Fields constant that matches name, or null if its not found.
30864
       */
30865
      public static _Fields findByName(String name) {
30866
        return byName.get(name);
30867
      }
30868
 
30869
      private final short _thriftId;
30870
      private final String _fieldName;
30871
 
30872
      _Fields(short thriftId, String fieldName) {
30873
        _thriftId = thriftId;
30874
        _fieldName = fieldName;
30875
      }
30876
 
30877
      public short getThriftFieldId() {
30878
        return _thriftId;
30879
      }
30880
 
30881
      public String getFieldName() {
30882
        return _fieldName;
30883
      }
30884
    }
30885
 
30886
    // isset id assignments
30887
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
30888
    private BitSet __isset_bit_vector = new BitSet(1);
30889
 
30890
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30891
    static {
30892
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30893
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30894
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30895
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30896
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInTransferLot_args.class, metaDataMap);
30897
    }
30898
 
30899
    public getItemsInTransferLot_args() {
30900
    }
30901
 
30902
    public getItemsInTransferLot_args(
30903
      long transferLotId)
30904
    {
30905
      this();
30906
      this.transferLotId = transferLotId;
30907
      setTransferLotIdIsSet(true);
30908
    }
30909
 
30910
    /**
30911
     * Performs a deep copy on <i>other</i>.
30912
     */
30913
    public getItemsInTransferLot_args(getItemsInTransferLot_args other) {
30914
      __isset_bit_vector.clear();
30915
      __isset_bit_vector.or(other.__isset_bit_vector);
30916
      this.transferLotId = other.transferLotId;
30917
    }
30918
 
30919
    public getItemsInTransferLot_args deepCopy() {
30920
      return new getItemsInTransferLot_args(this);
30921
    }
30922
 
30923
    @Override
30924
    public void clear() {
30925
      setTransferLotIdIsSet(false);
30926
      this.transferLotId = 0;
30927
    }
30928
 
30929
    public long getTransferLotId() {
30930
      return this.transferLotId;
30931
    }
30932
 
30933
    public void setTransferLotId(long transferLotId) {
30934
      this.transferLotId = transferLotId;
30935
      setTransferLotIdIsSet(true);
30936
    }
30937
 
30938
    public void unsetTransferLotId() {
30939
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
30940
    }
30941
 
30942
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
30943
    public boolean isSetTransferLotId() {
30944
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
30945
    }
30946
 
30947
    public void setTransferLotIdIsSet(boolean value) {
30948
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
30949
    }
30950
 
30951
    public void setFieldValue(_Fields field, Object value) {
30952
      switch (field) {
30953
      case TRANSFER_LOT_ID:
30954
        if (value == null) {
30955
          unsetTransferLotId();
30956
        } else {
30957
          setTransferLotId((Long)value);
30958
        }
30959
        break;
30960
 
30961
      }
30962
    }
30963
 
30964
    public Object getFieldValue(_Fields field) {
30965
      switch (field) {
30966
      case TRANSFER_LOT_ID:
30967
        return Long.valueOf(getTransferLotId());
30968
 
30969
      }
30970
      throw new IllegalStateException();
30971
    }
30972
 
30973
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30974
    public boolean isSet(_Fields field) {
30975
      if (field == null) {
30976
        throw new IllegalArgumentException();
30977
      }
30978
 
30979
      switch (field) {
30980
      case TRANSFER_LOT_ID:
30981
        return isSetTransferLotId();
30982
      }
30983
      throw new IllegalStateException();
30984
    }
30985
 
30986
    @Override
30987
    public boolean equals(Object that) {
30988
      if (that == null)
30989
        return false;
30990
      if (that instanceof getItemsInTransferLot_args)
30991
        return this.equals((getItemsInTransferLot_args)that);
30992
      return false;
30993
    }
30994
 
30995
    public boolean equals(getItemsInTransferLot_args that) {
30996
      if (that == null)
30997
        return false;
30998
 
30999
      boolean this_present_transferLotId = true;
31000
      boolean that_present_transferLotId = true;
31001
      if (this_present_transferLotId || that_present_transferLotId) {
31002
        if (!(this_present_transferLotId && that_present_transferLotId))
31003
          return false;
31004
        if (this.transferLotId != that.transferLotId)
31005
          return false;
31006
      }
31007
 
31008
      return true;
31009
    }
31010
 
31011
    @Override
31012
    public int hashCode() {
31013
      return 0;
31014
    }
31015
 
31016
    public int compareTo(getItemsInTransferLot_args other) {
31017
      if (!getClass().equals(other.getClass())) {
31018
        return getClass().getName().compareTo(other.getClass().getName());
31019
      }
31020
 
31021
      int lastComparison = 0;
31022
      getItemsInTransferLot_args typedOther = (getItemsInTransferLot_args)other;
31023
 
31024
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
31025
      if (lastComparison != 0) {
31026
        return lastComparison;
31027
      }
31028
      if (isSetTransferLotId()) {
31029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
31030
        if (lastComparison != 0) {
31031
          return lastComparison;
31032
        }
31033
      }
31034
      return 0;
31035
    }
31036
 
31037
    public _Fields fieldForId(int fieldId) {
31038
      return _Fields.findByThriftId(fieldId);
31039
    }
31040
 
31041
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31042
      org.apache.thrift.protocol.TField field;
31043
      iprot.readStructBegin();
31044
      while (true)
31045
      {
31046
        field = iprot.readFieldBegin();
31047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31048
          break;
31049
        }
31050
        switch (field.id) {
31051
          case 1: // TRANSFER_LOT_ID
31052
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31053
              this.transferLotId = iprot.readI64();
31054
              setTransferLotIdIsSet(true);
31055
            } else { 
31056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31057
            }
31058
            break;
31059
          default:
31060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31061
        }
31062
        iprot.readFieldEnd();
31063
      }
31064
      iprot.readStructEnd();
31065
      validate();
31066
    }
31067
 
31068
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31069
      validate();
31070
 
31071
      oprot.writeStructBegin(STRUCT_DESC);
31072
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
31073
      oprot.writeI64(this.transferLotId);
31074
      oprot.writeFieldEnd();
31075
      oprot.writeFieldStop();
31076
      oprot.writeStructEnd();
31077
    }
31078
 
31079
    @Override
31080
    public String toString() {
31081
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_args(");
31082
      boolean first = true;
31083
 
31084
      sb.append("transferLotId:");
31085
      sb.append(this.transferLotId);
31086
      first = false;
31087
      sb.append(")");
31088
      return sb.toString();
31089
    }
31090
 
31091
    public void validate() throws org.apache.thrift.TException {
31092
      // check for required fields
31093
    }
31094
 
31095
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31096
      try {
31097
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31098
      } catch (org.apache.thrift.TException te) {
31099
        throw new java.io.IOException(te);
31100
      }
31101
    }
31102
 
31103
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31104
      try {
31105
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31106
        __isset_bit_vector = new BitSet(1);
31107
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31108
      } catch (org.apache.thrift.TException te) {
31109
        throw new java.io.IOException(te);
31110
      }
31111
    }
31112
 
31113
  }
31114
 
31115
  public static class getItemsInTransferLot_result implements org.apache.thrift.TBase<getItemsInTransferLot_result, getItemsInTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
31116
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_result");
31117
 
31118
    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);
31119
 
31120
    private Map<Long,Long> success; // required
31121
 
31122
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31123
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31124
      SUCCESS((short)0, "success");
31125
 
31126
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31127
 
31128
      static {
31129
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31130
          byName.put(field.getFieldName(), field);
31131
        }
31132
      }
31133
 
31134
      /**
31135
       * Find the _Fields constant that matches fieldId, or null if its not found.
31136
       */
31137
      public static _Fields findByThriftId(int fieldId) {
31138
        switch(fieldId) {
31139
          case 0: // SUCCESS
31140
            return SUCCESS;
31141
          default:
31142
            return null;
31143
        }
31144
      }
31145
 
31146
      /**
31147
       * Find the _Fields constant that matches fieldId, throwing an exception
31148
       * if it is not found.
31149
       */
31150
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31151
        _Fields fields = findByThriftId(fieldId);
31152
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31153
        return fields;
31154
      }
31155
 
31156
      /**
31157
       * Find the _Fields constant that matches name, or null if its not found.
31158
       */
31159
      public static _Fields findByName(String name) {
31160
        return byName.get(name);
31161
      }
31162
 
31163
      private final short _thriftId;
31164
      private final String _fieldName;
31165
 
31166
      _Fields(short thriftId, String fieldName) {
31167
        _thriftId = thriftId;
31168
        _fieldName = fieldName;
31169
      }
31170
 
31171
      public short getThriftFieldId() {
31172
        return _thriftId;
31173
      }
31174
 
31175
      public String getFieldName() {
31176
        return _fieldName;
31177
      }
31178
    }
31179
 
31180
    // isset id assignments
31181
 
31182
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31183
    static {
31184
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31185
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31186
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
31187
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
31188
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
31189
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31190
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInTransferLot_result.class, metaDataMap);
31191
    }
31192
 
31193
    public getItemsInTransferLot_result() {
31194
    }
31195
 
31196
    public getItemsInTransferLot_result(
31197
      Map<Long,Long> success)
31198
    {
31199
      this();
31200
      this.success = success;
31201
    }
31202
 
31203
    /**
31204
     * Performs a deep copy on <i>other</i>.
31205
     */
31206
    public getItemsInTransferLot_result(getItemsInTransferLot_result other) {
31207
      if (other.isSetSuccess()) {
31208
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
31209
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
31210
 
31211
          Long other_element_key = other_element.getKey();
31212
          Long other_element_value = other_element.getValue();
31213
 
31214
          Long __this__success_copy_key = other_element_key;
31215
 
31216
          Long __this__success_copy_value = other_element_value;
31217
 
31218
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
31219
        }
31220
        this.success = __this__success;
31221
      }
31222
    }
31223
 
31224
    public getItemsInTransferLot_result deepCopy() {
31225
      return new getItemsInTransferLot_result(this);
31226
    }
31227
 
31228
    @Override
31229
    public void clear() {
31230
      this.success = null;
31231
    }
31232
 
31233
    public int getSuccessSize() {
31234
      return (this.success == null) ? 0 : this.success.size();
31235
    }
31236
 
31237
    public void putToSuccess(long key, long val) {
31238
      if (this.success == null) {
31239
        this.success = new HashMap<Long,Long>();
31240
      }
31241
      this.success.put(key, val);
31242
    }
31243
 
31244
    public Map<Long,Long> getSuccess() {
31245
      return this.success;
31246
    }
31247
 
31248
    public void setSuccess(Map<Long,Long> success) {
31249
      this.success = success;
31250
    }
31251
 
31252
    public void unsetSuccess() {
31253
      this.success = null;
31254
    }
31255
 
31256
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31257
    public boolean isSetSuccess() {
31258
      return this.success != null;
31259
    }
31260
 
31261
    public void setSuccessIsSet(boolean value) {
31262
      if (!value) {
31263
        this.success = null;
31264
      }
31265
    }
31266
 
31267
    public void setFieldValue(_Fields field, Object value) {
31268
      switch (field) {
31269
      case SUCCESS:
31270
        if (value == null) {
31271
          unsetSuccess();
31272
        } else {
31273
          setSuccess((Map<Long,Long>)value);
31274
        }
31275
        break;
31276
 
31277
      }
31278
    }
31279
 
31280
    public Object getFieldValue(_Fields field) {
31281
      switch (field) {
31282
      case SUCCESS:
31283
        return getSuccess();
31284
 
31285
      }
31286
      throw new IllegalStateException();
31287
    }
31288
 
31289
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31290
    public boolean isSet(_Fields field) {
31291
      if (field == null) {
31292
        throw new IllegalArgumentException();
31293
      }
31294
 
31295
      switch (field) {
31296
      case SUCCESS:
31297
        return isSetSuccess();
31298
      }
31299
      throw new IllegalStateException();
31300
    }
31301
 
31302
    @Override
31303
    public boolean equals(Object that) {
31304
      if (that == null)
31305
        return false;
31306
      if (that instanceof getItemsInTransferLot_result)
31307
        return this.equals((getItemsInTransferLot_result)that);
31308
      return false;
31309
    }
31310
 
31311
    public boolean equals(getItemsInTransferLot_result that) {
31312
      if (that == null)
31313
        return false;
31314
 
31315
      boolean this_present_success = true && this.isSetSuccess();
31316
      boolean that_present_success = true && that.isSetSuccess();
31317
      if (this_present_success || that_present_success) {
31318
        if (!(this_present_success && that_present_success))
31319
          return false;
31320
        if (!this.success.equals(that.success))
31321
          return false;
31322
      }
31323
 
31324
      return true;
31325
    }
31326
 
31327
    @Override
31328
    public int hashCode() {
31329
      return 0;
31330
    }
31331
 
31332
    public int compareTo(getItemsInTransferLot_result other) {
31333
      if (!getClass().equals(other.getClass())) {
31334
        return getClass().getName().compareTo(other.getClass().getName());
31335
      }
31336
 
31337
      int lastComparison = 0;
31338
      getItemsInTransferLot_result typedOther = (getItemsInTransferLot_result)other;
31339
 
31340
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31341
      if (lastComparison != 0) {
31342
        return lastComparison;
31343
      }
31344
      if (isSetSuccess()) {
31345
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31346
        if (lastComparison != 0) {
31347
          return lastComparison;
31348
        }
31349
      }
31350
      return 0;
31351
    }
31352
 
31353
    public _Fields fieldForId(int fieldId) {
31354
      return _Fields.findByThriftId(fieldId);
31355
    }
31356
 
31357
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31358
      org.apache.thrift.protocol.TField field;
31359
      iprot.readStructBegin();
31360
      while (true)
31361
      {
31362
        field = iprot.readFieldBegin();
31363
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31364
          break;
31365
        }
31366
        switch (field.id) {
31367
          case 0: // SUCCESS
31368
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31369
              {
31370
                org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin();
31371
                this.success = new HashMap<Long,Long>(2*_map84.size);
31372
                for (int _i85 = 0; _i85 < _map84.size; ++_i85)
31373
                {
31374
                  long _key86; // required
31375
                  long _val87; // required
31376
                  _key86 = iprot.readI64();
31377
                  _val87 = iprot.readI64();
31378
                  this.success.put(_key86, _val87);
31379
                }
31380
                iprot.readMapEnd();
31381
              }
31382
            } else { 
31383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31384
            }
31385
            break;
31386
          default:
31387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31388
        }
31389
        iprot.readFieldEnd();
31390
      }
31391
      iprot.readStructEnd();
31392
      validate();
31393
    }
31394
 
31395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31396
      oprot.writeStructBegin(STRUCT_DESC);
31397
 
31398
      if (this.isSetSuccess()) {
31399
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31400
        {
31401
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
31402
          for (Map.Entry<Long, Long> _iter88 : this.success.entrySet())
31403
          {
31404
            oprot.writeI64(_iter88.getKey());
31405
            oprot.writeI64(_iter88.getValue());
31406
          }
31407
          oprot.writeMapEnd();
31408
        }
31409
        oprot.writeFieldEnd();
31410
      }
31411
      oprot.writeFieldStop();
31412
      oprot.writeStructEnd();
31413
    }
31414
 
31415
    @Override
31416
    public String toString() {
31417
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_result(");
31418
      boolean first = true;
31419
 
31420
      sb.append("success:");
31421
      if (this.success == null) {
31422
        sb.append("null");
31423
      } else {
31424
        sb.append(this.success);
31425
      }
31426
      first = false;
31427
      sb.append(")");
31428
      return sb.toString();
31429
    }
31430
 
31431
    public void validate() throws org.apache.thrift.TException {
31432
      // check for required fields
31433
    }
31434
 
31435
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31436
      try {
31437
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31438
      } catch (org.apache.thrift.TException te) {
31439
        throw new java.io.IOException(te);
31440
      }
31441
    }
31442
 
31443
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31444
      try {
31445
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31446
      } catch (org.apache.thrift.TException te) {
31447
        throw new java.io.IOException(te);
31448
      }
31449
    }
31450
 
31451
  }
31452
 
31453
  public static class markItemsAsReceivedForTransferLot_args implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_args, markItemsAsReceivedForTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
31454
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_args");
31455
 
31456
    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);
31457
 
31458
    private long id; // required
31459
 
31460
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31461
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31462
      ID((short)1, "id");
31463
 
31464
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31465
 
31466
      static {
31467
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31468
          byName.put(field.getFieldName(), field);
31469
        }
31470
      }
31471
 
31472
      /**
31473
       * Find the _Fields constant that matches fieldId, or null if its not found.
31474
       */
31475
      public static _Fields findByThriftId(int fieldId) {
31476
        switch(fieldId) {
31477
          case 1: // ID
31478
            return ID;
31479
          default:
31480
            return null;
31481
        }
31482
      }
31483
 
31484
      /**
31485
       * Find the _Fields constant that matches fieldId, throwing an exception
31486
       * if it is not found.
31487
       */
31488
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31489
        _Fields fields = findByThriftId(fieldId);
31490
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31491
        return fields;
31492
      }
31493
 
31494
      /**
31495
       * Find the _Fields constant that matches name, or null if its not found.
31496
       */
31497
      public static _Fields findByName(String name) {
31498
        return byName.get(name);
31499
      }
31500
 
31501
      private final short _thriftId;
31502
      private final String _fieldName;
31503
 
31504
      _Fields(short thriftId, String fieldName) {
31505
        _thriftId = thriftId;
31506
        _fieldName = fieldName;
31507
      }
31508
 
31509
      public short getThriftFieldId() {
31510
        return _thriftId;
31511
      }
31512
 
31513
      public String getFieldName() {
31514
        return _fieldName;
31515
      }
31516
    }
31517
 
31518
    // isset id assignments
31519
    private static final int __ID_ISSET_ID = 0;
31520
    private BitSet __isset_bit_vector = new BitSet(1);
31521
 
31522
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31523
    static {
31524
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31525
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31526
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31527
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31528
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_args.class, metaDataMap);
31529
    }
31530
 
31531
    public markItemsAsReceivedForTransferLot_args() {
31532
    }
31533
 
31534
    public markItemsAsReceivedForTransferLot_args(
31535
      long id)
31536
    {
31537
      this();
31538
      this.id = id;
31539
      setIdIsSet(true);
31540
    }
31541
 
31542
    /**
31543
     * Performs a deep copy on <i>other</i>.
31544
     */
31545
    public markItemsAsReceivedForTransferLot_args(markItemsAsReceivedForTransferLot_args other) {
31546
      __isset_bit_vector.clear();
31547
      __isset_bit_vector.or(other.__isset_bit_vector);
31548
      this.id = other.id;
31549
    }
31550
 
31551
    public markItemsAsReceivedForTransferLot_args deepCopy() {
31552
      return new markItemsAsReceivedForTransferLot_args(this);
31553
    }
31554
 
31555
    @Override
31556
    public void clear() {
31557
      setIdIsSet(false);
31558
      this.id = 0;
31559
    }
31560
 
31561
    public long getId() {
31562
      return this.id;
31563
    }
31564
 
31565
    public void setId(long id) {
31566
      this.id = id;
31567
      setIdIsSet(true);
31568
    }
31569
 
31570
    public void unsetId() {
31571
      __isset_bit_vector.clear(__ID_ISSET_ID);
31572
    }
31573
 
31574
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
31575
    public boolean isSetId() {
31576
      return __isset_bit_vector.get(__ID_ISSET_ID);
31577
    }
31578
 
31579
    public void setIdIsSet(boolean value) {
31580
      __isset_bit_vector.set(__ID_ISSET_ID, value);
31581
    }
31582
 
31583
    public void setFieldValue(_Fields field, Object value) {
31584
      switch (field) {
31585
      case ID:
31586
        if (value == null) {
31587
          unsetId();
31588
        } else {
31589
          setId((Long)value);
31590
        }
31591
        break;
31592
 
31593
      }
31594
    }
31595
 
31596
    public Object getFieldValue(_Fields field) {
31597
      switch (field) {
31598
      case ID:
31599
        return Long.valueOf(getId());
31600
 
31601
      }
31602
      throw new IllegalStateException();
31603
    }
31604
 
31605
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31606
    public boolean isSet(_Fields field) {
31607
      if (field == null) {
31608
        throw new IllegalArgumentException();
31609
      }
31610
 
31611
      switch (field) {
31612
      case ID:
31613
        return isSetId();
31614
      }
31615
      throw new IllegalStateException();
31616
    }
31617
 
31618
    @Override
31619
    public boolean equals(Object that) {
31620
      if (that == null)
31621
        return false;
31622
      if (that instanceof markItemsAsReceivedForTransferLot_args)
31623
        return this.equals((markItemsAsReceivedForTransferLot_args)that);
31624
      return false;
31625
    }
31626
 
31627
    public boolean equals(markItemsAsReceivedForTransferLot_args that) {
31628
      if (that == null)
31629
        return false;
31630
 
31631
      boolean this_present_id = true;
31632
      boolean that_present_id = true;
31633
      if (this_present_id || that_present_id) {
31634
        if (!(this_present_id && that_present_id))
31635
          return false;
31636
        if (this.id != that.id)
31637
          return false;
31638
      }
31639
 
31640
      return true;
31641
    }
31642
 
31643
    @Override
31644
    public int hashCode() {
31645
      return 0;
31646
    }
31647
 
31648
    public int compareTo(markItemsAsReceivedForTransferLot_args other) {
31649
      if (!getClass().equals(other.getClass())) {
31650
        return getClass().getName().compareTo(other.getClass().getName());
31651
      }
31652
 
31653
      int lastComparison = 0;
31654
      markItemsAsReceivedForTransferLot_args typedOther = (markItemsAsReceivedForTransferLot_args)other;
31655
 
31656
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
31657
      if (lastComparison != 0) {
31658
        return lastComparison;
31659
      }
31660
      if (isSetId()) {
31661
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
31662
        if (lastComparison != 0) {
31663
          return lastComparison;
31664
        }
31665
      }
31666
      return 0;
31667
    }
31668
 
31669
    public _Fields fieldForId(int fieldId) {
31670
      return _Fields.findByThriftId(fieldId);
31671
    }
31672
 
31673
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31674
      org.apache.thrift.protocol.TField field;
31675
      iprot.readStructBegin();
31676
      while (true)
31677
      {
31678
        field = iprot.readFieldBegin();
31679
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31680
          break;
31681
        }
31682
        switch (field.id) {
31683
          case 1: // ID
31684
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31685
              this.id = iprot.readI64();
31686
              setIdIsSet(true);
31687
            } else { 
31688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31689
            }
31690
            break;
31691
          default:
31692
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31693
        }
31694
        iprot.readFieldEnd();
31695
      }
31696
      iprot.readStructEnd();
31697
      validate();
31698
    }
31699
 
31700
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31701
      validate();
31702
 
31703
      oprot.writeStructBegin(STRUCT_DESC);
31704
      oprot.writeFieldBegin(ID_FIELD_DESC);
31705
      oprot.writeI64(this.id);
31706
      oprot.writeFieldEnd();
31707
      oprot.writeFieldStop();
31708
      oprot.writeStructEnd();
31709
    }
31710
 
31711
    @Override
31712
    public String toString() {
31713
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_args(");
31714
      boolean first = true;
31715
 
31716
      sb.append("id:");
31717
      sb.append(this.id);
31718
      first = false;
31719
      sb.append(")");
31720
      return sb.toString();
31721
    }
31722
 
31723
    public void validate() throws org.apache.thrift.TException {
31724
      // check for required fields
31725
    }
31726
 
31727
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31728
      try {
31729
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31730
      } catch (org.apache.thrift.TException te) {
31731
        throw new java.io.IOException(te);
31732
      }
31733
    }
31734
 
31735
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31736
      try {
31737
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31738
        __isset_bit_vector = new BitSet(1);
31739
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31740
      } catch (org.apache.thrift.TException te) {
31741
        throw new java.io.IOException(te);
31742
      }
31743
    }
31744
 
31745
  }
31746
 
31747
  public static class markItemsAsReceivedForTransferLot_result implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_result, markItemsAsReceivedForTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
31748
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_result");
31749
 
31750
    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);
31751
 
31752
    private WarehouseServiceException wex; // required
31753
 
31754
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31755
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31756
      WEX((short)1, "wex");
31757
 
31758
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31759
 
31760
      static {
31761
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31762
          byName.put(field.getFieldName(), field);
31763
        }
31764
      }
31765
 
31766
      /**
31767
       * Find the _Fields constant that matches fieldId, or null if its not found.
31768
       */
31769
      public static _Fields findByThriftId(int fieldId) {
31770
        switch(fieldId) {
31771
          case 1: // WEX
31772
            return WEX;
31773
          default:
31774
            return null;
31775
        }
31776
      }
31777
 
31778
      /**
31779
       * Find the _Fields constant that matches fieldId, throwing an exception
31780
       * if it is not found.
31781
       */
31782
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31783
        _Fields fields = findByThriftId(fieldId);
31784
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31785
        return fields;
31786
      }
31787
 
31788
      /**
31789
       * Find the _Fields constant that matches name, or null if its not found.
31790
       */
31791
      public static _Fields findByName(String name) {
31792
        return byName.get(name);
31793
      }
31794
 
31795
      private final short _thriftId;
31796
      private final String _fieldName;
31797
 
31798
      _Fields(short thriftId, String fieldName) {
31799
        _thriftId = thriftId;
31800
        _fieldName = fieldName;
31801
      }
31802
 
31803
      public short getThriftFieldId() {
31804
        return _thriftId;
31805
      }
31806
 
31807
      public String getFieldName() {
31808
        return _fieldName;
31809
      }
31810
    }
31811
 
31812
    // isset id assignments
31813
 
31814
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31815
    static {
31816
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31817
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31818
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31819
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31820
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_result.class, metaDataMap);
31821
    }
31822
 
31823
    public markItemsAsReceivedForTransferLot_result() {
31824
    }
31825
 
31826
    public markItemsAsReceivedForTransferLot_result(
31827
      WarehouseServiceException wex)
31828
    {
31829
      this();
31830
      this.wex = wex;
31831
    }
31832
 
31833
    /**
31834
     * Performs a deep copy on <i>other</i>.
31835
     */
31836
    public markItemsAsReceivedForTransferLot_result(markItemsAsReceivedForTransferLot_result other) {
31837
      if (other.isSetWex()) {
31838
        this.wex = new WarehouseServiceException(other.wex);
31839
      }
31840
    }
31841
 
31842
    public markItemsAsReceivedForTransferLot_result deepCopy() {
31843
      return new markItemsAsReceivedForTransferLot_result(this);
31844
    }
31845
 
31846
    @Override
31847
    public void clear() {
31848
      this.wex = null;
31849
    }
31850
 
31851
    public WarehouseServiceException getWex() {
31852
      return this.wex;
31853
    }
31854
 
31855
    public void setWex(WarehouseServiceException wex) {
31856
      this.wex = wex;
31857
    }
31858
 
31859
    public void unsetWex() {
31860
      this.wex = null;
31861
    }
31862
 
31863
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
31864
    public boolean isSetWex() {
31865
      return this.wex != null;
31866
    }
31867
 
31868
    public void setWexIsSet(boolean value) {
31869
      if (!value) {
31870
        this.wex = null;
31871
      }
31872
    }
31873
 
31874
    public void setFieldValue(_Fields field, Object value) {
31875
      switch (field) {
31876
      case WEX:
31877
        if (value == null) {
31878
          unsetWex();
31879
        } else {
31880
          setWex((WarehouseServiceException)value);
31881
        }
31882
        break;
31883
 
31884
      }
31885
    }
31886
 
31887
    public Object getFieldValue(_Fields field) {
31888
      switch (field) {
31889
      case WEX:
31890
        return getWex();
31891
 
31892
      }
31893
      throw new IllegalStateException();
31894
    }
31895
 
31896
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31897
    public boolean isSet(_Fields field) {
31898
      if (field == null) {
31899
        throw new IllegalArgumentException();
31900
      }
31901
 
31902
      switch (field) {
31903
      case WEX:
31904
        return isSetWex();
31905
      }
31906
      throw new IllegalStateException();
31907
    }
31908
 
31909
    @Override
31910
    public boolean equals(Object that) {
31911
      if (that == null)
31912
        return false;
31913
      if (that instanceof markItemsAsReceivedForTransferLot_result)
31914
        return this.equals((markItemsAsReceivedForTransferLot_result)that);
31915
      return false;
31916
    }
31917
 
31918
    public boolean equals(markItemsAsReceivedForTransferLot_result that) {
31919
      if (that == null)
31920
        return false;
31921
 
31922
      boolean this_present_wex = true && this.isSetWex();
31923
      boolean that_present_wex = true && that.isSetWex();
31924
      if (this_present_wex || that_present_wex) {
31925
        if (!(this_present_wex && that_present_wex))
31926
          return false;
31927
        if (!this.wex.equals(that.wex))
31928
          return false;
31929
      }
31930
 
31931
      return true;
31932
    }
31933
 
31934
    @Override
31935
    public int hashCode() {
31936
      return 0;
31937
    }
31938
 
31939
    public int compareTo(markItemsAsReceivedForTransferLot_result other) {
31940
      if (!getClass().equals(other.getClass())) {
31941
        return getClass().getName().compareTo(other.getClass().getName());
31942
      }
31943
 
31944
      int lastComparison = 0;
31945
      markItemsAsReceivedForTransferLot_result typedOther = (markItemsAsReceivedForTransferLot_result)other;
31946
 
31947
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
31948
      if (lastComparison != 0) {
31949
        return lastComparison;
31950
      }
31951
      if (isSetWex()) {
31952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
31953
        if (lastComparison != 0) {
31954
          return lastComparison;
31955
        }
31956
      }
31957
      return 0;
31958
    }
31959
 
31960
    public _Fields fieldForId(int fieldId) {
31961
      return _Fields.findByThriftId(fieldId);
31962
    }
31963
 
31964
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31965
      org.apache.thrift.protocol.TField field;
31966
      iprot.readStructBegin();
31967
      while (true)
31968
      {
31969
        field = iprot.readFieldBegin();
31970
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31971
          break;
31972
        }
31973
        switch (field.id) {
31974
          case 1: // WEX
31975
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
31976
              this.wex = new WarehouseServiceException();
31977
              this.wex.read(iprot);
31978
            } else { 
31979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31980
            }
31981
            break;
31982
          default:
31983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31984
        }
31985
        iprot.readFieldEnd();
31986
      }
31987
      iprot.readStructEnd();
31988
      validate();
31989
    }
31990
 
31991
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31992
      oprot.writeStructBegin(STRUCT_DESC);
31993
 
31994
      if (this.isSetWex()) {
31995
        oprot.writeFieldBegin(WEX_FIELD_DESC);
31996
        this.wex.write(oprot);
31997
        oprot.writeFieldEnd();
31998
      }
31999
      oprot.writeFieldStop();
32000
      oprot.writeStructEnd();
32001
    }
32002
 
32003
    @Override
32004
    public String toString() {
32005
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_result(");
32006
      boolean first = true;
32007
 
32008
      sb.append("wex:");
32009
      if (this.wex == null) {
32010
        sb.append("null");
32011
      } else {
32012
        sb.append(this.wex);
32013
      }
32014
      first = false;
32015
      sb.append(")");
32016
      return sb.toString();
32017
    }
32018
 
32019
    public void validate() throws org.apache.thrift.TException {
32020
      // check for required fields
32021
    }
32022
 
32023
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32024
      try {
32025
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32026
      } catch (org.apache.thrift.TException te) {
32027
        throw new java.io.IOException(te);
32028
      }
32029
    }
32030
 
32031
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32032
      try {
32033
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32034
      } catch (org.apache.thrift.TException te) {
32035
        throw new java.io.IOException(te);
32036
      }
32037
    }
32038
 
32039
  }
32040
 
32041
  public static class updateTransferLotAfterItemReceive_args implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_args, updateTransferLotAfterItemReceive_args._Fields>, java.io.Serializable, Cloneable   {
32042
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_args");
32043
 
32044
    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);
32045
 
32046
    private long id; // required
32047
 
32048
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32049
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32050
      ID((short)1, "id");
32051
 
32052
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32053
 
32054
      static {
32055
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32056
          byName.put(field.getFieldName(), field);
32057
        }
32058
      }
32059
 
32060
      /**
32061
       * Find the _Fields constant that matches fieldId, or null if its not found.
32062
       */
32063
      public static _Fields findByThriftId(int fieldId) {
32064
        switch(fieldId) {
32065
          case 1: // ID
32066
            return ID;
32067
          default:
32068
            return null;
32069
        }
32070
      }
32071
 
32072
      /**
32073
       * Find the _Fields constant that matches fieldId, throwing an exception
32074
       * if it is not found.
32075
       */
32076
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32077
        _Fields fields = findByThriftId(fieldId);
32078
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32079
        return fields;
32080
      }
32081
 
32082
      /**
32083
       * Find the _Fields constant that matches name, or null if its not found.
32084
       */
32085
      public static _Fields findByName(String name) {
32086
        return byName.get(name);
32087
      }
32088
 
32089
      private final short _thriftId;
32090
      private final String _fieldName;
32091
 
32092
      _Fields(short thriftId, String fieldName) {
32093
        _thriftId = thriftId;
32094
        _fieldName = fieldName;
32095
      }
32096
 
32097
      public short getThriftFieldId() {
32098
        return _thriftId;
32099
      }
32100
 
32101
      public String getFieldName() {
32102
        return _fieldName;
32103
      }
32104
    }
32105
 
32106
    // isset id assignments
32107
    private static final int __ID_ISSET_ID = 0;
32108
    private BitSet __isset_bit_vector = new BitSet(1);
32109
 
32110
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32111
    static {
32112
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32113
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32114
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_args.class, metaDataMap);
32117
    }
32118
 
32119
    public updateTransferLotAfterItemReceive_args() {
32120
    }
32121
 
32122
    public updateTransferLotAfterItemReceive_args(
32123
      long id)
32124
    {
32125
      this();
32126
      this.id = id;
32127
      setIdIsSet(true);
32128
    }
32129
 
32130
    /**
32131
     * Performs a deep copy on <i>other</i>.
32132
     */
32133
    public updateTransferLotAfterItemReceive_args(updateTransferLotAfterItemReceive_args other) {
32134
      __isset_bit_vector.clear();
32135
      __isset_bit_vector.or(other.__isset_bit_vector);
32136
      this.id = other.id;
32137
    }
32138
 
32139
    public updateTransferLotAfterItemReceive_args deepCopy() {
32140
      return new updateTransferLotAfterItemReceive_args(this);
32141
    }
32142
 
32143
    @Override
32144
    public void clear() {
32145
      setIdIsSet(false);
32146
      this.id = 0;
32147
    }
32148
 
32149
    public long getId() {
32150
      return this.id;
32151
    }
32152
 
32153
    public void setId(long id) {
32154
      this.id = id;
32155
      setIdIsSet(true);
32156
    }
32157
 
32158
    public void unsetId() {
32159
      __isset_bit_vector.clear(__ID_ISSET_ID);
32160
    }
32161
 
32162
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
32163
    public boolean isSetId() {
32164
      return __isset_bit_vector.get(__ID_ISSET_ID);
32165
    }
32166
 
32167
    public void setIdIsSet(boolean value) {
32168
      __isset_bit_vector.set(__ID_ISSET_ID, value);
32169
    }
32170
 
32171
    public void setFieldValue(_Fields field, Object value) {
32172
      switch (field) {
32173
      case ID:
32174
        if (value == null) {
32175
          unsetId();
32176
        } else {
32177
          setId((Long)value);
32178
        }
32179
        break;
32180
 
32181
      }
32182
    }
32183
 
32184
    public Object getFieldValue(_Fields field) {
32185
      switch (field) {
32186
      case ID:
32187
        return Long.valueOf(getId());
32188
 
32189
      }
32190
      throw new IllegalStateException();
32191
    }
32192
 
32193
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32194
    public boolean isSet(_Fields field) {
32195
      if (field == null) {
32196
        throw new IllegalArgumentException();
32197
      }
32198
 
32199
      switch (field) {
32200
      case ID:
32201
        return isSetId();
32202
      }
32203
      throw new IllegalStateException();
32204
    }
32205
 
32206
    @Override
32207
    public boolean equals(Object that) {
32208
      if (that == null)
32209
        return false;
32210
      if (that instanceof updateTransferLotAfterItemReceive_args)
32211
        return this.equals((updateTransferLotAfterItemReceive_args)that);
32212
      return false;
32213
    }
32214
 
32215
    public boolean equals(updateTransferLotAfterItemReceive_args that) {
32216
      if (that == null)
32217
        return false;
32218
 
32219
      boolean this_present_id = true;
32220
      boolean that_present_id = true;
32221
      if (this_present_id || that_present_id) {
32222
        if (!(this_present_id && that_present_id))
32223
          return false;
32224
        if (this.id != that.id)
32225
          return false;
32226
      }
32227
 
32228
      return true;
32229
    }
32230
 
32231
    @Override
32232
    public int hashCode() {
32233
      return 0;
32234
    }
32235
 
32236
    public int compareTo(updateTransferLotAfterItemReceive_args other) {
32237
      if (!getClass().equals(other.getClass())) {
32238
        return getClass().getName().compareTo(other.getClass().getName());
32239
      }
32240
 
32241
      int lastComparison = 0;
32242
      updateTransferLotAfterItemReceive_args typedOther = (updateTransferLotAfterItemReceive_args)other;
32243
 
32244
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
32245
      if (lastComparison != 0) {
32246
        return lastComparison;
32247
      }
32248
      if (isSetId()) {
32249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
32250
        if (lastComparison != 0) {
32251
          return lastComparison;
32252
        }
32253
      }
32254
      return 0;
32255
    }
32256
 
32257
    public _Fields fieldForId(int fieldId) {
32258
      return _Fields.findByThriftId(fieldId);
32259
    }
32260
 
32261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32262
      org.apache.thrift.protocol.TField field;
32263
      iprot.readStructBegin();
32264
      while (true)
32265
      {
32266
        field = iprot.readFieldBegin();
32267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32268
          break;
32269
        }
32270
        switch (field.id) {
32271
          case 1: // ID
32272
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32273
              this.id = iprot.readI64();
32274
              setIdIsSet(true);
32275
            } else { 
32276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32277
            }
32278
            break;
32279
          default:
32280
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32281
        }
32282
        iprot.readFieldEnd();
32283
      }
32284
      iprot.readStructEnd();
32285
      validate();
32286
    }
32287
 
32288
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32289
      validate();
32290
 
32291
      oprot.writeStructBegin(STRUCT_DESC);
32292
      oprot.writeFieldBegin(ID_FIELD_DESC);
32293
      oprot.writeI64(this.id);
32294
      oprot.writeFieldEnd();
32295
      oprot.writeFieldStop();
32296
      oprot.writeStructEnd();
32297
    }
32298
 
32299
    @Override
32300
    public String toString() {
32301
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_args(");
32302
      boolean first = true;
32303
 
32304
      sb.append("id:");
32305
      sb.append(this.id);
32306
      first = false;
32307
      sb.append(")");
32308
      return sb.toString();
32309
    }
32310
 
32311
    public void validate() throws org.apache.thrift.TException {
32312
      // check for required fields
32313
    }
32314
 
32315
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32316
      try {
32317
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32318
      } catch (org.apache.thrift.TException te) {
32319
        throw new java.io.IOException(te);
32320
      }
32321
    }
32322
 
32323
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32324
      try {
32325
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32326
        __isset_bit_vector = new BitSet(1);
32327
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32328
      } catch (org.apache.thrift.TException te) {
32329
        throw new java.io.IOException(te);
32330
      }
32331
    }
32332
 
32333
  }
32334
 
32335
  public static class updateTransferLotAfterItemReceive_result implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_result, updateTransferLotAfterItemReceive_result._Fields>, java.io.Serializable, Cloneable   {
32336
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_result");
32337
 
32338
    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);
32339
    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);
32340
 
32341
    private TransferLotStatus success; // required
32342
    private WarehouseServiceException wex; // required
32343
 
32344
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32345
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32346
      /**
32347
       * 
32348
       * @see TransferLotStatus
32349
       */
32350
      SUCCESS((short)0, "success"),
32351
      WEX((short)1, "wex");
32352
 
32353
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32354
 
32355
      static {
32356
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32357
          byName.put(field.getFieldName(), field);
32358
        }
32359
      }
32360
 
32361
      /**
32362
       * Find the _Fields constant that matches fieldId, or null if its not found.
32363
       */
32364
      public static _Fields findByThriftId(int fieldId) {
32365
        switch(fieldId) {
32366
          case 0: // SUCCESS
32367
            return SUCCESS;
32368
          case 1: // WEX
32369
            return WEX;
32370
          default:
32371
            return null;
32372
        }
32373
      }
32374
 
32375
      /**
32376
       * Find the _Fields constant that matches fieldId, throwing an exception
32377
       * if it is not found.
32378
       */
32379
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32380
        _Fields fields = findByThriftId(fieldId);
32381
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32382
        return fields;
32383
      }
32384
 
32385
      /**
32386
       * Find the _Fields constant that matches name, or null if its not found.
32387
       */
32388
      public static _Fields findByName(String name) {
32389
        return byName.get(name);
32390
      }
32391
 
32392
      private final short _thriftId;
32393
      private final String _fieldName;
32394
 
32395
      _Fields(short thriftId, String fieldName) {
32396
        _thriftId = thriftId;
32397
        _fieldName = fieldName;
32398
      }
32399
 
32400
      public short getThriftFieldId() {
32401
        return _thriftId;
32402
      }
32403
 
32404
      public String getFieldName() {
32405
        return _fieldName;
32406
      }
32407
    }
32408
 
32409
    // isset id assignments
32410
 
32411
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32412
    static {
32413
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32414
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32415
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferLotStatus.class)));
32416
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32417
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32418
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32419
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_result.class, metaDataMap);
32420
    }
32421
 
32422
    public updateTransferLotAfterItemReceive_result() {
32423
    }
32424
 
32425
    public updateTransferLotAfterItemReceive_result(
32426
      TransferLotStatus success,
32427
      WarehouseServiceException wex)
32428
    {
32429
      this();
32430
      this.success = success;
32431
      this.wex = wex;
32432
    }
32433
 
32434
    /**
32435
     * Performs a deep copy on <i>other</i>.
32436
     */
32437
    public updateTransferLotAfterItemReceive_result(updateTransferLotAfterItemReceive_result other) {
32438
      if (other.isSetSuccess()) {
32439
        this.success = other.success;
32440
      }
32441
      if (other.isSetWex()) {
32442
        this.wex = new WarehouseServiceException(other.wex);
32443
      }
32444
    }
32445
 
32446
    public updateTransferLotAfterItemReceive_result deepCopy() {
32447
      return new updateTransferLotAfterItemReceive_result(this);
32448
    }
32449
 
32450
    @Override
32451
    public void clear() {
32452
      this.success = null;
32453
      this.wex = null;
32454
    }
32455
 
32456
    /**
32457
     * 
32458
     * @see TransferLotStatus
32459
     */
32460
    public TransferLotStatus getSuccess() {
32461
      return this.success;
32462
    }
32463
 
32464
    /**
32465
     * 
32466
     * @see TransferLotStatus
32467
     */
32468
    public void setSuccess(TransferLotStatus success) {
32469
      this.success = success;
32470
    }
32471
 
32472
    public void unsetSuccess() {
32473
      this.success = null;
32474
    }
32475
 
32476
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32477
    public boolean isSetSuccess() {
32478
      return this.success != null;
32479
    }
32480
 
32481
    public void setSuccessIsSet(boolean value) {
32482
      if (!value) {
32483
        this.success = null;
32484
      }
32485
    }
32486
 
32487
    public WarehouseServiceException getWex() {
32488
      return this.wex;
32489
    }
32490
 
32491
    public void setWex(WarehouseServiceException wex) {
32492
      this.wex = wex;
32493
    }
32494
 
32495
    public void unsetWex() {
32496
      this.wex = null;
32497
    }
32498
 
32499
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
32500
    public boolean isSetWex() {
32501
      return this.wex != null;
32502
    }
32503
 
32504
    public void setWexIsSet(boolean value) {
32505
      if (!value) {
32506
        this.wex = null;
32507
      }
32508
    }
32509
 
32510
    public void setFieldValue(_Fields field, Object value) {
32511
      switch (field) {
32512
      case SUCCESS:
32513
        if (value == null) {
32514
          unsetSuccess();
32515
        } else {
32516
          setSuccess((TransferLotStatus)value);
32517
        }
32518
        break;
32519
 
32520
      case WEX:
32521
        if (value == null) {
32522
          unsetWex();
32523
        } else {
32524
          setWex((WarehouseServiceException)value);
32525
        }
32526
        break;
32527
 
32528
      }
32529
    }
32530
 
32531
    public Object getFieldValue(_Fields field) {
32532
      switch (field) {
32533
      case SUCCESS:
32534
        return getSuccess();
32535
 
32536
      case WEX:
32537
        return getWex();
32538
 
32539
      }
32540
      throw new IllegalStateException();
32541
    }
32542
 
32543
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32544
    public boolean isSet(_Fields field) {
32545
      if (field == null) {
32546
        throw new IllegalArgumentException();
32547
      }
32548
 
32549
      switch (field) {
32550
      case SUCCESS:
32551
        return isSetSuccess();
32552
      case WEX:
32553
        return isSetWex();
32554
      }
32555
      throw new IllegalStateException();
32556
    }
32557
 
32558
    @Override
32559
    public boolean equals(Object that) {
32560
      if (that == null)
32561
        return false;
32562
      if (that instanceof updateTransferLotAfterItemReceive_result)
32563
        return this.equals((updateTransferLotAfterItemReceive_result)that);
32564
      return false;
32565
    }
32566
 
32567
    public boolean equals(updateTransferLotAfterItemReceive_result that) {
32568
      if (that == null)
32569
        return false;
32570
 
32571
      boolean this_present_success = true && this.isSetSuccess();
32572
      boolean that_present_success = true && that.isSetSuccess();
32573
      if (this_present_success || that_present_success) {
32574
        if (!(this_present_success && that_present_success))
32575
          return false;
32576
        if (!this.success.equals(that.success))
32577
          return false;
32578
      }
32579
 
32580
      boolean this_present_wex = true && this.isSetWex();
32581
      boolean that_present_wex = true && that.isSetWex();
32582
      if (this_present_wex || that_present_wex) {
32583
        if (!(this_present_wex && that_present_wex))
32584
          return false;
32585
        if (!this.wex.equals(that.wex))
32586
          return false;
32587
      }
32588
 
32589
      return true;
32590
    }
32591
 
32592
    @Override
32593
    public int hashCode() {
32594
      return 0;
32595
    }
32596
 
32597
    public int compareTo(updateTransferLotAfterItemReceive_result other) {
32598
      if (!getClass().equals(other.getClass())) {
32599
        return getClass().getName().compareTo(other.getClass().getName());
32600
      }
32601
 
32602
      int lastComparison = 0;
32603
      updateTransferLotAfterItemReceive_result typedOther = (updateTransferLotAfterItemReceive_result)other;
32604
 
32605
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32606
      if (lastComparison != 0) {
32607
        return lastComparison;
32608
      }
32609
      if (isSetSuccess()) {
32610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32611
        if (lastComparison != 0) {
32612
          return lastComparison;
32613
        }
32614
      }
32615
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
32616
      if (lastComparison != 0) {
32617
        return lastComparison;
32618
      }
32619
      if (isSetWex()) {
32620
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
32621
        if (lastComparison != 0) {
32622
          return lastComparison;
32623
        }
32624
      }
32625
      return 0;
32626
    }
32627
 
32628
    public _Fields fieldForId(int fieldId) {
32629
      return _Fields.findByThriftId(fieldId);
32630
    }
32631
 
32632
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32633
      org.apache.thrift.protocol.TField field;
32634
      iprot.readStructBegin();
32635
      while (true)
32636
      {
32637
        field = iprot.readFieldBegin();
32638
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32639
          break;
32640
        }
32641
        switch (field.id) {
32642
          case 0: // SUCCESS
32643
            if (field.type == org.apache.thrift.protocol.TType.I32) {
32644
              this.success = TransferLotStatus.findByValue(iprot.readI32());
32645
            } else { 
32646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32647
            }
32648
            break;
32649
          case 1: // WEX
32650
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32651
              this.wex = new WarehouseServiceException();
32652
              this.wex.read(iprot);
32653
            } else { 
32654
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32655
            }
32656
            break;
32657
          default:
32658
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32659
        }
32660
        iprot.readFieldEnd();
32661
      }
32662
      iprot.readStructEnd();
32663
      validate();
32664
    }
32665
 
32666
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32667
      oprot.writeStructBegin(STRUCT_DESC);
32668
 
32669
      if (this.isSetSuccess()) {
32670
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32671
        oprot.writeI32(this.success.getValue());
32672
        oprot.writeFieldEnd();
32673
      } else if (this.isSetWex()) {
32674
        oprot.writeFieldBegin(WEX_FIELD_DESC);
32675
        this.wex.write(oprot);
32676
        oprot.writeFieldEnd();
32677
      }
32678
      oprot.writeFieldStop();
32679
      oprot.writeStructEnd();
32680
    }
32681
 
32682
    @Override
32683
    public String toString() {
32684
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_result(");
32685
      boolean first = true;
32686
 
32687
      sb.append("success:");
32688
      if (this.success == null) {
32689
        sb.append("null");
32690
      } else {
32691
        sb.append(this.success);
32692
      }
32693
      first = false;
32694
      if (!first) sb.append(", ");
32695
      sb.append("wex:");
32696
      if (this.wex == null) {
32697
        sb.append("null");
32698
      } else {
32699
        sb.append(this.wex);
32700
      }
32701
      first = false;
32702
      sb.append(")");
32703
      return sb.toString();
32704
    }
32705
 
32706
    public void validate() throws org.apache.thrift.TException {
32707
      // check for required fields
32708
    }
32709
 
32710
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32711
      try {
32712
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32713
      } catch (org.apache.thrift.TException te) {
32714
        throw new java.io.IOException(te);
32715
      }
32716
    }
32717
 
32718
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32719
      try {
32720
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32721
      } catch (org.apache.thrift.TException te) {
32722
        throw new java.io.IOException(te);
32723
      }
32724
    }
32725
 
32726
  }
32727
 
7453 amar.kumar 32728
  public static class scanForTransferOut_args implements org.apache.thrift.TBase<scanForTransferOut_args, scanForTransferOut_args._Fields>, java.io.Serializable, Cloneable   {
32729
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferOut_args");
7410 amar.kumar 32730
 
32731
    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);
32732
    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);
32733
    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);
32734
 
32735
    private List<InventoryItem> inventoryItems; // required
32736
    private ScanType type; // required
32737
    private long transferLotId; // required
32738
 
32739
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32740
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32741
      INVENTORY_ITEMS((short)1, "inventoryItems"),
32742
      /**
32743
       * 
32744
       * @see ScanType
32745
       */
32746
      TYPE((short)2, "type"),
32747
      TRANSFER_LOT_ID((short)3, "transferLotId");
32748
 
32749
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32750
 
32751
      static {
32752
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32753
          byName.put(field.getFieldName(), field);
32754
        }
32755
      }
32756
 
32757
      /**
32758
       * Find the _Fields constant that matches fieldId, or null if its not found.
32759
       */
32760
      public static _Fields findByThriftId(int fieldId) {
32761
        switch(fieldId) {
32762
          case 1: // INVENTORY_ITEMS
32763
            return INVENTORY_ITEMS;
32764
          case 2: // TYPE
32765
            return TYPE;
32766
          case 3: // TRANSFER_LOT_ID
32767
            return TRANSFER_LOT_ID;
32768
          default:
32769
            return null;
32770
        }
32771
      }
32772
 
32773
      /**
32774
       * Find the _Fields constant that matches fieldId, throwing an exception
32775
       * if it is not found.
32776
       */
32777
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32778
        _Fields fields = findByThriftId(fieldId);
32779
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32780
        return fields;
32781
      }
32782
 
32783
      /**
32784
       * Find the _Fields constant that matches name, or null if its not found.
32785
       */
32786
      public static _Fields findByName(String name) {
32787
        return byName.get(name);
32788
      }
32789
 
32790
      private final short _thriftId;
32791
      private final String _fieldName;
32792
 
32793
      _Fields(short thriftId, String fieldName) {
32794
        _thriftId = thriftId;
32795
        _fieldName = fieldName;
32796
      }
32797
 
32798
      public short getThriftFieldId() {
32799
        return _thriftId;
32800
      }
32801
 
32802
      public String getFieldName() {
32803
        return _fieldName;
32804
      }
32805
    }
32806
 
32807
    // isset id assignments
32808
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
32809
    private BitSet __isset_bit_vector = new BitSet(1);
32810
 
32811
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32812
    static {
32813
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32814
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32815
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32816
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
32817
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32818
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
32819
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32820
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32821
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7453 amar.kumar 32822
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferOut_args.class, metaDataMap);
7410 amar.kumar 32823
    }
32824
 
7453 amar.kumar 32825
    public scanForTransferOut_args() {
7410 amar.kumar 32826
    }
32827
 
7453 amar.kumar 32828
    public scanForTransferOut_args(
7410 amar.kumar 32829
      List<InventoryItem> inventoryItems,
32830
      ScanType type,
32831
      long transferLotId)
32832
    {
32833
      this();
32834
      this.inventoryItems = inventoryItems;
32835
      this.type = type;
32836
      this.transferLotId = transferLotId;
32837
      setTransferLotIdIsSet(true);
32838
    }
32839
 
32840
    /**
32841
     * Performs a deep copy on <i>other</i>.
32842
     */
7453 amar.kumar 32843
    public scanForTransferOut_args(scanForTransferOut_args other) {
7410 amar.kumar 32844
      __isset_bit_vector.clear();
32845
      __isset_bit_vector.or(other.__isset_bit_vector);
32846
      if (other.isSetInventoryItems()) {
32847
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
32848
        for (InventoryItem other_element : other.inventoryItems) {
32849
          __this__inventoryItems.add(new InventoryItem(other_element));
32850
        }
32851
        this.inventoryItems = __this__inventoryItems;
32852
      }
32853
      if (other.isSetType()) {
32854
        this.type = other.type;
32855
      }
32856
      this.transferLotId = other.transferLotId;
32857
    }
32858
 
7453 amar.kumar 32859
    public scanForTransferOut_args deepCopy() {
32860
      return new scanForTransferOut_args(this);
7410 amar.kumar 32861
    }
32862
 
32863
    @Override
32864
    public void clear() {
32865
      this.inventoryItems = null;
32866
      this.type = null;
32867
      setTransferLotIdIsSet(false);
32868
      this.transferLotId = 0;
32869
    }
32870
 
32871
    public int getInventoryItemsSize() {
32872
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
32873
    }
32874
 
32875
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
32876
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
32877
    }
32878
 
32879
    public void addToInventoryItems(InventoryItem elem) {
32880
      if (this.inventoryItems == null) {
32881
        this.inventoryItems = new ArrayList<InventoryItem>();
32882
      }
32883
      this.inventoryItems.add(elem);
32884
    }
32885
 
32886
    public List<InventoryItem> getInventoryItems() {
32887
      return this.inventoryItems;
32888
    }
32889
 
32890
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
32891
      this.inventoryItems = inventoryItems;
32892
    }
32893
 
32894
    public void unsetInventoryItems() {
32895
      this.inventoryItems = null;
32896
    }
32897
 
32898
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
32899
    public boolean isSetInventoryItems() {
32900
      return this.inventoryItems != null;
32901
    }
32902
 
32903
    public void setInventoryItemsIsSet(boolean value) {
32904
      if (!value) {
32905
        this.inventoryItems = null;
32906
      }
32907
    }
32908
 
32909
    /**
32910
     * 
32911
     * @see ScanType
32912
     */
32913
    public ScanType getType() {
32914
      return this.type;
32915
    }
32916
 
32917
    /**
32918
     * 
32919
     * @see ScanType
32920
     */
32921
    public void setType(ScanType type) {
32922
      this.type = type;
32923
    }
32924
 
32925
    public void unsetType() {
32926
      this.type = null;
32927
    }
32928
 
32929
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
32930
    public boolean isSetType() {
32931
      return this.type != null;
32932
    }
32933
 
32934
    public void setTypeIsSet(boolean value) {
32935
      if (!value) {
32936
        this.type = null;
32937
      }
32938
    }
32939
 
32940
    public long getTransferLotId() {
32941
      return this.transferLotId;
32942
    }
32943
 
32944
    public void setTransferLotId(long transferLotId) {
32945
      this.transferLotId = transferLotId;
32946
      setTransferLotIdIsSet(true);
32947
    }
32948
 
32949
    public void unsetTransferLotId() {
32950
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
32951
    }
32952
 
32953
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
32954
    public boolean isSetTransferLotId() {
32955
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
32956
    }
32957
 
32958
    public void setTransferLotIdIsSet(boolean value) {
32959
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
32960
    }
32961
 
32962
    public void setFieldValue(_Fields field, Object value) {
32963
      switch (field) {
32964
      case INVENTORY_ITEMS:
32965
        if (value == null) {
32966
          unsetInventoryItems();
32967
        } else {
32968
          setInventoryItems((List<InventoryItem>)value);
32969
        }
32970
        break;
32971
 
32972
      case TYPE:
32973
        if (value == null) {
32974
          unsetType();
32975
        } else {
32976
          setType((ScanType)value);
32977
        }
32978
        break;
32979
 
32980
      case TRANSFER_LOT_ID:
32981
        if (value == null) {
32982
          unsetTransferLotId();
32983
        } else {
32984
          setTransferLotId((Long)value);
32985
        }
32986
        break;
32987
 
32988
      }
32989
    }
32990
 
32991
    public Object getFieldValue(_Fields field) {
32992
      switch (field) {
32993
      case INVENTORY_ITEMS:
32994
        return getInventoryItems();
32995
 
32996
      case TYPE:
32997
        return getType();
32998
 
32999
      case TRANSFER_LOT_ID:
33000
        return Long.valueOf(getTransferLotId());
33001
 
33002
      }
33003
      throw new IllegalStateException();
33004
    }
33005
 
33006
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33007
    public boolean isSet(_Fields field) {
33008
      if (field == null) {
33009
        throw new IllegalArgumentException();
33010
      }
33011
 
33012
      switch (field) {
33013
      case INVENTORY_ITEMS:
33014
        return isSetInventoryItems();
33015
      case TYPE:
33016
        return isSetType();
33017
      case TRANSFER_LOT_ID:
33018
        return isSetTransferLotId();
33019
      }
33020
      throw new IllegalStateException();
33021
    }
33022
 
33023
    @Override
33024
    public boolean equals(Object that) {
33025
      if (that == null)
33026
        return false;
7453 amar.kumar 33027
      if (that instanceof scanForTransferOut_args)
33028
        return this.equals((scanForTransferOut_args)that);
7410 amar.kumar 33029
      return false;
33030
    }
33031
 
7453 amar.kumar 33032
    public boolean equals(scanForTransferOut_args that) {
7410 amar.kumar 33033
      if (that == null)
33034
        return false;
33035
 
33036
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
33037
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
33038
      if (this_present_inventoryItems || that_present_inventoryItems) {
33039
        if (!(this_present_inventoryItems && that_present_inventoryItems))
33040
          return false;
33041
        if (!this.inventoryItems.equals(that.inventoryItems))
33042
          return false;
33043
      }
33044
 
33045
      boolean this_present_type = true && this.isSetType();
33046
      boolean that_present_type = true && that.isSetType();
33047
      if (this_present_type || that_present_type) {
33048
        if (!(this_present_type && that_present_type))
33049
          return false;
33050
        if (!this.type.equals(that.type))
33051
          return false;
33052
      }
33053
 
33054
      boolean this_present_transferLotId = true;
33055
      boolean that_present_transferLotId = true;
33056
      if (this_present_transferLotId || that_present_transferLotId) {
33057
        if (!(this_present_transferLotId && that_present_transferLotId))
33058
          return false;
33059
        if (this.transferLotId != that.transferLotId)
33060
          return false;
33061
      }
33062
 
33063
      return true;
33064
    }
33065
 
33066
    @Override
33067
    public int hashCode() {
33068
      return 0;
33069
    }
33070
 
7453 amar.kumar 33071
    public int compareTo(scanForTransferOut_args other) {
7410 amar.kumar 33072
      if (!getClass().equals(other.getClass())) {
33073
        return getClass().getName().compareTo(other.getClass().getName());
33074
      }
33075
 
33076
      int lastComparison = 0;
7453 amar.kumar 33077
      scanForTransferOut_args typedOther = (scanForTransferOut_args)other;
7410 amar.kumar 33078
 
33079
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
33080
      if (lastComparison != 0) {
33081
        return lastComparison;
33082
      }
33083
      if (isSetInventoryItems()) {
33084
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
33085
        if (lastComparison != 0) {
33086
          return lastComparison;
33087
        }
33088
      }
33089
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
33090
      if (lastComparison != 0) {
33091
        return lastComparison;
33092
      }
33093
      if (isSetType()) {
33094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
33095
        if (lastComparison != 0) {
33096
          return lastComparison;
33097
        }
33098
      }
33099
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
33100
      if (lastComparison != 0) {
33101
        return lastComparison;
33102
      }
33103
      if (isSetTransferLotId()) {
33104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
33105
        if (lastComparison != 0) {
33106
          return lastComparison;
33107
        }
33108
      }
33109
      return 0;
33110
    }
33111
 
33112
    public _Fields fieldForId(int fieldId) {
33113
      return _Fields.findByThriftId(fieldId);
33114
    }
33115
 
33116
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33117
      org.apache.thrift.protocol.TField field;
33118
      iprot.readStructBegin();
33119
      while (true)
33120
      {
33121
        field = iprot.readFieldBegin();
33122
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33123
          break;
33124
        }
33125
        switch (field.id) {
33126
          case 1: // INVENTORY_ITEMS
33127
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33128
              {
33129
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
33130
                this.inventoryItems = new ArrayList<InventoryItem>(_list89.size);
33131
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
33132
                {
33133
                  InventoryItem _elem91; // required
33134
                  _elem91 = new InventoryItem();
33135
                  _elem91.read(iprot);
33136
                  this.inventoryItems.add(_elem91);
33137
                }
33138
                iprot.readListEnd();
33139
              }
33140
            } else { 
33141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33142
            }
33143
            break;
33144
          case 2: // TYPE
33145
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33146
              this.type = ScanType.findByValue(iprot.readI32());
33147
            } else { 
33148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33149
            }
33150
            break;
33151
          case 3: // TRANSFER_LOT_ID
33152
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33153
              this.transferLotId = iprot.readI64();
33154
              setTransferLotIdIsSet(true);
33155
            } else { 
33156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33157
            }
33158
            break;
33159
          default:
33160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33161
        }
33162
        iprot.readFieldEnd();
33163
      }
33164
      iprot.readStructEnd();
33165
      validate();
33166
    }
33167
 
33168
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33169
      validate();
33170
 
33171
      oprot.writeStructBegin(STRUCT_DESC);
33172
      if (this.inventoryItems != null) {
33173
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
33174
        {
33175
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
33176
          for (InventoryItem _iter92 : this.inventoryItems)
33177
          {
33178
            _iter92.write(oprot);
33179
          }
33180
          oprot.writeListEnd();
33181
        }
33182
        oprot.writeFieldEnd();
33183
      }
33184
      if (this.type != null) {
33185
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
33186
        oprot.writeI32(this.type.getValue());
33187
        oprot.writeFieldEnd();
33188
      }
33189
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
33190
      oprot.writeI64(this.transferLotId);
33191
      oprot.writeFieldEnd();
33192
      oprot.writeFieldStop();
33193
      oprot.writeStructEnd();
33194
    }
33195
 
33196
    @Override
33197
    public String toString() {
7453 amar.kumar 33198
      StringBuilder sb = new StringBuilder("scanForTransferOut_args(");
7410 amar.kumar 33199
      boolean first = true;
33200
 
33201
      sb.append("inventoryItems:");
33202
      if (this.inventoryItems == null) {
33203
        sb.append("null");
33204
      } else {
33205
        sb.append(this.inventoryItems);
33206
      }
33207
      first = false;
33208
      if (!first) sb.append(", ");
33209
      sb.append("type:");
33210
      if (this.type == null) {
33211
        sb.append("null");
33212
      } else {
33213
        sb.append(this.type);
33214
      }
33215
      first = false;
33216
      if (!first) sb.append(", ");
33217
      sb.append("transferLotId:");
33218
      sb.append(this.transferLotId);
33219
      first = false;
33220
      sb.append(")");
33221
      return sb.toString();
33222
    }
33223
 
33224
    public void validate() throws org.apache.thrift.TException {
33225
      // check for required fields
33226
    }
33227
 
33228
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33229
      try {
33230
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33231
      } catch (org.apache.thrift.TException te) {
33232
        throw new java.io.IOException(te);
33233
      }
33234
    }
33235
 
33236
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33237
      try {
33238
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33239
        __isset_bit_vector = new BitSet(1);
33240
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33241
      } catch (org.apache.thrift.TException te) {
33242
        throw new java.io.IOException(te);
33243
      }
33244
    }
33245
 
33246
  }
33247
 
7453 amar.kumar 33248
  public static class scanForTransferOut_result implements org.apache.thrift.TBase<scanForTransferOut_result, scanForTransferOut_result._Fields>, java.io.Serializable, Cloneable   {
33249
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferOut_result");
7410 amar.kumar 33250
 
33251
    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);
33252
 
33253
    private WarehouseServiceException wex; // required
33254
 
33255
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33256
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33257
      WEX((short)1, "wex");
33258
 
33259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33260
 
33261
      static {
33262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33263
          byName.put(field.getFieldName(), field);
33264
        }
33265
      }
33266
 
33267
      /**
33268
       * Find the _Fields constant that matches fieldId, or null if its not found.
33269
       */
33270
      public static _Fields findByThriftId(int fieldId) {
33271
        switch(fieldId) {
33272
          case 1: // WEX
33273
            return WEX;
33274
          default:
33275
            return null;
33276
        }
33277
      }
33278
 
33279
      /**
33280
       * Find the _Fields constant that matches fieldId, throwing an exception
33281
       * if it is not found.
33282
       */
33283
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33284
        _Fields fields = findByThriftId(fieldId);
33285
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33286
        return fields;
33287
      }
33288
 
33289
      /**
33290
       * Find the _Fields constant that matches name, or null if its not found.
33291
       */
33292
      public static _Fields findByName(String name) {
33293
        return byName.get(name);
33294
      }
33295
 
33296
      private final short _thriftId;
33297
      private final String _fieldName;
33298
 
33299
      _Fields(short thriftId, String fieldName) {
33300
        _thriftId = thriftId;
33301
        _fieldName = fieldName;
33302
      }
33303
 
33304
      public short getThriftFieldId() {
33305
        return _thriftId;
33306
      }
33307
 
33308
      public String getFieldName() {
33309
        return _fieldName;
33310
      }
33311
    }
33312
 
33313
    // isset id assignments
33314
 
33315
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33316
    static {
33317
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33318
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33320
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7453 amar.kumar 33321
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferOut_result.class, metaDataMap);
7410 amar.kumar 33322
    }
33323
 
7453 amar.kumar 33324
    public scanForTransferOut_result() {
7410 amar.kumar 33325
    }
33326
 
7453 amar.kumar 33327
    public scanForTransferOut_result(
7410 amar.kumar 33328
      WarehouseServiceException wex)
33329
    {
33330
      this();
33331
      this.wex = wex;
33332
    }
33333
 
33334
    /**
33335
     * Performs a deep copy on <i>other</i>.
33336
     */
7453 amar.kumar 33337
    public scanForTransferOut_result(scanForTransferOut_result other) {
7410 amar.kumar 33338
      if (other.isSetWex()) {
33339
        this.wex = new WarehouseServiceException(other.wex);
33340
      }
33341
    }
33342
 
7453 amar.kumar 33343
    public scanForTransferOut_result deepCopy() {
33344
      return new scanForTransferOut_result(this);
7410 amar.kumar 33345
    }
33346
 
33347
    @Override
33348
    public void clear() {
33349
      this.wex = null;
33350
    }
33351
 
33352
    public WarehouseServiceException getWex() {
33353
      return this.wex;
33354
    }
33355
 
33356
    public void setWex(WarehouseServiceException wex) {
33357
      this.wex = wex;
33358
    }
33359
 
33360
    public void unsetWex() {
33361
      this.wex = null;
33362
    }
33363
 
33364
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
33365
    public boolean isSetWex() {
33366
      return this.wex != null;
33367
    }
33368
 
33369
    public void setWexIsSet(boolean value) {
33370
      if (!value) {
33371
        this.wex = null;
33372
      }
33373
    }
33374
 
33375
    public void setFieldValue(_Fields field, Object value) {
33376
      switch (field) {
33377
      case WEX:
33378
        if (value == null) {
33379
          unsetWex();
33380
        } else {
33381
          setWex((WarehouseServiceException)value);
33382
        }
33383
        break;
33384
 
33385
      }
33386
    }
33387
 
33388
    public Object getFieldValue(_Fields field) {
33389
      switch (field) {
33390
      case WEX:
33391
        return getWex();
33392
 
33393
      }
33394
      throw new IllegalStateException();
33395
    }
33396
 
33397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33398
    public boolean isSet(_Fields field) {
33399
      if (field == null) {
33400
        throw new IllegalArgumentException();
33401
      }
33402
 
33403
      switch (field) {
33404
      case WEX:
33405
        return isSetWex();
33406
      }
33407
      throw new IllegalStateException();
33408
    }
33409
 
33410
    @Override
33411
    public boolean equals(Object that) {
33412
      if (that == null)
33413
        return false;
7453 amar.kumar 33414
      if (that instanceof scanForTransferOut_result)
33415
        return this.equals((scanForTransferOut_result)that);
7410 amar.kumar 33416
      return false;
33417
    }
33418
 
7453 amar.kumar 33419
    public boolean equals(scanForTransferOut_result that) {
7410 amar.kumar 33420
      if (that == null)
33421
        return false;
33422
 
33423
      boolean this_present_wex = true && this.isSetWex();
33424
      boolean that_present_wex = true && that.isSetWex();
33425
      if (this_present_wex || that_present_wex) {
33426
        if (!(this_present_wex && that_present_wex))
33427
          return false;
33428
        if (!this.wex.equals(that.wex))
33429
          return false;
33430
      }
33431
 
33432
      return true;
33433
    }
33434
 
33435
    @Override
33436
    public int hashCode() {
33437
      return 0;
33438
    }
33439
 
7453 amar.kumar 33440
    public int compareTo(scanForTransferOut_result other) {
7410 amar.kumar 33441
      if (!getClass().equals(other.getClass())) {
33442
        return getClass().getName().compareTo(other.getClass().getName());
33443
      }
33444
 
33445
      int lastComparison = 0;
7453 amar.kumar 33446
      scanForTransferOut_result typedOther = (scanForTransferOut_result)other;
7410 amar.kumar 33447
 
33448
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
33449
      if (lastComparison != 0) {
33450
        return lastComparison;
33451
      }
33452
      if (isSetWex()) {
33453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
33454
        if (lastComparison != 0) {
33455
          return lastComparison;
33456
        }
33457
      }
33458
      return 0;
33459
    }
33460
 
33461
    public _Fields fieldForId(int fieldId) {
33462
      return _Fields.findByThriftId(fieldId);
33463
    }
33464
 
33465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33466
      org.apache.thrift.protocol.TField field;
33467
      iprot.readStructBegin();
33468
      while (true)
33469
      {
33470
        field = iprot.readFieldBegin();
33471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33472
          break;
33473
        }
33474
        switch (field.id) {
33475
          case 1: // WEX
33476
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33477
              this.wex = new WarehouseServiceException();
33478
              this.wex.read(iprot);
33479
            } else { 
33480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33481
            }
33482
            break;
33483
          default:
33484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33485
        }
33486
        iprot.readFieldEnd();
33487
      }
33488
      iprot.readStructEnd();
33489
      validate();
33490
    }
33491
 
33492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33493
      oprot.writeStructBegin(STRUCT_DESC);
33494
 
33495
      if (this.isSetWex()) {
33496
        oprot.writeFieldBegin(WEX_FIELD_DESC);
33497
        this.wex.write(oprot);
33498
        oprot.writeFieldEnd();
33499
      }
33500
      oprot.writeFieldStop();
33501
      oprot.writeStructEnd();
33502
    }
33503
 
33504
    @Override
33505
    public String toString() {
7453 amar.kumar 33506
      StringBuilder sb = new StringBuilder("scanForTransferOut_result(");
7410 amar.kumar 33507
      boolean first = true;
33508
 
33509
      sb.append("wex:");
33510
      if (this.wex == null) {
33511
        sb.append("null");
33512
      } else {
33513
        sb.append(this.wex);
33514
      }
33515
      first = false;
33516
      sb.append(")");
33517
      return sb.toString();
33518
    }
33519
 
33520
    public void validate() throws org.apache.thrift.TException {
33521
      // check for required fields
33522
    }
33523
 
33524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33525
      try {
33526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33527
      } catch (org.apache.thrift.TException te) {
33528
        throw new java.io.IOException(te);
33529
      }
33530
    }
33531
 
33532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33533
      try {
33534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33535
      } catch (org.apache.thrift.TException te) {
33536
        throw new java.io.IOException(te);
33537
      }
33538
    }
33539
 
33540
  }
33541
 
7453 amar.kumar 33542
  public static class scanForTransferIn_args implements org.apache.thrift.TBase<scanForTransferIn_args, scanForTransferIn_args._Fields>, java.io.Serializable, Cloneable   {
33543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferIn_args");
33544
 
33545
    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);
33546
    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);
33547
    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);
33548
 
33549
    private List<InventoryItem> inventoryItems; // required
33550
    private ScanType type; // required
33551
    private long transferLotId; // required
33552
 
33553
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33554
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33555
      INVENTORY_ITEMS((short)1, "inventoryItems"),
33556
      /**
33557
       * 
33558
       * @see ScanType
33559
       */
33560
      TYPE((short)2, "type"),
33561
      TRANSFER_LOT_ID((short)3, "transferLotId");
33562
 
33563
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33564
 
33565
      static {
33566
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33567
          byName.put(field.getFieldName(), field);
33568
        }
33569
      }
33570
 
33571
      /**
33572
       * Find the _Fields constant that matches fieldId, or null if its not found.
33573
       */
33574
      public static _Fields findByThriftId(int fieldId) {
33575
        switch(fieldId) {
33576
          case 1: // INVENTORY_ITEMS
33577
            return INVENTORY_ITEMS;
33578
          case 2: // TYPE
33579
            return TYPE;
33580
          case 3: // TRANSFER_LOT_ID
33581
            return TRANSFER_LOT_ID;
33582
          default:
33583
            return null;
33584
        }
33585
      }
33586
 
33587
      /**
33588
       * Find the _Fields constant that matches fieldId, throwing an exception
33589
       * if it is not found.
33590
       */
33591
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33592
        _Fields fields = findByThriftId(fieldId);
33593
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33594
        return fields;
33595
      }
33596
 
33597
      /**
33598
       * Find the _Fields constant that matches name, or null if its not found.
33599
       */
33600
      public static _Fields findByName(String name) {
33601
        return byName.get(name);
33602
      }
33603
 
33604
      private final short _thriftId;
33605
      private final String _fieldName;
33606
 
33607
      _Fields(short thriftId, String fieldName) {
33608
        _thriftId = thriftId;
33609
        _fieldName = fieldName;
33610
      }
33611
 
33612
      public short getThriftFieldId() {
33613
        return _thriftId;
33614
      }
33615
 
33616
      public String getFieldName() {
33617
        return _fieldName;
33618
      }
33619
    }
33620
 
33621
    // isset id assignments
33622
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
33623
    private BitSet __isset_bit_vector = new BitSet(1);
33624
 
33625
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33626
    static {
33627
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33628
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33629
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33630
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
33631
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33632
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
33633
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33634
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33635
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33636
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferIn_args.class, metaDataMap);
33637
    }
33638
 
33639
    public scanForTransferIn_args() {
33640
    }
33641
 
33642
    public scanForTransferIn_args(
33643
      List<InventoryItem> inventoryItems,
33644
      ScanType type,
33645
      long transferLotId)
33646
    {
33647
      this();
33648
      this.inventoryItems = inventoryItems;
33649
      this.type = type;
33650
      this.transferLotId = transferLotId;
33651
      setTransferLotIdIsSet(true);
33652
    }
33653
 
33654
    /**
33655
     * Performs a deep copy on <i>other</i>.
33656
     */
33657
    public scanForTransferIn_args(scanForTransferIn_args other) {
33658
      __isset_bit_vector.clear();
33659
      __isset_bit_vector.or(other.__isset_bit_vector);
33660
      if (other.isSetInventoryItems()) {
33661
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
33662
        for (InventoryItem other_element : other.inventoryItems) {
33663
          __this__inventoryItems.add(new InventoryItem(other_element));
33664
        }
33665
        this.inventoryItems = __this__inventoryItems;
33666
      }
33667
      if (other.isSetType()) {
33668
        this.type = other.type;
33669
      }
33670
      this.transferLotId = other.transferLotId;
33671
    }
33672
 
33673
    public scanForTransferIn_args deepCopy() {
33674
      return new scanForTransferIn_args(this);
33675
    }
33676
 
33677
    @Override
33678
    public void clear() {
33679
      this.inventoryItems = null;
33680
      this.type = null;
33681
      setTransferLotIdIsSet(false);
33682
      this.transferLotId = 0;
33683
    }
33684
 
33685
    public int getInventoryItemsSize() {
33686
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
33687
    }
33688
 
33689
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
33690
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
33691
    }
33692
 
33693
    public void addToInventoryItems(InventoryItem elem) {
33694
      if (this.inventoryItems == null) {
33695
        this.inventoryItems = new ArrayList<InventoryItem>();
33696
      }
33697
      this.inventoryItems.add(elem);
33698
    }
33699
 
33700
    public List<InventoryItem> getInventoryItems() {
33701
      return this.inventoryItems;
33702
    }
33703
 
33704
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
33705
      this.inventoryItems = inventoryItems;
33706
    }
33707
 
33708
    public void unsetInventoryItems() {
33709
      this.inventoryItems = null;
33710
    }
33711
 
33712
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
33713
    public boolean isSetInventoryItems() {
33714
      return this.inventoryItems != null;
33715
    }
33716
 
33717
    public void setInventoryItemsIsSet(boolean value) {
33718
      if (!value) {
33719
        this.inventoryItems = null;
33720
      }
33721
    }
33722
 
33723
    /**
33724
     * 
33725
     * @see ScanType
33726
     */
33727
    public ScanType getType() {
33728
      return this.type;
33729
    }
33730
 
33731
    /**
33732
     * 
33733
     * @see ScanType
33734
     */
33735
    public void setType(ScanType type) {
33736
      this.type = type;
33737
    }
33738
 
33739
    public void unsetType() {
33740
      this.type = null;
33741
    }
33742
 
33743
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
33744
    public boolean isSetType() {
33745
      return this.type != null;
33746
    }
33747
 
33748
    public void setTypeIsSet(boolean value) {
33749
      if (!value) {
33750
        this.type = null;
33751
      }
33752
    }
33753
 
33754
    public long getTransferLotId() {
33755
      return this.transferLotId;
33756
    }
33757
 
33758
    public void setTransferLotId(long transferLotId) {
33759
      this.transferLotId = transferLotId;
33760
      setTransferLotIdIsSet(true);
33761
    }
33762
 
33763
    public void unsetTransferLotId() {
33764
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
33765
    }
33766
 
33767
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
33768
    public boolean isSetTransferLotId() {
33769
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
33770
    }
33771
 
33772
    public void setTransferLotIdIsSet(boolean value) {
33773
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
33774
    }
33775
 
33776
    public void setFieldValue(_Fields field, Object value) {
33777
      switch (field) {
33778
      case INVENTORY_ITEMS:
33779
        if (value == null) {
33780
          unsetInventoryItems();
33781
        } else {
33782
          setInventoryItems((List<InventoryItem>)value);
33783
        }
33784
        break;
33785
 
33786
      case TYPE:
33787
        if (value == null) {
33788
          unsetType();
33789
        } else {
33790
          setType((ScanType)value);
33791
        }
33792
        break;
33793
 
33794
      case TRANSFER_LOT_ID:
33795
        if (value == null) {
33796
          unsetTransferLotId();
33797
        } else {
33798
          setTransferLotId((Long)value);
33799
        }
33800
        break;
33801
 
33802
      }
33803
    }
33804
 
33805
    public Object getFieldValue(_Fields field) {
33806
      switch (field) {
33807
      case INVENTORY_ITEMS:
33808
        return getInventoryItems();
33809
 
33810
      case TYPE:
33811
        return getType();
33812
 
33813
      case TRANSFER_LOT_ID:
33814
        return Long.valueOf(getTransferLotId());
33815
 
33816
      }
33817
      throw new IllegalStateException();
33818
    }
33819
 
33820
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33821
    public boolean isSet(_Fields field) {
33822
      if (field == null) {
33823
        throw new IllegalArgumentException();
33824
      }
33825
 
33826
      switch (field) {
33827
      case INVENTORY_ITEMS:
33828
        return isSetInventoryItems();
33829
      case TYPE:
33830
        return isSetType();
33831
      case TRANSFER_LOT_ID:
33832
        return isSetTransferLotId();
33833
      }
33834
      throw new IllegalStateException();
33835
    }
33836
 
33837
    @Override
33838
    public boolean equals(Object that) {
33839
      if (that == null)
33840
        return false;
33841
      if (that instanceof scanForTransferIn_args)
33842
        return this.equals((scanForTransferIn_args)that);
33843
      return false;
33844
    }
33845
 
33846
    public boolean equals(scanForTransferIn_args that) {
33847
      if (that == null)
33848
        return false;
33849
 
33850
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
33851
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
33852
      if (this_present_inventoryItems || that_present_inventoryItems) {
33853
        if (!(this_present_inventoryItems && that_present_inventoryItems))
33854
          return false;
33855
        if (!this.inventoryItems.equals(that.inventoryItems))
33856
          return false;
33857
      }
33858
 
33859
      boolean this_present_type = true && this.isSetType();
33860
      boolean that_present_type = true && that.isSetType();
33861
      if (this_present_type || that_present_type) {
33862
        if (!(this_present_type && that_present_type))
33863
          return false;
33864
        if (!this.type.equals(that.type))
33865
          return false;
33866
      }
33867
 
33868
      boolean this_present_transferLotId = true;
33869
      boolean that_present_transferLotId = true;
33870
      if (this_present_transferLotId || that_present_transferLotId) {
33871
        if (!(this_present_transferLotId && that_present_transferLotId))
33872
          return false;
33873
        if (this.transferLotId != that.transferLotId)
33874
          return false;
33875
      }
33876
 
33877
      return true;
33878
    }
33879
 
33880
    @Override
33881
    public int hashCode() {
33882
      return 0;
33883
    }
33884
 
33885
    public int compareTo(scanForTransferIn_args other) {
33886
      if (!getClass().equals(other.getClass())) {
33887
        return getClass().getName().compareTo(other.getClass().getName());
33888
      }
33889
 
33890
      int lastComparison = 0;
33891
      scanForTransferIn_args typedOther = (scanForTransferIn_args)other;
33892
 
33893
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
33894
      if (lastComparison != 0) {
33895
        return lastComparison;
33896
      }
33897
      if (isSetInventoryItems()) {
33898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
33899
        if (lastComparison != 0) {
33900
          return lastComparison;
33901
        }
33902
      }
33903
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
33904
      if (lastComparison != 0) {
33905
        return lastComparison;
33906
      }
33907
      if (isSetType()) {
33908
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
33909
        if (lastComparison != 0) {
33910
          return lastComparison;
33911
        }
33912
      }
33913
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
33914
      if (lastComparison != 0) {
33915
        return lastComparison;
33916
      }
33917
      if (isSetTransferLotId()) {
33918
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
33919
        if (lastComparison != 0) {
33920
          return lastComparison;
33921
        }
33922
      }
33923
      return 0;
33924
    }
33925
 
33926
    public _Fields fieldForId(int fieldId) {
33927
      return _Fields.findByThriftId(fieldId);
33928
    }
33929
 
33930
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33931
      org.apache.thrift.protocol.TField field;
33932
      iprot.readStructBegin();
33933
      while (true)
33934
      {
33935
        field = iprot.readFieldBegin();
33936
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33937
          break;
33938
        }
33939
        switch (field.id) {
33940
          case 1: // INVENTORY_ITEMS
33941
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33942
              {
33943
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
33944
                this.inventoryItems = new ArrayList<InventoryItem>(_list93.size);
33945
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
33946
                {
33947
                  InventoryItem _elem95; // required
33948
                  _elem95 = new InventoryItem();
33949
                  _elem95.read(iprot);
33950
                  this.inventoryItems.add(_elem95);
33951
                }
33952
                iprot.readListEnd();
33953
              }
33954
            } else { 
33955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33956
            }
33957
            break;
33958
          case 2: // TYPE
33959
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33960
              this.type = ScanType.findByValue(iprot.readI32());
33961
            } else { 
33962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33963
            }
33964
            break;
33965
          case 3: // TRANSFER_LOT_ID
33966
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33967
              this.transferLotId = iprot.readI64();
33968
              setTransferLotIdIsSet(true);
33969
            } else { 
33970
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33971
            }
33972
            break;
33973
          default:
33974
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33975
        }
33976
        iprot.readFieldEnd();
33977
      }
33978
      iprot.readStructEnd();
33979
      validate();
33980
    }
33981
 
33982
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33983
      validate();
33984
 
33985
      oprot.writeStructBegin(STRUCT_DESC);
33986
      if (this.inventoryItems != null) {
33987
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
33988
        {
33989
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
33990
          for (InventoryItem _iter96 : this.inventoryItems)
33991
          {
33992
            _iter96.write(oprot);
33993
          }
33994
          oprot.writeListEnd();
33995
        }
33996
        oprot.writeFieldEnd();
33997
      }
33998
      if (this.type != null) {
33999
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
34000
        oprot.writeI32(this.type.getValue());
34001
        oprot.writeFieldEnd();
34002
      }
34003
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
34004
      oprot.writeI64(this.transferLotId);
34005
      oprot.writeFieldEnd();
34006
      oprot.writeFieldStop();
34007
      oprot.writeStructEnd();
34008
    }
34009
 
34010
    @Override
34011
    public String toString() {
34012
      StringBuilder sb = new StringBuilder("scanForTransferIn_args(");
34013
      boolean first = true;
34014
 
34015
      sb.append("inventoryItems:");
34016
      if (this.inventoryItems == null) {
34017
        sb.append("null");
34018
      } else {
34019
        sb.append(this.inventoryItems);
34020
      }
34021
      first = false;
34022
      if (!first) sb.append(", ");
34023
      sb.append("type:");
34024
      if (this.type == null) {
34025
        sb.append("null");
34026
      } else {
34027
        sb.append(this.type);
34028
      }
34029
      first = false;
34030
      if (!first) sb.append(", ");
34031
      sb.append("transferLotId:");
34032
      sb.append(this.transferLotId);
34033
      first = false;
34034
      sb.append(")");
34035
      return sb.toString();
34036
    }
34037
 
34038
    public void validate() throws org.apache.thrift.TException {
34039
      // check for required fields
34040
    }
34041
 
34042
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34043
      try {
34044
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34045
      } catch (org.apache.thrift.TException te) {
34046
        throw new java.io.IOException(te);
34047
      }
34048
    }
34049
 
34050
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34051
      try {
34052
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34053
        __isset_bit_vector = new BitSet(1);
34054
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34055
      } catch (org.apache.thrift.TException te) {
34056
        throw new java.io.IOException(te);
34057
      }
34058
    }
34059
 
34060
  }
34061
 
34062
  public static class scanForTransferIn_result implements org.apache.thrift.TBase<scanForTransferIn_result, scanForTransferIn_result._Fields>, java.io.Serializable, Cloneable   {
34063
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransferIn_result");
34064
 
34065
    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);
34066
 
34067
    private WarehouseServiceException wex; // required
34068
 
34069
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34070
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34071
      WEX((short)1, "wex");
34072
 
34073
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34074
 
34075
      static {
34076
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34077
          byName.put(field.getFieldName(), field);
34078
        }
34079
      }
34080
 
34081
      /**
34082
       * Find the _Fields constant that matches fieldId, or null if its not found.
34083
       */
34084
      public static _Fields findByThriftId(int fieldId) {
34085
        switch(fieldId) {
34086
          case 1: // WEX
34087
            return WEX;
34088
          default:
34089
            return null;
34090
        }
34091
      }
34092
 
34093
      /**
34094
       * Find the _Fields constant that matches fieldId, throwing an exception
34095
       * if it is not found.
34096
       */
34097
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34098
        _Fields fields = findByThriftId(fieldId);
34099
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34100
        return fields;
34101
      }
34102
 
34103
      /**
34104
       * Find the _Fields constant that matches name, or null if its not found.
34105
       */
34106
      public static _Fields findByName(String name) {
34107
        return byName.get(name);
34108
      }
34109
 
34110
      private final short _thriftId;
34111
      private final String _fieldName;
34112
 
34113
      _Fields(short thriftId, String fieldName) {
34114
        _thriftId = thriftId;
34115
        _fieldName = fieldName;
34116
      }
34117
 
34118
      public short getThriftFieldId() {
34119
        return _thriftId;
34120
      }
34121
 
34122
      public String getFieldName() {
34123
        return _fieldName;
34124
      }
34125
    }
34126
 
34127
    // isset id assignments
34128
 
34129
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34130
    static {
34131
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34132
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransferIn_result.class, metaDataMap);
34136
    }
34137
 
34138
    public scanForTransferIn_result() {
34139
    }
34140
 
34141
    public scanForTransferIn_result(
34142
      WarehouseServiceException wex)
34143
    {
34144
      this();
34145
      this.wex = wex;
34146
    }
34147
 
34148
    /**
34149
     * Performs a deep copy on <i>other</i>.
34150
     */
34151
    public scanForTransferIn_result(scanForTransferIn_result other) {
34152
      if (other.isSetWex()) {
34153
        this.wex = new WarehouseServiceException(other.wex);
34154
      }
34155
    }
34156
 
34157
    public scanForTransferIn_result deepCopy() {
34158
      return new scanForTransferIn_result(this);
34159
    }
34160
 
34161
    @Override
34162
    public void clear() {
34163
      this.wex = null;
34164
    }
34165
 
34166
    public WarehouseServiceException getWex() {
34167
      return this.wex;
34168
    }
34169
 
34170
    public void setWex(WarehouseServiceException wex) {
34171
      this.wex = wex;
34172
    }
34173
 
34174
    public void unsetWex() {
34175
      this.wex = null;
34176
    }
34177
 
34178
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
34179
    public boolean isSetWex() {
34180
      return this.wex != null;
34181
    }
34182
 
34183
    public void setWexIsSet(boolean value) {
34184
      if (!value) {
34185
        this.wex = null;
34186
      }
34187
    }
34188
 
34189
    public void setFieldValue(_Fields field, Object value) {
34190
      switch (field) {
34191
      case WEX:
34192
        if (value == null) {
34193
          unsetWex();
34194
        } else {
34195
          setWex((WarehouseServiceException)value);
34196
        }
34197
        break;
34198
 
34199
      }
34200
    }
34201
 
34202
    public Object getFieldValue(_Fields field) {
34203
      switch (field) {
34204
      case WEX:
34205
        return getWex();
34206
 
34207
      }
34208
      throw new IllegalStateException();
34209
    }
34210
 
34211
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34212
    public boolean isSet(_Fields field) {
34213
      if (field == null) {
34214
        throw new IllegalArgumentException();
34215
      }
34216
 
34217
      switch (field) {
34218
      case WEX:
34219
        return isSetWex();
34220
      }
34221
      throw new IllegalStateException();
34222
    }
34223
 
34224
    @Override
34225
    public boolean equals(Object that) {
34226
      if (that == null)
34227
        return false;
34228
      if (that instanceof scanForTransferIn_result)
34229
        return this.equals((scanForTransferIn_result)that);
34230
      return false;
34231
    }
34232
 
34233
    public boolean equals(scanForTransferIn_result that) {
34234
      if (that == null)
34235
        return false;
34236
 
34237
      boolean this_present_wex = true && this.isSetWex();
34238
      boolean that_present_wex = true && that.isSetWex();
34239
      if (this_present_wex || that_present_wex) {
34240
        if (!(this_present_wex && that_present_wex))
34241
          return false;
34242
        if (!this.wex.equals(that.wex))
34243
          return false;
34244
      }
34245
 
34246
      return true;
34247
    }
34248
 
34249
    @Override
34250
    public int hashCode() {
34251
      return 0;
34252
    }
34253
 
34254
    public int compareTo(scanForTransferIn_result other) {
34255
      if (!getClass().equals(other.getClass())) {
34256
        return getClass().getName().compareTo(other.getClass().getName());
34257
      }
34258
 
34259
      int lastComparison = 0;
34260
      scanForTransferIn_result typedOther = (scanForTransferIn_result)other;
34261
 
34262
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
34263
      if (lastComparison != 0) {
34264
        return lastComparison;
34265
      }
34266
      if (isSetWex()) {
34267
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
34268
        if (lastComparison != 0) {
34269
          return lastComparison;
34270
        }
34271
      }
34272
      return 0;
34273
    }
34274
 
34275
    public _Fields fieldForId(int fieldId) {
34276
      return _Fields.findByThriftId(fieldId);
34277
    }
34278
 
34279
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34280
      org.apache.thrift.protocol.TField field;
34281
      iprot.readStructBegin();
34282
      while (true)
34283
      {
34284
        field = iprot.readFieldBegin();
34285
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34286
          break;
34287
        }
34288
        switch (field.id) {
34289
          case 1: // WEX
34290
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34291
              this.wex = new WarehouseServiceException();
34292
              this.wex.read(iprot);
34293
            } else { 
34294
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34295
            }
34296
            break;
34297
          default:
34298
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34299
        }
34300
        iprot.readFieldEnd();
34301
      }
34302
      iprot.readStructEnd();
34303
      validate();
34304
    }
34305
 
34306
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34307
      oprot.writeStructBegin(STRUCT_DESC);
34308
 
34309
      if (this.isSetWex()) {
34310
        oprot.writeFieldBegin(WEX_FIELD_DESC);
34311
        this.wex.write(oprot);
34312
        oprot.writeFieldEnd();
34313
      }
34314
      oprot.writeFieldStop();
34315
      oprot.writeStructEnd();
34316
    }
34317
 
34318
    @Override
34319
    public String toString() {
34320
      StringBuilder sb = new StringBuilder("scanForTransferIn_result(");
34321
      boolean first = true;
34322
 
34323
      sb.append("wex:");
34324
      if (this.wex == null) {
34325
        sb.append("null");
34326
      } else {
34327
        sb.append(this.wex);
34328
      }
34329
      first = false;
34330
      sb.append(")");
34331
      return sb.toString();
34332
    }
34333
 
34334
    public void validate() throws org.apache.thrift.TException {
34335
      // check for required fields
34336
    }
34337
 
34338
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34339
      try {
34340
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34341
      } catch (org.apache.thrift.TException te) {
34342
        throw new java.io.IOException(te);
34343
      }
34344
    }
34345
 
34346
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34347
      try {
34348
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34349
      } catch (org.apache.thrift.TException te) {
34350
        throw new java.io.IOException(te);
34351
      }
34352
    }
34353
 
34354
  }
34355
 
34356
  public static class scanForOursThirdPartyReceive_args implements org.apache.thrift.TBase<scanForOursThirdPartyReceive_args, scanForOursThirdPartyReceive_args._Fields>, java.io.Serializable, Cloneable   {
34357
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursThirdPartyReceive_args");
34358
 
34359
    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);
34360
    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);
34361
 
34362
    private List<InventoryItem> inventoryItems; // required
34363
    private long id; // required
34364
 
34365
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34366
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34367
      INVENTORY_ITEMS((short)1, "inventoryItems"),
34368
      ID((short)2, "id");
34369
 
34370
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34371
 
34372
      static {
34373
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34374
          byName.put(field.getFieldName(), field);
34375
        }
34376
      }
34377
 
34378
      /**
34379
       * Find the _Fields constant that matches fieldId, or null if its not found.
34380
       */
34381
      public static _Fields findByThriftId(int fieldId) {
34382
        switch(fieldId) {
34383
          case 1: // INVENTORY_ITEMS
34384
            return INVENTORY_ITEMS;
34385
          case 2: // ID
34386
            return ID;
34387
          default:
34388
            return null;
34389
        }
34390
      }
34391
 
34392
      /**
34393
       * Find the _Fields constant that matches fieldId, throwing an exception
34394
       * if it is not found.
34395
       */
34396
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34397
        _Fields fields = findByThriftId(fieldId);
34398
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34399
        return fields;
34400
      }
34401
 
34402
      /**
34403
       * Find the _Fields constant that matches name, or null if its not found.
34404
       */
34405
      public static _Fields findByName(String name) {
34406
        return byName.get(name);
34407
      }
34408
 
34409
      private final short _thriftId;
34410
      private final String _fieldName;
34411
 
34412
      _Fields(short thriftId, String fieldName) {
34413
        _thriftId = thriftId;
34414
        _fieldName = fieldName;
34415
      }
34416
 
34417
      public short getThriftFieldId() {
34418
        return _thriftId;
34419
      }
34420
 
34421
      public String getFieldName() {
34422
        return _fieldName;
34423
      }
34424
    }
34425
 
34426
    // isset id assignments
34427
    private static final int __ID_ISSET_ID = 0;
34428
    private BitSet __isset_bit_vector = new BitSet(1);
34429
 
34430
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34431
    static {
34432
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34433
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34434
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34435
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
34436
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34437
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursThirdPartyReceive_args.class, metaDataMap);
34440
    }
34441
 
34442
    public scanForOursThirdPartyReceive_args() {
34443
    }
34444
 
34445
    public scanForOursThirdPartyReceive_args(
34446
      List<InventoryItem> inventoryItems,
34447
      long id)
34448
    {
34449
      this();
34450
      this.inventoryItems = inventoryItems;
34451
      this.id = id;
34452
      setIdIsSet(true);
34453
    }
34454
 
34455
    /**
34456
     * Performs a deep copy on <i>other</i>.
34457
     */
34458
    public scanForOursThirdPartyReceive_args(scanForOursThirdPartyReceive_args other) {
34459
      __isset_bit_vector.clear();
34460
      __isset_bit_vector.or(other.__isset_bit_vector);
34461
      if (other.isSetInventoryItems()) {
34462
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
34463
        for (InventoryItem other_element : other.inventoryItems) {
34464
          __this__inventoryItems.add(new InventoryItem(other_element));
34465
        }
34466
        this.inventoryItems = __this__inventoryItems;
34467
      }
34468
      this.id = other.id;
34469
    }
34470
 
34471
    public scanForOursThirdPartyReceive_args deepCopy() {
34472
      return new scanForOursThirdPartyReceive_args(this);
34473
    }
34474
 
34475
    @Override
34476
    public void clear() {
34477
      this.inventoryItems = null;
34478
      setIdIsSet(false);
34479
      this.id = 0;
34480
    }
34481
 
34482
    public int getInventoryItemsSize() {
34483
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
34484
    }
34485
 
34486
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
34487
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
34488
    }
34489
 
34490
    public void addToInventoryItems(InventoryItem elem) {
34491
      if (this.inventoryItems == null) {
34492
        this.inventoryItems = new ArrayList<InventoryItem>();
34493
      }
34494
      this.inventoryItems.add(elem);
34495
    }
34496
 
34497
    public List<InventoryItem> getInventoryItems() {
34498
      return this.inventoryItems;
34499
    }
34500
 
34501
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
34502
      this.inventoryItems = inventoryItems;
34503
    }
34504
 
34505
    public void unsetInventoryItems() {
34506
      this.inventoryItems = null;
34507
    }
34508
 
34509
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
34510
    public boolean isSetInventoryItems() {
34511
      return this.inventoryItems != null;
34512
    }
34513
 
34514
    public void setInventoryItemsIsSet(boolean value) {
34515
      if (!value) {
34516
        this.inventoryItems = null;
34517
      }
34518
    }
34519
 
34520
    public long getId() {
34521
      return this.id;
34522
    }
34523
 
34524
    public void setId(long id) {
34525
      this.id = id;
34526
      setIdIsSet(true);
34527
    }
34528
 
34529
    public void unsetId() {
34530
      __isset_bit_vector.clear(__ID_ISSET_ID);
34531
    }
34532
 
34533
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
34534
    public boolean isSetId() {
34535
      return __isset_bit_vector.get(__ID_ISSET_ID);
34536
    }
34537
 
34538
    public void setIdIsSet(boolean value) {
34539
      __isset_bit_vector.set(__ID_ISSET_ID, value);
34540
    }
34541
 
34542
    public void setFieldValue(_Fields field, Object value) {
34543
      switch (field) {
34544
      case INVENTORY_ITEMS:
34545
        if (value == null) {
34546
          unsetInventoryItems();
34547
        } else {
34548
          setInventoryItems((List<InventoryItem>)value);
34549
        }
34550
        break;
34551
 
34552
      case ID:
34553
        if (value == null) {
34554
          unsetId();
34555
        } else {
34556
          setId((Long)value);
34557
        }
34558
        break;
34559
 
34560
      }
34561
    }
34562
 
34563
    public Object getFieldValue(_Fields field) {
34564
      switch (field) {
34565
      case INVENTORY_ITEMS:
34566
        return getInventoryItems();
34567
 
34568
      case ID:
34569
        return Long.valueOf(getId());
34570
 
34571
      }
34572
      throw new IllegalStateException();
34573
    }
34574
 
34575
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34576
    public boolean isSet(_Fields field) {
34577
      if (field == null) {
34578
        throw new IllegalArgumentException();
34579
      }
34580
 
34581
      switch (field) {
34582
      case INVENTORY_ITEMS:
34583
        return isSetInventoryItems();
34584
      case ID:
34585
        return isSetId();
34586
      }
34587
      throw new IllegalStateException();
34588
    }
34589
 
34590
    @Override
34591
    public boolean equals(Object that) {
34592
      if (that == null)
34593
        return false;
34594
      if (that instanceof scanForOursThirdPartyReceive_args)
34595
        return this.equals((scanForOursThirdPartyReceive_args)that);
34596
      return false;
34597
    }
34598
 
34599
    public boolean equals(scanForOursThirdPartyReceive_args that) {
34600
      if (that == null)
34601
        return false;
34602
 
34603
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
34604
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
34605
      if (this_present_inventoryItems || that_present_inventoryItems) {
34606
        if (!(this_present_inventoryItems && that_present_inventoryItems))
34607
          return false;
34608
        if (!this.inventoryItems.equals(that.inventoryItems))
34609
          return false;
34610
      }
34611
 
34612
      boolean this_present_id = true;
34613
      boolean that_present_id = true;
34614
      if (this_present_id || that_present_id) {
34615
        if (!(this_present_id && that_present_id))
34616
          return false;
34617
        if (this.id != that.id)
34618
          return false;
34619
      }
34620
 
34621
      return true;
34622
    }
34623
 
34624
    @Override
34625
    public int hashCode() {
34626
      return 0;
34627
    }
34628
 
34629
    public int compareTo(scanForOursThirdPartyReceive_args other) {
34630
      if (!getClass().equals(other.getClass())) {
34631
        return getClass().getName().compareTo(other.getClass().getName());
34632
      }
34633
 
34634
      int lastComparison = 0;
34635
      scanForOursThirdPartyReceive_args typedOther = (scanForOursThirdPartyReceive_args)other;
34636
 
34637
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
34638
      if (lastComparison != 0) {
34639
        return lastComparison;
34640
      }
34641
      if (isSetInventoryItems()) {
34642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
34643
        if (lastComparison != 0) {
34644
          return lastComparison;
34645
        }
34646
      }
34647
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
34648
      if (lastComparison != 0) {
34649
        return lastComparison;
34650
      }
34651
      if (isSetId()) {
34652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
34653
        if (lastComparison != 0) {
34654
          return lastComparison;
34655
        }
34656
      }
34657
      return 0;
34658
    }
34659
 
34660
    public _Fields fieldForId(int fieldId) {
34661
      return _Fields.findByThriftId(fieldId);
34662
    }
34663
 
34664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34665
      org.apache.thrift.protocol.TField field;
34666
      iprot.readStructBegin();
34667
      while (true)
34668
      {
34669
        field = iprot.readFieldBegin();
34670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34671
          break;
34672
        }
34673
        switch (field.id) {
34674
          case 1: // INVENTORY_ITEMS
34675
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34676
              {
34677
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
34678
                this.inventoryItems = new ArrayList<InventoryItem>(_list97.size);
34679
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
34680
                {
34681
                  InventoryItem _elem99; // required
34682
                  _elem99 = new InventoryItem();
34683
                  _elem99.read(iprot);
34684
                  this.inventoryItems.add(_elem99);
34685
                }
34686
                iprot.readListEnd();
34687
              }
34688
            } else { 
34689
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34690
            }
34691
            break;
34692
          case 2: // ID
34693
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34694
              this.id = iprot.readI64();
34695
              setIdIsSet(true);
34696
            } else { 
34697
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34698
            }
34699
            break;
34700
          default:
34701
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34702
        }
34703
        iprot.readFieldEnd();
34704
      }
34705
      iprot.readStructEnd();
34706
      validate();
34707
    }
34708
 
34709
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34710
      validate();
34711
 
34712
      oprot.writeStructBegin(STRUCT_DESC);
34713
      if (this.inventoryItems != null) {
34714
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
34715
        {
34716
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
34717
          for (InventoryItem _iter100 : this.inventoryItems)
34718
          {
34719
            _iter100.write(oprot);
34720
          }
34721
          oprot.writeListEnd();
34722
        }
34723
        oprot.writeFieldEnd();
34724
      }
34725
      oprot.writeFieldBegin(ID_FIELD_DESC);
34726
      oprot.writeI64(this.id);
34727
      oprot.writeFieldEnd();
34728
      oprot.writeFieldStop();
34729
      oprot.writeStructEnd();
34730
    }
34731
 
34732
    @Override
34733
    public String toString() {
34734
      StringBuilder sb = new StringBuilder("scanForOursThirdPartyReceive_args(");
34735
      boolean first = true;
34736
 
34737
      sb.append("inventoryItems:");
34738
      if (this.inventoryItems == null) {
34739
        sb.append("null");
34740
      } else {
34741
        sb.append(this.inventoryItems);
34742
      }
34743
      first = false;
34744
      if (!first) sb.append(", ");
34745
      sb.append("id:");
34746
      sb.append(this.id);
34747
      first = false;
34748
      sb.append(")");
34749
      return sb.toString();
34750
    }
34751
 
34752
    public void validate() throws org.apache.thrift.TException {
34753
      // check for required fields
34754
    }
34755
 
34756
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34757
      try {
34758
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34759
      } catch (org.apache.thrift.TException te) {
34760
        throw new java.io.IOException(te);
34761
      }
34762
    }
34763
 
34764
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34765
      try {
34766
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34767
        __isset_bit_vector = new BitSet(1);
34768
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34769
      } catch (org.apache.thrift.TException te) {
34770
        throw new java.io.IOException(te);
34771
      }
34772
    }
34773
 
34774
  }
34775
 
34776
  public static class scanForOursThirdPartyReceive_result implements org.apache.thrift.TBase<scanForOursThirdPartyReceive_result, scanForOursThirdPartyReceive_result._Fields>, java.io.Serializable, Cloneable   {
34777
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursThirdPartyReceive_result");
34778
 
34779
    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);
34780
 
34781
    private WarehouseServiceException wex; // required
34782
 
34783
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34784
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34785
      WEX((short)1, "wex");
34786
 
34787
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34788
 
34789
      static {
34790
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34791
          byName.put(field.getFieldName(), field);
34792
        }
34793
      }
34794
 
34795
      /**
34796
       * Find the _Fields constant that matches fieldId, or null if its not found.
34797
       */
34798
      public static _Fields findByThriftId(int fieldId) {
34799
        switch(fieldId) {
34800
          case 1: // WEX
34801
            return WEX;
34802
          default:
34803
            return null;
34804
        }
34805
      }
34806
 
34807
      /**
34808
       * Find the _Fields constant that matches fieldId, throwing an exception
34809
       * if it is not found.
34810
       */
34811
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34812
        _Fields fields = findByThriftId(fieldId);
34813
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34814
        return fields;
34815
      }
34816
 
34817
      /**
34818
       * Find the _Fields constant that matches name, or null if its not found.
34819
       */
34820
      public static _Fields findByName(String name) {
34821
        return byName.get(name);
34822
      }
34823
 
34824
      private final short _thriftId;
34825
      private final String _fieldName;
34826
 
34827
      _Fields(short thriftId, String fieldName) {
34828
        _thriftId = thriftId;
34829
        _fieldName = fieldName;
34830
      }
34831
 
34832
      public short getThriftFieldId() {
34833
        return _thriftId;
34834
      }
34835
 
34836
      public String getFieldName() {
34837
        return _fieldName;
34838
      }
34839
    }
34840
 
34841
    // isset id assignments
34842
 
34843
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34844
    static {
34845
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34846
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34847
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34848
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34849
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursThirdPartyReceive_result.class, metaDataMap);
34850
    }
34851
 
34852
    public scanForOursThirdPartyReceive_result() {
34853
    }
34854
 
34855
    public scanForOursThirdPartyReceive_result(
34856
      WarehouseServiceException wex)
34857
    {
34858
      this();
34859
      this.wex = wex;
34860
    }
34861
 
34862
    /**
34863
     * Performs a deep copy on <i>other</i>.
34864
     */
34865
    public scanForOursThirdPartyReceive_result(scanForOursThirdPartyReceive_result other) {
34866
      if (other.isSetWex()) {
34867
        this.wex = new WarehouseServiceException(other.wex);
34868
      }
34869
    }
34870
 
34871
    public scanForOursThirdPartyReceive_result deepCopy() {
34872
      return new scanForOursThirdPartyReceive_result(this);
34873
    }
34874
 
34875
    @Override
34876
    public void clear() {
34877
      this.wex = null;
34878
    }
34879
 
34880
    public WarehouseServiceException getWex() {
34881
      return this.wex;
34882
    }
34883
 
34884
    public void setWex(WarehouseServiceException wex) {
34885
      this.wex = wex;
34886
    }
34887
 
34888
    public void unsetWex() {
34889
      this.wex = null;
34890
    }
34891
 
34892
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
34893
    public boolean isSetWex() {
34894
      return this.wex != null;
34895
    }
34896
 
34897
    public void setWexIsSet(boolean value) {
34898
      if (!value) {
34899
        this.wex = null;
34900
      }
34901
    }
34902
 
34903
    public void setFieldValue(_Fields field, Object value) {
34904
      switch (field) {
34905
      case WEX:
34906
        if (value == null) {
34907
          unsetWex();
34908
        } else {
34909
          setWex((WarehouseServiceException)value);
34910
        }
34911
        break;
34912
 
34913
      }
34914
    }
34915
 
34916
    public Object getFieldValue(_Fields field) {
34917
      switch (field) {
34918
      case WEX:
34919
        return getWex();
34920
 
34921
      }
34922
      throw new IllegalStateException();
34923
    }
34924
 
34925
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34926
    public boolean isSet(_Fields field) {
34927
      if (field == null) {
34928
        throw new IllegalArgumentException();
34929
      }
34930
 
34931
      switch (field) {
34932
      case WEX:
34933
        return isSetWex();
34934
      }
34935
      throw new IllegalStateException();
34936
    }
34937
 
34938
    @Override
34939
    public boolean equals(Object that) {
34940
      if (that == null)
34941
        return false;
34942
      if (that instanceof scanForOursThirdPartyReceive_result)
34943
        return this.equals((scanForOursThirdPartyReceive_result)that);
34944
      return false;
34945
    }
34946
 
34947
    public boolean equals(scanForOursThirdPartyReceive_result that) {
34948
      if (that == null)
34949
        return false;
34950
 
34951
      boolean this_present_wex = true && this.isSetWex();
34952
      boolean that_present_wex = true && that.isSetWex();
34953
      if (this_present_wex || that_present_wex) {
34954
        if (!(this_present_wex && that_present_wex))
34955
          return false;
34956
        if (!this.wex.equals(that.wex))
34957
          return false;
34958
      }
34959
 
34960
      return true;
34961
    }
34962
 
34963
    @Override
34964
    public int hashCode() {
34965
      return 0;
34966
    }
34967
 
34968
    public int compareTo(scanForOursThirdPartyReceive_result other) {
34969
      if (!getClass().equals(other.getClass())) {
34970
        return getClass().getName().compareTo(other.getClass().getName());
34971
      }
34972
 
34973
      int lastComparison = 0;
34974
      scanForOursThirdPartyReceive_result typedOther = (scanForOursThirdPartyReceive_result)other;
34975
 
34976
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
34977
      if (lastComparison != 0) {
34978
        return lastComparison;
34979
      }
34980
      if (isSetWex()) {
34981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
34982
        if (lastComparison != 0) {
34983
          return lastComparison;
34984
        }
34985
      }
34986
      return 0;
34987
    }
34988
 
34989
    public _Fields fieldForId(int fieldId) {
34990
      return _Fields.findByThriftId(fieldId);
34991
    }
34992
 
34993
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34994
      org.apache.thrift.protocol.TField field;
34995
      iprot.readStructBegin();
34996
      while (true)
34997
      {
34998
        field = iprot.readFieldBegin();
34999
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35000
          break;
35001
        }
35002
        switch (field.id) {
35003
          case 1: // WEX
35004
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35005
              this.wex = new WarehouseServiceException();
35006
              this.wex.read(iprot);
35007
            } else { 
35008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35009
            }
35010
            break;
35011
          default:
35012
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35013
        }
35014
        iprot.readFieldEnd();
35015
      }
35016
      iprot.readStructEnd();
35017
      validate();
35018
    }
35019
 
35020
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35021
      oprot.writeStructBegin(STRUCT_DESC);
35022
 
35023
      if (this.isSetWex()) {
35024
        oprot.writeFieldBegin(WEX_FIELD_DESC);
35025
        this.wex.write(oprot);
35026
        oprot.writeFieldEnd();
35027
      }
35028
      oprot.writeFieldStop();
35029
      oprot.writeStructEnd();
35030
    }
35031
 
35032
    @Override
35033
    public String toString() {
35034
      StringBuilder sb = new StringBuilder("scanForOursThirdPartyReceive_result(");
35035
      boolean first = true;
35036
 
35037
      sb.append("wex:");
35038
      if (this.wex == null) {
35039
        sb.append("null");
35040
      } else {
35041
        sb.append(this.wex);
35042
      }
35043
      first = false;
35044
      sb.append(")");
35045
      return sb.toString();
35046
    }
35047
 
35048
    public void validate() throws org.apache.thrift.TException {
35049
      // check for required fields
35050
    }
35051
 
35052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35053
      try {
35054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35055
      } catch (org.apache.thrift.TException te) {
35056
        throw new java.io.IOException(te);
35057
      }
35058
    }
35059
 
35060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35061
      try {
35062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35063
      } catch (org.apache.thrift.TException te) {
35064
        throw new java.io.IOException(te);
35065
      }
35066
    }
35067
 
35068
  }
35069
 
2820 chandransh 35070
}